正在查看: moonshot.企业版 v8.14.46 应用的 C1281.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: moonshot.企业版 v8.14.46 应用的 C1281.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.hX79Ew6mJdJrSjlkdwnl;
import android.annotation.SuppressLint;
import android.app.Notification;
import android.app.PendingIntent;
import android.app.Person;
import android.app.RemoteInput;
import android.content.Context;
import android.content.LocusId;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.PorterDuff;
import android.graphics.PorterDuffColorFilter;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Icon;
import android.media.AudioAttributes;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcelable;
import android.text.SpannableStringBuilder;
import android.text.TextUtils;
import android.text.style.TextAppearanceSpan;
import android.util.SparseArray;
import android.widget.RemoteViews;
import androidx.core.R;
import androidx.core.graphics.drawable.IconCompat;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.CClEfcQBIieeSntHv4xl.C0934;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.eu1n4Vdn1yKpcNjlf7lN.C1226;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.hX79Ew6mJdJrSjlkdwnl.C1279;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.kp1AiJpjqJHu1Tcnj96z.C1409;
import c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.kp1AiJpjqJHu1Tcnj96z.JINLt5EavtBRnNuKNNEN.C1371;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2074;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2087;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2092;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2094;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2104;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2112;
import c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2113;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Objects;
public class C1281 {
@SuppressLint({"ActionValue"})
public static final String f4346 = "android.conversationTitle";
public static final String f4347 = "workout";
@SuppressLint({"ActionValue"})
public static final String f4348 = "android.selfDisplayName";
public static final String f4349 = "transport";
public static final int f4350 = -1;
@SuppressLint({"ActionValue"})
public static final String f4351 = "android.template";
public static final String f4352 = "reminder";
public static final int f4353 = 0;
public static final int f4354 = 2;
@SuppressLint({"ActionValue"})
public static final String f4355 = "android.progress";
public static final String f4356 = "email";
@SuppressLint({"ActionValue"})
public static final String f4357 = "android.remoteInputHistory";
public static final String f4358 = "progress";
public static final int f4359 = 16;
public static final String f4360 = "recommendation";
public static final int f4361 = -1;
@SuppressLint({"ActionValue"})
public static final String f4362 = "android.people.list";
@SuppressLint({"ActionValue"})
public static final String f4363 = "android.intent.extra.CHANNEL_GROUP_ID";
@SuppressLint({"ActionValue"})
public static final String f4364 = "android.showWhen";
@SuppressLint({"ActionValue"})
public static final String f4365 = "android.textLines";
@SuppressLint({"ActionValue"})
public static final String f4366 = "android.intent.category.NOTIFICATION_PREFERENCES";
public static final int f4367 = -1;
public static final String f4368 = "stopwatch";
public static final String f4369 = "err";
public static final String f4370 = "promo";
public static final int f4371 = 1;
@SuppressLint({"ActionValue"})
public static final String f4372 = "android.title";
public static final int f4373 = 8;
public static final String f4374 = "androidx.core.app.extra.COMPAT_TEMPLATE";
@SuppressLint({"ActionValue"})
public static final String f4375 = "android.picture";
public static final String f4376 = "location_sharing";
@SuppressLint({"ActionValue"})
public static final String f4377 = "android.messages";
@SuppressLint({"ActionValue"})
public static final String f4378 = "android.progressMax";
public static final int f4379 = -2;
public static final int f4380 = 4096;
public static final int f4381 = 32;
public static final String f4382 = "social";
@SuppressLint({"ActionValue"})
public static final String f4383 = "android.subText";
@SuppressLint({"ActionValue"})
public static final String f4384 = "android.text";
@Deprecated
public static final int f4385 = 128;
@SuppressLint({"ActionValue"})
public static final String f4386 = "android.summaryText";
@SuppressLint({"ActionValue"})
public static final String f4387 = "android.largeIcon.big";
public static final int f4388 = 1;
public static final int f4389 = 1;
@SuppressLint({"ActionValue"})
public static final String f4390 = "android.largeIcon";
public static final int f4391 = 0;
@SuppressLint({"ActionValue"})
public static final String f4392 = "android.bigText";
public static final int f4393 = 512;
public static final int f4394 = 256;
public static final String f4395 = "alarm";
public static final int f4396 = 0;
public static final String f4397 = "navigation";
@SuppressLint({"ActionValue"})
public static final String f4398 = "android.backgroundImageUri";
public static final int f4399 = 2;
@SuppressLint({"ActionValue"})
public static final String f4400 = "android.progressIndeterminate";
@SuppressLint({"ActionValue"})
public static final String f4401 = "android.intent.extra.NOTIFICATION_TAG";
@SuppressLint({"ActionValue"})
public static final String f4402 = "android.hiddenConversationTitle";
public static final int f4403 = 1;
public static final int f4404 = -1;
@SuppressLint({"ActionValue"})
public static final String f4405 = "android.intent.extra.CHANNEL_ID";
public static final String f4406 = "call";
@SuppressLint({"ActionValue"})
public static final String f4407 = "android.compactActions";
@SuppressLint({"ActionValue"})
public static final String f4408 = "android.audioContents";
public static final int f4409 = 2;
public static final int f4410 = 2;
public static final String f4411 = "sys";
@SuppressLint({"ActionValue"})
public static final String f4412 = "android.title.big";
@SuppressLint({"ActionValue"})
public static final String f4413 = "android.intent.extra.NOTIFICATION_ID";
public static final int f4414 = 4;
@SuppressLint({"ActionValue"})
public static final String f4415 = "android.chronometerCountDown";
public static final String f4416 = "msg";
@SuppressLint({"ActionValue"})
public static final String f4417 = "android.mediaSession";
public static final String f4418 = "silent";
@SuppressLint({"ActionValue"})
public static final String f4419 = "android.messages.historic";
@InterfaceC2104
public static final int f4420 = 0;
public static final String f4421 = "missed_call";
@SuppressLint({"ActionValue"})
@Deprecated
public static final String f4422 = "android.people";
@SuppressLint({"ActionValue"})
public static final String f4423 = "android.icon";
public static final int f4424 = 64;
@SuppressLint({"ActionValue"})
public static final String f4425 = "android.showChronometer";
@SuppressLint({"ActionValue"})
public static final String f4426 = "android.messagingStyleUser";
@SuppressLint({"ActionValue"})
public static final String f4427 = "android.infoText";
public static final int f4428 = 1;
public static final int f4429 = 1;
public static final int f4430 = 4;
public static final int f4431 = 2;
public static final int f4432 = 0;
@SuppressLint({"ActionValue"})
public static final String f4433 = "android.isGroupConversation";
public static final String f4434 = "service";
public static final String f4435 = "event";
public static final String f4436 = "status";
@SuppressLint({"ActionValue"})
public static final String f4437 = "android.colorized";
public interface InterfaceC1282 {
@InterfaceC2094
C1299 mo9115(@InterfaceC2094 C1299 c1299);
}
@Retention(RetentionPolicy.SOURCE)
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public @interface InterfaceC1286 {
}
@Retention(RetentionPolicy.SOURCE)
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public @interface InterfaceC1287 {
}
public static final class C1289 {
private static final int f4466 = 1;
private static final int f4467 = 2;
private IconCompat f4468;
private PendingIntent f4469;
private int f4470;
private int f4471;
private String f4472;
private PendingIntent f4473;
@InterfaceC2087
private int f4474;
public static final class C1290 {
private int f4475;
private PendingIntent f4476;
private PendingIntent f4477;
@InterfaceC2087
private int f4478;
private String f4479;
private IconCompat f4480;
private int f4481;
@Deprecated
public C1290() {
}
@InterfaceC2094
private C1290 m9147(int i, boolean z) {
if (z) {
this.f4481 = i | this.f4481;
} else {
this.f4481 = (i ^ (-1)) & this.f4481;
}
return this;
}
@InterfaceC2094
public C1290 m9148(@InterfaceC2094 PendingIntent pendingIntent) {
if (this.f4479 != null) {
throw new IllegalStateException("Created as a shortcut bubble, cannot set a PendingIntent. Consider using BubbleMetadata.Builder(PendingIntent,Icon) instead.");
}
Objects.requireNonNull(pendingIntent, "Bubble requires non-null pending intent");
this.f4476 = pendingIntent;
return this;
}
@InterfaceC2094
public C1290 m9149(@InterfaceC2092 PendingIntent pendingIntent) {
this.f4477 = pendingIntent;
return this;
}
@InterfaceC2094
@SuppressLint({"SyntheticAccessor"})
public C1289 m9150() {
String str = this.f4479;
if (str == null) {
Objects.requireNonNull(this.f4476, "Must supply pending intent or shortcut to bubble");
}
if (str == null) {
Objects.requireNonNull(this.f4480, "Must supply an icon or shortcut for the bubble");
}
C1289 c1289 = new C1289(this.f4476, this.f4477, this.f4480, this.f4475, this.f4478, this.f4481, str);
c1289.m9138(this.f4481);
return c1289;
}
@InterfaceC2094
public C1290 m9151(@InterfaceC2112(unit = 0) int i) {
this.f4475 = Math.max(i, 0);
this.f4478 = 0;
return this;
}
@InterfaceC2094
public C1290 m9152(@InterfaceC2094 IconCompat iconCompat) {
if (this.f4479 != null) {
throw new IllegalStateException("Created as a shortcut bubble, cannot set an Icon. Consider using BubbleMetadata.Builder(PendingIntent,Icon) instead.");
}
Objects.requireNonNull(iconCompat, "Bubbles require non-null icon");
this.f4480 = iconCompat;
return this;
}
@InterfaceC2094
public C1290 m9153(boolean z) {
m9147(1, z);
return this;
}
@InterfaceC2094
public C1290 m9154(@InterfaceC2087 int i) {
this.f4478 = i;
this.f4475 = 0;
return this;
}
@InterfaceC2094
public C1290 m9155(boolean z) {
m9147(2, z);
return this;
}
@InterfaceC2113(30)
public C1290(@InterfaceC2094 String str) {
if (TextUtils.isEmpty(str)) {
throw new NullPointerException("Bubble requires a non-null shortcut id");
}
this.f4479 = str;
}
public C1290(@InterfaceC2094 PendingIntent pendingIntent, @InterfaceC2094 IconCompat iconCompat) {
Objects.requireNonNull(pendingIntent, "Bubble requires non-null pending intent");
Objects.requireNonNull(iconCompat, "Bubbles require non-null icon");
this.f4476 = pendingIntent;
this.f4480 = iconCompat;
}
}
@InterfaceC2113(29)
public static class C1291 {
private C1291() {
}
@InterfaceC2092
@InterfaceC2113(29)
public static C1289 m9156(@InterfaceC2092 Notification.BubbleMetadata bubbleMetadata) {
if (bubbleMetadata == null || bubbleMetadata.getIntent() == null) {
return null;
}
C1290 m9155 = new C1290(bubbleMetadata.getIntent(), IconCompat.m5404(bubbleMetadata.getIcon())).m9153(bubbleMetadata.getAutoExpandBubble()).m9149(bubbleMetadata.getDeleteIntent()).m9155(bubbleMetadata.isNotificationSuppressed());
if (bubbleMetadata.getDesiredHeight() != 0) {
m9155.m9151(bubbleMetadata.getDesiredHeight());
}
if (bubbleMetadata.getDesiredHeightResId() != 0) {
m9155.m9154(bubbleMetadata.getDesiredHeightResId());
}
return m9155.m9150();
}
@InterfaceC2092
@InterfaceC2113(29)
public static Notification.BubbleMetadata m9157(@InterfaceC2092 C1289 c1289) {
if (c1289 == null || c1289.m9143() == null) {
return null;
}
Notification.BubbleMetadata.Builder suppressNotification = new Notification.BubbleMetadata.Builder().setIcon(c1289.m9141().m5421()).setIntent(c1289.m9143()).setDeleteIntent(c1289.m9140()).setAutoExpandBubble(c1289.m9144()).setSuppressNotification(c1289.m9146());
if (c1289.m9142() != 0) {
suppressNotification.setDesiredHeight(c1289.m9142());
}
if (c1289.m9145() != 0) {
suppressNotification.setDesiredHeightResId(c1289.m9145());
}
return suppressNotification.build();
}
}
@InterfaceC2113(30)
public static class C1292 {
private C1292() {
}
@InterfaceC2092
@InterfaceC2113(30)
public static C1289 m9158(@InterfaceC2092 Notification.BubbleMetadata bubbleMetadata) {
if (bubbleMetadata == null) {
return null;
}
C1290 c1290 = bubbleMetadata.getShortcutId() != null ? new C1290(bubbleMetadata.getShortcutId()) : new C1290(bubbleMetadata.getIntent(), IconCompat.m5404(bubbleMetadata.getIcon()));
c1290.m9153(bubbleMetadata.getAutoExpandBubble()).m9149(bubbleMetadata.getDeleteIntent()).m9155(bubbleMetadata.isNotificationSuppressed());
if (bubbleMetadata.getDesiredHeight() != 0) {
c1290.m9151(bubbleMetadata.getDesiredHeight());
}
if (bubbleMetadata.getDesiredHeightResId() != 0) {
c1290.m9154(bubbleMetadata.getDesiredHeightResId());
}
return c1290.m9150();
}
@InterfaceC2092
@InterfaceC2113(30)
public static Notification.BubbleMetadata m9159(@InterfaceC2092 C1289 c1289) {
if (c1289 == null) {
return null;
}
Notification.BubbleMetadata.Builder builder = c1289.m9139() != null ? new Notification.BubbleMetadata.Builder(c1289.m9139()) : new Notification.BubbleMetadata.Builder(c1289.m9143(), c1289.m9141().m5421());
builder.setDeleteIntent(c1289.m9140()).setAutoExpandBubble(c1289.m9144()).setSuppressNotification(c1289.m9146());
if (c1289.m9142() != 0) {
builder.setDesiredHeight(c1289.m9142());
}
if (c1289.m9145() != 0) {
builder.setDesiredHeightResId(c1289.m9145());
}
return builder.build();
}
}
@InterfaceC2092
public static C1289 m9136(@InterfaceC2092 Notification.BubbleMetadata bubbleMetadata) {
if (bubbleMetadata == null) {
return null;
}
int i = Build.VERSION.SDK_INT;
if (i >= 30) {
return C1292.m9158(bubbleMetadata);
}
if (i == 29) {
return C1291.m9156(bubbleMetadata);
}
return null;
}
@InterfaceC2092
public static Notification.BubbleMetadata m9137(@InterfaceC2092 C1289 c1289) {
if (c1289 == null) {
return null;
}
int i = Build.VERSION.SDK_INT;
if (i >= 30) {
return C1292.m9159(c1289);
}
if (i == 29) {
return C1291.m9157(c1289);
}
return null;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void m9138(int i) {
this.f4470 = i;
}
@InterfaceC2092
public String m9139() {
return this.f4472;
}
@InterfaceC2092
public PendingIntent m9140() {
return this.f4473;
}
@InterfaceC2092
@SuppressLint({"InvalidNullConversion"})
public IconCompat m9141() {
return this.f4468;
}
@InterfaceC2112(unit = 0)
public int m9142() {
return this.f4471;
}
@InterfaceC2092
@SuppressLint({"InvalidNullConversion"})
public PendingIntent m9143() {
return this.f4469;
}
public boolean m9144() {
return (this.f4470 & 1) != 0;
}
@InterfaceC2087
public int m9145() {
return this.f4474;
}
public boolean m9146() {
return (this.f4470 & 2) != 0;
}
private C1289(@InterfaceC2092 PendingIntent pendingIntent, @InterfaceC2092 PendingIntent pendingIntent2, @InterfaceC2092 IconCompat iconCompat, int i, @InterfaceC2087 int i2, int i3, @InterfaceC2092 String str) {
this.f4469 = pendingIntent;
this.f4468 = iconCompat;
this.f4471 = i;
this.f4474 = i2;
this.f4473 = pendingIntent2;
this.f4470 = i3;
this.f4472 = str;
}
}
@Retention(RetentionPolicy.SOURCE)
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public @interface InterfaceC1293 {
}
public static abstract class AbstractC1294 {
public CharSequence f4482;
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public C1299 f4483;
public boolean f4484 = false;
public CharSequence f4485;
@InterfaceC2092
private static AbstractC1294 m9160(@InterfaceC2092 String str) {
int i;
if (str != null && (i = Build.VERSION.SDK_INT) >= 16) {
if (str.equals(Notification.BigPictureStyle.class.getName())) {
return new C1296();
}
if (str.equals(Notification.BigTextStyle.class.getName())) {
return new C1306();
}
if (str.equals(Notification.InboxStyle.class.getName())) {
return new C1305();
}
if (i >= 24) {
if (str.equals(Notification.MessagingStyle.class.getName())) {
return new C1309();
}
if (str.equals(Notification.DecoratedCustomViewStyle.class.getName())) {
return new C1307();
}
}
}
return null;
}
private static float m9161(float f, float f2, float f3) {
return f < f2 ? f2 : f > f3 ? f3 : f;
}
private int m9162() {
Resources resources = this.f4483.f4502.getResources();
int dimensionPixelSize = resources.getDimensionPixelSize(R.dimen.notification_top_pad);
int dimensionPixelSize2 = resources.getDimensionPixelSize(R.dimen.notification_top_pad_large_text);
float m9161 = (m9161(resources.getConfiguration().fontScale, 1.0f, 1.3f) - 1.0f) / 0.29999995f;
return Math.round(((1.0f - m9161) * dimensionPixelSize) + (m9161 * dimensionPixelSize2));
}
private Bitmap m9163(int i, int i2, int i3) {
return m9165(IconCompat.m5387(this.f4483.f4502, i), i2, i3);
}
private void m9164(RemoteViews remoteViews) {
remoteViews.setViewVisibility(R.id.title, 8);
remoteViews.setViewVisibility(R.id.text2, 8);
remoteViews.setViewVisibility(R.id.text, 8);
}
private Bitmap m9165(@InterfaceC2094 IconCompat iconCompat, int i, int i2) {
Drawable m5414 = iconCompat.m5414(this.f4483.f4502);
int intrinsicWidth = i2 == 0 ? m5414.getIntrinsicWidth() : i2;
if (i2 == 0) {
i2 = m5414.getIntrinsicHeight();
}
Bitmap createBitmap = Bitmap.createBitmap(intrinsicWidth, i2, Bitmap.Config.ARGB_8888);
m5414.setBounds(0, 0, intrinsicWidth, i2);
if (i != 0) {
m5414.mutate().setColorFilter(new PorterDuffColorFilter(i, PorterDuff.Mode.SRC_IN));
}
m5414.draw(new Canvas(createBitmap));
return createBitmap;
}
@InterfaceC2092
public static AbstractC1294 m9166(@InterfaceC2094 Bundle bundle) {
AbstractC1294 m9169 = m9169(bundle.getString(C1281.f4374));
return m9169 != null ? m9169 : (bundle.containsKey(C1281.f4348) || bundle.containsKey(C1281.f4426)) ? new C1309() : bundle.containsKey(C1281.f4375) ? new C1296() : bundle.containsKey(C1281.f4392) ? new C1306() : bundle.containsKey(C1281.f4365) ? new C1305() : m9160(bundle.getString(C1281.f4351));
}
@InterfaceC2092
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public static AbstractC1294 m9167(@InterfaceC2094 Notification notification) {
Bundle m9092 = C1281.m9092(notification);
if (m9092 == null) {
return null;
}
return m9168(m9092);
}
@InterfaceC2092
public static AbstractC1294 m9168(@InterfaceC2094 Bundle bundle) {
AbstractC1294 m9166 = m9166(bundle);
if (m9166 == null) {
return null;
}
try {
m9166.mo9174(bundle);
return m9166;
} catch (ClassCastException unused) {
return null;
}
}
@InterfaceC2092
public static AbstractC1294 m9169(@InterfaceC2092 String str) {
if (str == null) {
return null;
}
str.hashCode();
switch (str) {
case "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle":
return new C1307();
case "androidx.core.app.NotificationCompat$BigPictureStyle":
return new C1296();
case "androidx.core.app.NotificationCompat$InboxStyle":
return new C1305();
case "androidx.core.app.NotificationCompat$BigTextStyle":
return new C1306();
case "androidx.core.app.NotificationCompat$MessagingStyle":
return new C1309();
default:
return null;
}
}
private Bitmap m9170(int i, int i2, int i3, int i4) {
int i5 = R.drawable.notification_icon_background;
if (i4 == 0) {
i4 = 0;
}
Bitmap m9163 = m9163(i5, i4, i2);
Canvas canvas = new Canvas(m9163);
Drawable mutate = this.f4483.f4502.getResources().getDrawable(i).mutate();
mutate.setFilterBitmap(true);
int i6 = (i2 - i3) / 2;
int i7 = i3 + i6;
mutate.setBounds(i6, i6, i7, i7);
mutate.setColorFilter(new PorterDuffColorFilter(-1, PorterDuff.Mode.SRC_ATOP));
mutate.draw(canvas);
return m9163;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews mo6695(InterfaceC1337 interfaceC1337) {
return null;
}
public Bitmap m9171(@InterfaceC2094 IconCompat iconCompat, int i) {
return m9165(iconCompat, i, 0);
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews mo6697(InterfaceC1337 interfaceC1337) {
return null;
}
@c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2094
@c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2074({c8sKPHc73aST6XPVbBtC.c8sKPHc73aST6XPVbBtC.InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public android.widget.RemoteViews m9172(boolean r17, int r18, boolean r19) {
throw new UnsupportedOperationException("Method not decompiled: c8sKPHc73aST6XPVbBtC.PGqkJnXjeiwrwErSxdaQ.hX79Ew6mJdJrSjlkdwnl.C1281.AbstractC1294.m9172(boolean, int, boolean):android.widget.RemoteViews");
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9173(@InterfaceC2094 Bundle bundle) {
if (this.f4484) {
bundle.putCharSequence(C1281.f4386, this.f4482);
}
CharSequence charSequence = this.f4485;
if (charSequence != null) {
bundle.putCharSequence(C1281.f4412, charSequence);
}
String mo9176 = mo9176();
if (mo9176 != null) {
bundle.putString(C1281.f4374, mo9176);
}
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9174(@InterfaceC2094 Bundle bundle) {
if (bundle.containsKey(C1281.f4386)) {
this.f4482 = bundle.getCharSequence(C1281.f4386);
this.f4484 = true;
}
this.f4485 = bundle.getCharSequence(C1281.f4412);
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews mo6698(InterfaceC1337 interfaceC1337) {
return null;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public boolean mo9175() {
return false;
}
@InterfaceC2092
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public String mo9176() {
return null;
}
@InterfaceC2092
public Notification m9177() {
C1299 c1299 = this.f4483;
if (c1299 != null) {
return c1299.m9203();
}
return null;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9178(@InterfaceC2094 Bundle bundle) {
bundle.remove(C1281.f4386);
bundle.remove(C1281.f4412);
bundle.remove(C1281.f4374);
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo6699(InterfaceC1337 interfaceC1337) {
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void m9179(RemoteViews remoteViews, RemoteViews remoteViews2) {
m9164(remoteViews);
int i = R.id.notification_main_column;
remoteViews.removeAllViews(i);
remoteViews.addView(i, remoteViews2.clone());
remoteViews.setViewVisibility(i, 0);
if (Build.VERSION.SDK_INT >= 21) {
remoteViews.setViewPadding(R.id.notification_main_column_container, 0, m9162(), 0, 0);
}
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public Bitmap m9180(int i, int i2) {
return m9163(i, i2, 0);
}
public void m9181(@InterfaceC2092 C1299 c1299) {
if (this.f4483 != c1299) {
this.f4483 = c1299;
if (c1299 != null) {
c1299.m9198(this);
}
}
}
}
@Retention(RetentionPolicy.SOURCE)
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public @interface InterfaceC1295 {
}
public static class C1296 extends AbstractC1294 {
private static final String f4486 = "androidx.core.app.NotificationCompat$BigPictureStyle";
private IconCompat f4487;
private boolean f4488;
private Bitmap f4489;
@InterfaceC2113(16)
public static class C1297 {
private C1297() {
}
@InterfaceC2113(16)
public static void m9187(Notification.BigPictureStyle bigPictureStyle, Bitmap bitmap) {
bigPictureStyle.bigLargeIcon(bitmap);
}
@InterfaceC2113(16)
public static void m9188(Notification.BigPictureStyle bigPictureStyle, CharSequence charSequence) {
bigPictureStyle.setSummaryText(charSequence);
}
}
@InterfaceC2113(23)
public static class C1298 {
private C1298() {
}
@InterfaceC2113(23)
public static void m9189(Notification.BigPictureStyle bigPictureStyle, Icon icon) {
bigPictureStyle.bigLargeIcon(icon);
}
}
public C1296() {
}
@InterfaceC2092
private static IconCompat m9182(@InterfaceC2092 Parcelable parcelable) {
if (parcelable == null) {
return null;
}
if (Build.VERSION.SDK_INT >= 23 && (parcelable instanceof Icon)) {
return IconCompat.m5404((Icon) parcelable);
}
if (parcelable instanceof Bitmap) {
return IconCompat.m5400((Bitmap) parcelable);
}
return null;
}
@InterfaceC2094
public C1296 m9183(@InterfaceC2092 CharSequence charSequence) {
this.f4482 = C1299.m9194(charSequence);
this.f4484 = true;
return this;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9174(@InterfaceC2094 Bundle bundle) {
super.mo9174(bundle);
if (bundle.containsKey(C1281.f4387)) {
this.f4487 = m9182(bundle.getParcelable(C1281.f4387));
this.f4488 = true;
}
this.f4489 = (Bitmap) bundle.getParcelable(C1281.f4375);
}
@InterfaceC2094
public C1296 m9184(@InterfaceC2092 CharSequence charSequence) {
this.f4485 = C1299.m9194(charSequence);
return this;
}
@InterfaceC2094
public C1296 m9185(@InterfaceC2092 Bitmap bitmap) {
this.f4489 = bitmap;
return this;
}
@Override
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public String mo9176() {
return f4486;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9178(@InterfaceC2094 Bundle bundle) {
super.mo9178(bundle);
bundle.remove(C1281.f4387);
bundle.remove(C1281.f4375);
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo6699(InterfaceC1337 interfaceC1337) {
int i = Build.VERSION.SDK_INT;
if (i >= 16) {
Notification.BigPictureStyle bigPicture = new Notification.BigPictureStyle(interfaceC1337.mo9500()).setBigContentTitle(this.f4485).bigPicture(this.f4489);
if (this.f4488) {
IconCompat iconCompat = this.f4487;
if (iconCompat == null) {
C1297.m9187(bigPicture, null);
} else if (i >= 23) {
C1298.m9189(bigPicture, this.f4487.m5419(interfaceC1337 instanceof C1336 ? ((C1336) interfaceC1337).m9501() : null));
} else if (iconCompat.m5409() == 1) {
C1297.m9187(bigPicture, this.f4487.m5411());
} else {
C1297.m9187(bigPicture, null);
}
}
if (this.f4484) {
C1297.m9188(bigPicture, this.f4482);
}
}
}
@InterfaceC2094
public C1296 m9186(@InterfaceC2092 Bitmap bitmap) {
this.f4487 = bitmap == null ? null : IconCompat.m5400(bitmap);
this.f4488 = true;
return this;
}
public C1296(@InterfaceC2092 C1299 c1299) {
m9181(c1299);
}
}
public static class C1300 {
public static final int f4540 = 10;
public static final int f4541 = 3;
public static final String f4542 = "android.support.action.showsUserInterface";
public static final int f4543 = 2;
public static final String f4544 = "android.support.action.semanticAction";
public static final int f4545 = 9;
public static final int f4546 = 4;
public static final int f4547 = 6;
public static final int f4548 = 8;
public static final int f4549 = 7;
public static final int f4550 = 0;
public static final int f4551 = 5;
public static final int f4552 = 1;
public CharSequence f4553;
private final boolean f4554;
private final C1250[] f4555;
public final Bundle f4556;
public boolean f4557;
public PendingIntent f4558;
private final C1250[] f4559;
private final int f4560;
@InterfaceC2092
private IconCompat f4561;
private boolean f4562;
@Deprecated
public int f4563;
@Retention(RetentionPolicy.SOURCE)
public @interface InterfaceC1301 {
}
public static final class C1302 {
private boolean f4564;
private final PendingIntent f4565;
private final IconCompat f4566;
private ArrayList<C1250> f4567;
private boolean f4568;
private int f4569;
private final CharSequence f4570;
private final Bundle f4571;
private boolean f4572;
public C1302(@InterfaceC2092 IconCompat iconCompat, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent) {
this(iconCompat, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false);
}
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
@InterfaceC2113(19)
public static C1302 m9286(@InterfaceC2094 Notification.Action action) {
RemoteInput[] remoteInputs;
int i = Build.VERSION.SDK_INT;
C1302 c1302 = (i < 23 || action.getIcon() == null) ? new C1302(action.icon, action.title, action.actionIntent) : new C1302(IconCompat.m5404(action.getIcon()), action.title, action.actionIntent);
if (i >= 20 && (remoteInputs = action.getRemoteInputs()) != null && remoteInputs.length != 0) {
for (RemoteInput remoteInput : remoteInputs) {
c1302.m9294(C1250.m8892(remoteInput));
}
}
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 24) {
c1302.f4568 = action.getAllowGeneratedReplies();
}
if (i2 >= 28) {
c1302.m9288(action.getSemanticAction());
}
if (i2 >= 29) {
c1302.m9296(action.isContextual());
}
return c1302;
}
private void m9287() {
if (this.f4572) {
Objects.requireNonNull(this.f4565, "Contextual Actions must contain a valid PendingIntent");
}
}
@InterfaceC2094
public C1302 m9288(int i) {
this.f4569 = i;
return this;
}
@InterfaceC2094
public C1302 m9289(boolean z) {
this.f4568 = z;
return this;
}
@InterfaceC2094
public C1300 m9290() {
m9287();
ArrayList arrayList = new ArrayList();
ArrayList arrayList2 = new ArrayList();
ArrayList<C1250> arrayList3 = this.f4567;
if (arrayList3 != null) {
Iterator<C1250> it = arrayList3.iterator();
while (it.hasNext()) {
C1250 next = it.next();
if (next.m8899()) {
arrayList.add(next);
} else {
arrayList2.add(next);
}
}
}
C1250[] c1250Arr = arrayList.isEmpty() ? null : (C1250[]) arrayList.toArray(new C1250[arrayList.size()]);
return new C1300(this.f4566, this.f4570, this.f4565, this.f4571, arrayList2.isEmpty() ? null : (C1250[]) arrayList2.toArray(new C1250[arrayList2.size()]), c1250Arr, this.f4568, this.f4569, this.f4564, this.f4572);
}
@InterfaceC2094
public C1302 m9291(@InterfaceC2092 Bundle bundle) {
if (bundle != null) {
this.f4571.putAll(bundle);
}
return this;
}
@InterfaceC2094
public C1302 m9292(boolean z) {
this.f4564 = z;
return this;
}
@InterfaceC2094
public Bundle m9293() {
return this.f4571;
}
@InterfaceC2094
public C1302 m9294(@InterfaceC2092 C1250 c1250) {
if (this.f4567 == null) {
this.f4567 = new ArrayList<>();
}
if (c1250 != null) {
this.f4567.add(c1250);
}
return this;
}
@InterfaceC2094
public C1302 m9295(@InterfaceC2094 InterfaceC1304 interfaceC1304) {
interfaceC1304.mo9302(this);
return this;
}
@InterfaceC2094
public C1302 m9296(boolean z) {
this.f4572 = z;
return this;
}
public C1302(int i, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent) {
this(i != 0 ? IconCompat.m5390(null, "", i) : null, charSequence, pendingIntent, new Bundle(), null, true, 0, true, false);
}
public C1302(@InterfaceC2094 C1300 c1300) {
this(c1300.m9279(), c1300.f4553, c1300.f4558, new Bundle(c1300.f4556), c1300.m9282(), c1300.m9283(), c1300.m9276(), c1300.f4557, c1300.m9280());
}
private C1302(@InterfaceC2092 IconCompat iconCompat, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent, @InterfaceC2094 Bundle bundle, @InterfaceC2092 C1250[] c1250Arr, boolean z, int i, boolean z2, boolean z3) {
this.f4568 = true;
this.f4564 = true;
this.f4566 = iconCompat;
this.f4570 = C1299.m9194(charSequence);
this.f4565 = pendingIntent;
this.f4571 = bundle;
this.f4567 = c1250Arr == null ? null : new ArrayList<>(Arrays.asList(c1250Arr));
this.f4568 = z;
this.f4569 = i;
this.f4564 = z2;
this.f4572 = z3;
}
}
public interface InterfaceC1304 {
@InterfaceC2094
C1302 mo9302(@InterfaceC2094 C1302 c1302);
}
public C1300(int i, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent) {
this(i != 0 ? IconCompat.m5390(null, "", i) : null, charSequence, pendingIntent);
}
@InterfaceC2092
public CharSequence m9275() {
return this.f4553;
}
public int m9276() {
return this.f4560;
}
@InterfaceC2092
public C1250[] m9277() {
return this.f4559;
}
@InterfaceC2092
public PendingIntent m9278() {
return this.f4558;
}
@InterfaceC2092
public IconCompat m9279() {
int i;
if (this.f4561 == null && (i = this.f4563) != 0) {
this.f4561 = IconCompat.m5390(null, "", i);
}
return this.f4561;
}
public boolean m9280() {
return this.f4554;
}
@InterfaceC2094
public Bundle m9281() {
return this.f4556;
}
@InterfaceC2092
public C1250[] m9282() {
return this.f4555;
}
public boolean m9283() {
return this.f4562;
}
@Deprecated
public int m9284() {
return this.f4563;
}
public boolean m9285() {
return this.f4557;
}
public static final class C1303 implements InterfaceC1304 {
private static final int f4573 = 1;
private static final String f4574 = "confirmLabel";
private static final String f4575 = "flags";
private static final int f4576 = 2;
private static final String f4577 = "inProgressLabel";
private static final int f4578 = 4;
private static final String f4579 = "android.wearable.EXTENSIONS";
private static final String f4580 = "cancelLabel";
private static final int f4581 = 1;
private CharSequence f4582;
private int f4583;
private CharSequence f4584;
private CharSequence f4585;
public C1303() {
this.f4583 = 1;
}
private void m9297(int i, boolean z) {
if (z) {
this.f4583 = i | this.f4583;
} else {
this.f4583 = (i ^ (-1)) & this.f4583;
}
}
@InterfaceC2094
@Deprecated
public C1303 m9298(@InterfaceC2092 CharSequence charSequence) {
this.f4584 = charSequence;
return this;
}
public boolean m9299() {
return (this.f4583 & 1) != 0;
}
@InterfaceC2094
@Deprecated
public C1303 m9300(@InterfaceC2092 CharSequence charSequence) {
this.f4585 = charSequence;
return this;
}
@InterfaceC2092
@Deprecated
public CharSequence m9301() {
return this.f4584;
}
@Override
@InterfaceC2094
public C1302 mo9302(@InterfaceC2094 C1302 c1302) {
Bundle bundle = new Bundle();
int i = this.f4583;
if (i != 1) {
bundle.putInt(f4575, i);
}
CharSequence charSequence = this.f4585;
if (charSequence != null) {
bundle.putCharSequence(f4577, charSequence);
}
CharSequence charSequence2 = this.f4582;
if (charSequence2 != null) {
bundle.putCharSequence(f4574, charSequence2);
}
CharSequence charSequence3 = this.f4584;
if (charSequence3 != null) {
bundle.putCharSequence(f4580, charSequence3);
}
c1302.m9293().putBundle(f4579, bundle);
return c1302;
}
public boolean m9303() {
return (this.f4583 & 2) != 0;
}
@InterfaceC2094
public C1303 m9304(boolean z) {
m9297(2, z);
return this;
}
@InterfaceC2094
@Deprecated
public C1303 m9305(@InterfaceC2092 CharSequence charSequence) {
this.f4582 = charSequence;
return this;
}
@InterfaceC2092
@Deprecated
public CharSequence m9306() {
return this.f4582;
}
@InterfaceC2092
@Deprecated
public CharSequence m9307() {
return this.f4585;
}
@InterfaceC2094
public C1303 clone() {
C1303 c1303 = new C1303();
c1303.f4583 = this.f4583;
c1303.f4585 = this.f4585;
c1303.f4582 = this.f4582;
c1303.f4584 = this.f4584;
return c1303;
}
public boolean m9309() {
return (this.f4583 & 4) != 0;
}
@InterfaceC2094
public C1303 m9310(boolean z) {
m9297(1, z);
return this;
}
@InterfaceC2094
public C1303 m9311(boolean z) {
m9297(4, z);
return this;
}
public C1303(@InterfaceC2094 C1300 c1300) {
this.f4583 = 1;
Bundle bundle = c1300.m9281().getBundle(f4579);
if (bundle != null) {
this.f4583 = bundle.getInt(f4575, 1);
this.f4585 = bundle.getCharSequence(f4577);
this.f4582 = bundle.getCharSequence(f4574);
this.f4584 = bundle.getCharSequence(f4580);
}
}
}
public C1300(@InterfaceC2092 IconCompat iconCompat, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent) {
this(iconCompat, charSequence, pendingIntent, new Bundle(), (C1250[]) null, (C1250[]) null, true, 0, true, false);
}
public C1300(int i, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent, @InterfaceC2092 Bundle bundle, @InterfaceC2092 C1250[] c1250Arr, @InterfaceC2092 C1250[] c1250Arr2, boolean z, int i2, boolean z2, boolean z3) {
this(i != 0 ? IconCompat.m5390(null, "", i) : null, charSequence, pendingIntent, bundle, c1250Arr, c1250Arr2, z, i2, z2, z3);
}
public C1300(@InterfaceC2092 IconCompat iconCompat, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent, @InterfaceC2092 Bundle bundle, @InterfaceC2092 C1250[] c1250Arr, @InterfaceC2092 C1250[] c1250Arr2, boolean z, int i, boolean z2, boolean z3) {
this.f4557 = true;
this.f4561 = iconCompat;
if (iconCompat != null && iconCompat.m5409() == 2) {
this.f4563 = iconCompat.m5422();
}
this.f4553 = C1299.m9194(charSequence);
this.f4558 = pendingIntent;
this.f4556 = bundle == null ? new Bundle() : bundle;
this.f4555 = c1250Arr;
this.f4559 = c1250Arr2;
this.f4562 = z;
this.f4560 = i;
this.f4557 = z2;
this.f4554 = z3;
}
}
public static class C1306 extends AbstractC1294 {
private static final String f4588 = "androidx.core.app.NotificationCompat$BigTextStyle";
private CharSequence f4589;
public C1306() {
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9173(@InterfaceC2094 Bundle bundle) {
super.mo9173(bundle);
if (Build.VERSION.SDK_INT < 21) {
bundle.putCharSequence(C1281.f4392, this.f4589);
}
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9174(@InterfaceC2094 Bundle bundle) {
super.mo9174(bundle);
this.f4589 = bundle.getCharSequence(C1281.f4392);
}
@InterfaceC2094
public C1306 m9315(@InterfaceC2092 CharSequence charSequence) {
this.f4589 = C1299.m9194(charSequence);
return this;
}
@InterfaceC2094
public C1306 m9316(@InterfaceC2092 CharSequence charSequence) {
this.f4482 = C1299.m9194(charSequence);
this.f4484 = true;
return this;
}
@Override
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public String mo9176() {
return f4588;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9178(@InterfaceC2094 Bundle bundle) {
super.mo9178(bundle);
bundle.remove(C1281.f4392);
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo6699(InterfaceC1337 interfaceC1337) {
if (Build.VERSION.SDK_INT >= 16) {
Notification.BigTextStyle bigText = new Notification.BigTextStyle(interfaceC1337.mo9500()).setBigContentTitle(this.f4485).bigText(this.f4589);
if (this.f4484) {
bigText.setSummaryText(this.f4482);
}
}
}
@InterfaceC2094
public C1306 m9317(@InterfaceC2092 CharSequence charSequence) {
this.f4485 = C1299.m9194(charSequence);
return this;
}
public C1306(@InterfaceC2092 C1299 c1299) {
m9181(c1299);
}
}
public static class C1307 extends AbstractC1294 {
private static final int f4590 = 3;
private static final String f4591 = "androidx.core.app.NotificationCompat$DecoratedCustomViewStyle";
private RemoteViews m9318(RemoteViews remoteViews, boolean z) {
int min;
boolean z2 = true;
RemoteViews m9172 = m9172(true, R.layout.notification_template_custom_big, false);
m9172.removeAllViews(R.id.actions);
List<C1300> m9319 = m9319(this.f4483.f4526);
if (!z || m9319 == null || (min = Math.min(m9319.size(), 3)) <= 0) {
z2 = false;
} else {
for (int i = 0; i < min; i++) {
m9172.addView(R.id.actions, m9320(m9319.get(i)));
}
}
int i2 = z2 ? 0 : 8;
m9172.setViewVisibility(R.id.actions, i2);
m9172.setViewVisibility(R.id.action_divider, i2);
m9179(m9172, remoteViews);
return m9172;
}
private static List<C1300> m9319(List<C1300> list) {
if (list == null) {
return null;
}
ArrayList arrayList = new ArrayList();
for (C1300 c1300 : list) {
if (!c1300.m9280()) {
arrayList.add(c1300);
}
}
return arrayList;
}
private RemoteViews m9320(C1300 c1300) {
boolean z = c1300.f4558 == null;
RemoteViews remoteViews = new RemoteViews(this.f4483.f4502.getPackageName(), z ? R.layout.notification_action_tombstone : R.layout.notification_action);
IconCompat m9279 = c1300.m9279();
if (m9279 != null) {
remoteViews.setImageViewBitmap(R.id.action_image, m9171(m9279, this.f4483.f4502.getResources().getColor(R.color.notification_action_color_filter)));
}
remoteViews.setTextViewText(R.id.action_text, c1300.f4553);
if (!z) {
remoteViews.setOnClickPendingIntent(R.id.action_container, c1300.f4558);
}
if (Build.VERSION.SDK_INT >= 15) {
remoteViews.setContentDescription(R.id.action_container, c1300.f4553);
}
return remoteViews;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews mo6695(InterfaceC1337 interfaceC1337) {
if (Build.VERSION.SDK_INT >= 24) {
return null;
}
RemoteViews m9227 = this.f4483.m9227();
if (m9227 == null) {
m9227 = this.f4483.m9238();
}
if (m9227 == null) {
return null;
}
return m9318(m9227, true);
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews mo6697(InterfaceC1337 interfaceC1337) {
if (Build.VERSION.SDK_INT < 24 && this.f4483.m9238() != null) {
return m9318(this.f4483.m9238(), false);
}
return null;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews mo6698(InterfaceC1337 interfaceC1337) {
if (Build.VERSION.SDK_INT >= 24) {
return null;
}
RemoteViews m9202 = this.f4483.m9202();
RemoteViews m9238 = m9202 != null ? m9202 : this.f4483.m9238();
if (m9202 == null) {
return null;
}
return m9318(m9238, true);
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public boolean mo9175() {
return true;
}
@Override
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public String mo9176() {
return f4591;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo6699(InterfaceC1337 interfaceC1337) {
if (Build.VERSION.SDK_INT >= 24) {
interfaceC1337.mo9500().setStyle(new Notification.DecoratedCustomViewStyle());
}
}
}
@Deprecated
public C1281() {
}
public static int m9081(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 21) {
return notification.color;
}
return 0;
}
public static boolean m9082(@InterfaceC2094 Notification notification) {
return (notification.flags & 2) != 0;
}
@InterfaceC2092
public static String m9083(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 21) {
return notification.category;
}
return null;
}
public static long m9084(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 26) {
return notification.getTimeoutAfter();
}
return 0L;
}
@InterfaceC2092
public static String m9085(@InterfaceC2094 Notification notification) {
int i = Build.VERSION.SDK_INT;
if (i >= 20) {
return notification.getGroup();
}
if (i >= 19) {
return notification.extras.getString(C1311.f4665);
}
if (i >= 16) {
return C1324.m9459(notification).getString(C1311.f4665);
}
return null;
}
public static boolean m9086(@InterfaceC2094 Notification notification) {
return (notification.flags & 8) != 0;
}
public static int m9087(@InterfaceC2094 Notification notification) {
int i = Build.VERSION.SDK_INT;
if (i < 19) {
if (i >= 16) {
return C1324.m9457(notification);
}
return 0;
}
Notification.Action[] actionArr = notification.actions;
if (actionArr != null) {
return actionArr.length;
}
return 0;
}
@InterfaceC2092
public static C1300 m9088(@InterfaceC2094 Notification notification, int i) {
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 20) {
return m9106(notification.actions[i]);
}
if (i2 >= 19) {
Notification.Action action = notification.actions[i];
SparseArray sparseParcelableArray = notification.extras.getSparseParcelableArray(C1311.f4666);
return C1324.m9463(action.icon, action.title, action.actionIntent, sparseParcelableArray != null ? (Bundle) sparseParcelableArray.get(i) : null);
}
if (i2 >= 16) {
return C1324.m9464(notification, i);
}
return null;
}
public static int m9089(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 26) {
return notification.getBadgeIconType();
}
return 0;
}
@InterfaceC2092
public static Notification m9090(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 21) {
return notification.publicVersion;
}
return null;
}
@InterfaceC2092
public static String m9091(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 26) {
return notification.getShortcutId();
}
return null;
}
@InterfaceC2092
public static Bundle m9092(@InterfaceC2094 Notification notification) {
int i = Build.VERSION.SDK_INT;
if (i >= 19) {
return notification.extras;
}
if (i >= 16) {
return C1324.m9459(notification);
}
return null;
}
@InterfaceC2094
public static List<C1279> m9093(@InterfaceC2094 Notification notification) {
String[] stringArray;
ArrayList arrayList = new ArrayList();
int i = Build.VERSION.SDK_INT;
if (i >= 28) {
ArrayList parcelableArrayList = notification.extras.getParcelableArrayList(f4362);
if (parcelableArrayList != null && !parcelableArrayList.isEmpty()) {
Iterator it = parcelableArrayList.iterator();
while (it.hasNext()) {
arrayList.add(C1279.m9061((Person) it.next()));
}
}
} else if (i >= 19 && (stringArray = notification.extras.getStringArray(f4422)) != null && stringArray.length != 0) {
for (String str : stringArray) {
arrayList.add(new C1279.C1280().m9078(str).m9075());
}
}
return arrayList;
}
@InterfaceC2094
public static Notification[] m9094(@InterfaceC2094 Bundle bundle, @InterfaceC2094 String str) {
Parcelable[] parcelableArray = bundle.getParcelableArray(str);
if ((parcelableArray instanceof Notification[]) || parcelableArray == null) {
return (Notification[]) parcelableArray;
}
Notification[] notificationArr = new Notification[parcelableArray.length];
for (int i = 0; i < parcelableArray.length; i++) {
notificationArr[i] = (Notification) parcelableArray[i];
}
bundle.putParcelableArray(str, notificationArr);
return notificationArr;
}
public static int m9095(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 26) {
return notification.getGroupAlertBehavior();
}
return 0;
}
@InterfaceC2092
@InterfaceC2113(19)
public static CharSequence m9096(@InterfaceC2094 Notification notification) {
return notification.extras.getCharSequence(f4383);
}
@InterfaceC2092
public static String m9097(@InterfaceC2094 Notification notification) {
int i = Build.VERSION.SDK_INT;
if (i >= 20) {
return notification.getSortKey();
}
if (i >= 19) {
return notification.extras.getString(C1311.f4664);
}
if (i >= 16) {
return C1324.m9459(notification).getString(C1311.f4664);
}
return null;
}
@InterfaceC2094
@InterfaceC2113(21)
public static List<C1300> m9098(@InterfaceC2094 Notification notification) {
Bundle bundle;
Bundle bundle2;
ArrayList arrayList = new ArrayList();
if (Build.VERSION.SDK_INT >= 19 && (bundle = notification.extras.getBundle(C1283.f4445)) != null && (bundle2 = bundle.getBundle(C1283.f4439)) != null) {
for (int i = 0; i < bundle2.size(); i++) {
arrayList.add(C1324.m9461(bundle2.getBundle(Integer.toString(i))));
}
}
return arrayList;
}
public static int m9099(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 21) {
return notification.visibility;
}
return 0;
}
@InterfaceC2092
@InterfaceC2113(19)
public static CharSequence m9100(@InterfaceC2094 Notification notification) {
return notification.extras.getCharSequence(f4427);
}
public static boolean m9101(@InterfaceC2094 Notification notification) {
int i = Build.VERSION.SDK_INT;
if (i >= 20) {
return (notification.flags & 512) != 0;
}
if (i >= 19) {
return notification.extras.getBoolean(C1311.f4661);
}
if (i >= 16) {
return C1324.m9459(notification).getBoolean(C1311.f4661);
}
return false;
}
@InterfaceC2092
public static C1409 m9102(@InterfaceC2094 Notification notification) {
LocusId locusId;
if (Build.VERSION.SDK_INT < 29 || (locusId = notification.getLocusId()) == null) {
return null;
}
return C1409.m9792(locusId);
}
public static boolean m9103(@InterfaceC2094 Notification notification) {
int i = Build.VERSION.SDK_INT;
if (i >= 20) {
return (notification.flags & 256) != 0;
}
if (i >= 19) {
return notification.extras.getBoolean(C1311.f4662);
}
if (i >= 16) {
return C1324.m9459(notification).getBoolean(C1311.f4662);
}
return false;
}
public static boolean m9104(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 29) {
return notification.getAllowSystemGeneratedContextualActions();
}
return false;
}
@InterfaceC2092
public static C1289 m9105(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 29) {
return C1289.m9136(notification.getBubbleMetadata());
}
return null;
}
@InterfaceC2094
@InterfaceC2113(20)
public static C1300 m9106(@InterfaceC2094 Notification.Action action) {
C1250[] c1250Arr;
int i;
RemoteInput[] remoteInputs = action.getRemoteInputs();
if (remoteInputs == null) {
c1250Arr = null;
} else {
C1250[] c1250Arr2 = new C1250[remoteInputs.length];
for (int i2 = 0; i2 < remoteInputs.length; i2++) {
RemoteInput remoteInput = remoteInputs[i2];
c1250Arr2[i2] = new C1250(remoteInput.getResultKey(), remoteInput.getLabel(), remoteInput.getChoices(), remoteInput.getAllowFreeFormInput(), Build.VERSION.SDK_INT >= 29 ? remoteInput.getEditChoicesBeforeSending() : 0, remoteInput.getExtras(), null);
}
c1250Arr = c1250Arr2;
}
int i3 = Build.VERSION.SDK_INT;
boolean z = i3 >= 24 ? action.getExtras().getBoolean(C1324.f4749) || action.getAllowGeneratedReplies() : action.getExtras().getBoolean(C1324.f4749);
boolean z2 = action.getExtras().getBoolean(C1300.f4542, true);
int semanticAction = i3 >= 28 ? action.getSemanticAction() : action.getExtras().getInt(C1300.f4544, 0);
boolean isContextual = i3 >= 29 ? action.isContextual() : false;
if (i3 < 23) {
return new C1300(action.icon, action.title, action.actionIntent, action.getExtras(), c1250Arr, (C1250[]) null, z, semanticAction, z2, isContextual);
}
if (action.getIcon() != null || (i = action.icon) == 0) {
return new C1300(action.getIcon() != null ? IconCompat.m5389(action.getIcon()) : null, action.title, action.actionIntent, action.getExtras(), c1250Arr, (C1250[]) null, z, semanticAction, z2, isContextual);
}
return new C1300(i, action.title, action.actionIntent, action.getExtras(), c1250Arr, (C1250[]) null, z, semanticAction, z2, isContextual);
}
@InterfaceC2092
@InterfaceC2113(19)
public static CharSequence m9107(@InterfaceC2094 Notification notification) {
return notification.extras.getCharSequence(f4384);
}
@InterfaceC2113(19)
public static boolean m9108(@InterfaceC2094 Notification notification) {
return notification.extras.getBoolean(f4364);
}
public static boolean m9109(@InterfaceC2094 Notification notification) {
return (notification.flags & 16) != 0;
}
@InterfaceC2092
public static String m9110(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 26) {
return notification.getChannelId();
}
return null;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public static boolean m9111(@InterfaceC2094 Notification notification) {
return (notification.flags & 128) != 0;
}
@InterfaceC2113(19)
public static boolean m9112(@InterfaceC2094 Notification notification) {
return notification.extras.getBoolean(f4425);
}
@InterfaceC2092
@InterfaceC2113(19)
public static CharSequence m9113(@InterfaceC2094 Notification notification) {
return notification.extras.getCharSequence(f4372);
}
@InterfaceC2092
public static CharSequence m9114(@InterfaceC2094 Notification notification) {
if (Build.VERSION.SDK_INT >= 26) {
return notification.getSettingsText();
}
return null;
}
public static final class C1283 implements InterfaceC1282 {
private static final String f4438 = "text";
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public static final String f4439 = "invisible_actions";
private static final String f4440 = "participants";
private static final String f4441 = "car_conversation";
private static final String f4442 = "on_read";
private static final String f4443 = "timestamp";
private static final String f4444 = "messages";
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public static final String f4445 = "android.car.EXTENSIONS";
private static final String f4446 = "app_color";
private static final String f4447 = "remote_input";
private static final String f4448 = "large_icon";
private static final String f4449 = "author";
private static final String f4450 = "on_reply";
private int f4451;
private Bitmap f4452;
private C1284 f4453;
@Deprecated
public static class C1284 {
private final PendingIntent f4454;
private final String[] f4455;
private final long f4456;
private final PendingIntent f4457;
private final C1250 f4458;
private final String[] f4459;
public static class C1285 {
private C1250 f4460;
private final List<String> f4461 = new ArrayList();
private long f4462;
private PendingIntent f4463;
private final String f4464;
private PendingIntent f4465;
public C1285(@InterfaceC2094 String str) {
this.f4464 = str;
}
@InterfaceC2094
public C1285 m9131(long j) {
this.f4462 = j;
return this;
}
@InterfaceC2094
public C1285 m9132(@InterfaceC2092 String str) {
if (str != null) {
this.f4461.add(str);
}
return this;
}
@InterfaceC2094
public C1285 m9133(@InterfaceC2092 PendingIntent pendingIntent) {
this.f4463 = pendingIntent;
return this;
}
@InterfaceC2094
public C1284 m9134() {
List<String> list = this.f4461;
return new C1284((String[]) list.toArray(new String[list.size()]), this.f4460, this.f4465, this.f4463, new String[]{this.f4464}, this.f4462);
}
@InterfaceC2094
public C1285 m9135(@InterfaceC2092 PendingIntent pendingIntent, @InterfaceC2092 C1250 c1250) {
this.f4460 = c1250;
this.f4465 = pendingIntent;
return this;
}
}
public C1284(@InterfaceC2092 String[] strArr, @InterfaceC2092 C1250 c1250, @InterfaceC2092 PendingIntent pendingIntent, @InterfaceC2092 PendingIntent pendingIntent2, @InterfaceC2092 String[] strArr2, long j) {
this.f4455 = strArr;
this.f4458 = c1250;
this.f4457 = pendingIntent2;
this.f4454 = pendingIntent;
this.f4459 = strArr2;
this.f4456 = j;
}
@InterfaceC2092
public String m9124() {
String[] strArr = this.f4459;
if (strArr.length > 0) {
return strArr[0];
}
return null;
}
public long m9125() {
return this.f4456;
}
@InterfaceC2092
public C1250 m9126() {
return this.f4458;
}
@InterfaceC2092
public String[] m9127() {
return this.f4459;
}
@InterfaceC2092
public PendingIntent m9128() {
return this.f4454;
}
@InterfaceC2092
public String[] m9129() {
return this.f4455;
}
@InterfaceC2092
public PendingIntent m9130() {
return this.f4457;
}
}
public C1283() {
this.f4451 = 0;
}
@InterfaceC2113(21)
private static C1284 m9116(@InterfaceC2092 Bundle bundle) {
String[] strArr;
boolean z;
if (bundle == null) {
return null;
}
Parcelable[] parcelableArray = bundle.getParcelableArray(f4444);
if (parcelableArray != null) {
int length = parcelableArray.length;
String[] strArr2 = new String[length];
for (int i = 0; i < length; i++) {
if (parcelableArray[i] instanceof Bundle) {
strArr2[i] = ((Bundle) parcelableArray[i]).getString("text");
if (strArr2[i] != null) {
}
}
z = false;
break;
}
z = true;
if (!z) {
return null;
}
strArr = strArr2;
} else {
strArr = null;
}
PendingIntent pendingIntent = (PendingIntent) bundle.getParcelable(f4442);
PendingIntent pendingIntent2 = (PendingIntent) bundle.getParcelable(f4450);
RemoteInput remoteInput = (RemoteInput) bundle.getParcelable(f4447);
String[] stringArray = bundle.getStringArray(f4440);
if (stringArray == null || stringArray.length != 1) {
return null;
}
return new C1284(strArr, remoteInput != null ? new C1250(remoteInput.getResultKey(), remoteInput.getLabel(), remoteInput.getChoices(), remoteInput.getAllowFreeFormInput(), Build.VERSION.SDK_INT >= 29 ? remoteInput.getEditChoicesBeforeSending() : 0, remoteInput.getExtras(), null) : null, pendingIntent2, pendingIntent, stringArray, bundle.getLong("timestamp"));
}
@InterfaceC2113(21)
private static Bundle m9117(@InterfaceC2094 C1284 c1284) {
Bundle bundle = new Bundle();
String str = (c1284.m9127() == null || c1284.m9127().length <= 1) ? null : c1284.m9127()[0];
int length = c1284.m9129().length;
Parcelable[] parcelableArr = new Parcelable[length];
for (int i = 0; i < length; i++) {
Bundle bundle2 = new Bundle();
bundle2.putString("text", c1284.m9129()[i]);
bundle2.putString(f4449, str);
parcelableArr[i] = bundle2;
}
bundle.putParcelableArray(f4444, parcelableArr);
C1250 m9126 = c1284.m9126();
if (m9126 != null) {
bundle.putParcelable(f4447, new RemoteInput.Builder(m9126.m8896()).setLabel(m9126.m8898()).setChoices(m9126.m8895()).setAllowFreeFormInput(m9126.m8897()).addExtras(m9126.m8902()).build());
}
bundle.putParcelable(f4450, c1284.m9128());
bundle.putParcelable(f4442, c1284.m9130());
bundle.putStringArray(f4440, c1284.m9127());
bundle.putLong("timestamp", c1284.m9125());
return bundle;
}
@InterfaceC2094
public C1283 m9118(@InterfaceC2092 Bitmap bitmap) {
this.f4452 = bitmap;
return this;
}
@InterfaceC2104
public int m9119() {
return this.f4451;
}
@Override
@InterfaceC2094
public C1299 mo9115(@InterfaceC2094 C1299 c1299) {
if (Build.VERSION.SDK_INT < 21) {
return c1299;
}
Bundle bundle = new Bundle();
Bitmap bitmap = this.f4452;
if (bitmap != null) {
bundle.putParcelable(f4448, bitmap);
}
int i = this.f4451;
if (i != 0) {
bundle.putInt(f4446, i);
}
C1284 c1284 = this.f4453;
if (c1284 != null) {
bundle.putBundle(f4441, m9117(c1284));
}
c1299.m9237().putBundle(f4445, bundle);
return c1299;
}
@InterfaceC2092
public Bitmap m9120() {
return this.f4452;
}
@InterfaceC2094
public C1283 m9121(@InterfaceC2104 int i) {
this.f4451 = i;
return this;
}
@InterfaceC2092
@Deprecated
public C1284 m9122() {
return this.f4453;
}
@InterfaceC2094
@Deprecated
public C1283 m9123(@InterfaceC2092 C1284 c1284) {
this.f4453 = c1284;
return this;
}
public C1283(@InterfaceC2094 Notification notification) {
this.f4451 = 0;
if (Build.VERSION.SDK_INT < 21) {
return;
}
Bundle bundle = C1281.m9092(notification) == null ? null : C1281.m9092(notification).getBundle(f4445);
if (bundle != null) {
this.f4452 = (Bitmap) bundle.getParcelable(f4448);
this.f4451 = bundle.getInt(f4446, 0);
this.f4453 = m9116(bundle.getBundle(f4441));
}
}
}
public static class C1305 extends AbstractC1294 {
private static final String f4586 = "androidx.core.app.NotificationCompat$InboxStyle";
private ArrayList<CharSequence> f4587 = new ArrayList<>();
public C1305() {
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9174(@InterfaceC2094 Bundle bundle) {
super.mo9174(bundle);
this.f4587.clear();
if (bundle.containsKey(C1281.f4365)) {
Collections.addAll(this.f4587, bundle.getCharSequenceArray(C1281.f4365));
}
}
@InterfaceC2094
public C1305 m9312(@InterfaceC2092 CharSequence charSequence) {
if (charSequence != null) {
this.f4587.add(C1299.m9194(charSequence));
}
return this;
}
@InterfaceC2094
public C1305 m9313(@InterfaceC2092 CharSequence charSequence) {
this.f4482 = C1299.m9194(charSequence);
this.f4484 = true;
return this;
}
@Override
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public String mo9176() {
return f4586;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9178(@InterfaceC2094 Bundle bundle) {
super.mo9178(bundle);
bundle.remove(C1281.f4365);
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo6699(InterfaceC1337 interfaceC1337) {
if (Build.VERSION.SDK_INT >= 16) {
Notification.InboxStyle bigContentTitle = new Notification.InboxStyle(interfaceC1337.mo9500()).setBigContentTitle(this.f4485);
if (this.f4484) {
bigContentTitle.setSummaryText(this.f4482);
}
Iterator<CharSequence> it = this.f4587.iterator();
while (it.hasNext()) {
bigContentTitle.addLine(it.next());
}
}
}
@InterfaceC2094
public C1305 m9314(@InterfaceC2092 CharSequence charSequence) {
this.f4485 = C1299.m9194(charSequence);
return this;
}
public C1305(@InterfaceC2092 C1299 c1299) {
m9181(c1299);
}
}
public static class C1309 extends AbstractC1294 {
private static final String f4640 = "androidx.core.app.NotificationCompat$MessagingStyle";
public static final int f4641 = 25;
@InterfaceC2092
private CharSequence f4642;
private C1279 f4644;
@InterfaceC2092
private Boolean f4646;
private final List<C1310> f4645 = new ArrayList();
private final List<C1310> f4643 = new ArrayList();
public C1309() {
}
private boolean m9368() {
for (int size = this.f4645.size() - 1; size >= 0; size--) {
C1310 c1310 = this.f4645.get(size);
if (c1310.m9394() != null && c1310.m9394().m9065() == null) {
return true;
}
}
return false;
}
@InterfaceC2092
public static C1309 m9369(@InterfaceC2094 Notification notification) {
AbstractC1294 m9167 = AbstractC1294.m9167(notification);
if (m9167 instanceof C1309) {
return (C1309) m9167;
}
return null;
}
@InterfaceC2094
private TextAppearanceSpan m9370(int i) {
return new TextAppearanceSpan(null, 0, 0, ColorStateList.valueOf(i), null);
}
private CharSequence m9371(@InterfaceC2094 C1310 c1310) {
C1226 m8808 = C1226.m8808();
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
boolean z = Build.VERSION.SDK_INT >= 21;
int i = z ? C0934.f3584 : -1;
CharSequence m9065 = c1310.m9394() == null ? "" : c1310.m9394().m9065();
if (TextUtils.isEmpty(m9065)) {
m9065 = this.f4644.m9065();
if (z && this.f4483.m9231() != 0) {
i = this.f4483.m9231();
}
}
CharSequence m8826 = m8808.m8826(m9065);
spannableStringBuilder.append(m8826);
spannableStringBuilder.setSpan(m9370(i), spannableStringBuilder.length() - m8826.length(), spannableStringBuilder.length(), 33);
spannableStringBuilder.append((CharSequence) " ").append(m8808.m8826(c1310.m9397() != null ? c1310.m9397() : ""));
return spannableStringBuilder;
}
@InterfaceC2092
private C1310 m9372() {
for (int size = this.f4645.size() - 1; size >= 0; size--) {
C1310 c1310 = this.f4645.get(size);
if (c1310.m9394() != null && !TextUtils.isEmpty(c1310.m9394().m9065())) {
return c1310;
}
}
if (this.f4645.isEmpty()) {
return null;
}
return this.f4645.get(r0.size() - 1);
}
@Override
public void mo9173(@InterfaceC2094 Bundle bundle) {
super.mo9173(bundle);
bundle.putCharSequence(C1281.f4348, this.f4644.m9065());
bundle.putBundle(C1281.f4426, this.f4644.m9073());
bundle.putCharSequence(C1281.f4402, this.f4642);
if (this.f4642 != null && this.f4646.booleanValue()) {
bundle.putCharSequence(C1281.f4346, this.f4642);
}
if (!this.f4645.isEmpty()) {
bundle.putParcelableArray(C1281.f4377, C1310.m9385(this.f4645));
}
if (!this.f4643.isEmpty()) {
bundle.putParcelableArray(C1281.f4419, C1310.m9385(this.f4643));
}
Boolean bool = this.f4646;
if (bool != null) {
bundle.putBoolean(C1281.f4433, bool.booleanValue());
}
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9174(@InterfaceC2094 Bundle bundle) {
super.mo9174(bundle);
this.f4645.clear();
if (bundle.containsKey(C1281.f4426)) {
this.f4644 = C1279.m9062(bundle.getBundle(C1281.f4426));
} else {
this.f4644 = new C1279.C1280().m9076(bundle.getString(C1281.f4348)).m9075();
}
CharSequence charSequence = bundle.getCharSequence(C1281.f4346);
this.f4642 = charSequence;
if (charSequence == null) {
this.f4642 = bundle.getCharSequence(C1281.f4402);
}
Parcelable[] parcelableArray = bundle.getParcelableArray(C1281.f4377);
if (parcelableArray != null) {
this.f4645.addAll(C1310.m9386(parcelableArray));
}
Parcelable[] parcelableArray2 = bundle.getParcelableArray(C1281.f4419);
if (parcelableArray2 != null) {
this.f4643.addAll(C1310.m9386(parcelableArray2));
}
if (bundle.containsKey(C1281.f4433)) {
this.f4646 = Boolean.valueOf(bundle.getBoolean(C1281.f4433));
}
}
@InterfaceC2094
public C1309 m9373(@InterfaceC2092 C1310 c1310) {
if (c1310 != null) {
this.f4643.add(c1310);
if (this.f4643.size() > 25) {
this.f4643.remove(0);
}
}
return this;
}
public boolean m9374() {
C1299 c1299 = this.f4483;
if (c1299 != null && c1299.f4502.getApplicationInfo().targetSdkVersion < 28 && this.f4646 == null) {
return this.f4642 != null;
}
Boolean bool = this.f4646;
if (bool != null) {
return bool.booleanValue();
}
return false;
}
@InterfaceC2094
@Deprecated
public C1309 m9375(@InterfaceC2092 CharSequence charSequence, long j, @InterfaceC2092 CharSequence charSequence2) {
this.f4645.add(new C1310(charSequence, j, new C1279.C1280().m9076(charSequence2).m9075()));
if (this.f4645.size() > 25) {
this.f4645.remove(0);
}
return this;
}
@InterfaceC2094
public C1309 m9376(@InterfaceC2092 CharSequence charSequence, long j, @InterfaceC2092 C1279 c1279) {
m9381(new C1310(charSequence, j, c1279));
return this;
}
@InterfaceC2092
public CharSequence m9377() {
return this.f4642;
}
@InterfaceC2092
@Deprecated
public CharSequence m9378() {
return this.f4644.m9065();
}
@InterfaceC2094
public C1279 m9379() {
return this.f4644;
}
@InterfaceC2094
public List<C1310> m9380() {
return this.f4643;
}
@Override
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public String mo9176() {
return f4640;
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo9178(@InterfaceC2094 Bundle bundle) {
super.mo9178(bundle);
bundle.remove(C1281.f4426);
bundle.remove(C1281.f4348);
bundle.remove(C1281.f4346);
bundle.remove(C1281.f4402);
bundle.remove(C1281.f4377);
bundle.remove(C1281.f4419);
bundle.remove(C1281.f4433);
}
@Override
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public void mo6699(InterfaceC1337 interfaceC1337) {
m9384(m9374());
int i = Build.VERSION.SDK_INT;
if (i >= 24) {
Notification.MessagingStyle messagingStyle = i >= 28 ? new Notification.MessagingStyle(this.f4644.m9067()) : new Notification.MessagingStyle(this.f4644.m9065());
Iterator<C1310> it = this.f4645.iterator();
while (it.hasNext()) {
messagingStyle.addMessage(it.next().m9396());
}
if (Build.VERSION.SDK_INT >= 26) {
Iterator<C1310> it2 = this.f4643.iterator();
while (it2.hasNext()) {
messagingStyle.addHistoricMessage(it2.next().m9396());
}
}
if (this.f4646.booleanValue() || Build.VERSION.SDK_INT >= 28) {
messagingStyle.setConversationTitle(this.f4642);
}
if (Build.VERSION.SDK_INT >= 28) {
messagingStyle.setGroupConversation(this.f4646.booleanValue());
}
messagingStyle.setBuilder(interfaceC1337.mo9500());
return;
}
C1310 m9372 = m9372();
if (this.f4642 != null && this.f4646.booleanValue()) {
interfaceC1337.mo9500().setContentTitle(this.f4642);
} else if (m9372 != null) {
interfaceC1337.mo9500().setContentTitle("");
if (m9372.m9394() != null) {
interfaceC1337.mo9500().setContentTitle(m9372.m9394().m9065());
}
}
if (m9372 != null) {
interfaceC1337.mo9500().setContentText(this.f4642 != null ? m9371(m9372) : m9372.m9397());
}
if (i >= 16) {
SpannableStringBuilder spannableStringBuilder = new SpannableStringBuilder();
boolean z = this.f4642 != null || m9368();
for (int size = this.f4645.size() - 1; size >= 0; size--) {
C1310 c1310 = this.f4645.get(size);
CharSequence m9371 = z ? m9371(c1310) : c1310.m9397();
if (size != this.f4645.size() - 1) {
spannableStringBuilder.insert(0, (CharSequence) "\n");
}
spannableStringBuilder.insert(0, m9371);
}
new Notification.BigTextStyle(interfaceC1337.mo9500()).setBigContentTitle(null).bigText(spannableStringBuilder);
}
}
@InterfaceC2094
public C1309 m9381(@InterfaceC2092 C1310 c1310) {
if (c1310 != null) {
this.f4645.add(c1310);
if (this.f4645.size() > 25) {
this.f4645.remove(0);
}
}
return this;
}
@InterfaceC2094
public C1309 m9382(@InterfaceC2092 CharSequence charSequence) {
this.f4642 = charSequence;
return this;
}
@InterfaceC2094
public List<C1310> m9383() {
return this.f4645;
}
@InterfaceC2094
public C1309 m9384(boolean z) {
this.f4646 = Boolean.valueOf(z);
return this;
}
@Deprecated
public C1309(@InterfaceC2094 CharSequence charSequence) {
this.f4644 = new C1279.C1280().m9076(charSequence).m9075();
}
public static final class C1310 {
public static final String f4647 = "type";
public static final String f4648 = "time";
public static final String f4649 = "sender_person";
public static final String f4650 = "uri";
public static final String f4651 = "text";
public static final String f4652 = "extras";
public static final String f4653 = "sender";
public static final String f4654 = "person";
@InterfaceC2092
private final C1279 f4655;
private final CharSequence f4656;
@InterfaceC2092
private Uri f4657;
private Bundle f4658;
private final long f4659;
@InterfaceC2092
private String f4660;
public C1310(@InterfaceC2092 CharSequence charSequence, long j, @InterfaceC2092 C1279 c1279) {
this.f4658 = new Bundle();
this.f4656 = charSequence;
this.f4659 = j;
this.f4655 = c1279;
}
@InterfaceC2094
public static Bundle[] m9385(@InterfaceC2094 List<C1310> list) {
Bundle[] bundleArr = new Bundle[list.size()];
int size = list.size();
for (int i = 0; i < size; i++) {
bundleArr[i] = list.get(i).m9388();
}
return bundleArr;
}
@InterfaceC2094
public static List<C1310> m9386(@InterfaceC2094 Parcelable[] parcelableArr) {
C1310 m9387;
ArrayList arrayList = new ArrayList(parcelableArr.length);
for (int i = 0; i < parcelableArr.length; i++) {
if ((parcelableArr[i] instanceof Bundle) && (m9387 = m9387((Bundle) parcelableArr[i])) != null) {
arrayList.add(m9387);
}
}
return arrayList;
}
@InterfaceC2092
public static C1310 m9387(@InterfaceC2094 Bundle bundle) {
try {
if (bundle.containsKey(f4651) && bundle.containsKey("time")) {
C1310 c1310 = new C1310(bundle.getCharSequence(f4651), bundle.getLong("time"), bundle.containsKey(f4654) ? C1279.m9062(bundle.getBundle(f4654)) : (!bundle.containsKey(f4649) || Build.VERSION.SDK_INT < 28) ? bundle.containsKey(f4653) ? new C1279.C1280().m9076(bundle.getCharSequence(f4653)).m9075() : null : C1279.m9061((Person) bundle.getParcelable(f4649)));
if (bundle.containsKey("type") && bundle.containsKey(f4650)) {
c1310.m9392(bundle.getString("type"), (Uri) bundle.getParcelable(f4650));
}
if (bundle.containsKey(f4652)) {
c1310.m9393().putAll(bundle.getBundle(f4652));
}
return c1310;
}
} catch (ClassCastException unused) {
}
return null;
}
@InterfaceC2094
private Bundle m9388() {
Bundle bundle = new Bundle();
CharSequence charSequence = this.f4656;
if (charSequence != null) {
bundle.putCharSequence(f4651, charSequence);
}
bundle.putLong("time", this.f4659);
C1279 c1279 = this.f4655;
if (c1279 != null) {
bundle.putCharSequence(f4653, c1279.m9065());
if (Build.VERSION.SDK_INT >= 28) {
bundle.putParcelable(f4649, this.f4655.m9067());
} else {
bundle.putBundle(f4654, this.f4655.m9073());
}
}
String str = this.f4660;
if (str != null) {
bundle.putString("type", str);
}
Uri uri = this.f4657;
if (uri != null) {
bundle.putParcelable(f4650, uri);
}
Bundle bundle2 = this.f4658;
if (bundle2 != null) {
bundle.putBundle(f4652, bundle2);
}
return bundle;
}
public long m9389() {
return this.f4659;
}
@InterfaceC2092
@Deprecated
public CharSequence m9390() {
C1279 c1279 = this.f4655;
if (c1279 == null) {
return null;
}
return c1279.m9065();
}
@InterfaceC2092
public Uri m9391() {
return this.f4657;
}
@InterfaceC2094
public C1310 m9392(@InterfaceC2092 String str, @InterfaceC2092 Uri uri) {
this.f4660 = str;
this.f4657 = uri;
return this;
}
@InterfaceC2094
public Bundle m9393() {
return this.f4658;
}
@InterfaceC2092
public C1279 m9394() {
return this.f4655;
}
@InterfaceC2092
public String m9395() {
return this.f4660;
}
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
@InterfaceC2113(24)
public Notification.MessagingStyle.Message m9396() {
Notification.MessagingStyle.Message message;
C1279 m9394 = m9394();
if (Build.VERSION.SDK_INT >= 28) {
message = new Notification.MessagingStyle.Message(m9397(), m9389(), m9394 != null ? m9394.m9067() : null);
} else {
message = new Notification.MessagingStyle.Message(m9397(), m9389(), m9394 != null ? m9394.m9065() : null);
}
if (m9395() != null) {
message.setData(m9395(), m9391());
}
return message;
}
@InterfaceC2092
public CharSequence m9397() {
return this.f4656;
}
@Deprecated
public C1310(@InterfaceC2092 CharSequence charSequence, long j, @InterfaceC2092 CharSequence charSequence2) {
this(charSequence, j, new C1279.C1280().m9076(charSequence2).m9075());
}
}
public C1309(@InterfaceC2094 C1279 c1279) {
if (!TextUtils.isEmpty(c1279.m9065())) {
this.f4644 = c1279;
return;
}
throw new IllegalArgumentException("User's name must not be empty.");
}
}
public static final class C1308 implements InterfaceC1282 {
private static final int f4592 = 8388613;
@Deprecated
public static final int f4593 = 0;
private static final String f4594 = "bridgeTag";
private static final String f4595 = "contentIconGravity";
public static final int f4596 = -1;
@Deprecated
public static final int f4597 = -1;
private static final int f4598 = 32;
private static final int f4599 = 1;
private static final String f4600 = "actions";
private static final String f4601 = "displayIntent";
private static final int f4602 = 80;
private static final int f4603 = 64;
private static final int f4604 = 1;
private static final String f4605 = "android.wearable.EXTENSIONS";
@Deprecated
public static final int f4606 = 5;
@Deprecated
public static final int f4607 = 0;
private static final String f4608 = "contentIcon";
private static final String f4609 = "background";
@Deprecated
public static final int f4610 = 2;
private static final String f4611 = "customSizePreset";
private static final String f4612 = "dismissalId";
private static final String f4613 = "hintScreenTimeout";
private static final String f4614 = "customContentHeight";
@Deprecated
public static final int f4615 = 4;
@Deprecated
public static final int f4616 = 3;
private static final int f4617 = 2;
private static final String f4618 = "pages";
private static final int f4619 = 8;
private static final String f4620 = "gravity";
@Deprecated
public static final int f4621 = 1;
private static final int f4622 = 4;
private static final String f4623 = "contentActionIndex";
private static final String f4624 = "flags";
private static final int f4625 = 16;
private int f4626;
private int f4627;
private PendingIntent f4628;
private ArrayList<C1300> f4629;
private int f4630;
private String f4631;
private int f4632;
private ArrayList<Notification> f4633;
private int f4634;
private int f4635;
private int f4636;
private Bitmap f4637;
private int f4638;
private String f4639;
public C1308() {
this.f4629 = new ArrayList<>();
this.f4635 = 1;
this.f4633 = new ArrayList<>();
this.f4634 = 8388613;
this.f4627 = -1;
this.f4638 = 0;
this.f4632 = 80;
}
private void m9321(int i, boolean z) {
if (z) {
this.f4635 = i | this.f4635;
} else {
this.f4635 = (i ^ (-1)) & this.f4635;
}
}
@InterfaceC2113(20)
private static Notification.Action m9322(C1300 c1300) {
Notification.Action.Builder builder;
int i = Build.VERSION.SDK_INT;
if (i >= 23) {
IconCompat m9279 = c1300.m9279();
builder = new Notification.Action.Builder(m9279 == null ? null : m9279.m5421(), c1300.m9275(), c1300.m9278());
} else {
IconCompat m92792 = c1300.m9279();
builder = new Notification.Action.Builder((m92792 == null || m92792.m5409() != 2) ? 0 : m92792.m5422(), c1300.m9275(), c1300.m9278());
}
Bundle bundle = c1300.m9281() != null ? new Bundle(c1300.m9281()) : new Bundle();
bundle.putBoolean(C1324.f4749, c1300.m9283());
if (i >= 24) {
builder.setAllowGeneratedReplies(c1300.m9283());
}
builder.addExtras(bundle);
C1250[] m9282 = c1300.m9282();
if (m9282 != null) {
for (RemoteInput remoteInput : C1250.m8889(m9282)) {
builder.addRemoteInput(remoteInput);
}
}
return builder.build();
}
@InterfaceC2094
public List<C1300> m9323() {
return this.f4629;
}
@InterfaceC2094
@Deprecated
public C1308 m9324(boolean z) {
m9321(4, z);
return this;
}
@Deprecated
public boolean m9325() {
return (this.f4635 & 32) != 0;
}
@InterfaceC2094
public C1308 clone() {
C1308 c1308 = new C1308();
c1308.f4629 = new ArrayList<>(this.f4629);
c1308.f4635 = this.f4635;
c1308.f4628 = this.f4628;
c1308.f4633 = new ArrayList<>(this.f4633);
c1308.f4637 = this.f4637;
c1308.f4630 = this.f4630;
c1308.f4634 = this.f4634;
c1308.f4627 = this.f4627;
c1308.f4638 = this.f4638;
c1308.f4626 = this.f4626;
c1308.f4632 = this.f4632;
c1308.f4636 = this.f4636;
c1308.f4639 = this.f4639;
c1308.f4631 = this.f4631;
return c1308;
}
@InterfaceC2094
public C1308 m9327(@InterfaceC2092 String str) {
this.f4639 = str;
return this;
}
@InterfaceC2094
public C1308 m9328(@InterfaceC2092 String str) {
this.f4631 = str;
return this;
}
@Deprecated
public int m9329() {
return this.f4634;
}
@Deprecated
public boolean m9330() {
return (this.f4635 & 16) != 0;
}
@InterfaceC2094
public C1308 m9331(@InterfaceC2094 List<C1300> list) {
this.f4629.addAll(list);
return this;
}
@InterfaceC2094
public C1308 m9332(boolean z) {
m9321(64, z);
return this;
}
@InterfaceC2094
@Deprecated
public C1308 m9333(int i) {
this.f4636 = i;
return this;
}
@Override
@InterfaceC2094
public C1299 mo9115(@InterfaceC2094 C1299 c1299) {
Bundle bundle = new Bundle();
if (!this.f4629.isEmpty()) {
if (Build.VERSION.SDK_INT >= 16) {
ArrayList<? extends Parcelable> arrayList = new ArrayList<>(this.f4629.size());
Iterator<C1300> it = this.f4629.iterator();
while (it.hasNext()) {
C1300 next = it.next();
int i = Build.VERSION.SDK_INT;
if (i >= 20) {
arrayList.add(m9322(next));
} else if (i >= 16) {
arrayList.add(C1324.m9452(next));
}
}
bundle.putParcelableArrayList(f4600, arrayList);
} else {
bundle.putParcelableArrayList(f4600, null);
}
}
int i2 = this.f4635;
if (i2 != 1) {
bundle.putInt(f4624, i2);
}
PendingIntent pendingIntent = this.f4628;
if (pendingIntent != null) {
bundle.putParcelable(f4601, pendingIntent);
}
if (!this.f4633.isEmpty()) {
ArrayList<Notification> arrayList2 = this.f4633;
bundle.putParcelableArray(f4618, (Parcelable[]) arrayList2.toArray(new Notification[arrayList2.size()]));
}
Bitmap bitmap = this.f4637;
if (bitmap != null) {
bundle.putParcelable(f4609, bitmap);
}
int i3 = this.f4630;
if (i3 != 0) {
bundle.putInt(f4608, i3);
}
int i4 = this.f4634;
if (i4 != 8388613) {
bundle.putInt(f4595, i4);
}
int i5 = this.f4627;
if (i5 != -1) {
bundle.putInt(f4623, i5);
}
int i6 = this.f4638;
if (i6 != 0) {
bundle.putInt(f4611, i6);
}
int i7 = this.f4626;
if (i7 != 0) {
bundle.putInt(f4614, i7);
}
int i8 = this.f4632;
if (i8 != 80) {
bundle.putInt(f4620, i8);
}
int i9 = this.f4636;
if (i9 != 0) {
bundle.putInt(f4613, i9);
}
String str = this.f4639;
if (str != null) {
bundle.putString(f4612, str);
}
String str2 = this.f4631;
if (str2 != null) {
bundle.putString(f4594, str2);
}
c1299.m9237().putBundle(f4605, bundle);
return c1299;
}
@InterfaceC2094
public C1308 m9334() {
this.f4629.clear();
return this;
}
@Deprecated
public boolean m9335() {
return (this.f4635 & 2) != 0;
}
@Deprecated
public boolean m9336() {
return (this.f4635 & 4) != 0;
}
@Deprecated
public int m9337() {
return this.f4630;
}
@InterfaceC2094
public C1308 m9338(boolean z) {
m9321(8, z);
return this;
}
@InterfaceC2094
@Deprecated
public C1308 m9339(boolean z) {
m9321(2, z);
return this;
}
@InterfaceC2094
@Deprecated
public C1308 m9340(@InterfaceC2092 PendingIntent pendingIntent) {
this.f4628 = pendingIntent;
return this;
}
public boolean m9341() {
return (this.f4635 & 64) != 0;
}
@Deprecated
public int m9342() {
return this.f4632;
}
public boolean m9343() {
return (this.f4635 & 1) != 0;
}
@InterfaceC2094
@Deprecated
public C1308 m9344(@InterfaceC2092 Bitmap bitmap) {
this.f4637 = bitmap;
return this;
}
public boolean m9345() {
return (this.f4635 & 8) != 0;
}
@Deprecated
public int m9346() {
return this.f4638;
}
@InterfaceC2094
@Deprecated
public C1308 m9347(int i) {
this.f4630 = i;
return this;
}
@InterfaceC2094
@Deprecated
public C1308 m9348(int i) {
this.f4638 = i;
return this;
}
@InterfaceC2092
@Deprecated
public Bitmap m9349() {
return this.f4637;
}
@InterfaceC2094
@Deprecated
public C1308 m9350(int i) {
this.f4626 = i;
return this;
}
@InterfaceC2094
@Deprecated
public C1308 m9351(int i) {
this.f4634 = i;
return this;
}
@InterfaceC2092
@Deprecated
public PendingIntent m9352() {
return this.f4628;
}
@InterfaceC2092
public String m9353() {
return this.f4639;
}
@InterfaceC2094
@Deprecated
public C1308 m9354(@InterfaceC2094 Notification notification) {
this.f4633.add(notification);
return this;
}
@InterfaceC2094
@Deprecated
public C1308 m9355() {
this.f4633.clear();
return this;
}
@InterfaceC2094
public C1308 m9356(@InterfaceC2094 C1300 c1300) {
this.f4629.add(c1300);
return this;
}
@InterfaceC2092
public String m9357() {
return this.f4631;
}
@InterfaceC2094
@Deprecated
public List<Notification> m9358() {
return this.f4633;
}
@InterfaceC2094
@Deprecated
public C1308 m9359(@InterfaceC2094 List<Notification> list) {
this.f4633.addAll(list);
return this;
}
@InterfaceC2094
@Deprecated
public C1308 m9360(boolean z) {
m9321(32, z);
return this;
}
@InterfaceC2094
public C1308 m9361(boolean z) {
m9321(1, z);
return this;
}
@Deprecated
public int m9362() {
return this.f4626;
}
@InterfaceC2094
@Deprecated
public C1308 m9363(int i) {
this.f4632 = i;
return this;
}
@InterfaceC2094
public C1308 m9364(int i) {
this.f4627 = i;
return this;
}
public int m9365() {
return this.f4627;
}
@Deprecated
public int m9366() {
return this.f4636;
}
@InterfaceC2094
@Deprecated
public C1308 m9367(boolean z) {
m9321(16, z);
return this;
}
public C1308(@InterfaceC2094 Notification notification) {
this.f4629 = new ArrayList<>();
this.f4635 = 1;
this.f4633 = new ArrayList<>();
this.f4634 = 8388613;
this.f4627 = -1;
this.f4638 = 0;
this.f4632 = 80;
Bundle m9092 = C1281.m9092(notification);
Bundle bundle = m9092 != null ? m9092.getBundle(f4605) : null;
if (bundle != null) {
ArrayList parcelableArrayList = bundle.getParcelableArrayList(f4600);
if (Build.VERSION.SDK_INT >= 16 && parcelableArrayList != null) {
int size = parcelableArrayList.size();
C1300[] c1300Arr = new C1300[size];
for (int i = 0; i < size; i++) {
int i2 = Build.VERSION.SDK_INT;
if (i2 >= 20) {
c1300Arr[i] = C1281.m9106((Notification.Action) parcelableArrayList.get(i));
} else if (i2 >= 16) {
c1300Arr[i] = C1324.m9461((Bundle) parcelableArrayList.get(i));
}
}
Collections.addAll(this.f4629, c1300Arr);
}
this.f4635 = bundle.getInt(f4624, 1);
this.f4628 = (PendingIntent) bundle.getParcelable(f4601);
Notification[] m9094 = C1281.m9094(bundle, f4618);
if (m9094 != null) {
Collections.addAll(this.f4633, m9094);
}
this.f4637 = (Bitmap) bundle.getParcelable(f4609);
this.f4630 = bundle.getInt(f4608);
this.f4634 = bundle.getInt(f4595, 8388613);
this.f4627 = bundle.getInt(f4623, -1);
this.f4638 = bundle.getInt(f4611, 0);
this.f4626 = bundle.getInt(f4614);
this.f4632 = bundle.getInt(f4620, 80);
this.f4636 = bundle.getInt(f4613);
this.f4639 = bundle.getString(f4612);
this.f4631 = bundle.getString(f4594);
}
}
}
public static class C1299 {
private static final int f4490 = 5120;
public Bitmap f4491;
public boolean f4492;
public int f4493;
public PendingIntent f4494;
public String f4495;
public Bundle f4496;
public boolean f4497;
public boolean f4498;
@InterfaceC2094
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public ArrayList<C1279> f4499;
public boolean f4500;
public Notification f4501;
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public Context f4502;
public CharSequence f4503;
public boolean f4504;
public boolean f4505;
public boolean f4506;
public Icon f4507;
public C1289 f4508;
public int f4509;
public String f4510;
public int f4511;
public boolean f4512;
public String f4513;
public boolean f4514;
public CharSequence f4515;
public int f4516;
public RemoteViews f4517;
public CharSequence f4518;
public RemoteViews f4519;
public Notification f4520;
public CharSequence[] f4521;
public CharSequence f4522;
public String f4523;
public ArrayList<C1300> f4524;
public PendingIntent f4525;
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public ArrayList<C1300> f4526;
public int f4527;
public boolean f4528;
public CharSequence f4529;
public RemoteViews f4530;
public long f4531;
@Deprecated
public ArrayList<String> f4532;
public RemoteViews f4533;
public AbstractC1294 f4534;
public C1409 f4535;
public int f4536;
public int f4537;
public String f4538;
public int f4539;
@InterfaceC2113(19)
public C1299(@InterfaceC2094 Context context, @InterfaceC2094 Notification notification) {
this(context, C1281.m9110(notification));
ArrayList parcelableArrayList;
Bundle bundle = notification.extras;
AbstractC1294 m9167 = AbstractC1294.m9167(notification);
m9264(C1281.m9113(notification)).m9242(C1281.m9107(notification)).m9204(C1281.m9100(notification)).m9252(C1281.m9096(notification)).m9246(C1281.m9114(notification)).m9198(m9167).m9225(notification.contentIntent).m9211(C1281.m9085(notification)).m9258(C1281.m9101(notification)).m9195(C1281.m9102(notification)).m9217(notification.when).m9257(C1281.m9108(notification)).m9273(C1281.m9112(notification)).m9230(C1281.m9109(notification)).m9244(C1281.m9086(notification)).m9270(C1281.m9082(notification)).m9265(C1281.m9103(notification)).m9249(notification.largeIcon).m9229(C1281.m9089(notification)).m9266(C1281.m9083(notification)).m9206(C1281.m9105(notification)).m9259(notification.number).m9271(notification.tickerText).m9225(notification.contentIntent).m9214(notification.deleteIntent).m9261(notification.fullScreenIntent, C1281.m9111(notification)).m9218(notification.sound, notification.audioStreamType).m9196(notification.vibrate).m9197(notification.ledARGB, notification.ledOnMS, notification.ledOffMS).m9222(notification.defaults).m9250(notification.priority).m9262(C1281.m9081(notification)).m9223(C1281.m9099(notification)).m9267(C1281.m9090(notification)).m9207(C1281.m9097(notification)).m9209(C1281.m9084(notification)).m9248(C1281.m9091(notification)).m9260(bundle.getInt(C1281.f4378), bundle.getInt(C1281.f4355), bundle.getBoolean(C1281.f4400)).m9253(C1281.m9104(notification)).m9219(notification.icon, notification.iconLevel).m9212(m9192(notification, m9167));
if (Build.VERSION.SDK_INT >= 23) {
this.f4507 = notification.getSmallIcon();
}
Notification.Action[] actionArr = notification.actions;
if (actionArr != null && actionArr.length != 0) {
for (Notification.Action action : actionArr) {
m9247(C1300.C1302.m9286(action).m9290());
}
}
if (Build.VERSION.SDK_INT >= 21) {
List<C1300> m9098 = C1281.m9098(notification);
if (!m9098.isEmpty()) {
Iterator<C1300> it = m9098.iterator();
while (it.hasNext()) {
m9254(it.next());
}
}
}
String[] stringArray = notification.extras.getStringArray(C1281.f4422);
if (stringArray != null && stringArray.length != 0) {
for (String str : stringArray) {
m9245(str);
}
}
if (Build.VERSION.SDK_INT >= 28 && (parcelableArrayList = notification.extras.getParcelableArrayList(C1281.f4362)) != null && !parcelableArrayList.isEmpty()) {
Iterator it2 = parcelableArrayList.iterator();
while (it2.hasNext()) {
m9216(C1279.m9061((Person) it2.next()));
}
}
int i = Build.VERSION.SDK_INT;
if (i >= 24 && bundle.containsKey(C1281.f4415)) {
m9236(bundle.getBoolean(C1281.f4415));
}
if (i < 26 || !bundle.containsKey(C1281.f4437)) {
return;
}
m9235(bundle.getBoolean(C1281.f4437));
}
@InterfaceC2092
private Bitmap m9190(@InterfaceC2092 Bitmap bitmap) {
if (bitmap == null || Build.VERSION.SDK_INT >= 27) {
return bitmap;
}
Resources resources = this.f4502.getResources();
int dimensionPixelSize = resources.getDimensionPixelSize(R.dimen.compat_notification_large_icon_max_width);
int dimensionPixelSize2 = resources.getDimensionPixelSize(R.dimen.compat_notification_large_icon_max_height);
if (bitmap.getWidth() <= dimensionPixelSize && bitmap.getHeight() <= dimensionPixelSize2) {
return bitmap;
}
double d = dimensionPixelSize;
double max = Math.max(1, bitmap.getWidth());
Double.isNaN(d);
Double.isNaN(max);
double d2 = d / max;
double d3 = dimensionPixelSize2;
double max2 = Math.max(1, bitmap.getHeight());
Double.isNaN(d3);
Double.isNaN(max2);
double min = Math.min(d2, d3 / max2);
double width = bitmap.getWidth();
Double.isNaN(width);
int ceil = (int) Math.ceil(width * min);
double height = bitmap.getHeight();
Double.isNaN(height);
return Bitmap.createScaledBitmap(bitmap, ceil, (int) Math.ceil(height * min), true);
}
private void m9191(int i, boolean z) {
if (z) {
Notification notification = this.f4501;
notification.flags = i | notification.flags;
} else {
Notification notification2 = this.f4501;
notification2.flags = (i ^ (-1)) & notification2.flags;
}
}
@InterfaceC2092
@InterfaceC2113(19)
private static Bundle m9192(@InterfaceC2094 Notification notification, @InterfaceC2092 AbstractC1294 abstractC1294) {
if (notification.extras == null) {
return null;
}
Bundle bundle = new Bundle(notification.extras);
bundle.remove(C1281.f4372);
bundle.remove(C1281.f4384);
bundle.remove(C1281.f4427);
bundle.remove(C1281.f4383);
bundle.remove(C1281.f4405);
bundle.remove(C1281.f4363);
bundle.remove(C1281.f4364);
bundle.remove(C1281.f4355);
bundle.remove(C1281.f4378);
bundle.remove(C1281.f4400);
bundle.remove(C1281.f4415);
bundle.remove(C1281.f4437);
bundle.remove(C1281.f4362);
bundle.remove(C1281.f4422);
bundle.remove(C1311.f4664);
bundle.remove(C1311.f4665);
bundle.remove(C1311.f4661);
bundle.remove(C1311.f4662);
bundle.remove(C1311.f4666);
Bundle bundle2 = bundle.getBundle(C1283.f4445);
if (bundle2 != null) {
Bundle bundle3 = new Bundle(bundle2);
bundle3.remove(C1283.f4439);
bundle.putBundle(C1283.f4445, bundle3);
}
if (abstractC1294 != null) {
abstractC1294.mo9178(bundle);
}
return bundle;
}
private boolean m9193() {
AbstractC1294 abstractC1294 = this.f4534;
return abstractC1294 == null || !abstractC1294.mo9175();
}
@InterfaceC2092
public static CharSequence m9194(@InterfaceC2092 CharSequence charSequence) {
return (charSequence != null && charSequence.length() > f4490) ? charSequence.subSequence(0, f4490) : charSequence;
}
@InterfaceC2094
public C1299 m9195(@InterfaceC2092 C1409 c1409) {
this.f4535 = c1409;
return this;
}
@InterfaceC2094
public C1299 m9196(@InterfaceC2092 long[] jArr) {
this.f4501.vibrate = jArr;
return this;
}
@InterfaceC2094
public C1299 m9197(@InterfaceC2104 int i, int i2, int i3) {
Notification notification = this.f4501;
notification.ledARGB = i;
notification.ledOnMS = i2;
notification.ledOffMS = i3;
notification.flags = ((i2 == 0 || i3 == 0) ? 0 : 1) | (notification.flags & (-2));
return this;
}
@InterfaceC2094
public C1299 m9198(@InterfaceC2092 AbstractC1294 abstractC1294) {
if (this.f4534 != abstractC1294) {
this.f4534 = abstractC1294;
if (abstractC1294 != null) {
abstractC1294.m9181(this);
}
}
return this;
}
@InterfaceC2094
public C1299 m9199() {
this.f4524.clear();
Bundle bundle = this.f4496.getBundle(C1283.f4445);
if (bundle != null) {
Bundle bundle2 = new Bundle(bundle);
bundle2.remove(C1283.f4439);
this.f4496.putBundle(C1283.f4445, bundle2);
}
return this;
}
@InterfaceC2094
public C1299 m9200(@InterfaceC2092 Bundle bundle) {
this.f4496 = bundle;
return this;
}
@InterfaceC2094
@Deprecated
public C1299 m9201(@InterfaceC2092 CharSequence charSequence, @InterfaceC2092 RemoteViews remoteViews) {
this.f4501.tickerText = m9194(charSequence);
this.f4530 = remoteViews;
return this;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews m9202() {
return this.f4517;
}
@InterfaceC2094
public Notification m9203() {
return new C1336(this).m9499();
}
@InterfaceC2094
public C1299 m9204(@InterfaceC2092 CharSequence charSequence) {
this.f4518 = m9194(charSequence);
return this;
}
@InterfaceC2094
public C1299 m9205(boolean z) {
this.f4492 = z;
return this;
}
@InterfaceC2094
public C1299 m9206(@InterfaceC2092 C1289 c1289) {
this.f4508 = c1289;
return this;
}
@InterfaceC2094
public C1299 m9207(@InterfaceC2092 String str) {
this.f4538 = str;
return this;
}
@InterfaceC2094
public C1299 m9208(@InterfaceC2094 InterfaceC1282 interfaceC1282) {
interfaceC1282.mo9115(this);
return this;
}
@InterfaceC2094
public C1299 m9209(long j) {
this.f4531 = j;
return this;
}
@InterfaceC2094
@Deprecated
public Notification m9210() {
return m9203();
}
@InterfaceC2094
public C1299 m9211(@InterfaceC2092 String str) {
this.f4510 = str;
return this;
}
@InterfaceC2094
public C1299 m9212(@InterfaceC2092 Bundle bundle) {
if (bundle != null) {
Bundle bundle2 = this.f4496;
if (bundle2 == null) {
this.f4496 = new Bundle(bundle);
} else {
bundle2.putAll(bundle);
}
}
return this;
}
@InterfaceC2094
public C1299 m9213(@InterfaceC2092 RemoteViews remoteViews) {
this.f4517 = remoteViews;
return this;
}
@InterfaceC2094
public C1299 m9214(@InterfaceC2092 PendingIntent pendingIntent) {
this.f4501.deleteIntent = pendingIntent;
return this;
}
@InterfaceC2094
public C1299 m9215(int i, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent) {
this.f4526.add(new C1300(i, charSequence, pendingIntent));
return this;
}
@InterfaceC2094
public C1299 m9216(@InterfaceC2092 C1279 c1279) {
if (c1279 != null) {
this.f4499.add(c1279);
}
return this;
}
@InterfaceC2094
public C1299 m9217(long j) {
this.f4501.when = j;
return this;
}
@InterfaceC2094
public C1299 m9218(@InterfaceC2092 Uri uri, int i) {
Notification notification = this.f4501;
notification.sound = uri;
notification.audioStreamType = i;
if (Build.VERSION.SDK_INT >= 21) {
notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setLegacyStreamType(i).build();
}
return this;
}
@InterfaceC2094
public C1299 m9219(int i, int i2) {
Notification notification = this.f4501;
notification.icon = i;
notification.iconLevel = i2;
return this;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public long m9220() {
if (this.f4506) {
return this.f4501.when;
}
return 0L;
}
@InterfaceC2092
@SuppressLint({"BuilderSetStyle"})
public RemoteViews m9221() {
RemoteViews mo6698;
int i = Build.VERSION.SDK_INT;
if (i < 21) {
return null;
}
if (this.f4517 != null && m9193()) {
return this.f4517;
}
C1336 c1336 = new C1336(this);
AbstractC1294 abstractC1294 = this.f4534;
if (abstractC1294 != null && (mo6698 = abstractC1294.mo6698(c1336)) != null) {
return mo6698;
}
Notification m9499 = c1336.m9499();
return i >= 24 ? Notification.Builder.recoverBuilder(this.f4502, m9499).createHeadsUpContentView() : m9499.headsUpContentView;
}
@InterfaceC2094
public C1299 m9222(int i) {
Notification notification = this.f4501;
notification.defaults = i;
if ((i & 4) != 0) {
notification.flags |= 1;
}
return this;
}
@InterfaceC2094
public C1299 m9223(int i) {
this.f4516 = i;
return this;
}
@InterfaceC2094
@Deprecated
public C1299 m9224() {
this.f4492 = true;
return this;
}
@InterfaceC2094
public C1299 m9225(@InterfaceC2092 PendingIntent pendingIntent) {
this.f4525 = pendingIntent;
return this;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public int m9226() {
return this.f4537;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews m9227() {
return this.f4519;
}
@InterfaceC2094
public C1299 m9228(@InterfaceC2092 Uri uri) {
Notification notification = this.f4501;
notification.sound = uri;
notification.audioStreamType = -1;
if (Build.VERSION.SDK_INT >= 21) {
notification.audioAttributes = new AudioAttributes.Builder().setContentType(4).setUsage(5).build();
}
return this;
}
@InterfaceC2094
public C1299 m9229(int i) {
this.f4509 = i;
return this;
}
@InterfaceC2094
public C1299 m9230(boolean z) {
m9191(16, z);
return this;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
@InterfaceC2104
public int m9231() {
return this.f4536;
}
@InterfaceC2094
public C1299 m9232(@InterfaceC2094 String str) {
this.f4495 = str;
return this;
}
@InterfaceC2094
public C1299 m9233(@InterfaceC2092 RemoteViews remoteViews) {
this.f4501.contentView = remoteViews;
return this;
}
@InterfaceC2094
public C1299 m9234() {
this.f4499.clear();
this.f4532.clear();
return this;
}
@InterfaceC2094
public C1299 m9235(boolean z) {
this.f4528 = z;
this.f4514 = true;
return this;
}
@InterfaceC2094
@InterfaceC2113(24)
public C1299 m9236(boolean z) {
this.f4512 = z;
m9237().putBoolean(C1281.f4415, z);
return this;
}
@InterfaceC2094
public Bundle m9237() {
if (this.f4496 == null) {
this.f4496 = new Bundle();
}
return this.f4496;
}
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public RemoteViews m9238() {
return this.f4533;
}
@InterfaceC2094
@InterfaceC2113(23)
public C1299 m9239(@InterfaceC2094 IconCompat iconCompat) {
this.f4507 = iconCompat.m5419(this.f4502);
return this;
}
@InterfaceC2094
public C1299 m9240(@InterfaceC2092 C1371 c1371) {
if (c1371 == null) {
return this;
}
this.f4523 = c1371.m9597();
if (this.f4535 == null) {
if (c1371.m9606() != null) {
this.f4535 = c1371.m9606();
} else if (c1371.m9597() != null) {
this.f4535 = new C1409(c1371.m9597());
}
}
if (this.f4529 == null) {
m9264(c1371.m9598());
}
return this;
}
@InterfaceC2094
public C1299 m9241(int i) {
this.f4539 = i;
return this;
}
@InterfaceC2094
public C1299 m9242(@InterfaceC2092 CharSequence charSequence) {
this.f4503 = m9194(charSequence);
return this;
}
@InterfaceC2094
@InterfaceC2113(21)
public C1299 m9243(int i, @InterfaceC2092 CharSequence charSequence, @InterfaceC2092 PendingIntent pendingIntent) {
this.f4524.add(new C1300(i, charSequence, pendingIntent));
return this;
}
@InterfaceC2094
public C1299 m9244(boolean z) {
m9191(8, z);
return this;
}
@InterfaceC2094
@Deprecated
public C1299 m9245(@InterfaceC2092 String str) {
if (str != null && !str.isEmpty()) {
this.f4532.add(str);
}
return this;
}
@InterfaceC2094
public C1299 m9246(@InterfaceC2092 CharSequence charSequence) {
this.f4522 = m9194(charSequence);
return this;
}
@InterfaceC2094
public C1299 m9247(@InterfaceC2092 C1300 c1300) {
if (c1300 != null) {
this.f4526.add(c1300);
}
return this;
}
@InterfaceC2094
public C1299 m9248(@InterfaceC2092 String str) {
this.f4523 = str;
return this;
}
@InterfaceC2094
public C1299 m9249(@InterfaceC2092 Bitmap bitmap) {
this.f4491 = m9190(bitmap);
return this;
}
@InterfaceC2094
public C1299 m9250(int i) {
this.f4537 = i;
return this;
}
@InterfaceC2092
@SuppressLint({"BuilderSetStyle"})
public RemoteViews m9251() {
RemoteViews mo6695;
int i = Build.VERSION.SDK_INT;
if (i < 16) {
return null;
}
if (this.f4519 != null && m9193()) {
return this.f4519;
}
C1336 c1336 = new C1336(this);
AbstractC1294 abstractC1294 = this.f4534;
if (abstractC1294 != null && (mo6695 = abstractC1294.mo6695(c1336)) != null) {
return mo6695;
}
Notification m9499 = c1336.m9499();
return i >= 24 ? Notification.Builder.recoverBuilder(this.f4502, m9499).createBigContentView() : m9499.bigContentView;
}
@InterfaceC2094
public C1299 m9252(@InterfaceC2092 CharSequence charSequence) {
this.f4515 = m9194(charSequence);
return this;
}
@InterfaceC2094
public C1299 m9253(boolean z) {
this.f4500 = z;
return this;
}
@InterfaceC2094
@InterfaceC2113(21)
public C1299 m9254(@InterfaceC2092 C1300 c1300) {
if (c1300 != null) {
this.f4524.add(c1300);
}
return this;
}
@InterfaceC2094
public C1299 m9255() {
this.f4526.clear();
return this;
}
@InterfaceC2094
public C1299 m9256(@InterfaceC2092 RemoteViews remoteViews) {
this.f4519 = remoteViews;
return this;
}
@InterfaceC2094
public C1299 m9257(boolean z) {
this.f4506 = z;
return this;
}
@InterfaceC2094
public C1299 m9258(boolean z) {
this.f4504 = z;
return this;
}
@InterfaceC2094
public C1299 m9259(int i) {
this.f4527 = i;
return this;
}
@InterfaceC2094
public C1299 m9260(int i, int i2, boolean z) {
this.f4511 = i;
this.f4493 = i2;
this.f4498 = z;
return this;
}
@InterfaceC2094
public C1299 m9261(@InterfaceC2092 PendingIntent pendingIntent, boolean z) {
this.f4494 = pendingIntent;
m9191(128, z);
return this;
}
@InterfaceC2094
public C1299 m9262(@InterfaceC2104 int i) {
this.f4536 = i;
return this;
}
@InterfaceC2092
@InterfaceC2074({InterfaceC2074.EnumC2075.LIBRARY_GROUP_PREFIX})
public C1289 m9263() {
return this.f4508;
}
@InterfaceC2094
public C1299 m9264(@InterfaceC2092 CharSequence charSequence) {
this.f4529 = m9194(charSequence);
return this;
}
@InterfaceC2094
public C1299 m9265(boolean z) {
this.f4505 = z;
return this;
}
@InterfaceC2094
public C1299 m9266(@InterfaceC2092 String str) {
this.f4513 = str;
return this;
}
@InterfaceC2094
public C1299 m9267(@InterfaceC2092 Notification notification) {
this.f4520 = notification;
return this;
}
@InterfaceC2092
@SuppressLint({"BuilderSetStyle"})
public RemoteViews m9268() {
RemoteViews mo6697;
if (this.f4533 != null && m9193()) {
return this.f4533;
}
C1336 c1336 = new C1336(this);
AbstractC1294 abstractC1294 = this.f4534;
if (abstractC1294 != null && (mo6697 = abstractC1294.mo6697(c1336)) != null) {
return mo6697;
}
Notification m9499 = c1336.m9499();
return Build.VERSION.SDK_INT >= 24 ? Notification.Builder.recoverBuilder(this.f4502, m9499).createContentView() : m9499.contentView;
}
@InterfaceC2094
public C1299 m9269(@InterfaceC2092 CharSequence[] charSequenceArr) {
this.f4521 = charSequenceArr;
return this;
}
@InterfaceC2094
public C1299 m9270(boolean z) {
m9191(2, z);
return this;
}
@InterfaceC2094
public C1299 m9271(@InterfaceC2092 CharSequence charSequence) {
this.f4501.tickerText = m9194(charSequence);
return this;
}
@InterfaceC2094
public C1299 m9272(int i) {
this.f4501.icon = i;
return this;
}
@InterfaceC2094
public C1299 m9273(boolean z) {
this.f4497 = z;
return this;
}
@InterfaceC2094
public C1299 m9274(@InterfaceC2092 RemoteViews remoteViews) {
this.f4533 = remoteViews;
return this;
}
public C1299(@InterfaceC2094 Context context, @InterfaceC2094 String str) {
this.f4526 = new ArrayList<>();
this.f4499 = new ArrayList<>();
this.f4524 = new ArrayList<>();
this.f4506 = true;
this.f4505 = false;
this.f4536 = 0;
this.f4516 = 0;
this.f4509 = 0;
this.f4539 = 0;
Notification notification = new Notification();
this.f4501 = notification;
this.f4502 = context;
this.f4495 = str;
notification.when = System.currentTimeMillis();
this.f4501.audioStreamType = -1;
this.f4537 = 0;
this.f4532 = new ArrayList<>();
this.f4500 = true;
}
@Deprecated
public C1299(@InterfaceC2094 Context context) {
this(context, (String) null);
}
}
}