Loading core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -10899,8 +10899,10 @@ package android.content { 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_AVAILABLE = "android.intent.action.PROFILE_AVAILABLE"; 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_PROFILE_UNAVAILABLE = "android.intent.action.PROFILE_UNAVAILABLE"; 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 +26 −0 Original line number Diff line number Diff line Loading @@ -4153,6 +4153,32 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_MANAGED_PROFILE_UNAVAILABLE = "android.intent.action.MANAGED_PROFILE_UNAVAILABLE"; /** * Broadcast sent to the primary user when an associated profile has become available. * This is sent when a user disables quiet mode for the profile. Carries an extra * {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile. When quiet mode is * changed, this broadcast will carry a boolean extra {@link #EXTRA_QUIET_MODE} indicating the * new state of quiet mode. This is only sent to registered receivers, not manifest receivers. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_AVAILABLE} but functions as a * generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. */ public static final String ACTION_PROFILE_AVAILABLE = "android.intent.action.PROFILE_AVAILABLE"; /** * Broadcast sent to the primary user when an associated profile has become unavailable. * This is sent when a user enables quiet mode for the profile. Carries an extra * {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile. When quiet mode is * changed, this broadcast will carry a boolean extra {@link #EXTRA_QUIET_MODE} indicating the * new state of quiet mode. This is only sent to registered receivers, not manifest receivers. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_UNAVAILABLE} but functions as * a generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. */ public static final String ACTION_PROFILE_UNAVAILABLE = "android.intent.action.PROFILE_UNAVAILABLE"; /** * Broadcast sent to the parent user when an associated profile has been started and unlocked. * Carries an extra {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile. Loading core/res/AndroidManifest.xml +4 −0 Original line number Diff line number Diff line Loading @@ -829,6 +829,10 @@ <protected-broadcast android:name="android.app.admin.action.DEVICE_POLICY_SET_RESULT" /> <protected-broadcast android:name="android.app.admin.action.DEVICE_POLICY_CHANGED" /> <!-- Added in V --> <protected-broadcast android:name="android.intent.action.PROFILE_AVAILABLE" /> <protected-broadcast android:name="android.intent.action.PROFILE_UNAVAILABLE" /> <!-- ====================================================================== --> <!-- RUNTIME PERMISSIONS --> <!-- ====================================================================== --> Loading Loading
core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -10899,8 +10899,10 @@ package android.content { 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_AVAILABLE = "android.intent.action.PROFILE_AVAILABLE"; 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_PROFILE_UNAVAILABLE = "android.intent.action.PROFILE_UNAVAILABLE"; 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 +26 −0 Original line number Diff line number Diff line Loading @@ -4153,6 +4153,32 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_MANAGED_PROFILE_UNAVAILABLE = "android.intent.action.MANAGED_PROFILE_UNAVAILABLE"; /** * Broadcast sent to the primary user when an associated profile has become available. * This is sent when a user disables quiet mode for the profile. Carries an extra * {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile. When quiet mode is * changed, this broadcast will carry a boolean extra {@link #EXTRA_QUIET_MODE} indicating the * new state of quiet mode. This is only sent to registered receivers, not manifest receivers. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_AVAILABLE} but functions as a * generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. */ public static final String ACTION_PROFILE_AVAILABLE = "android.intent.action.PROFILE_AVAILABLE"; /** * Broadcast sent to the primary user when an associated profile has become unavailable. * This is sent when a user enables quiet mode for the profile. Carries an extra * {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile. When quiet mode is * changed, this broadcast will carry a boolean extra {@link #EXTRA_QUIET_MODE} indicating the * new state of quiet mode. This is only sent to registered receivers, not manifest receivers. * * <p>This broadcast is similar to {@link #ACTION_MANAGED_PROFILE_UNAVAILABLE} but functions as * a generic broadcast for all users of type {@link android.content.pm.UserInfo#isProfile()}}. */ public static final String ACTION_PROFILE_UNAVAILABLE = "android.intent.action.PROFILE_UNAVAILABLE"; /** * Broadcast sent to the parent user when an associated profile has been started and unlocked. * Carries an extra {@link #EXTRA_USER} that specifies the {@link UserHandle} of the profile. Loading
core/res/AndroidManifest.xml +4 −0 Original line number Diff line number Diff line Loading @@ -829,6 +829,10 @@ <protected-broadcast android:name="android.app.admin.action.DEVICE_POLICY_SET_RESULT" /> <protected-broadcast android:name="android.app.admin.action.DEVICE_POLICY_CHANGED" /> <!-- Added in V --> <protected-broadcast android:name="android.intent.action.PROFILE_AVAILABLE" /> <protected-broadcast android:name="android.intent.action.PROFILE_UNAVAILABLE" /> <!-- ====================================================================== --> <!-- RUNTIME PERMISSIONS --> <!-- ====================================================================== --> Loading