diff options
author | Jeff Brown <jeffbrown@google.com> | 2012-10-01 14:33:09 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2012-10-01 14:33:42 -0700 |
commit | db21284a7fb081065d26137891594bd8495b116f (patch) | |
tree | 4e5a461a14d67c47f90fb09a753218a45e72f51e /core/java | |
parent | 3dc524bc31a1578693ca958ef442dfa092b7aa7f (diff) | |
download | frameworks_base-db21284a7fb081065d26137891594bd8495b116f.zip frameworks_base-db21284a7fb081065d26137891594bd8495b116f.tar.gz frameworks_base-db21284a7fb081065d26137891594bd8495b116f.tar.bz2 |
Disable use of twilight mode for auto-brightness.
This adjustment is still experimental.
Bug: 7165399
Change-Id: I3fcf361933995d02a5329eeaec80155b39371ba3
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/os/PowerManager.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/os/PowerManager.java b/core/java/android/os/PowerManager.java index 58372f4..ae50ddb 100644 --- a/core/java/android/os/PowerManager.java +++ b/core/java/android/os/PowerManager.java @@ -340,6 +340,15 @@ public final class PowerManager { } /** + * Returns true if the twilight service should be used to adjust screen brightness + * policy. This setting is experimental and disabled by default. + * @hide + */ + public static boolean useTwilightAdjustmentFeature() { + return SystemProperties.getBoolean("persist.power.usetwilightadj", false); + } + + /** * Creates a new wake lock with the specified level and flags. * <p> * The {@code levelAndFlags} parameter specifies a wake lock level and optional flags |