Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtilsTest.java19 import static com.android.settings.fuelgauge.BatteryOptimizeUtils.AppUsageState.OPTIMIZED;
20 import static com.android.settings.fuelgauge.BatteryOptimizeUtils.AppUsageState.RESTRICTED;
21 import static com.android.settings.fuelgauge.BatteryOptimizeUtils.AppUsageState.UNRESTRICTED;
55 private BatteryOptimizeUtils mBatteryOptimizeUtils;
61 mBatteryOptimizeUtils = spy(new BatteryOptimizeUtils(mContext, UID, PACKAGE_NAME)); in setUp()
109 final BatteryOptimizeUtils testBatteryOptimizeUtils = in testIsValidPackageName_InvalidPackageName_returnFalse()
110 new BatteryOptimizeUtils(mContext, UID, null); in testIsValidPackageName_InvalidPackageName_returnFalse()
DOptimizedPreferenceControllerTest.java43 @Mock BatteryOptimizeUtils mockBatteryOptimizeUtils;
80 BatteryOptimizeUtils.AppUsageState.OPTIMIZED); in testUpdateState_isOptimizedStates_prefChecked()
102 BatteryOptimizeUtils.AppUsageState.OPTIMIZED); in testHandlePreferenceTreeClick_samePrefKey_verifyAction()
DRestrictedPreferenceControllerTest.java43 @Mock BatteryOptimizeUtils mockBatteryOptimizeUtils;
88 BatteryOptimizeUtils.AppUsageState.RESTRICTED); in testUpdateState_isRestrictedStates_prefChecked()
110 BatteryOptimizeUtils.AppUsageState.RESTRICTED); in testHandlePreferenceTreeClick_samePrefKey_verifyAction()
DUnrestrictedPreferenceControllerTest.java44 @Mock BatteryOptimizeUtils mockBatteryOptimizeUtils;
88 BatteryOptimizeUtils.AppUsageState.UNRESTRICTED); in testUpdateState_isUnrestrictedStates_prefChecked()
110 BatteryOptimizeUtils.AppUsageState.UNRESTRICTED); in testHandlePreferenceTreeClick_samePrefKey_verifyAction()
DAdvancedPowerUsageDetailTest.java125 private BatteryOptimizeUtils mBatteryOptimizeUtils;
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedPreferenceController.java20 import static com.android.settings.fuelgauge.BatteryOptimizeUtils.AppUsageState.RESTRICTED;
38 @VisibleForTesting BatteryOptimizeUtils mBatteryOptimizeUtils;
42 mBatteryOptimizeUtils = new BatteryOptimizeUtils(context, uid, packageName); in RestrictedPreferenceController()
DUnrestrictedPreferenceController.java19 import static com.android.settings.fuelgauge.BatteryOptimizeUtils.AppUsageState.UNRESTRICTED;
37 @VisibleForTesting BatteryOptimizeUtils mBatteryOptimizeUtils;
41 mBatteryOptimizeUtils = new BatteryOptimizeUtils(context, uid, packageName); in UnrestrictedPreferenceController()
DOptimizedPreferenceController.java19 import static com.android.settings.fuelgauge.BatteryOptimizeUtils.AppUsageState.OPTIMIZED;
37 @VisibleForTesting BatteryOptimizeUtils mBatteryOptimizeUtils;
41 mBatteryOptimizeUtils = new BatteryOptimizeUtils(context, uid, packageName); in OptimizedPreferenceController()
DBatteryOptimizeUtils.java28 public class BatteryOptimizeUtils { class
51 public BatteryOptimizeUtils(Context context, int uid, String packageName) { in BatteryOptimizeUtils() method in BatteryOptimizeUtils
DAdvancedPowerUsageDetail.java102 BatteryOptimizeUtils mBatteryOptimizeUtils;
468 mBatteryOptimizeUtils = new BatteryOptimizeUtils( in onCreateForTriState()