Searched refs:AnomalyDatabaseHelper (Results 1 – 10 of 10) sorted by relevance
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryDatabaseManager.java | 22 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 …]
|
D | AnomalyDatabaseHelper.java | 30 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/ |
D | DatabaseTestUtils.java | 21 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/ |
D | OpenRestrictAppFragmentAction.java | 25 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper; 59 mAppInfos, AnomalyDatabaseHelper.State.HANDLED)); in handlePositiveAction()
|
D | RestrictAppAction.java | 27 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/ |
D | OpenRestrictAppFragmentActionTest.java | 27 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper; 103 .updateAnomalies(mAppInfos, AnomalyDatabaseHelper.State.HANDLED); in testHandlePositiveAction()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | RestrictedAppDetails.java | 39 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper; 140 AnomalyDatabaseHelper.ActionType.RESTRICTION); in refreshUi()
|
D | BatteryUtils.java | 47 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/ |
D | RestrictedAppDetailsTest.java | 42 import com.android.settings.fuelgauge.batterytip.AnomalyDatabaseHelper; 128 .queryActionTime(AnomalyDatabaseHelper.ActionType.RESTRICTION); in refreshUi_displayPreference()
|
D | BatteryUtilsTest.java | 52 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()
|