Merge "Deprecate POWER_SAVE_MODE_CHANGING broadcast." into rvc-dev am: da8101d270
Change-Id: I3f3a9b1612d44915ca3cc9f4d5a183b4247095b0
This commit is contained in:
@@ -2224,15 +2224,27 @@ public final class PowerManager {
|
|||||||
* Intent that is broadcast when the state of {@link #isPowerSaveMode()} is about to change.
|
* Intent that is broadcast when the state of {@link #isPowerSaveMode()} is about to change.
|
||||||
* This broadcast is only sent to registered receivers.
|
* This broadcast is only sent to registered receivers.
|
||||||
*
|
*
|
||||||
|
* @deprecated This is sent at the same time as {@link #ACTION_POWER_SAVE_MODE_CHANGED} so it
|
||||||
|
* does not provide advanced warning. As such it will be removed in future Android versions.
|
||||||
|
* Use {@link #ACTION_POWER_SAVE_MODE_CHANGED} and {@link #isPowerSaveMode()} instead.
|
||||||
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@UnsupportedAppUsage
|
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q,
|
||||||
|
publicAlternatives = "Use {@link #ACTION_POWER_SAVE_MODE_CHANGED} instead.")
|
||||||
@SdkConstant(SdkConstant.SdkConstantType.BROADCAST_INTENT_ACTION)
|
@SdkConstant(SdkConstant.SdkConstantType.BROADCAST_INTENT_ACTION)
|
||||||
|
@Deprecated
|
||||||
public static final String ACTION_POWER_SAVE_MODE_CHANGING
|
public static final String ACTION_POWER_SAVE_MODE_CHANGING
|
||||||
= "android.os.action.POWER_SAVE_MODE_CHANGING";
|
= "android.os.action.POWER_SAVE_MODE_CHANGING";
|
||||||
|
|
||||||
/** @hide */
|
/**
|
||||||
@UnsupportedAppUsage
|
* @deprecated Use {@link #isPowerSaveMode()} instead.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.Q,
|
||||||
|
publicAlternatives = "Use {@link #isPowerSaveMode()} instead.")
|
||||||
|
@Deprecated
|
||||||
public static final String EXTRA_POWER_SAVE_MODE = "mode";
|
public static final String EXTRA_POWER_SAVE_MODE = "mode";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user