Home
last modified time | relevance | path

Searched refs:BatteryDatabaseManager (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryDatabaseManager.java53 public class BatteryDatabaseManager { class
54 private static BatteryDatabaseManager sSingleton;
58 private BatteryDatabaseManager(Context context) { in BatteryDatabaseManager() method in BatteryDatabaseManager
62 public static synchronized BatteryDatabaseManager getInstance(Context context) { in getInstance()
64 sSingleton = new BatteryDatabaseManager(context); in getInstance()
70 public static void setUpForTest(BatteryDatabaseManager batteryDatabaseManager) { in setUpForTest()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentAction.java27 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
37 @VisibleForTesting BatteryDatabaseManager mBatteryDatabaseManager;
44 mBatteryDatabaseManager = BatteryDatabaseManager.getInstance(mContext); in OpenRestrictAppFragmentAction()
DRestrictAppAction.java29 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
37 @VisibleForTesting BatteryDatabaseManager mBatteryDatabaseManager;
44 mBatteryDatabaseManager = BatteryDatabaseManager.getInstance(context); in RestrictAppAction()
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/
DDatabaseTestUtils.java22 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
50 ReflectionHelpers.setStaticField(BatteryDatabaseManager.class, "sSingleton", null); in clearAnomalyDbManager()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedAppDetails.java41 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
70 @VisibleForTesting BatteryDatabaseManager mBatteryDatabaseManager;
98 mBatteryDatabaseManager = BatteryDatabaseManager.getInstance(context); in onCreate()
DBatteryUtils.java48 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
403 final BatteryDatabaseManager batteryDatabaseManager = in setForceAppStandby()
404 BatteryDatabaseManager.getInstance(mContext); in setForceAppStandby()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentActionTest.java29 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
57 @Mock private BatteryDatabaseManager mBatteryDatabaseManager;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java44 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
79 @Mock private BatteryDatabaseManager mBatteryDatabaseManager;
DBatteryUtilsTest.java53 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
117 @Mock private BatteryDatabaseManager mBatteryDatabaseManager;
165 BatteryDatabaseManager.setUpForTest(mBatteryDatabaseManager); in setUp()