Searched refs:mMockPowerManager (Results 1 – 7 of 7) sorted by relevance
70 private PowerManager mMockPowerManager; field in IkeLocalRequestSchedulerTest78 mMockPowerManager = mock(PowerManager.class); in setUp()81 doReturn(mMockPowerManager).when(mSpyContext).getSystemService(eq(PowerManager.class)); in setUp()82 doReturn(mMockWakelock).when(mMockPowerManager).newWakeLock(anyInt(), anyString()); in setUp()
69 private PowerManager mMockPowerManager; field in RestartSystemPreferenceControllerTest83 when(mContext.getSystemService(PowerManager.class)).thenReturn(mMockPowerManager); in setUp()120 verify(mMockPowerManager, times(1)).reboot(null); in restartSystemConfirmationListener_continueToReboot()
86 private PowerManager mMockPowerManager; field in CarUserNoticeServiceTest143 mockContextGetService(mMockContext, PowerManager.class, mMockPowerManager); in setUpMocks()257 when(mMockPowerManager.isInteractive()).thenReturn(true); in setDisplayOn()261 when(mMockPowerManager.isInteractive()).thenReturn(false); in setDisplayOff()
77 @Mock protected PowerManager mMockPowerManager; field in QnsTest152 when(sMockContext.getSystemService(PowerManager.class)).thenReturn(mMockPowerManager); in stubContext()173 when(mMockPowerManager.isDeviceIdleMode()).thenReturn(false); in stubManagers()
120 private PowerManager mMockPowerManager; field in RttServiceImplTest240 mMockPowerManager = new PowerManager(mockContext, mock(IPowerManager.class), in setUp()242 when(mMockPowerManager.isDeviceIdleMode()).thenReturn(false); in setUp()245 when(mockContext.getSystemService(PowerManager.class)).thenReturn(mMockPowerManager); in setUp()1573 when(mMockPowerManager.isDeviceIdleMode()).thenReturn(isDozeOn); in simulatePowerStateChangeDoze()
162 @Mock private PowerManager mMockPowerManager; field in WifiAwareDataPathStateManagerTest197 when(mMockContext.getSystemService(PowerManager.class)).thenReturn(mMockPowerManager); in setUp()234 when(mMockPowerManager.isDeviceIdleMode()).thenReturn(false); in setUp()235 when(mMockPowerManager.isInteractive()).thenReturn(true); in setUp()
176 @Mock private PowerManager mMockPowerManager; field in WifiAwareStateManagerTest238 when(mMockContext.getSystemService(PowerManager.class)).thenReturn(mMockPowerManager); in setUp()243 when(mMockPowerManager.isDeviceIdleMode()).thenReturn(false); in setUp()244 when(mMockPowerManager.isInteractive()).thenReturn(true); in setUp()3869 when(mMockPowerManager.isIgnoringBatteryOptimizations(callingPackage)).thenReturn(true); in testEnableDisableOnDoze()3876 when(mMockPowerManager.isIgnoringBatteryOptimizations(callingPackage)).thenReturn(false); in testEnableDisableOnDoze()5773 when(mMockPowerManager.isDeviceIdleMode()).thenReturn(isDozeOn); in simulatePowerStateChangeDoze()5784 when(mMockPowerManager.isInteractive()).thenReturn(isInteractive); in simulatePowerStateChangeInteractive()