Home
last modified time | relevance | path

Searched refs:mDeviceIdleInternal (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DBaseAppStateTracker.java284 DeviceIdleInternal mDeviceIdleInternal; field in BaseAppStateTracker.Injector
305 mDeviceIdleInternal = LocalServices.getService(DeviceIdleInternal.class); in onSystemReady()
342 return mDeviceIdleInternal; in getDeviceIdleInternal()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java243 private DeviceIdleInternal mDeviceIdleInternal; field in AlarmManagerServiceTest
444 doReturn(mDeviceIdleInternal).when( in setUp()
2238 when(mDeviceIdleInternal.isAppOnWhitelist(TEST_CALLING_UID)).thenReturn(true);
2243 when(mDeviceIdleInternal.isAppOnWhitelist(TEST_CALLING_UID)).thenReturn(false);
2275 when(mDeviceIdleInternal.isAppOnWhitelist(TEST_CALLING_UID)).thenReturn(true);
2279 when(mDeviceIdleInternal.isAppOnWhitelist(TEST_CALLING_UID)).thenReturn(false);
2314 verify(mDeviceIdleInternal, never()).isAppOnWhitelist(anyInt());
2405 verify(mDeviceIdleInternal, never()).isAppOnWhitelist(anyInt());
2434 verify(mDeviceIdleInternal, never()).isAppOnWhitelist(anyInt());
2485 when(mDeviceIdleInternal.isAppOnWhitelist(anyInt())).thenReturn(true);
[all …]
/frameworks/base/services/tests/VpnTests/java/com/android/server/connectivity/
DVpnTest.java307 @Mock DeviceIdleInternal mDeviceIdleInternal; field in VpnTest
544 verify(mDeviceIdleInternal, timeout(TEST_TIMEOUT_MS)).addPowerSaveTempWhitelistApp( in verifyPowerSaveTempWhitelistApp()
1576 reset(mDeviceIdleInternal); in testVpnManagerEventForUserDeactivated()
1586 reset(mDeviceIdleInternal); in testVpnManagerEventForUserDeactivated()
1599 reset(mDeviceIdleInternal); in testVpnManagerEventForAlwaysOnChanged()
1608 reset(mDeviceIdleInternal); in testVpnManagerEventForAlwaysOnChanged()
1617 reset(mDeviceIdleInternal); in testVpnManagerEventForAlwaysOnChanged()
1626 reset(mDeviceIdleInternal); in testVpnManagerEventForAlwaysOnChanged()
1635 reset(mDeviceIdleInternal); in testVpnManagerEventForAlwaysOnChanged()
1644 reset(mDeviceIdleInternal); in testVpnManagerEventForAlwaysOnChanged()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DFlexibilityController.java1630 private DeviceIdleInternal mDeviceIdleInternal; field in FlexibilityController.SpecialAppTracker
1706 mDeviceIdleInternal = LocalServices.getService(DeviceIdleInternal.class); in onSystemServicesReady()
1844 if (mDeviceIdleInternal == null) { in updatePowerAllowlistCache()
1849 final String[] allowlistedPkgs = mDeviceIdleInternal.getFullPowerWhitelistExceptIdle(); in updatePowerAllowlistCache()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DFlexibilityControllerTest.java139 private DeviceIdleInternal mDeviceIdleInternal; field in FlexibilityControllerTest
173 doReturn(mDeviceIdleInternal) in setup()
1944 .when(mDeviceIdleInternal).getFullPowerWhitelistExceptIdle(); in setPowerWhitelistExceptIdle()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBackgroundRestrictionTest.java288 @Mock private DeviceIdleInternal mDeviceIdleInternal; field in BackgroundRestrictionTest
3396 return BackgroundRestrictionTest.this.mDeviceIdleInternal; in getDeviceIdleInternal()