Home
last modified time | relevance | path

Searched refs:BatteryDatabaseManager (Results 1 – 17 of 17) 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()
DAnomalyCleanupJobService.java63 final BatteryDatabaseManager batteryDatabaseManager = BatteryDatabaseManager in onStartJob()
DAnomalyDetectionJobService.java93 final BatteryDatabaseManager batteryDatabaseManager = in onStartJob()
94 BatteryDatabaseManager.getInstance(this); in onStartJob()
129 BatteryDatabaseManager databaseManager, BatteryUtils batteryUtils, in saveAnomalyToDatabase()
DBatteryTipUtils.java134 final List<AppInfo> highUsageApps = BatteryDatabaseManager.getInstance(context) in detectAnomalies()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentAction.java27 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
40 BatteryDatabaseManager mBatteryDatabaseManager;
47 mBatteryDatabaseManager = BatteryDatabaseManager.getInstance(mContext); in OpenRestrictAppFragmentAction()
DRestrictAppAction.java29 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
40 BatteryDatabaseManager mBatteryDatabaseManager;
48 mBatteryDatabaseManager = BatteryDatabaseManager.getInstance(context); in RestrictAppAction()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DRestrictAppDetector.java27 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
48 BatteryDatabaseManager mBatteryDatabaseManager;
57 mBatteryDatabaseManager = BatteryDatabaseManager.getInstance(context); in RestrictAppDetector()
/packages/apps/Settings/tests/robotests/src/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/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryDatabaseManagerTest.java29 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
56 private BatteryDatabaseManager mBatteryDatabaseManager;
66 mBatteryDatabaseManager = spy(BatteryDatabaseManager.getInstance(mContext)); in setUp()
DRestrictedAppDetailsTest.java44 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
85 private BatteryDatabaseManager mBatteryDatabaseManager;
DBatteryUtilsTest.java57 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
134 private BatteryDatabaseManager mBatteryDatabaseManager;
177 BatteryDatabaseManager.setUpForTest(mBatteryDatabaseManager); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedAppDetails.java41 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
79 BatteryDatabaseManager mBatteryDatabaseManager;
106 mBatteryDatabaseManager = BatteryDatabaseManager.getInstance(context); in onCreate()
DBatteryUtils.java46 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
340 final BatteryDatabaseManager batteryDatabaseManager = BatteryDatabaseManager in setForceAppStandby()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DRestrictAppDetectorTest.java36 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
73 private BatteryDatabaseManager mBatteryDatabaseManager;
100 BatteryDatabaseManager.setUpForTest(mBatteryDatabaseManager); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentActionTest.java28 import com.android.settings.fuelgauge.batterytip.BatteryDatabaseManager;
58 private BatteryDatabaseManager mBatteryDatabaseManager;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DAnomalyCleanupJobServiceTest.java107 final BatteryDatabaseManager databaseManager = BatteryDatabaseManager.getInstance(mContext); in onStartJob_cleanUpDataBefore30days()
DAnomalyDetectionJobServiceTest.java92 private BatteryDatabaseManager mBatteryDatabaseManager;