/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | AWakeLock.cpp | 32 mPowerManager(NULL), in AWakeLock() 38 if (mPowerManager != NULL) { in ~AWakeLock() 39 sp<IBinder> binder = IInterface::asBinder(mPowerManager); in ~AWakeLock() 48 if (mPowerManager == NULL) { in acquire() 55 mPowerManager = interface_cast<IPowerManager>(binder); in acquire() 59 if (mPowerManager != NULL) { in acquire() 62 status_t status = mPowerManager->acquireWakeLock( in acquire() 89 if (mPowerManager != NULL) { in release() 91 mPowerManager->releaseWakeLock(mWakeLockToken, 0 /* flags */); in release() 100 mPowerManager.clear(); in clearPowerManager()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 46 private PowerManager mPowerManager; field in BatteryControllerTest 53 mPowerManager); in setUp() 62 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_true() 63 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in testIndependentAODBatterySaver_true() 77 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_false() 78 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in testIndependentAODBatterySaver_false()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderProxyTest.java | 46 private PowerManager mPowerManager; field in BinderProxyTest 54 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp() 63 mPowerManager.isInteractive(); in testNoListener() 74 mPowerManager.isInteractive(); in testListener() 93 mPowerManager.isInteractive(); in testSessionPropagated()
|
/frameworks/opt/net/voip/src/java/com/android/server/sip/ |
D | SipWakeLock.java | 27 private PowerManager mPowerManager; field in SipWakeLock 33 mPowerManager = powerManager; in SipWakeLock() 44 mTimerWakeLock = mPowerManager.newWakeLock( in acquire() 54 mWakeLock = mPowerManager.newWakeLock( in acquire()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeParametersTest.java | 71 private PowerManager mPowerManager; field in DozeParametersTest.TestableDozeParameters 75 mPowerManager = mock(PowerManager.class); in TestableDozeParameters() 80 return mPowerManager; in getPowerManager()
|
D | StatusBarTest.java | 180 private PowerManager mPowerManager; field in StatusBarTest 208 mPowerManager = new PowerManager(mContext, powerManagerService, in setup() 212 new TestableNotificationInterruptionStateProvider(mContext, mPowerManager, in setup() 261 mPowerManager, mNotificationPanelView, mBarService, mNotificationListener, in setup() 411 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_nonSuppressedGroupSummary() 432 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_suppressedGroupSummary() 453 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_suppressedHeadsUp() 471 when(mPowerManager.isScreenOn()).thenReturn(true); in testShouldHeadsUp_noSuppressedHeadsUp() 796 mPowerManager = pm; in TestableStatusBar()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/recoverysystem/ |
D | RecoverySystemServiceTestable.java | 27 private final PowerManager mPowerManager; field in RecoverySystemServiceTestable.MockInjector 36 mPowerManager = powerManager; in MockInjector() 43 return mPowerManager; in getPowerManager()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 54 @Mock private IPowerManager mPowerManager; field in CachedDeviceStateServiceTest 61 PowerManager powerManager = new PowerManager(context, mPowerManager, null); in setUp() 77 when(mPowerManager.isInteractive()).thenReturn(true); in setUp() 92 when(mPowerManager.isInteractive()).thenReturn(true); // Screen on. in correctlyReportsScreenInteractive()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeParameters.java | 51 private final PowerManager mPowerManager; field in DozeParameters 72 mPowerManager = mContext.getSystemService(PowerManager.class); in DozeParameters() 73 mPowerManager.setDozeAfterScreenOff(!mControlScreenOffAnimation); in DozeParameters() 194 return mPowerManager; in getPowerManager()
|
D | BiometricUnlockController.java | 125 private final PowerManager mPowerManager; field in BiometricUnlockController 174 mPowerManager = context.getSystemService(PowerManager.class); in BiometricUnlockController() 230 mWakeLock = mPowerManager.newWakeLock( in onBiometricAcquired() 296 mPowerManager.wakeUp(SystemClock.uptimeMillis(), PowerManager.WAKE_REASON_GESTURE, in startWakeAndUnlock()
|
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/ |
D | DozeTestDream.java | 56 private PowerManager mPowerManager; field in DozeTestDream 75 mPowerManager = (PowerManager)getSystemService(Context.POWER_SERVICE); in onCreate() 76 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in onCreate()
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | DeviceIdleJobsController.java | 68 private final PowerManager mPowerManager; field in DeviceIdleJobsController 85 updateIdleMode(mPowerManager != null && (mPowerManager.isDeviceIdleMode() 86 || mPowerManager.isLightDeviceIdleMode())); 124 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in DeviceIdleJobsController()
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 75 private final PowerManager mPowerManager; field in DreamManagerService 98 mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in DreamManagerService() 100 mDozeWakeLock = mPowerManager.newWakeLock(PowerManager.DOZE_WAKE_LOCK, TAG); in DreamManagerService() 170 mPowerManager.userActivity(time, true /*noChangeLights*/); in requestDreamInternal() 171 mPowerManager.nap(time); in requestDreamInternal() 179 mPowerManager.userActivity(time, false /*noChangeLights*/); in requestAwakenInternal() 380 PowerManager.WakeLock wakeLock = mPowerManager in startDreamLocked() 684 mPowerManager.wakeUp(SystemClock.uptimeMillis(),
|
/frameworks/base/services/tests/servicestests/src/com/android/server/attention/ |
D | AttentionManagerServiceTest.java | 71 PowerManager mPowerManager; in setUp() local 73 mPowerManager = new PowerManager(mContext, mMockIPowerManager, null); in setUp() 79 mPowerManager, in setUp()
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | PowerTest.java | 31 IPowerManager mPowerManager; field in PowerTest 45 mPowerManager = IPowerManager.Stub.asInterface(ServiceManager.getService("power")); in tests()
|
/frameworks/base/services/core/java/com/android/server/ |
D | DockObserver.java | 56 private final PowerManager mPowerManager; field in DockObserver 75 mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); in DockObserver() 76 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in DockObserver() 139 mPowerManager.wakeUp(SystemClock.uptimeMillis(), in setDockStateLocked()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiModeManagerServiceTest.java | 72 PowerManager mPowerManager; field in UiModeManagerServiceTest 78 mTwilightManager, mPowerManager, true); in setUp() 80 when(mPowerManager.isInteractive()).thenReturn(true); in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | EmergencyButton.java | 84 private PowerManager mPowerManager; field in EmergencyButton 122 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in onFinishInflate() 179 mPowerManager.userActivity(SystemClock.uptimeMillis(), true); in takeEmergencyCallAction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerImpl.java | 63 private final PowerManager mPowerManager; field in BatteryControllerImpl 88 mPowerManager = powerManager; in BatteryControllerImpl() 270 setPowerSave(mPowerManager.isPowerSaveMode()); in updatePowerSave() 278 PowerSaveState state = mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD); in setPowerSave()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | KeyEventDispatcher.java | 71 private final PowerManager mPowerManager; field in KeyEventDispatcher 97 mPowerManager = powerManager; in KeyEventDispatcher() 173 mPowerManager.userActivity(pendingEvent.event.getEventTime(), in setOnKeyEventResult()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationInterruptionStateProviderTest.java | 74 PowerManager mPowerManager; field in NotificationInterruptionStateProviderTest 100 mPowerManager, in setup() 143 when(mPowerManager.isScreenOn()).thenReturn(true); in ensureStateForHeadsUpWhenAwake() 412 when(mPowerManager.isScreenOn()).thenReturn(false); in testShouldHeadsUp_false_deviceNotInUse() 416 when(mPowerManager.isDeviceIdleMode()).thenReturn(true); in testShouldHeadsUp_false_deviceNotInUse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
D | PowerUI.java | 74 private PowerManager mPowerManager; field in PowerUI 102 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in start() 103 mScreenOffTime = mPowerManager.isScreenOn() ? -1 : SystemClock.elapsedRealtime(); in start() 222 if (mPowerManager.isPowerSaveMode()) { in onReceive() 297 final boolean isPowerSaverMode = mPowerManager.isPowerSaveMode(); in maybeShowBatteryWarningV2() 560 if (mPowerManager.getLastShutdownReason() in showWarnOnThermalShutdown()
|
/frameworks/base/services/core/java/com/android/server/power/batterysaver/ |
D | BatterySaverController.java | 69 private PowerManager mPowerManager; field in BatterySaverController 238 if (mPowerManager == null) { in getPowerManager() 239 mPowerManager = in getPowerManager() 242 return mPowerManager; in getPowerManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | PulseExpansionHandler.kt | 67 private val mPowerManager: PowerManager? in <lambda>() constant 122 mPowerManager = context.getSystemService(PowerManager::class.java) in <lambda>() 219 mPowerManager!!.wakeUp(SystemClock.uptimeMillis(), WAKE_REASON_GESTURE, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | NotificationInterruptionStateProvider.java | 66 private final PowerManager mPowerManager; field in NotificationInterruptionStateProvider 102 mPowerManager = powerManager; in NotificationInterruptionStateProvider() 266 boolean inUse = mPowerManager.isScreenOn() && !isDreaming; in shouldHeadsUpWhenAwake()
|