Loading core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -11078,6 +11078,7 @@ package android.content { field public static final String ACTION_AIRPLANE_MODE_CHANGED = "android.intent.action.AIRPLANE_MODE"; field public static final String ACTION_ALL_APPS = "android.intent.action.ALL_APPS"; field public static final String ACTION_ANSWER = "android.intent.action.ANSWER"; field public static final String ACTION_APPLICATION_LOCALE_CHANGED = "android.intent.action.APPLICATION_LOCALE_CHANGED"; field public static final String ACTION_APPLICATION_PREFERENCES = "android.intent.action.APPLICATION_PREFERENCES"; field public static final String ACTION_APPLICATION_RESTRICTIONS_CHANGED = "android.intent.action.APPLICATION_RESTRICTIONS_CHANGED"; field public static final String ACTION_APP_ERROR = "android.intent.action.APP_ERROR"; Loading Loading @@ -11298,6 +11299,7 @@ package android.content { field public static final String EXTRA_INSTALLER_PACKAGE_NAME = "android.intent.extra.INSTALLER_PACKAGE_NAME"; field public static final String EXTRA_INTENT = "android.intent.extra.INTENT"; field public static final String EXTRA_KEY_EVENT = "android.intent.extra.KEY_EVENT"; field public static final String EXTRA_LOCALE_LIST = "android.intent.extra.LOCALE_LIST"; field public static final String EXTRA_LOCAL_ONLY = "android.intent.extra.LOCAL_ONLY"; field public static final String EXTRA_LOCUS_ID = "android.intent.extra.LOCUS_ID"; field public static final String EXTRA_MIME_TYPES = "android.intent.extra.MIME_TYPES"; core/java/android/content/Intent.java +42 −1 Original line number Diff line number Diff line Loading @@ -2098,6 +2098,14 @@ public class Intent implements Parcelable, Cloneable { */ public static final String EXTRA_PACKAGE_NAME = "android.intent.extra.PACKAGE_NAME"; /** * Intent extra: A {@link android.os.LocaleList} * <p> * Type: LocaleList * </p> */ public static final String EXTRA_LOCALE_LIST = "android.intent.extra.LOCALE_LIST"; /** * Intent extra: A {@link Bundle} of extras for a package being suspended. Will be sent as an * extra with {@link #ACTION_MY_PACKAGE_SUSPENDED}. Loading Loading @@ -3070,13 +3078,46 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_SPLIT_CONFIGURATION_CHANGED = "android.intent.action.SPLIT_CONFIGURATION_CHANGED"; /** * Broadcast Action: The current device's locale has changed. * Broadcast Action: The receiver's effective locale has changed. * * This happens when the device locale, or the * {(TODO: will only compile after ag/15518063) @link LocaleManager#setApplicationLocales} * receiving app's locale changed. * * Can be received by manifest-declared receivers. * * <p class="note"> If only the app locale changed, includes the following extras: * <ul> * <li>{@link #EXTRA_PACKAGE_NAME} is the name of the package for which locale changed. * <li>{@link #EXTRA_LOCALE_LIST} contains locales that are currently set for specified app * </ul> * * <p class="note">This is a protected intent that can only be sent * by the system. */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_LOCALE_CHANGED = "android.intent.action.LOCALE_CHANGED"; /** * Broadcast Action: Locale of a particular app has changed. * * <p class="note"> This broadcast is explicitly sent to the * {@link android.content.pm.InstallSourceInfo#getInstallingPackageName} installer * of the app whose locale has changed. * <p class="note"> The broadcast could also be received by manifest-declared receivers with * {@code android.permission.READ_APP_SPECIFIC_LOCALES} * * <p class="note">This is a protected intent that can only be sent * by the system. * * <p>Includes the following extras: * <ul> * <li>{@link #EXTRA_PACKAGE_NAME} is the name of the package for which locale changed. * <li>{@link #EXTRA_LOCALE_LIST} contains locales that are currently set for specified app * </ul> */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_APPLICATION_LOCALE_CHANGED = "android.intent.action.APPLICATION_LOCALE_CHANGED"; /** * Broadcast Action: This is a <em>sticky broadcast</em> containing the * charging state, level, and other information about the battery. Loading core/res/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ <protected-broadcast android:name="android.intent.action.CONFIGURATION_CHANGED" /> <protected-broadcast android:name="android.intent.action.SPLIT_CONFIGURATION_CHANGED" /> <protected-broadcast android:name="android.intent.action.LOCALE_CHANGED" /> <protected-broadcast android:name="android.intent.action.APPLICATION_LOCALE_CHANGED" /> <protected-broadcast android:name="android.intent.action.BATTERY_CHANGED" /> <protected-broadcast android:name="android.intent.action.BATTERY_LEVEL_CHANGED" /> <protected-broadcast android:name="android.intent.action.BATTERY_LOW" /> Loading Loading
core/api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -11078,6 +11078,7 @@ package android.content { field public static final String ACTION_AIRPLANE_MODE_CHANGED = "android.intent.action.AIRPLANE_MODE"; field public static final String ACTION_ALL_APPS = "android.intent.action.ALL_APPS"; field public static final String ACTION_ANSWER = "android.intent.action.ANSWER"; field public static final String ACTION_APPLICATION_LOCALE_CHANGED = "android.intent.action.APPLICATION_LOCALE_CHANGED"; field public static final String ACTION_APPLICATION_PREFERENCES = "android.intent.action.APPLICATION_PREFERENCES"; field public static final String ACTION_APPLICATION_RESTRICTIONS_CHANGED = "android.intent.action.APPLICATION_RESTRICTIONS_CHANGED"; field public static final String ACTION_APP_ERROR = "android.intent.action.APP_ERROR"; Loading Loading @@ -11298,6 +11299,7 @@ package android.content { field public static final String EXTRA_INSTALLER_PACKAGE_NAME = "android.intent.extra.INSTALLER_PACKAGE_NAME"; field public static final String EXTRA_INTENT = "android.intent.extra.INTENT"; field public static final String EXTRA_KEY_EVENT = "android.intent.extra.KEY_EVENT"; field public static final String EXTRA_LOCALE_LIST = "android.intent.extra.LOCALE_LIST"; field public static final String EXTRA_LOCAL_ONLY = "android.intent.extra.LOCAL_ONLY"; field public static final String EXTRA_LOCUS_ID = "android.intent.extra.LOCUS_ID"; field public static final String EXTRA_MIME_TYPES = "android.intent.extra.MIME_TYPES";
core/java/android/content/Intent.java +42 −1 Original line number Diff line number Diff line Loading @@ -2098,6 +2098,14 @@ public class Intent implements Parcelable, Cloneable { */ public static final String EXTRA_PACKAGE_NAME = "android.intent.extra.PACKAGE_NAME"; /** * Intent extra: A {@link android.os.LocaleList} * <p> * Type: LocaleList * </p> */ public static final String EXTRA_LOCALE_LIST = "android.intent.extra.LOCALE_LIST"; /** * Intent extra: A {@link Bundle} of extras for a package being suspended. Will be sent as an * extra with {@link #ACTION_MY_PACKAGE_SUSPENDED}. Loading Loading @@ -3070,13 +3078,46 @@ public class Intent implements Parcelable, Cloneable { public static final String ACTION_SPLIT_CONFIGURATION_CHANGED = "android.intent.action.SPLIT_CONFIGURATION_CHANGED"; /** * Broadcast Action: The current device's locale has changed. * Broadcast Action: The receiver's effective locale has changed. * * This happens when the device locale, or the * {(TODO: will only compile after ag/15518063) @link LocaleManager#setApplicationLocales} * receiving app's locale changed. * * Can be received by manifest-declared receivers. * * <p class="note"> If only the app locale changed, includes the following extras: * <ul> * <li>{@link #EXTRA_PACKAGE_NAME} is the name of the package for which locale changed. * <li>{@link #EXTRA_LOCALE_LIST} contains locales that are currently set for specified app * </ul> * * <p class="note">This is a protected intent that can only be sent * by the system. */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_LOCALE_CHANGED = "android.intent.action.LOCALE_CHANGED"; /** * Broadcast Action: Locale of a particular app has changed. * * <p class="note"> This broadcast is explicitly sent to the * {@link android.content.pm.InstallSourceInfo#getInstallingPackageName} installer * of the app whose locale has changed. * <p class="note"> The broadcast could also be received by manifest-declared receivers with * {@code android.permission.READ_APP_SPECIFIC_LOCALES} * * <p class="note">This is a protected intent that can only be sent * by the system. * * <p>Includes the following extras: * <ul> * <li>{@link #EXTRA_PACKAGE_NAME} is the name of the package for which locale changed. * <li>{@link #EXTRA_LOCALE_LIST} contains locales that are currently set for specified app * </ul> */ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION) public static final String ACTION_APPLICATION_LOCALE_CHANGED = "android.intent.action.APPLICATION_LOCALE_CHANGED"; /** * Broadcast Action: This is a <em>sticky broadcast</em> containing the * charging state, level, and other information about the battery. Loading
core/res/AndroidManifest.xml +1 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ <protected-broadcast android:name="android.intent.action.CONFIGURATION_CHANGED" /> <protected-broadcast android:name="android.intent.action.SPLIT_CONFIGURATION_CHANGED" /> <protected-broadcast android:name="android.intent.action.LOCALE_CHANGED" /> <protected-broadcast android:name="android.intent.action.APPLICATION_LOCALE_CHANGED" /> <protected-broadcast android:name="android.intent.action.BATTERY_CHANGED" /> <protected-broadcast android:name="android.intent.action.BATTERY_LEVEL_CHANGED" /> <protected-broadcast android:name="android.intent.action.BATTERY_LOW" /> Loading