Loading core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -10319,7 +10319,9 @@ package android.content { field public static final String ACTION_POWER_USAGE_SUMMARY = "android.intent.action.POWER_USAGE_SUMMARY"; field public static final String ACTION_PROCESS_TEXT = "android.intent.action.PROCESS_TEXT"; field public static final String ACTION_PROFILE_ACCESSIBLE = "android.intent.action.PROFILE_ACCESSIBLE"; field public static final String ACTION_PROFILE_ADDED = "android.intent.action.PROFILE_ADDED"; field public static final String ACTION_PROFILE_INACCESSIBLE = "android.intent.action.PROFILE_INACCESSIBLE"; field public static final String ACTION_PROFILE_REMOVED = "android.intent.action.PROFILE_REMOVED"; field public static final String ACTION_PROVIDER_CHANGED = "android.intent.action.PROVIDER_CHANGED"; field public static final String ACTION_QUICK_CLOCK = "android.intent.action.QUICK_CLOCK"; field public static final String ACTION_QUICK_VIEW = "android.intent.action.QUICK_VIEW"; core/java/android/content/Intent.java +39 −0 Original line number Diff line number Diff line Loading @@ -4091,6 +4091,45 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_PROFILE_INACCESSIBLE = "android.intent.action.PROFILE_INACCESSIBLE"; /** * Broadcast sent to the parent user when an associated profile is removed. * Carries an extra {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile * that was removed. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_REMOVED} but functions as a * generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. * It is sent in addition to the {@link #ACTION_MANAGED_PROFILE_REMOVED} broadcast when a * managed user is removed. * * <p>Only applications (for example Launchers) that need to display merged content across both * the parent user and its associated profiles need to worry about this broadcast. * This is only sent to registered receivers created with {@link Context#registerReceiver}. * It is not sent to manifest receivers. */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_PROFILE_REMOVED = "android.intent.action.PROFILE_REMOVED"; /** * Broadcast sent to the parent user when an associated profile is added (the profile was * created and is ready to be used). * Carries an extra {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile * that was added. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_ADDED} but functions as a * generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. * It is sent in addition to the {@link #ACTION_MANAGED_PROFILE_ADDED} broadcast when a * managed user is added. * * <p>Only applications (for example Launchers) that need to display merged content across both * the parent user and its associated profiles need to worry about this broadcast. * This is only sent to registered receivers created with {@link Context#registerReceiver}. * It is not sent to manifest receivers. */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_PROFILE_ADDED = "android.intent.action.PROFILE_ADDED"; /** * Broadcast sent to the system user when the 'device locked' state changes for any user. * Carries an extra {@link #EXTRA_USER_HANDLE} that specifies the ID of the user for which Loading core/res/AndroidManifest.xml +4 −0 Original line number Diff line number Diff line Loading @@ -815,6 +815,10 @@ <protected-broadcast android:name="android.app.action.PROVISIONING_COMPLETED" /> <protected-broadcast android:name="android.app.action.LOST_MODE_LOCATION_UPDATE" /> <!-- Added in U --> <protected-broadcast android:name="android.intent.action.PROFILE_ADDED" /> <protected-broadcast android:name="android.intent.action.PROFILE_REMOVED" /> <!-- ====================================================================== --> <!-- RUNTIME PERMISSIONS --> <!-- ====================================================================== --> Loading Loading
core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -10319,7 +10319,9 @@ package android.content { field public static final String ACTION_POWER_USAGE_SUMMARY = "android.intent.action.POWER_USAGE_SUMMARY"; field public static final String ACTION_PROCESS_TEXT = "android.intent.action.PROCESS_TEXT"; field public static final String ACTION_PROFILE_ACCESSIBLE = "android.intent.action.PROFILE_ACCESSIBLE"; field public static final String ACTION_PROFILE_ADDED = "android.intent.action.PROFILE_ADDED"; field public static final String ACTION_PROFILE_INACCESSIBLE = "android.intent.action.PROFILE_INACCESSIBLE"; field public static final String ACTION_PROFILE_REMOVED = "android.intent.action.PROFILE_REMOVED"; field public static final String ACTION_PROVIDER_CHANGED = "android.intent.action.PROVIDER_CHANGED"; field public static final String ACTION_QUICK_CLOCK = "android.intent.action.QUICK_CLOCK"; field public static final String ACTION_QUICK_VIEW = "android.intent.action.QUICK_VIEW";
core/java/android/content/Intent.java +39 −0 Original line number Diff line number Diff line Loading @@ -4091,6 +4091,45 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_PROFILE_INACCESSIBLE = "android.intent.action.PROFILE_INACCESSIBLE"; /** * Broadcast sent to the parent user when an associated profile is removed. * Carries an extra {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile * that was removed. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_REMOVED} but functions as a * generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. * It is sent in addition to the {@link #ACTION_MANAGED_PROFILE_REMOVED} broadcast when a * managed user is removed. * * <p>Only applications (for example Launchers) that need to display merged content across both * the parent user and its associated profiles need to worry about this broadcast. * This is only sent to registered receivers created with {@link Context#registerReceiver}. * It is not sent to manifest receivers. */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_PROFILE_REMOVED = "android.intent.action.PROFILE_REMOVED"; /** * Broadcast sent to the parent user when an associated profile is added (the profile was * created and is ready to be used). * Carries an extra {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile * that was added. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_ADDED} but functions as a * generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. * It is sent in addition to the {@link #ACTION_MANAGED_PROFILE_ADDED} broadcast when a * managed user is added. * * <p>Only applications (for example Launchers) that need to display merged content across both * the parent user and its associated profiles need to worry about this broadcast. * This is only sent to registered receivers created with {@link Context#registerReceiver}. * It is not sent to manifest receivers. */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_PROFILE_ADDED = "android.intent.action.PROFILE_ADDED"; /** * Broadcast sent to the system user when the 'device locked' state changes for any user. * Carries an extra {@link #EXTRA_USER_HANDLE} that specifies the ID of the user for which Loading
core/res/AndroidManifest.xml +4 −0 Original line number Diff line number Diff line Loading @@ -815,6 +815,10 @@ <protected-broadcast android:name="android.app.action.PROVISIONING_COMPLETED" /> <protected-broadcast android:name="android.app.action.LOST_MODE_LOCATION_UPDATE" /> <!-- Added in U --> <protected-broadcast android:name="android.intent.action.PROFILE_ADDED" /> <protected-broadcast android:name="android.intent.action.PROFILE_REMOVED" /> <!-- ====================================================================== --> <!-- RUNTIME PERMISSIONS --> <!-- ====================================================================== --> Loading