OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:WakeLock
(Results
1 - 25
of
152
) sorted by null
1
2
3
4
5
6
7
/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/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
WakeUpController.java
21
import android.os.PowerManager.
WakeLock
;
32
private
WakeLock
mWakeLock = null;
46
public
WakeLock
getWakeLock() {
51
Log.i(LOG_TAG, "Create
wakelock
: 0x" + Integer.toHexString(mWakeLock.hashCode()));
/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
27
private static PowerManager.
WakeLock
sCpuWakeLock;
29
public static PowerManager.
WakeLock
createPartialWakeLock(Context context) {
AlarmInitReceiver.java
23
import android.os.PowerManager.
WakeLock
;
53
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/hardware/src/android/hardware/cts/helpers/sensoroperations/
WakeLockOperation.java
22
import android.os.PowerManager.
WakeLock
;
65
WakeLock
wakeLock
= pm.newWakeLock(mWakeLockFlags, TAG);
66
wakeLock
.acquire();
70
wakeLock
.release();
AlarmOperation.java
27
import android.os.PowerManager.
WakeLock
;
53
private
WakeLock
mWakeLock = null;
/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;
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
WakeLockHoldingProgressListener.java
28
private PowerManager.
WakeLock
mWakeLock;
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
WakeUpCall.java
28
import android.os.PowerManager.
WakeLock
;
108
WakeLock
wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK |
/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/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarReceiver.java
40
private PowerManager.
WakeLock
mWakeLock;
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
CalendarProvider2ForTesting.java
83
PowerManager.
WakeLock
getScheduleNextAlarmWakeLock() {
/packages/services/Telecomm/src/com/android/server/telecom/
InCallWakeLockController.java
33
private final PowerManager.
WakeLock
mFullWakeLock;
ProximitySensorManager.java
28
private final PowerManager.
WakeLock
mProximityWakeLock;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
SensorTestScreenManipulator.java
65
private final PowerManager.
WakeLock
mWakeUpScreenWakeLock;
66
private final PowerManager.
WakeLock
mKeepScreenOnWakeLock;
/packages/apps/Email/provider_src/com/android/email/
EmailConnectivityManager.java
29
import android.os.PowerManager.
WakeLock
;
60
private final
WakeLock
mWakeLock;
/cts/tests/tests/mediastress/src/android/mediastress/cts/
MediaFrameworkTest.java
36
private PowerManager.
WakeLock
mWakeLock = null;
58
Log.v(TAG, "onResume, acquire
wakelock
");
65
Log.v(TAG, "onPause, release
wakelock
");
/frameworks/base/core/java/android/os/
PowerManager.java
29
* Do not acquire {@link
WakeLock
}s unless you really need them, use the minimum levels
36
* This will create a {@link PowerManager.
WakeLock
} object. You can then use methods
42
* PowerManager.
WakeLock
wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag");
86
* will force the screen and/or keyboard to turn on immediately, when the
WakeLock
is
92
* <td>If this flag is set, the user activity timer will be reset when the
WakeLock
is
98
* Any application using a
WakeLock
must request the {@code android.permission.WAKE_LOCK}
261
* Flag for {@link
WakeLock
#release
WakeLock
.release(int)}: Defer releasing a
461
* Call {@link
WakeLock
#acquire() acquire()} on the object to acquire the
462
* wake lock, and {@link
WakeLock
#release release()} when you are done
[
all
...]
/frameworks/base/services/core/java/com/android/server/
ConsumerIrService.java
37
private final PowerManager.
WakeLock
mWakeLock;
Completed in 1228 milliseconds
1
2
3
4
5
6
7