Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryDatabaseManager.java22 import static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.AnomalyColumns.ANOMAL…
23 import static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.AnomalyColumns.ANOMAL…
24 import static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.AnomalyColumns.PACKAG…
25 import static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.AnomalyColumns.TIME_S…
26 import static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.AnomalyColumns.UID;
27 import static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.Tables.TABLE_ACTION;
28 import static com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.Tables.TABLE_ANOMALY;
40 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper.ActionColumns;
56 private AnomalyDatabaseHelper mDatabaseHelper;
59 mDatabaseHelper = AnomalyDatabaseHelper.getInstance(context); in BatteryDatabaseManager()
[all …]
DAnomalyDatabaseHelper.java30 public class AnomalyDatabaseHelper extends SQLiteOpenHelper { class
144 private static AnomalyDatabaseHelper sSingleton;
146 public static synchronized AnomalyDatabaseHelper getInstance(Context context) { in getInstance()
148 sSingleton = new AnomalyDatabaseHelper(context.getApplicationContext()); in getInstance()
153 private AnomalyDatabaseHelper(Context context) { in AnomalyDatabaseHelper() method in AnomalyDatabaseHelper
/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/
DDatabaseTestUtils.java21 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
43 AnomalyDatabaseHelper helper = AnomalyDatabaseHelper.getInstance(context); in clearAnomalyDb()
46 ReflectionHelpers.setStaticField(AnomalyDatabaseHelper.class, "sSingleton", null); in clearAnomalyDb()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentAction.java25 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
59 mAppInfos, AnomalyDatabaseHelper.State.HANDLED)); in handlePositiveAction()
DRestrictAppAction.java27 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
77 mBatteryDatabaseManager.updateAnomalies(appInfos, AnomalyDatabaseHelper.State.HANDLED); in handlePositiveAction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/actions/
DOpenRestrictAppFragmentActionTest.java27 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
103 .updateAnomalies(mAppInfos, AnomalyDatabaseHelper.State.HANDLED); in testHandlePositiveAction()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DRestrictedAppDetails.java39 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
140 AnomalyDatabaseHelper.ActionType.RESTRICTION); in refreshUi()
DBatteryUtils.java47 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
407 AnomalyDatabaseHelper.ActionType.RESTRICTION, in setForceAppStandby()
413 AnomalyDatabaseHelper.ActionType.RESTRICTION, uid, packageName); in setForceAppStandby()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DRestrictedAppDetailsTest.java42 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
128 .queryActionTime(AnomalyDatabaseHelper.ActionType.RESTRICTION); in refreshUi_displayPreference()
DBatteryUtilsTest.java52 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper;
354 eq(AnomalyDatabaseHelper.ActionType.RESTRICTION), eq(UID), in testSetForceAppStandby_restrictApp_recordTime()
363 .deleteAction(AnomalyDatabaseHelper.ActionType.RESTRICTION, UID, HIGH_SDK_PACKAGE); in testSetForceAppStandby_unrestrictApp_deleteTime()