diff options
author | Jeff Brown <jeffbrown@google.com> | 2014-08-23 00:40:55 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-23 00:40:55 +0000 |
commit | 18234b4811de03a4297191eaf2f7f5abf9f8243c (patch) | |
tree | e0e9ce144dd2218d23a91e21eea644c869063b68 | |
parent | 1fb7dc0c00a72f3ded151ea41ec22b9caa3be42e (diff) | |
parent | 7be29436caa92208a330b887e024022f553cc678 (diff) | |
download | frameworks_base-18234b4811de03a4297191eaf2f7f5abf9f8243c.zip frameworks_base-18234b4811de03a4297191eaf2f7f5abf9f8243c.tar.gz frameworks_base-18234b4811de03a4297191eaf2f7f5abf9f8243c.tar.bz2 |
am aa5912c8: am 84ec443d: Merge "Unhide the proximity sensor wakelock." into lmp-dev
* commit 'aa5912c8146810601fbc5549df91fcb60afc6412':
Unhide the proximity sensor wakelock.
-rw-r--r-- | api/current.txt | 4 | ||||
-rw-r--r-- | core/java/android/os/PowerManager.java | 15 |
2 files changed, 8 insertions, 11 deletions
diff --git a/api/current.txt b/api/current.txt index dfa95a0..62f3adb 100644 --- a/api/current.txt +++ b/api/current.txt @@ -22469,6 +22469,7 @@ package android.os { method public boolean isInteractive(); method public boolean isPowerSaveMode(); method public deprecated boolean isScreenOn(); + method public boolean isWakeLockLevelSupported(int); method public android.os.PowerManager.WakeLock newWakeLock(int, java.lang.String); method public void reboot(java.lang.String); method public void userActivity(long, boolean); @@ -22478,8 +22479,10 @@ package android.os { field public static final deprecated int FULL_WAKE_LOCK = 26; // 0x1a field public static final int ON_AFTER_RELEASE = 536870912; // 0x20000000 field public static final int PARTIAL_WAKE_LOCK = 1; // 0x1 + field public static final int PROXIMITY_SCREEN_OFF_WAKE_LOCK = 32; // 0x20 field public static final deprecated int SCREEN_BRIGHT_WAKE_LOCK = 10; // 0xa field public static final deprecated int SCREEN_DIM_WAKE_LOCK = 6; // 0x6 + field public static final int WAIT_FOR_PROXIMITY_NEGATIVE = 1; // 0x1 } public final class PowerManager.WakeLock { @@ -22487,6 +22490,7 @@ package android.os { method public void acquire(long); method public boolean isHeld(); method public void release(); + method public void release(int); method public void setReferenceCounted(boolean); method public void setWorkSource(android.os.WorkSource); } diff --git a/core/java/android/os/PowerManager.java b/core/java/android/os/PowerManager.java index 75f8279..b167549 100644 --- a/core/java/android/os/PowerManager.java +++ b/core/java/android/os/PowerManager.java @@ -186,8 +186,6 @@ public final class PowerManager { * </p><p> * Cannot be used with {@link #ACQUIRE_CAUSES_WAKEUP}. * </p> - * - * {@hide} */ public static final int PROXIMITY_SCREEN_OFF_WAKE_LOCK = 0x00000020; @@ -243,11 +241,9 @@ public final class PowerManager { public static final int UNIMPORTANT_FOR_LOGGING = 0x40000000; /** - * Flag for {@link WakeLock#release release(int)} to defer releasing a - * {@link #PROXIMITY_SCREEN_OFF_WAKE_LOCK} wake lock until the proximity sensor returns - * a negative value. - * - * {@hide} + * Flag for {@link WakeLock#release WakeLock.release(int)}: Defer releasing a + * {@link #PROXIMITY_SCREEN_OFF_WAKE_LOCK} wake lock until the proximity sensor + * indicates that an object is not in close proximity. */ public static final int WAIT_FOR_PROXIMITY_NEGATIVE = 1; @@ -456,6 +452,7 @@ public final class PowerManager { * @see #FULL_WAKE_LOCK * @see #SCREEN_DIM_WAKE_LOCK * @see #SCREEN_BRIGHT_WAKE_LOCK + * @see #PROXIMITY_SCREEN_OFF_WAKE_LOCK * @see #ACQUIRE_CAUSES_WAKEUP * @see #ON_AFTER_RELEASE */ @@ -619,8 +616,6 @@ public final class PowerManager { * * @param level The wake lock level to check. * @return True if the specified wake lock level is supported. - * - * {@hide} */ public boolean isWakeLockLevelSupported(int level) { try { @@ -893,8 +888,6 @@ public final class PowerManager { * * @param flags Combination of flag values to modify the release behavior. * Currently only {@link #WAIT_FOR_PROXIMITY_NEGATIVE} is supported. - * - * {@hide} */ public void release(int flags) { synchronized (mToken) { |