正在查看: Dostt v1.0.89 应用的 NotificationsService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Dostt v1.0.89 应用的 NotificationsService.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package expo.modules.notifications.service;
import Sh.J;
import Th.AbstractC0809i;
import Th.AbstractC0816p;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.ResolveInfo;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.ResultReceiver;
import android.util.Log;
import androidx.core.app.x;
import gi.a;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.AbstractC1735t;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.r;
import lh.C1768a;
import lh.C1769b;
import lh.c;
import lh.e;
import lh.i;
import lh.j;
import lh.l;
import lh.n;
import th.C1914b;
import th.C1915c;
import th.C1917e;
import th.C1918f;
import uh.InterfaceC1939a;
import uh.InterfaceC1941c;
import uh.InterfaceC1942d;
import uh.InterfaceC1943e;
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0012\b\u0016\u0018\u0000 \r2\u00020\u0001:\u0001\rB\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u0017\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004H\u0014¢\u0006\u0004\b\u0007\u0010\bJ\u0017\u0010\n\u001a\u00020\t2\u0006\u0010\u0005\u001a\u00020\u0004H\u0014¢\u0006\u0004\b\n\u0010\u000bJ\u0017\u0010\r\u001a\u00020\f2\u0006\u0010\u0005\u001a\u00020\u0004H\u0014¢\u0006\u0004\b\r\u0010\u000eJ\u0017\u0010\u0010\u001a\u00020\u000f2\u0006\u0010\u0005\u001a\u00020\u0004H\u0014¢\u0006\u0004\b\u0010\u0010\u0011J!\u0010\u0015\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\b\u0010\u0013\u001a\u0004\u0018\u00010\u0012H\u0016¢\u0006\u0004\b\u0015\u0010\u0016J\u001f\u0010\u0017\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u0017\u0010\u0016J\u001f\u0010\u0018\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u0018\u0010\u0016J\u001f\u0010\u001a\u001a\u00020\u00192\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u001a\u0010\u001bJ\u001f\u0010\u001c\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u001c\u0010\u0016J\u001f\u0010\u001d\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u001d\u0010\u0016J\u001f\u0010\u001e\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u001e\u0010\u0016J\u001f\u0010\u001f\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\u001f\u0010\u0016J\u001f\u0010 \u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b \u0010\u0016J\u001f\u0010!\u001a\u00020\u00192\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b!\u0010\u001bJ\u001f\u0010\"\u001a\u00020\u00192\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b\"\u0010\u001bJ\u001f\u0010#\u001a\u00020\u00192\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b#\u0010\u001bJ\u001f\u0010$\u001a\u00020\u00192\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b$\u0010\u001bJ\u001f\u0010%\u001a\u00020\u00192\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b%\u0010\u001bJ\u001f\u0010&\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b&\u0010\u0016J\u001f\u0010'\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b'\u0010\u0016J\u001f\u0010(\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b(\u0010\u0016J\u001f\u0010)\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b)\u0010\u0016J\u001f\u0010*\u001a\u00020\u00142\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0013\u001a\u00020\u0012H\u0016¢\u0006\u0004\b*\u0010\u0016¨\u0006+"}, d2 = {"Lexpo/modules/notifications/service/NotificationsService;", "Landroid/content/BroadcastReceiver;", "<init>", "()V", "Landroid/content/Context;", "context", "Luh/d;", "c", "(Landroid/content/Context;)Luh/d;", "Luh/c;", "b", "(Landroid/content/Context;)Luh/c;", "Luh/a;", "a", "(Landroid/content/Context;)Luh/a;", "Luh/e;", "d", "(Landroid/content/Context;)Luh/e;", "Landroid/content/Intent;", "intent", "LSh/J;", "onReceive", "(Landroid/content/Context;Landroid/content/Intent;)V", "e", "o", "Landroid/os/Bundle;", "i", "(Landroid/content/Context;Landroid/content/Intent;)Landroid/os/Bundle;", "h", "g", "p", "q", "n", "k", "u", "f", "j", "l", "t", "m", "s", "r", "v", "expo-notifications_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public class NotificationsService extends BroadcastReceiver {
public static final Companion INSTANCE = new Companion(null);
private static final List b = AbstractC0816p.p("android.intent.action.BOOT_COMPLETED", "android.intent.action.REBOOT", "android.intent.action.MY_PACKAGE_REPLACED", "android.intent.action.QUICKBOOT_POWERON", "com.htc.intent.action.QUICKBOOT_POWERON");
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private final Object C(Parcelable.Creator creator, byte[] bArr) {
if (bArr == null) {
return null;
}
try {
Parcel obtain = Parcel.obtain();
r.e(obtain, "obtain(...)");
obtain.unmarshall(bArr, 0, bArr.length);
obtain.setDataPosition(0);
Object createFromParcel = creator.createFromParcel(obtain);
obtain.recycle();
return createFromParcel;
} catch (Exception e) {
Log.e("expo-notifications", "Could not unmarshall NotificationResponse from Intent.extra.", e);
return null;
}
}
private final byte[] p(Parcelable parcelable) {
Parcel obtain = Parcel.obtain();
r.e(obtain, "obtain(...)");
parcelable.writeToParcel(obtain, 0);
byte[] marshall = obtain.marshall();
r.e(marshall, "marshall(...)");
obtain.recycle();
return marshall;
}
public static void r(Companion companion, Context context, C1768a c1768a, c cVar, ResultReceiver resultReceiver, int i, Object obj) {
if ((i & 4) != 0) {
cVar = null;
}
if ((i & 8) != 0) {
resultReceiver = null;
}
companion.q(context, c1768a, cVar, resultReceiver);
}
public static void t(Companion companion, Context context, C1768a c1768a, ResultReceiver resultReceiver, int i, Object obj) {
if ((i & 4) != 0) {
resultReceiver = null;
}
companion.s(context, c1768a, resultReceiver);
}
public static void w(Companion companion, Context context, String str, ResultReceiver resultReceiver, int i, Object obj) {
if ((i & 4) != 0) {
resultReceiver = null;
}
companion.v(context, str, resultReceiver);
}
public static void z(Companion companion, Context context, i iVar, ResultReceiver resultReceiver, int i, Object obj) {
if ((i & 4) != 0) {
resultReceiver = null;
}
companion.y(context, iVar, resultReceiver);
}
public final void A(Context context, e category, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(category, "category");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("categories").appendPath(category.b()).build());
intent.putExtra("type", "setCategory");
intent.putExtra("notificationCategory", (Parcelable) category);
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void B(Intent intent, j notificationResponse) {
r.f(intent, "intent");
r.f(notificationResponse, "notificationResponse");
try {
intent.putExtra(notificationResponse instanceof n ? "textInputNotificationResponse" : "notificationResponse", p(notificationResponse));
} catch (Exception e) {
Log.e("expo-notifications", "Could not marshal notification response: " + notificationResponse.b() + ".");
e.printStackTrace();
}
}
public final Intent a(Context context, Bundle bundle) {
r.f(context, "context");
C1768a c1768a = bundle != null ? (C1768a) bundle.getParcelable("notification") : null;
C1769b c1769b = bundle != null ? (C1769b) bundle.getParcelable("notificationAction") : null;
if (c1768a == null || c1769b == null) {
throw new IllegalArgumentException("notification and action should not be null");
}
C1769b c1769b2 = new C1769b(c1769b.a(), c1769b.getTitle(), false);
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath(c1768a.a().b()).appendPath("actions").appendPath(c1769b2.a()).build());
ActivityInfo h = NotificationsService.INSTANCE.h(context, intent);
if (h != null) {
intent.setComponent(new ComponentName(h.packageName, h.name));
}
intent.putExtra("type", "receiveResponse");
intent.putExtra("notification", c1768a);
intent.putExtra("notificationAction", (Parcelable) c1769b2);
return intent;
}
public final PendingIntent b(Context context, C1768a notification, C1769b action) {
String className;
r.f(context, "context");
r.f(notification, "notification");
r.f(action, "action");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath(notification.a().b()).appendPath("actions").appendPath(action.a()).build());
ActivityInfo h = NotificationsService.INSTANCE.h(context, intent);
if (h != null) {
intent.setComponent(new ComponentName(h.packageName, h.name));
}
intent.putExtra("type", "receiveResponse");
intent.putExtra("notification", notification);
intent.putExtra("notificationAction", (Parcelable) action);
if (action.b() && Build.VERSION.SDK_INT >= 31) {
return C1915c.b.b(context, intent, l(intent));
}
int i = Build.VERSION.SDK_INT >= 31 ? 33554432 : 0;
ComponentName component = intent.getComponent();
PendingIntent broadcast = PendingIntent.getBroadcast(context, (component == null || (className = component.getClassName()) == null) ? NotificationsService.class.hashCode() : className.hashCode(), intent, i | 134217728);
r.e(broadcast, "getBroadcast(...)");
return broadcast;
}
public final PendingIntent c(Context context, String identifier) {
String className;
r.f(context, "context");
r.f(identifier, "identifier");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("scheduled").appendPath(identifier).appendPath("trigger").build());
ActivityInfo h = NotificationsService.INSTANCE.h(context, intent);
if (h != null) {
intent.setComponent(new ComponentName(h.packageName, h.name));
}
intent.putExtra("type", "trigger");
intent.putExtra("identifier", identifier);
int i = Build.VERSION.SDK_INT >= 31 ? 33554432 : 0;
ComponentName component = intent.getComponent();
PendingIntent broadcast = PendingIntent.getBroadcast(context, (component == null || (className = component.getClassName()) == null) ? NotificationsService.class.hashCode() : className.hashCode(), intent, i | 134217728);
r.e(broadcast, "getBroadcast(...)");
return broadcast;
}
public final void d(Context context, String identifier, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(identifier, "identifier");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("categories").appendPath(identifier).build());
intent.putExtra("type", "deleteCategory");
intent.putExtra("identifier", identifier);
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void e(Context context, String[] identifiers, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(identifiers, "identifiers");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("dismiss").build());
intent.putExtra("type", "dismissSelected");
intent.putExtra("identifiers", identifiers);
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void f(Context context, ResultReceiver resultReceiver) {
r.f(context, "context");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("dismiss").build());
intent.putExtra("type", "dismissAll");
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void g(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
ActivityInfo h = h(context, intent);
if (h != null) {
intent.setComponent(new ComponentName(h.packageName, h.name));
context.sendBroadcast(intent);
return;
}
Log.e("expo-notifications", "No service capable of handling notifications found (intent = " + intent.getAction() + "). Ensure that you have configured your AndroidManifest.xml properly.");
}
public final j getNotificationResponseFromOpenIntent(Intent intent) {
r.f(intent, "intent");
byte[] byteArrayExtra = intent.getByteArrayExtra("notificationResponse");
if (byteArrayExtra != null) {
Companion companion = NotificationsService.INSTANCE;
Parcelable.Creator<j> CREATOR = j.CREATOR;
r.e(CREATOR, "CREATOR");
return (j) companion.C(CREATOR, byteArrayExtra);
}
byte[] byteArrayExtra2 = intent.getByteArrayExtra("textInputNotificationResponse");
if (byteArrayExtra2 == null) {
return null;
}
Companion companion2 = NotificationsService.INSTANCE;
Parcelable.Creator<n> CREATOR2 = n.CREATOR;
r.e(CREATOR2, "CREATOR");
return (j) companion2.C(CREATOR2, byteArrayExtra2);
}
public final void getScheduledNotification(Context context, String identifier, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(identifier, "identifier");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("scheduled").appendPath(identifier).build());
intent.putExtra("type", "getScheduled");
intent.putExtra("identifier", identifier);
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final ActivityInfo h(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
Intent intent2 = new Intent(intent.getAction()).setPackage(context.getPackageName());
r.e(intent2, "setPackage(...)");
List<ResolveInfo> queryBroadcastReceivers = context.getPackageManager().queryBroadcastReceivers(intent2, 0);
r.e(queryBroadcastReceivers, "queryBroadcastReceivers(...)");
ResolveInfo resolveInfo = (ResolveInfo) AbstractC0816p.n0(queryBroadcastReceivers);
if (resolveInfo != null) {
return resolveInfo.activityInfo;
}
return null;
}
public final void i(Context context, ResultReceiver resultReceiver) {
r.f(context, "context");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().build());
intent.putExtra("type", "getAllDisplayed");
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void j(Context context, ResultReceiver resultReceiver) {
r.f(context, "context");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT");
intent.putExtra("type", "getAllScheduled");
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void k(Context context, ResultReceiver resultReceiver) {
r.f(context, "context");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("categories").build());
intent.putExtra("type", "getCategories");
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final j l(Intent intent) {
String str;
r.f(intent, "intent");
C1768a c1768a = (C1768a) intent.getParcelableExtra("notification");
if (c1768a == null) {
throw new IllegalArgumentException("notification not found in the intent extras.");
}
C1769b c1769b = (C1769b) intent.getParcelableExtra("notificationAction");
if (c1769b == null) {
throw new IllegalArgumentException("notificationAction not found in the intent extras.");
}
if (!(c1769b instanceof l)) {
return new j(c1769b, c1768a);
}
Bundle j = x.j(intent);
if (j == null || (str = j.getString("userTextResponse")) == null) {
str = "";
}
return new n(c1769b, c1768a, str);
}
protected final Uri.Builder m() {
Uri.Builder buildUpon = Uri.parse("expo-notifications://notifications/").buildUpon();
r.e(buildUpon, "buildUpon(...)");
return buildUpon;
}
protected final Uri.Builder n(String identifier) {
r.f(identifier, "identifier");
Uri.Builder appendPath = m().appendPath(identifier);
r.e(appendPath, "appendPath(...)");
return appendPath;
}
public final void o(Context context) {
r.f(context, "context");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT");
intent.putExtra("type", "dropped");
J j = J.a;
g(context, intent);
}
public final void q(Context context, C1768a notification, c cVar, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(notification, "notification");
String b = notification.a().b();
r.e(b, "getIdentifier(...)");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", n(b).appendPath("present").build());
intent.putExtra("type", "present");
intent.putExtra("notification", notification);
intent.putExtra("notificationBehavior", cVar);
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void s(Context context, C1768a notification, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(notification, "notification");
String b = notification.a().b();
r.e(b, "getIdentifier(...)");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", n(b).appendPath("receive").build());
intent.putExtra("type", "receive");
intent.putExtra("notification", notification);
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void u(Context context, ResultReceiver resultReceiver) {
r.f(context, "context");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT");
intent.putExtra("type", "removeAll");
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void v(Context context, String identifier, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(identifier, "identifier");
x(context, AbstractC0816p.e(identifier), resultReceiver);
}
public final void x(Context context, Collection identifiers, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(identifiers, "identifiers");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("scheduled").build());
intent.putExtra("type", "removeSelected");
intent.putExtra("identifiers", (String[]) identifiers.toArray(new String[0]));
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
public final void y(Context context, i notificationRequest, ResultReceiver resultReceiver) {
r.f(context, "context");
r.f(notificationRequest, "notificationRequest");
Intent intent = new Intent("expo.modules.notifications.NOTIFICATION_EVENT", m().appendPath("scheduled").appendPath(notificationRequest.b()).build());
intent.putExtra("type", "schedule");
intent.putExtra("notificationRequest", (Parcelable) notificationRequest);
intent.putExtra("receiver", resultReceiver);
J j = J.a;
g(context, intent);
}
private Companion() {
}
}
static final class b extends AbstractC1735t implements a {
final Intent a;
final BroadcastReceiver.PendingResult b;
final NotificationsService c;
final Context d;
b(Intent intent, BroadcastReceiver.PendingResult pendingResult, NotificationsService notificationsService, Context context) {
super(0);
this.a = intent;
this.b = pendingResult;
this.c = notificationsService;
this.d = context;
}
public final void a() {
try {
Intent intent = this.a;
if (intent != null) {
this.c.e(this.d, intent);
}
} finally {
this.b.finish();
}
}
@Override
public Object invoke() {
a();
return J.a;
}
}
protected InterfaceC1939a a(Context context) {
r.f(context, "context");
return new C1914b(context);
}
protected InterfaceC1941c b(Context context) {
r.f(context, "context");
return new C1915c(context);
}
protected InterfaceC1942d c(Context context) {
r.f(context, "context");
androidx.core.app.r rVar = null;
return new C1917e(context, rVar, 2, rVar);
}
protected InterfaceC1943e d(Context context) {
r.f(context, "context");
return new C1918f(context);
}
public void e(android.content.Context r6, android.content.Intent r7) {
throw new UnsupportedOperationException("Method not decompiled: expo.modules.notifications.service.NotificationsService.e(android.content.Context, android.content.Intent):void");
}
public Bundle f(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
Bundle bundle = new Bundle();
InterfaceC1939a a = a(context);
Bundle extras = intent.getExtras();
String string = extras != null ? extras.getString("identifier") : null;
r.c(string);
bundle.putBoolean("succeeded", a.b(string));
return bundle;
}
public void g(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
c(context).d();
}
public void h(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
InterfaceC1942d c = c(context);
Bundle extras = intent.getExtras();
String[] stringArray = extras != null ? extras.getStringArray("identifiers") : null;
r.c(stringArray);
c.a(AbstractC0809i.d(stringArray));
}
public Bundle i(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("notifications", new ArrayList<>(c(context).c()));
return bundle;
}
public Bundle j(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("notificationRequests", new ArrayList<>(d(context).g()));
return bundle;
}
public Bundle k(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
Bundle bundle = new Bundle();
bundle.putParcelableArrayList("notificationCategories", new ArrayList<>(a(context).c()));
return bundle;
}
public Bundle l(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
Bundle bundle = new Bundle();
InterfaceC1943e d = d(context);
Bundle extras = intent.getExtras();
String string = extras != null ? extras.getString("identifier") : null;
r.c(string);
bundle.putParcelable("notificationRequest", d.f(string));
return bundle;
}
public void m(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
InterfaceC1943e d = d(context);
Bundle extras = intent.getExtras();
String string = extras != null ? extras.getString("identifier") : null;
r.c(string);
d.a(string);
}
public void n(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
b(context).a();
}
public void o(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
InterfaceC1942d c = c(context);
Bundle extras = intent.getExtras();
C1768a c1768a = extras != null ? (C1768a) extras.getParcelable("notification") : null;
r.c(c1768a);
Bundle extras2 = intent.getExtras();
c.b(c1768a, extras2 != null ? (c) extras2.getParcelable("notificationBehavior") : null);
}
@Override
public void onReceive(Context context, Intent intent) {
r.f(context, "context");
Wh.a.b(false, false, null, null, 0, new b(intent, goAsync(), this, context), 31, null);
}
public void p(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
InterfaceC1941c b2 = b(context);
Parcelable parcelableExtra = intent.getParcelableExtra("notification");
r.c(parcelableExtra);
b2.b((C1768a) parcelableExtra);
}
public void q(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
b(context).c(INSTANCE.l(intent));
}
public void r(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
d(context).d();
}
public void s(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
InterfaceC1943e d = d(context);
Bundle extras = intent.getExtras();
String[] stringArray = extras != null ? extras.getStringArray("identifiers") : null;
r.c(stringArray);
d.e(AbstractC0809i.d(stringArray));
}
public void t(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
InterfaceC1943e d = d(context);
Bundle extras = intent.getExtras();
i iVar = extras != null ? (i) extras.getParcelable("notificationRequest") : null;
r.c(iVar);
d.b(iVar);
}
public Bundle u(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
Bundle bundle = new Bundle();
InterfaceC1939a a = a(context);
Parcelable parcelableExtra = intent.getParcelableExtra("notificationCategory");
r.c(parcelableExtra);
bundle.putParcelable("notificationCategory", a.a((e) parcelableExtra));
return bundle;
}
public void v(Context context, Intent intent) {
r.f(context, "context");
r.f(intent, "intent");
d(context).c();
}
}