ProfileInstallReceiver
public
class
ProfileInstallReceiver
extends BroadcastReceiver
| java.lang.Object | ||
| ↳ | android.content.BroadcastReceiver | |
| ↳ | androidx.profileinstaller.ProfileInstallReceiver | |
The BroadcastReceiver which forces a synchronous installation of the
baseline profile.
This is primarily used by tools to force a synchronous install of the baseline profile without
starting the application's main activity. It is not expected for this receiver to be used at
runtime by anything other than tools, and as such, the action filter is defined with the
"dump" permission.
Summary
Constants | |
|---|---|
String |
ACTION_INSTALL_PROFILE
This is the action constant that this broadcast receiver responds to and installs a profile. |
String |
ACTION_SKIP_FILE
This is an action constant which requests that |
Public constructors | |
|---|---|
ProfileInstallReceiver()
|
|
Public methods | |
|---|---|
void
|
onReceive(Context context, Intent intent)
|
Inherited methods | |
|---|---|
Constants
ACTION_INSTALL_PROFILE
public static final String ACTION_INSTALL_PROFILE
This is the action constant that this broadcast receiver responds to and installs a profile.
Constant Value: "androidx.profileinstaller.action.INSTALL_PROFILE"
ACTION_SKIP_FILE
public static final String ACTION_SKIP_FILE
This is an action constant which requests that ProfileInstaller manipulate the
skip file used during profile installation. This is only useful when the app is being
instrumented when using Jetpack Macrobenchmarks.
Constant Value: "androidx.profileinstaller.action.SKIP_FILE"
Public constructors
ProfileInstallReceiver
public ProfileInstallReceiver ()