/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowPowerManager.java | 17 public PowerManager.WakeLock newWakeLock(int flags, String tag) { 18 return Robolectric.newInstanceOf(PowerManager.WakeLock.class); 30 @Implements(PowerManager.WakeLock.class) 54 if (--refCount < 0) throw new RuntimeException("WakeLock under-locked");
|
/frameworks/support/v4/java/android/support/v4/content/ |
WakefulBroadcastReceiver.java | 62 private static final SparseArray<PowerManager.WakeLock> mActiveWakeLocks 63 = new SparseArray<PowerManager.WakeLock>(); 95 PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 118 PowerManager.WakeLock wl = mActiveWakeLocks.get(id);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmAlertWakeLock.java | 23 * Hold a wakelock that can be acquired in the AlarmReceiver and 28 private static PowerManager.WakeLock sCpuWakeLock; 30 static PowerManager.WakeLock createPartialWakeLock(Context context) {
|
AlarmInitReceiver.java | 23 import android.os.PowerManager.WakeLock; 43 final WakeLock wl = AlarmAlertWakeLock.createPartialWakeLock(context);
|
AlarmReceiver.java | 26 import android.os.PowerManager.WakeLock; 43 final WakeLock wl = AlarmAlertWakeLock.createPartialWakeLock(context);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
PowerManagerTest.java | 42 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); 58 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); 74 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG");
|
/frameworks/base/core/tests/coretests/src/android/os/ |
PowerManagerTest.java | 53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); 83 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); 87 fail("Bad WakeLock flag was not caught."); 91 * Apply a few tests to a wakelock to make sure it's healthy. 93 * @param wl The wakelock to be tested. 95 private void doTestWakeLock(PowerManager.WakeLock wl) {
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertWakeLock.java | 24 * Hold a wakelock that can be acquired in the CellBroadcastAlertService and 30 private static PowerManager.WakeLock sCpuWakeLock;
|
/cts/tests/tests/os/src/android/os/cts/ |
PowerManagerTest.java | 22 import android.os.PowerManager.WakeLock; 39 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG);
|
PowerManager_WakeLockTest.java | 21 import android.os.PowerManager.WakeLock; 31 * 3 Sets whether this WakeLock is ref counted 35 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG);
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
SipWakeLock.java | 28 private PowerManager.WakeLock mWakeLock; 29 private PowerManager.WakeLock mTimerWakeLock;
|
/frameworks/base/core/java/android/os/ |
PowerManager.java | 27 * Do not acquire {@link WakeLock}s unless you really need them, use the minimum levels 34 * This will create a {@link PowerManager.WakeLock} object. You can then use methods 40 * PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag"); 84 * will force the screen and/or keyboard to turn on immediately, when the WakeLock is 90 * <td>If this flag is set, the user activity timer will be reset when the WakeLock is 96 * Any application using a WakeLock must request the {@code android.permission.WAKE_LOCK} 226 * Flag for {@link WakeLock#release release(int)} to defer releasing a 370 * Call {@link WakeLock#acquire() acquire()} on the object to acquire the 371 * wake lock, and {@link WakeLock#release release()} when you are done. 376 * PowerManager.WakeLock wl = pm.newWakeLock [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
WakeLockHoldingProgressListener.java | 28 private PowerManager.WakeLock mWakeLock;
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoWakeLockPermissionTest.java | 34 private PowerManager.WakeLock mWakeLock; 81 * Verify that PowerManager.WakeLock.acquire() requires permissions. 89 fail("WakeLock.acquire() did not throw SecurityException as expected"); 96 * Verify that PowerManager.WakeLock.acquire(long) requires permissions. 105 fail("WakeLock.acquire(long) did not throw SecurityException as expected");
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
SmsReceiver.java | 32 static PowerManager.WakeLock mStartingService;
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarReceiver.java | 41 private PowerManager.WakeLock mWakeLock;
|
CalendarAlarmManager.java | 32 import android.os.PowerManager.WakeLock; 122 private WakeLock mScheduleNextAlarmWakeLock; 167 PowerManager.WakeLock getScheduleNextAlarmWakeLock() {
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarProvider2ForTesting.java | 73 PowerManager.WakeLock getScheduleNextAlarmWakeLock() {
|
/packages/apps/Email/src/com/android/email/ |
EmailConnectivityManager.java | 29 import android.os.PowerManager.WakeLock; 59 private final WakeLock mWakeLock;
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
MediaFrameworkTest.java | 38 private PowerManager.WakeLock mWakeLock = null; 60 Log.v(TAG, "onResume, acquire wakelock"); 67 Log.v(TAG, "onPause, release wakelock");
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
PowerTest.java | 36 PowerManager.WakeLock mProx;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ |
ImportTask.java | 46 private PowerManager.WakeLock mWakeLock;
|
/frameworks/base/services/java/com/android/server/power/ |
PowerManagerService.java | 202 private final ArrayList<WakeLock> mWakeLocks = new ArrayList<WakeLock>(); 608 WakeLock wakeLock; 611 wakeLock = mWakeLocks.get(index); 612 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid)) { 614 notifyWakeLockReleasedLocked(wakeLock); 615 wakeLock.updateProperties(flags, tag, ws, uid, pid); 616 notifyWakeLockAcquiredLocked(wakeLock); 619 wakeLock = new WakeLock(lock, flags, tag, ws, uid, pid) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
SmsStorageMonitor.java | 53 private PowerManager.WakeLock mWakeLock;
|
/frameworks/base/services/java/com/android/server/ |
IdleMaintenanceService.java | 29 import android.os.PowerManager.WakeLock; 92 private final WakeLock mWakeLock;
|