granularity level: instruction
.class public abstract Landroidx/core/app/NotificationCompatSideChannelService;
.super Landroid/app/Service;
.source "NotificationCompatSideChannelService.java"
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/core/app/NotificationCompatSideChannelService$NotificationSideChannelStub;
}
.end annotation
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroid/app/Service;-><init>()V
return-void
.end method
.method public abstract cancel(Ljava/lang/String;ILjava/lang/String;)V
.end method
.method public abstract cancelAll(Ljava/lang/String;)V
.end method
.method checkPermission(ILjava/lang/String;)V
.locals 4
invoke-virtual {p0}, Landroidx/core/app/NotificationCompatSideChannelService;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
invoke-virtual {v0, p1}, Landroid/content/pm/PackageManager;->getPackagesForUid(I)[Ljava/lang/String;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
invoke-virtual {v3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_0
return-void
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
new-instance v0, Ljava/lang/SecurityException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "NotificationSideChannelService: Uid "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p1, " is not authorized for package "
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-direct {v0, p1}, Ljava/lang/SecurityException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public abstract notify(Ljava/lang/String;ILjava/lang/String;Landroid/app/Notification;)V
.end method
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.locals 2
invoke-virtual {p1}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object p1
const-string v0, "android.support.BIND_NOTIFICATION_SIDE_CHANNEL"
invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p1
const/4 v0, 0x0
if-eqz p1, :cond_1
sget p1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x13
if-le p1, v1, :cond_0
return-object v0
:cond_0
new-instance p1, Landroidx/core/app/NotificationCompatSideChannelService$NotificationSideChannelStub;
invoke-direct {p1, p0}, Landroidx/core/app/NotificationCompatSideChannelService$NotificationSideChannelStub;-><init>(Landroidx/core/app/NotificationCompatSideChannelService;)V
return-object p1
:cond_1
return-object v0
.end method