.class public Landroidx/profileinstaller/ProfileInstallReceiver; .super Landroid/content/BroadcastReceiver; .source "ProfileInstallReceiver.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics; } .end annotation # static fields .field public static final ACTION_BENCHMARK_OPERATION:Ljava/lang/String; = "androidx.profileinstaller.action.BENCHMARK_OPERATION" .field public static final ACTION_INSTALL_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.INSTALL_PROFILE" .field public static final ACTION_SAVE_PROFILE:Ljava/lang/String; = "androidx.profileinstaller.action.SAVE_PROFILE" .field public static final ACTION_SKIP_FILE:Ljava/lang/String; = "androidx.profileinstaller.action.SKIP_FILE" .field private static final EXTRA_BENCHMARK_OPERATION:Ljava/lang/String; = "EXTRA_BENCHMARK_OPERATION" .field private static final EXTRA_BENCHMARK_OPERATION_DROP_SHADER_CACHE:Ljava/lang/String; = "DROP_SHADER_CACHE" .field private static final EXTRA_SKIP_FILE_OPERATION:Ljava/lang/String; = "EXTRA_SKIP_FILE_OPERATION" .field private static final EXTRA_SKIP_FILE_OPERATION_DELETE:Ljava/lang/String; = "DELETE_SKIP_FILE" .field private static final EXTRA_SKIP_FILE_OPERATION_WRITE:Ljava/lang/String; = "WRITE_SKIP_FILE" # direct methods .method public constructor ()V .locals 0 .line 38 invoke-direct {p0}, Landroid/content/BroadcastReceiver;->()V return-void .end method .method static saveProfile(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V .locals 2 .line 150 invoke-static {}, Landroid/os/Process;->myPid()I move-result v0 const/16 v1, 0xa invoke-static {v0, v1}, Landroid/os/Process;->sendSignal(II)V const/16 v0, 0xc const/4 v1, 0x0 .line 151 invoke-interface {p0, v0, v1}, Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;->onResultReceived(ILjava/lang/Object;)V return-void .end method # virtual methods .method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V .locals 2 if-nez p2, :cond_0 return-void .line 102 :cond_0 invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String; move-result-object v0 const-string v1, "androidx.profileinstaller.action.INSTALL_PROFILE" .line 103 invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_1 .line 104 new-instance p2, Landroidx/media3/exoplayer/offline/DefaultDownloaderFactory$$ExternalSyntheticLambda0; invoke-direct {p2}, Landroidx/media3/exoplayer/offline/DefaultDownloaderFactory$$ExternalSyntheticLambda0;->()V new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics; invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->(Landroidx/profileinstaller/ProfileInstallReceiver;)V const/4 p0, 0x1 invoke-static {p1, p2, v0, p0}, Landroidx/profileinstaller/ProfileInstaller;->writeProfile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;Z)V goto/16 :goto_0 :cond_1 const-string v1, "androidx.profileinstaller.action.SKIP_FILE" .line 106 invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_3 .line 107 invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; move-result-object p2 if-eqz p2, :cond_6 const-string v0, "EXTRA_SKIP_FILE_OPERATION" .line 109 invoke-virtual {p2, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object p2 const-string v0, "WRITE_SKIP_FILE" .line 110 invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_2 .line 111 new-instance p2, Landroidx/media3/exoplayer/offline/DefaultDownloaderFactory$$ExternalSyntheticLambda0; invoke-direct {p2}, Landroidx/media3/exoplayer/offline/DefaultDownloaderFactory$$ExternalSyntheticLambda0;->()V new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics; invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->(Landroidx/profileinstaller/ProfileInstallReceiver;)V invoke-static {p1, p2, v0}, Landroidx/profileinstaller/ProfileInstaller;->writeSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V goto :goto_0 :cond_2 const-string v0, "DELETE_SKIP_FILE" .line 112 invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result p2 if-eqz p2, :cond_6 .line 113 new-instance p2, Landroidx/media3/exoplayer/offline/DefaultDownloaderFactory$$ExternalSyntheticLambda0; invoke-direct {p2}, Landroidx/media3/exoplayer/offline/DefaultDownloaderFactory$$ExternalSyntheticLambda0;->()V new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics; invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->(Landroidx/profileinstaller/ProfileInstallReceiver;)V invoke-static {p1, p2, v0}, Landroidx/profileinstaller/ProfileInstaller;->deleteSkipFile(Landroid/content/Context;Ljava/util/concurrent/Executor;Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V goto :goto_0 :cond_3 const-string v1, "androidx.profileinstaller.action.SAVE_PROFILE" .line 117 invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_4 .line 118 new-instance p1, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics; invoke-direct {p1, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->(Landroidx/profileinstaller/ProfileInstallReceiver;)V invoke-static {p1}, Landroidx/profileinstaller/ProfileInstallReceiver;->saveProfile(Landroidx/profileinstaller/ProfileInstaller$DiagnosticsCallback;)V goto :goto_0 :cond_4 const-string v1, "androidx.profileinstaller.action.BENCHMARK_OPERATION" .line 119 invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_6 .line 120 invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle; move-result-object p2 if-eqz p2, :cond_6 const-string v0, "EXTRA_BENCHMARK_OPERATION" .line 122 invoke-virtual {p2, v0}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; move-result-object p2 .line 123 new-instance v0, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics; invoke-direct {v0, p0}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->(Landroidx/profileinstaller/ProfileInstallReceiver;)V const-string p0, "DROP_SHADER_CACHE" .line 124 invoke-virtual {p0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result p0 if-eqz p0, :cond_5 .line 125 invoke-static {p1, v0}, Landroidx/profileinstaller/BenchmarkOperation;->dropShaderCache(Landroid/content/Context;Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;)V goto :goto_0 :cond_5 const/16 p0, 0x10 const/4 p1, 0x0 .line 127 invoke-virtual {v0, p0, p1}, Landroidx/profileinstaller/ProfileInstallReceiver$ResultDiagnostics;->onResultReceived(ILjava/lang/Object;)V :cond_6 :goto_0 return-void .end method