Home
last modified time | relevance | path

Searched refs:isValidPackageName (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedPreferenceControllerTest.java57 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isValidPackage_prefEnabled()
66 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(false); in testUpdateState_invalidPackage_prefDisabled()
75 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isSystemOrDefaultApp_prefChecked()
86 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isRestrictedStates_prefChecked()
97 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_prefUnchecked()
DUnrestrictedPreferenceControllerTest.java58 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isValidPackage_prefEnabled()
67 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(false); in testUpdateState_invalidPackage_prefDisabled()
76 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isSystemOrDefaultApp_prefChecked()
86 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isUnrestrictedStates_prefChecked()
97 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_prefUnchecked()
DOptimizedPreferenceControllerTest.java57 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(false); in testUpdateState_invalidPackage_prefEnabled()
67 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isSystemOrDefaultApp_prefUnchecked()
78 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_isOptimizedStates_prefChecked()
89 when(mockBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testUpdateState_prefUnchecked()
DBatteryOptimizeUtilsTest.java112 assertThat(testBatteryOptimizeUtils.isValidPackageName()).isFalse(); in testIsValidPackageName_InvalidPackageName_returnFalse()
117 assertThat(mBatteryOptimizeUtils.isValidPackageName()).isTrue(); in testIsValidPackageName_validPackageName_returnTrue()
DAdvancedPowerUsageDetailTest.java734 when(mBatteryOptimizeUtils.isValidPackageName()).thenReturn(false); in testInitPreferenceForTriState_isValidPackageName_hasCorrectString()
744 when(mBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testInitPreferenceForTriState_isSystemOrDefaultApp_hasCorrectString()
755 when(mBatteryOptimizeUtils.isValidPackageName()).thenReturn(true); in testInitPreferenceForTriState_hasCorrectString()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedPreferenceController.java48 if (!mBatteryOptimizeUtils.isValidPackageName()) { in updateState()
DUnrestrictedPreferenceController.java47 if (!mBatteryOptimizeUtils.isValidPackageName()) { in updateState()
DOptimizedPreferenceController.java51 if (!mBatteryOptimizeUtils.isValidPackageName()) { in updateState()
DBatteryOptimizeUtils.java98 public boolean isValidPackageName() { in isValidPackageName() method in BatteryOptimizeUtils
DAdvancedPowerUsageDetail.java342 if (!mBatteryOptimizeUtils.isValidPackageName()) { in initPreferenceForTriState()