diff options
| author | 2019-04-01 22:09:19 +0000 | |
|---|---|---|
| committer | 2019-04-01 22:09:19 +0000 | |
| commit | ddc438d13d28fa067e50a139da9327f0285f4108 (patch) | |
| tree | 589df1dc8fb422abceff07e71d59fe44e2eafb00 | |
| parent | 817d9b671fa60d2b67cb4723357d2dbf80ee0af5 (diff) | |
| parent | c458c07dd3173ed6d46afa3dba46dc5dcc204886 (diff) | |
Merge "Update javadoc on BatterySaverPolicyConfig"
| -rw-r--r-- | core/java/android/os/BatterySaverPolicyConfig.java | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/core/java/android/os/BatterySaverPolicyConfig.java b/core/java/android/os/BatterySaverPolicyConfig.java index 879ab1ecb101..3801cbd48cdd 100644 --- a/core/java/android/os/BatterySaverPolicyConfig.java +++ b/core/java/android/os/BatterySaverPolicyConfig.java @@ -241,7 +241,10 @@ public final class BatterySaverPolicyConfig implements Parcelable { return mDisableOptionalSensors; } - /** Whether or not to disable sound trigger while in Battery Saver. */ + /** + * Whether or not to disable {@link android.hardware.soundtrigger.SoundTrigger} + * while in Battery Saver. + */ public boolean getDisableSoundTrigger() { return mDisableSoundTrigger; } @@ -261,7 +264,10 @@ public final class BatterySaverPolicyConfig implements Parcelable { return mEnableDataSaver; } - /** Whether or not to enable the network firewall while in Battery Saver. */ + /** + * Whether or not to enable network firewall rules to restrict background network use + * while in Battery Saver. + */ public boolean getEnableFirewall() { return mEnableFirewall; } @@ -281,7 +287,12 @@ public final class BatterySaverPolicyConfig implements Parcelable { return mForceAllAppsStandby; } - /** Whether or not to force background check while in Battery Saver. */ + /** + * Whether or not to force background check (disallow background services and manifest + * broadcast receivers) on all apps (not just apps targeting Android + * {@link Build.VERSION_CODES#O} and above) + * while in Battery Saver. + */ public boolean getForceBackgroundCheck() { return mForceBackgroundCheck; } @@ -401,7 +412,10 @@ public final class BatterySaverPolicyConfig implements Parcelable { return this; } - /** Set whether or not to disable sound trigger while in Battery Saver. */ + /** + * Set whether or not to disable {@link android.hardware.soundtrigger.SoundTrigger} + * while in Battery Saver. + */ @NonNull public Builder setDisableSoundTrigger(boolean disableSoundTrigger) { mDisableSoundTrigger = disableSoundTrigger; @@ -429,7 +443,10 @@ public final class BatterySaverPolicyConfig implements Parcelable { return this; } - /** Set whether or not to enable the network firewall while in Battery Saver. */ + /** + * Set whether or not to enable network firewall rules to restrict background network use + * while in Battery Saver. + */ @NonNull public Builder setEnableFirewall(boolean enableFirewall) { mEnableFirewall = enableFirewall; @@ -457,7 +474,12 @@ public final class BatterySaverPolicyConfig implements Parcelable { return this; } - /** Set whether or not to force background check while in Battery Saver. */ + /** + * Set whether or not to force background check (disallow background services and manifest + * broadcast receivers) on all apps (not just apps targeting Android + * {@link Build.VERSION_CODES#O} and above) + * while in Battery Saver. + */ @NonNull public Builder setForceBackgroundCheck(boolean forceBackgroundCheck) { mForceBackgroundCheck = forceBackgroundCheck; |