OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:mWakeLock
(Results
1 - 25
of
69
) sorted by null
1
2
3
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
WakeLockHoldingProgressListener.java
28
private PowerManager.WakeLock
mWakeLock
;
38
mWakeLock
= pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, label);
43
mWakeLock
.release();
48
mWakeLock
.acquire();
/frameworks/opt/net/voip/src/java/com/android/server/sip/
SipWakeLock.java
28
private PowerManager.WakeLock
mWakeLock
;
53
if (
mWakeLock
== null) {
54
mWakeLock
= mPowerManager.newWakeLock(
57
if (!
mWakeLock
.isHeld())
mWakeLock
.acquire();
63
if ((
mWakeLock
!= null) && mHolders.isEmpty()
64
&&
mWakeLock
.isHeld()) {
65
mWakeLock
.release();
/cts/tests/tests/mediastress/src/android/mediastress/cts/
MediaFrameworkTest.java
38
private PowerManager.WakeLock
mWakeLock
= null;
54
mWakeLock
= pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest");
55
mWakeLock
.setReferenceCounted(false);
62
mWakeLock
.acquire();
68
mWakeLock
.release();
/cts/tests/tests/permission/src/android/permission/cts/
NoWakeLockPermissionTest.java
34
private PowerManager.WakeLock
mWakeLock
;
40
mWakeLock
= mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag");
88
mWakeLock
.acquire();
104
mWakeLock
.acquire(1);
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarReceiver.java
41
private PowerManager.WakeLock
mWakeLock
;
45
if (
mWakeLock
== null) {
47
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "CalendarReceiver_Provider");
48
mWakeLock
.setReferenceCounted(true);
50
mWakeLock
.acquire();
65
mWakeLock
.release();
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
WakeUpController.java
32
private WakeLock
mWakeLock
= null;
47
if (
mWakeLock
== null) {
50
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "testing-alarmservice");
51
Log.i(LOG_TAG, "Create wakelock: 0x" + Integer.toHexString(
mWakeLock
.hashCode()));
53
return
mWakeLock
;
/packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/
IntegrationTestUtils.java
51
@GuardedBy("mLock") private PowerManager.WakeLock
mWakeLock
;
112
Preconditions.checkState(
mWakeLock
== null, "
mWakeLock
was already held");
113
mWakeLock
= ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
116
mWakeLock
.acquire();
130
if (
mWakeLock
!= null) {
131
mWakeLock
.release();
132
mWakeLock
= null;
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/
AlarmOperation.java
53
private WakeLock
mWakeLock
= null;
123
if (mCompleted == true ||
mWakeLock
!= null) {
127
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG);
135
if (
mWakeLock
!= null) {
136
mWakeLock
.release();
138
mWakeLock
= null;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
SensorCtsTestActivity.java
57
private PowerManager.WakeLock
mWakeLock
;
71
mWakeLock
= powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorCtsTests");
82
mWakeLock
.acquire();
95
if (
mWakeLock
.isHeld()) {
96
mWakeLock
.release();
/frameworks/base/core/java/com/android/internal/os/storage/
ExternalStorageFormatter.java
47
private PowerManager.WakeLock
mWakeLock
;
74
mWakeLock
= ((PowerManager)getSystemService(Context.POWER_SERVICE))
76
mWakeLock
.acquire();
114
mWakeLock
.release();
/frameworks/base/media/java/android/media/
AsyncPlayer.java
131
private PowerManager.WakeLock
mWakeLock
;
218
if (
mWakeLock
!= null || mThread != null) {
221
throw new RuntimeException("assertion failed
mWakeLock
=" +
mWakeLock
225
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
229
if (
mWakeLock
!= null) {
230
mWakeLock
.acquire();
235
if (
mWakeLock
!= null) {
236
mWakeLock
.release();
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
MediaFrameworkTest.java
69
private PowerManager.WakeLock
mWakeLock
= null;
97
mWakeLock
= pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest");
98
mWakeLock
.acquire();
104
mWakeLock
.release();
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
WakeLockStateMachine.java
40
private final PowerManager.WakeLock
mWakeLock
;
71
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, debugTag);
72
mWakeLock
.acquire(); // wake lock released after we enter idle state
94
while (
mWakeLock
.isHeld()) {
95
mWakeLock
.release();
146
mWakeLock
.acquire();
161
mWakeLock
.release();
163
if (
mWakeLock
.isHeld()) {
165
log("
mWakeLock
is still held after release");
167
log("
mWakeLock
released")
[
all
...]
/packages/apps/Email/src/com/android/email/
EmailConnectivityManager.java
61
private final WakeLock
mWakeLock
;
77
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name);
177
mWakeLock
.acquire();
199
mWakeLock
.release();
206
mWakeLock
.acquire();
212
if (
mWakeLock
.isHeld()) {
213
mWakeLock
.release();
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
ImportTask.java
56
private PowerManager.WakeLock
mWakeLock
;
64
mWakeLock
= pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, WAKELOCK_LABEL);
73
mWakeLock
.acquire();
102
mWakeLock
.release();
/packages/services/Telephony/src/com/android/phone/
CallerInfoCache.java
90
private PowerManager.WakeLock
mWakeLock
;
100
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG);
101
mWakeLock
.acquire();
127
if (
mWakeLock
!= null &&
mWakeLock
.isHeld()) {
128
mWakeLock
.release();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
PassFailButtons.java
99
private WakeLock
mWakeLock
;
105
mWakeLock
= ((PowerManager) getSystemService(Context.POWER_SERVICE))
107
mWakeLock
.acquire();
115
mWakeLock
.release();
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
NotificationPlayer.java
253
private PowerManager.WakeLock
mWakeLock
;
371
if (
mWakeLock
!= null || mThread != null) {
374
throw new RuntimeException("assertion failed
mWakeLock
=" +
mWakeLock
378
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
382
if (
mWakeLock
!= null) {
383
mWakeLock
.acquire();
388
if (
mWakeLock
!= null) {
389
mWakeLock
.release();
/frameworks/base/services/core/java/com/android/server/location/
GeofenceManager.java
73
private final PowerManager.WakeLock
mWakeLock
;
114
mWakeLock
= powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
368
mWakeLock
.acquire();
374
mWakeLock
.release();
376
// ...otherwise,
mWakeLock
.release() gets called by onSendFinished()
410
mWakeLock
.release();
/packages/apps/Camera2/src/com/android/camera/processing/
ProcessingService.java
89
private WakeLock
mWakeLock
;
109
mWakeLock
= powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG.toString());
110
mWakeLock
.acquire();
127
if (
mWakeLock
.isHeld()) {
128
mWakeLock
.release();
/packages/apps/Mms/src/com/android/mms/transaction/
NotificationPlayer.java
237
private PowerManager.WakeLock
mWakeLock
;
329
if (
mWakeLock
!= null || mThread != null) {
332
throw new RuntimeException("assertion failed
mWakeLock
=" +
mWakeLock
336
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
340
if (
mWakeLock
!= null) {
341
mWakeLock
.acquire();
346
if (
mWakeLock
!= null) {
347
mWakeLock
.release();
/packages/apps/Settings/src/com/android/settings/wifi/
WriteWifiConfigToNfcDialog.java
61
private final PowerManager.WakeLock
mWakeLock
;
81
mWakeLock
= ((PowerManager) context.getSystemService(Context.POWER_SERVICE))
120
mWakeLock
.acquire();
207
if (
mWakeLock
.isHeld()) {
208
mWakeLock
.release();
/packages/providers/MediaProvider/src/com/android/providers/media/
MediaScannerService.java
55
private PowerManager.WakeLock
mWakeLock
;
90
mWakeLock
.acquire();
114
mWakeLock
.release();
122
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DozeService.java
69
private PowerManager.WakeLock
mWakeLock
;
92
pw.print("
mWakeLock
: held="); pw.println(
mWakeLock
.isHeld());
125
mWakeLock
= mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
126
mWakeLock
.setReferenceCounted(true);
203
mWakeLock
.acquire();
214
mWakeLock
.release();
233
mWakeLock
.release(); // needs to be unconditional to balance acquire
472
mWakeLock
.acquire();
503
mWakeLock
.release()
[
all
...]
/frameworks/base/services/core/java/com/android/server/
ConsumerIrService.java
37
private final PowerManager.WakeLock
mWakeLock
;
45
mWakeLock
= pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
46
mWakeLock
.setReferenceCounted(true);
Completed in 677 milliseconds
1
2
3