OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mPowerManager
(Results
1 - 25
of
64
) sorted by null
1
2
3
/cts/tests/tests/permission/src/android/permission/cts/
DevicePowerPermissionTest.java
28
PowerManager
mPowerManager
;
33
mPowerManager
= (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
44
mPowerManager
.goToSleep(0);
NoWakeLockPermissionTest.java
32
private PowerManager
mPowerManager
;
39
mPowerManager
= (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
40
mWakeLock =
mPowerManager
.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag");
/frameworks/av/media/libstagefright/foundation/
AWakeLock.cpp
32
mPowerManager
(NULL),
38
if (
mPowerManager
!= NULL) {
39
sp<IBinder> binder = IInterface::asBinder(
mPowerManager
);
48
if (
mPowerManager
== NULL) {
55
mPowerManager
= interface_cast<IPowerManager>(binder);
59
if (
mPowerManager
!= NULL) {
62
status_t status =
mPowerManager
->acquireWakeLock(
89
if (
mPowerManager
!= NULL) {
91
mPowerManager
->releaseWakeLock(mWakeLockToken, 0 /* flags */);
100
mPowerManager
.clear()
[
all
...]
/packages/apps/Nfc/src/com/android/nfc/
ScreenStateHelper.java
17
private final PowerManager
mPowerManager
;
23
mPowerManager
= (PowerManager) context.getSystemService(Context.POWER_SERVICE);
28
if (!
mPowerManager
.isScreenOn()) {
/frameworks/native/services/surfaceflinger/DisplayHardware/
PowerHAL.cpp
34
if (
mPowerManager
== NULL) {
40
mPowerManager
= interface_cast<IPowerManager>(bs);
42
status_t status =
mPowerManager
->powerHint(POWER_HINT_VSYNC, enabled ? 1 : 0);
44
mPowerManager
= NULL;
PowerHAL.h
36
sp<IPowerManager>
mPowerManager
;
/frameworks/opt/net/voip/src/java/com/android/server/sip/
SipWakeLock.java
27
private PowerManager
mPowerManager
;
33
mPowerManager
= powerManager;
44
mTimerWakeLock =
mPowerManager
.newWakeLock(
54
mWakeLock =
mPowerManager
.newWakeLock(
/platform_testing/tests/androidbvt/src/com/android/androidbvt/
SysPowerTests.java
44
private PowerManager
mPowerManager
;
54
mPowerManager
= (PowerManager) mContext.getSystemService(mContext.POWER_SERVICE);
70
assertFalse("Screen is still on",
mPowerManager
.isInteractive());
72
assertFalse("Screen is still on",
mPowerManager
.isInteractive());
/packages/apps/Settings/src/com/android/settings/fuelgauge/
BatterySaverPreference.java
31
private PowerManager
mPowerManager
;
45
mPowerManager
= (PowerManager) getContext().getSystemService(Context.POWER_SERVICE);
61
final boolean mode =
mPowerManager
.isPowerSaveMode();
BatterySaverSettings.java
64
private PowerManager
mPowerManager
;
101
mPowerManager
= (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
145
if (!
mPowerManager
.setPowerSaveMode(mode)) {
154
final boolean mode =
mPowerManager
.isPowerSaveMode();
/frameworks/av/include/media/stagefright/foundation/
AWakeLock.h
40
sp<IPowerManager>
mPowerManager
;
/frameworks/base/services/core/java/com/android/server/job/controllers/
DeviceIdleJobsController.java
50
private final PowerManager
mPowerManager
;
85
updateIdleMode(
mPowerManager
!= null
86
? (
mPowerManager
.isDeviceIdleMode()
87
||
mPowerManager
.isLightDeviceIdleMode())
101
mPowerManager
= (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
PowerTest.java
31
IPowerManager
mPowerManager
;
45
mPowerManager
= IPowerManager.Stub.asInterface(ServiceManager.getService("power"));
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
ProximitySensor.java
46
private final PowerManager
mPowerManager
;
62
mPowerManager
= (PowerManager) context.getSystemService(Context.POWER_SERVICE);
63
if (
mPowerManager
.isWakeLockLevelSupported(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK)) {
64
mProximityWakeLock =
mPowerManager
.newWakeLock(
160
} else if (
mPowerManager
.isScreenOn()) {
178
return !
mPowerManager
.isScreenOn();
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
EmergencyButton.java
73
private PowerManager
mPowerManager
;
107
mPowerManager
= (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
129
mPowerManager
.userActivity(SystemClock.uptimeMillis(), true);
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
DozeTestDream.java
56
private PowerManager
mPowerManager
;
75
mPowerManager
= (PowerManager)getSystemService(Context.POWER_SERVICE);
76
mWakeLock =
mPowerManager
.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/jobscheduler/
IdleConstraintTestActivity.java
71
private PowerManager
mPowerManager
;
84
PowerManager.WakeLock wl =
mPowerManager
.newWakeLock(
111
mPowerManager
= (PowerManager) getSystemService(Context.POWER_SERVICE);
177
PowerManager.WakeLock fullWakeLock =
mPowerManager
.newWakeLock(
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
PowerUI.java
48
private PowerManager
mPowerManager
;
61
mPowerManager
= (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
62
mScreenOffTime =
mPowerManager
.isScreenOn() ? -1 : SystemClock.elapsedRealtime();
186
boolean isPowerSaver =
mPowerManager
.isPowerSaveMode();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
FingerprintUnlockController.java
86
private PowerManager
mPowerManager
;
106
mPowerManager
= context.getSystemService(PowerManager.class);
147
mWakeLock =
mPowerManager
.newWakeLock(
183
mPowerManager
.wakeUp(SystemClock.uptimeMillis(), "android.policy:FINGERPRINT");
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
BatteryControllerImpl.java
46
private final PowerManager
mPowerManager
;
60
mPowerManager
= (PowerManager) context.getSystemService(Context.POWER_SERVICE);
87
mPowerManager
.setPowerSaveMode(powerSave);
167
setPowerSave(
mPowerManager
.isPowerSaveMode());
/frameworks/base/services/core/java/com/android/server/
DockObserver.java
54
private final PowerManager
mPowerManager
;
73
mPowerManager
= (PowerManager)context.getSystemService(Context.POWER_SERVICE);
74
mWakeLock =
mPowerManager
.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
137
mPowerManager
.wakeUp(SystemClock.uptimeMillis(),
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
KeyEventDispatcher.java
74
private final PowerManager
mPowerManager
;
100
mPowerManager
= powerManager;
179
mPowerManager
.userActivity(pendingEvent.event.getEventTime(),
/frameworks/base/services/core/java/com/android/server/dreams/
DreamManagerService.java
77
private final PowerManager
mPowerManager
;
97
mPowerManager
= (PowerManager)context.getSystemService(Context.POWER_SERVICE);
99
mDozeWakeLock =
mPowerManager
.newWakeLock(PowerManager.DOZE_WAKE_LOCK, TAG);
167
mPowerManager
.userActivity(time, true /*noChangeLights*/);
168
mPowerManager
.nap(time);
176
mPowerManager
.userActivity(time, false /*noChangeLights*/);
673
mPowerManager
.wakeUp(SystemClock.uptimeMillis(),
/packages/services/Car/service/src/com/android/car/
CarPowerManagementService.java
617
private final PowerManager
mPowerManager
;
626
mPowerManager
= (PowerManager) context.getSystemService(Context.POWER_SERVICE);
628
mFullWakeLock =
mPowerManager
.newWakeLock(PowerManager.FULL_WAKE_LOCK, CarLog.TAG_POWER);
629
mPartialWakeLock =
mPowerManager
.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
656
mPowerManager
.wakeUp(SystemClock.uptimeMillis());
660
mPowerManager
.goToSleep(SystemClock.uptimeMillis());
671
mPowerManager
.shutdown(false /* no confirm*/, null, true /* true */);
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
CardEmulationManager.java
80
final PowerManager
mPowerManager
;
97
mPowerManager
= (PowerManager) context.getSystemService(Context.POWER_SERVICE);
110
if (
mPowerManager
!= null) {
111
mPowerManager
.userActivity(SystemClock.uptimeMillis(), PowerManager.USER_ACTIVITY_EVENT_TOUCH, 0);
124
if (
mPowerManager
!= null) {
125
mPowerManager
.userActivity(SystemClock.uptimeMillis(), PowerManager.USER_ACTIVITY_EVENT_TOUCH, 0);
Completed in 470 milliseconds
1
2
3