Home
last modified time | relevance | path

Searched refs:getAppUsageState (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtilsTest.java73 assertThat(mBatteryOptimizeUtils.getAppUsageState()).isEqualTo(RESTRICTED); in testGetAppUsageState_returnRestricted()
82 assertThat(mBatteryOptimizeUtils.getAppUsageState()).isEqualTo(UNRESTRICTED); in testGetAppUsageState_returnUnrestricted()
91 assertThat(mBatteryOptimizeUtils.getAppUsageState()).isEqualTo(OPTIMIZED); in testGetAppUsageState_returnOptimized()
DOptimizedPreferenceControllerTest.java79 when(mockBatteryOptimizeUtils.getAppUsageState()).thenReturn( in testUpdateState_isOptimizedStates_prefChecked()
DRestrictedPreferenceControllerTest.java87 when(mockBatteryOptimizeUtils.getAppUsageState()).thenReturn( in testUpdateState_isRestrictedStates_prefChecked()
DUnrestrictedPreferenceControllerTest.java87 when(mockBatteryOptimizeUtils.getAppUsageState()).thenReturn( in testUpdateState_isUnrestrictedStates_prefChecked()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedPreferenceController.java60 } else if (mBatteryOptimizeUtils.getAppUsageState() == RESTRICTED) { in updateState()
DUnrestrictedPreferenceController.java58 } else if (mBatteryOptimizeUtils.getAppUsageState() == UNRESTRICTED) { in updateState()
DOptimizedPreferenceController.java62 } else if (mBatteryOptimizeUtils.getAppUsageState() == OPTIMIZED) { in updateState()
DBatteryOptimizeUtils.java62 public AppUsageState getAppUsageState() { in getAppUsageState() method in BatteryOptimizeUtils