Home
last modified time | relevance | path

Searched refs:mMockPowerManager (Results 1 – 7 of 7) sorted by relevance

/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
DIkeLocalRequestSchedulerTest.java70 private PowerManager mMockPowerManager; field in IkeLocalRequestSchedulerTest
78 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()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/
DRestartSystemPreferenceControllerTest.java69 private PowerManager mMockPowerManager; field in RestartSystemPreferenceControllerTest
83 when(mContext.getSystemService(PowerManager.class)).thenReturn(mMockPowerManager); in setUp()
120 verify(mMockPowerManager, times(1)).reboot(null); in restartSystemConfirmationListener_continueToReboot()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java86 private PowerManager mMockPowerManager; field in CarUserNoticeServiceTest
143 mockContextGetService(mMockContext, PowerManager.class, mMockPowerManager); in setUpMocks()
257 when(mMockPowerManager.isInteractive()).thenReturn(true); in setDisplayOn()
261 when(mMockPowerManager.isInteractive()).thenReturn(false); in setDisplayOff()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsTest.java77 @Mock protected PowerManager mMockPowerManager; field in QnsTest
152 when(sMockContext.getSystemService(PowerManager.class)).thenReturn(mMockPowerManager); in stubContext()
173 when(mMockPowerManager.isDeviceIdleMode()).thenReturn(false); in stubManagers()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttServiceImplTest.java120 private PowerManager mMockPowerManager; field in RttServiceImplTest
240 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()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareDataPathStateManagerTest.java162 @Mock private PowerManager mMockPowerManager; field in WifiAwareDataPathStateManagerTest
197 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()
DWifiAwareStateManagerTest.java176 @Mock private PowerManager mMockPowerManager; field in WifiAwareStateManagerTest
238 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()