/frameworks/av/media/libmediaplayerservice/nuplayer/ |
D | AWakeLock.cpp | 34 mPowerManager(NULL), in AWakeLock() 40 if (mPowerManager != NULL) { in ~AWakeLock() 41 sp<IBinder> binder = IInterface::asBinder(mPowerManager); in ~AWakeLock() 50 if (mPowerManager == NULL) { in acquire() 57 mPowerManager = interface_cast<os::IPowerManager>(binder); in acquire() 61 if (mPowerManager != NULL) { in acquire() 64 binder::Status status = mPowerManager->acquireWakeLock( in acquire() 98 if (mPowerManager != NULL) { in release() 100 mPowerManager->releaseWakeLock(mWakeLockToken, 0 /* flags */); in release() 110 mPowerManager.clear(); in clearPowerManager()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | PowerManagerWrapper.java | 28 private final PowerManager mPowerManager; field in PowerManagerWrapper 31 mPowerManager = context.getSystemService(PowerManager.class); in PowerManagerWrapper() 35 return mPowerManager.isInteractive(); in isInteractive() 39 mPowerManager.wakeUp(time, reason, details); in wakeUp() 43 mPowerManager.goToSleep(time, reason, flags); in goToSleep() 47 return new DefaultWakeLockWrapper(mPowerManager.newWakeLock(levelAndFlags, tag)); in newWakeLock()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiCecLocalDevicePlaybackTest.java | 88 private FakePowerManagerWrapper mPowerManager; field in HdmiCecLocalDevicePlaybackTest 183 mPowerManager = new FakePowerManagerWrapper(context); in setUp() 184 mHdmiControlService.setPowerManager(mPowerManager); in setUp() 203 mPowerManager.setInteractive(false); in handleRoutingChange_None() 216 assertThat(mPowerManager.isInteractive()).isFalse(); in handleRoutingChange_None() 225 mPowerManager.setInteractive(false); in handleRoutingInformation_None() 238 assertThat(mPowerManager.isInteractive()).isFalse(); in handleRoutingInformation_None() 247 mPowerManager.setInteractive(false); in handleRoutingChange_WakeUpOnly() 260 assertThat(mPowerManager.isInteractive()).isTrue(); in handleRoutingChange_WakeUpOnly() 269 mPowerManager.setInteractive(false); in handleRoutingInformation_WakeUpOnly() [all …]
|
D | ActiveSourceActionTest.java | 55 private FakePowerManagerWrapper mPowerManager; field in ActiveSourceActionTest 97 mPowerManager = new FakePowerManagerWrapper(mContextSpy); in setUp() 98 mHdmiControlService.setPowerManager(mPowerManager); in setUp()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | DefaultDeviceEffectsApplierTest.java | 76 @Mock PowerManager mPowerManager; field in DefaultDeviceEffectsApplierTest 106 mContext.addMockSystemService(PowerManager.class, mPowerManager); in setUp() 128 verify(mPowerManager).suppressAmbientDisplay(anyString(), eq(true)); in apply_appliesEffects() 145 verify(mPowerManager).suppressAmbientDisplay(anyString(), eq(true)); in apply_removesEffects() 153 verify(mPowerManager).suppressAmbientDisplay(anyString(), eq(false)); in apply_removesEffects() 167 verify(mPowerManager).suppressAmbientDisplay(anyString(), eq(true)); in apply_removesOnlyPreviouslyAppliedEffects() 172 verify(mPowerManager).suppressAmbientDisplay(anyString(), eq(false)); in apply_removesOnlyPreviouslyAppliedEffects() 191 verify(mPowerManager).suppressAmbientDisplay(anyString(), eq(true)); in apply_missingSomeServices_okay() 228 verify(mPowerManager, never()).suppressAmbientDisplay(anyString(), anyBoolean()); in apply_someEffects_onlyThoseEffectsApplied() 247 verifyZeroInteractions(mPowerManager); in apply_onlyEffectDeltaApplied() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/policy/ |
D | WindowWakeUpPolicyTests.java | 86 @Mock PowerManager mPowerManager; field in WindowWakeUpPolicyTests 102 when(mContextSpy.getSystemService(PowerManager.class)).thenReturn(mPowerManager); in setUp() 149 verify(mPowerManager).wakeUp(300, WAKE_REASON_WAKE_MOTION, "android.policy:MOTION"); in testMotionWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 174 verify(mPowerManager).wakeUp(300, WAKE_REASON_WAKE_KEY, "android.policy:KEY"); in testKeyWakeUpDelegation_wakePowerManagerIfDelegateDoesNotHandleWake() 218 verify(mPowerManager).wakeUp(200L, WAKE_REASON_WAKE_MOTION, "android.policy:MOTION"); in testTheaterModeChecksNotAppliedWhenScreenIsOn() 312 Mockito.reset(mPowerManager); in runPowerManagerUpChecks() 319 verify(mPowerManager).wakeUp(200L, expectedWakeReason, expectedWakeDetails); in runPowerManagerUpChecks() 321 Mockito.reset(mPowerManager); in runPowerManagerUpChecks() 333 Mockito.reset(mPowerManager); in runPowerManagerUpChecks() 340 verify(mPowerManager).wakeUp(300L, expectedWakeReason, expectedWakeDetails); in runPowerManagerUpChecks() [all …]
|
/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/services/core/java/com/android/server/location/injector/ |
D | SystemDeviceIdleHelper.java | 39 private PowerManager mPowerManager; field in SystemDeviceIdleHelper 51 mPowerManager = Objects.requireNonNull(mContext.getSystemService(PowerManager.class)); in onSystemReady() 97 Preconditions.checkState(mPowerManager != null); in isDeviceIdle() 98 return mPowerManager.isDeviceIdleMode(); in isDeviceIdle()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/touch/scrim/ |
D | BouncerlessScrimControllerTest.java | 48 PowerManager mPowerManager; field in BouncerlessScrimControllerTest 60 new BouncerlessScrimController(mExecutor, mPowerManager); in testWakeupOnSwipeOpen() 64 verify(mPowerManager).wakeUp(anyLong(), eq(PowerManager.WAKE_REASON_GESTURE), any()); in testWakeupOnSwipeOpen() 71 new BouncerlessScrimController(mExecutor, mPowerManager); in testExpansionPropagation()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/ |
D | NotificationInterruptStateProviderImplTest.java | 105 PowerManager mPowerManager; field in NotificationInterruptStateProviderImplTest 153 mPowerManager, in setup() 183 when(mPowerManager.isScreenOn()).thenReturn(true); in ensureStateForHeadsUpWhenAwake() 411 when(mPowerManager.isScreenOn()).thenReturn(false); in testShouldNotHeadsUp_deviceNotInUse() 415 when(mPowerManager.isDeviceIdleMode()).thenReturn(true); in testShouldNotHeadsUp_deviceNotInUse() 569 when(mPowerManager.isInteractive()).thenReturn(true); in testShouldNotFullScreen_notPendingIntent() 588 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldNotFullScreen_suppressedOnlyByDND() 607 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldNotFullScreen_suppressedByDNDAndOther() 623 when(mPowerManager.isInteractive()).thenReturn(true); in testShouldNotFullScreen_notHighImportance() 639 when(mPowerManager.isInteractive()).thenReturn(false); in testShouldNotFullScreen_isGroupAlertSilenced() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderProxyTest.java | 65 private PowerManager mPowerManager; field in BinderProxyTest 73 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp() 83 mPowerManager.isInteractive(); in testNoListener() 95 mPowerManager.isInteractive(); in testListener() 115 mPowerManager.isInteractive(); in testSessionPropagated()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | EmergencyButtonController.java | 59 private final PowerManager mPowerManager; field in EmergencyButtonController 106 mPowerManager = powerManager; in EmergencyButtonController() 168 if (mPowerManager != null) { in takeEmergencyCallAction() 169 mPowerManager.userActivity(SystemClock.uptimeMillis(), true); in takeEmergencyCallAction() 214 private final PowerManager mPowerManager; field in EmergencyButtonController.Factory 240 mPowerManager = powerManager; in Factory() 254 mKeyguardUpdateMonitor, mPowerManager, mActivityTaskManager, mShadeController, in create()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ambient/touch/scrim/ |
D | BouncerlessScrimController.java | 58 private final PowerManager mPowerManager; field in BouncerlessScrimController 77 mPowerManager = powerManager; in BouncerlessScrimController() 84 mPowerManager.wakeUp(SystemClock.uptimeMillis(), PowerManager.WAKE_REASON_GESTURE, in expand()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | DefaultDeviceEffectsApplier.java | 53 private final PowerManager mPowerManager; field in DefaultDeviceEffectsApplier 67 mPowerManager = context.getSystemService(PowerManager.class); in DefaultDeviceEffectsApplier() 80 mPowerManager.suppressAmbientDisplay(SUPPRESS_AMBIENT_DISPLAY_TOKEN, in apply() 132 || !mPowerManager.isInteractive()) { in updateOrScheduleNightMode()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | BatteryControllerTest.java | 72 @Mock private PowerManager mPowerManager; field in BatteryControllerTest 92 mPowerManager, in setUp() 119 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_true() 120 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in testIndependentAODBatterySaver_true() 134 when(mPowerManager.getPowerSaveState(PowerManager.ServiceType.AOD)).thenReturn(state); in testIndependentAODBatterySaver_false() 135 when(mPowerManager.isPowerSaveMode()).thenReturn(true); in testIndependentAODBatterySaver_false()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
D | FaceDownDetectorTest.java | 64 @Mock private PowerManager mPowerManager; field in FaceDownDetectorTest 74 sContext.addMockSystemService(PowerManager.class, mPowerManager); in setup() 75 doReturn(true).when(mPowerManager).isInteractive(); in setup() 141 doReturn(false).when(mPowerManager).isInteractive(); in notInteractive_doesNotTriggerFaceDown() 165 doReturn(false).when(mPowerManager).isInteractive(); in afterReenablingWhileNonInteractive_doesNotTriggerFaceDown()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | CachedDeviceStateServiceTest.java | 55 @Mock private IPowerManager mPowerManager; field in CachedDeviceStateServiceTest 63 PowerManager powerManager = new PowerManager(context, mPowerManager, mThermalService, null); in setUp() 79 when(mPowerManager.isInteractive()).thenReturn(true); in setUp() 94 when(mPowerManager.isInteractive()).thenReturn(true); // Screen on. in correctlyReportsScreenInteractive()
|
/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/tests/servicestests/src/com/android/server/recoverysystem/ |
D | RecoverySystemServiceTestable.java | 30 private final PowerManager mPowerManager; field in RecoverySystemServiceTestable.MockInjector 45 mPowerManager = powerManager; in MockInjector() 56 return mPowerManager; in getPowerManager()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | AcquisitionClient.java | 53 private final PowerManager mPowerManager; field in AcquisitionClient 65 mPowerManager = context.getSystemService(PowerManager.class); in AcquisitionClient() 191 mPowerManager.userActivity(now, PowerManager.USER_ACTIVITY_EVENT_TOUCH, 0); in notifyUserActivity()
|
/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/tests/mockingservicestests/src/com/android/server/location/gnss/ |
D | GnssLocationProviderTest.java | 86 private @Mock PowerManager mPowerManager; field in GnssLocationProviderTest 106 doReturn(mPowerManager).when(mContext).getSystemService(PowerManager.class); in setUp() 107 doReturn(mPowerManager).when(mContext).getSystemService("power"); in setUp() 117 doReturn(mWakeLock).when(mPowerManager).newWakeLock(anyInt(), anyString()); in setUp()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | DeviceIdleJobsController.java | 71 private final PowerManager mPowerManager; field in DeviceIdleJobsController 87 updateIdleMode(mPowerManager != null && (mPowerManager.isDeviceIdleMode() 88 || mPowerManager.isLightDeviceIdleMode())); 133 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in DeviceIdleJobsController()
|
/frameworks/base/tests/vcn/java/com/android/server/vcn/routeselection/ |
D | NetworkEvaluationTestBase.java | 117 protected PowerManager mPowerManager; field in NetworkEvaluationTestBase 155 mPowerManager = in setUp() 161 setupSystemService(mContext, mPowerManager, Context.POWER_SERVICE, PowerManager.class); in setUp()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowWakeUpPolicy.java | 52 private final PowerManager mPowerManager; field in WindowWakeUpPolicy 73 mPowerManager = context.getSystemService(PowerManager.class); in WindowWakeUpPolicy() 238 mPowerManager.wakeUp(wakeTime, reason, "android.policy:" + details); in wakeUp()
|