Home
last modified time | relevance | path

Searched refs:mDeviceIdleService (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/fuelgauge/
DPowerWhitelistBackendTest.java56 private IDeviceIdleController mDeviceIdleService; field in PowerWhitelistBackendTest
68 doReturn(new String[] {}).when(mDeviceIdleService).getFullPowerWhitelist(); in setUp()
69 doReturn(new String[] {}).when(mDeviceIdleService).getSystemPowerWhitelist(); in setUp()
70 doReturn(new String[] {}).when(mDeviceIdleService).getSystemPowerWhitelistExceptIdle(); in setUp()
71 doNothing().when(mDeviceIdleService).addPowerSaveWhitelistApp(anyString()); in setUp()
72 doNothing().when(mDeviceIdleService).removePowerSaveWhitelistApp(anyString()); in setUp()
77 mPowerWhitelistBackend = new PowerWhitelistBackend(mContext, mDeviceIdleService); in setUp()
82 doReturn(new String[] {PACKAGE_ONE}).when(mDeviceIdleService).getFullPowerWhitelist(); in testIsWhitelisted()
92 verify(mDeviceIdleService, atLeastOnce()).addPowerSaveWhitelistApp(PACKAGE_TWO); in testIsWhitelisted()
100 verify(mDeviceIdleService, atLeastOnce()).removePowerSaveWhitelistApp(PACKAGE_TWO); in testIsWhitelisted()
[all …]
/frameworks/base/services/core/java/com/android/server/deviceidle/
DTvConstraintController.java36 private final DeviceIdleController.LocalService mDeviceIdleService; field in TvConstraintController
44 mDeviceIdleService = LocalServices.getService(DeviceIdleController.LocalService.class); in TvConstraintController()
48 ? new BluetoothConstraint(mContext, mHandler, mDeviceIdleService) in TvConstraintController()
55 mDeviceIdleService.registerDeviceIdleConstraint( in start()
63 mDeviceIdleService.unregisterDeviceIdleConstraint(mBluetoothConstraint); in stop()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
DPowerWhitelistBackend.java48 private final IDeviceIdleController mDeviceIdleService; field in PowerWhitelistBackend
62 mDeviceIdleService = deviceIdleService; in PowerWhitelistBackend()
139 mDeviceIdleService.addPowerSaveWhitelistApp(pkg); in addApp()
148 mDeviceIdleService.removePowerSaveWhitelistApp(pkg); in removeApp()
161 if (mDeviceIdleService == null) { in refreshList()
165 final String[] whitelistedApps = mDeviceIdleService.getFullPowerWhitelist(); in refreshList()
169 final String[] sysWhitelistedApps = mDeviceIdleService.getSystemPowerWhitelist(); in refreshList()
174 mDeviceIdleService.getSystemPowerWhitelistExceptIdle(); in refreshList()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/deviceidle/
DBluetoothConstraintTest.java74 private DeviceIdleController.LocalService mDeviceIdleService; field in BluetoothConstraintTest
86 mConstraint = new BluetoothConstraint(mContext, mHandler, mDeviceIdleService); in setUp()
118 verify(mDeviceIdleService, never()).onConstraintStateChanged(any(), anyBoolean()); in testStartMonitoring_updatesActiveAtCorrectTimes()
121 InOrder order = inOrder(mDeviceIdleService); in testStartMonitoring_updatesActiveAtCorrectTimes()
126 order.verify(mDeviceIdleService, times(1)).onConstraintStateChanged(any(), eq(false)); in testStartMonitoring_updatesActiveAtCorrectTimes()
133 order.verify(mDeviceIdleService, times(1)).exitIdle(eq("bluetooth")); in testStartMonitoring_updatesActiveAtCorrectTimes()