Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryUsageSlotEntity.java32 public class BatteryUsageSlotEntity { class
44 public BatteryUsageSlotEntity(final long timestamp, final String batteryUsageSlot) { in BatteryUsageSlotEntity() method in BatteryUsageSlotEntity
76 public static BatteryUsageSlotEntity create(ContentValues contentValues) { in create()
77 Builder builder = BatteryUsageSlotEntity.newBuilder(); in create()
112 public BatteryUsageSlotEntity build() { in build()
113 return new BatteryUsageSlotEntity(mTimestamp, mBatteryUsageSlot); in build()
DBatteryUsageSlotDao.java33 void insert(BatteryUsageSlotEntity event); in insert()
37 List<BatteryUsageSlotEntity> getAll(); in getAll()
49 List<BatteryUsageSlotEntity> getAllAfterForLog(long timestamp); in getAllAfterForLog()
DBatteryStateDatabase.java33 BatteryUsageSlotEntity.class,
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryUsageSlotDaoTest.java56 new BatteryUsageSlotEntity(TIMESTAMP1, BATTERY_USAGE_SLOT_STRING1)); in setUp()
58 new BatteryUsageSlotEntity(TIMESTAMP2, BATTERY_USAGE_SLOT_STRING2)); in setUp()
69 final List<BatteryUsageSlotEntity> entities = mBatteryUsageSlotDao.getAll(); in getAll_normalFlow_expectedBehavior()
98 final List<BatteryUsageSlotEntity> entities = mBatteryUsageSlotDao.getAll(); in clearAllBefore_normalFlow_expectedBehavior()
DBatteryUsageSlotEntityTest.java34 BatteryUsageSlotEntity entity = in testBuilder_returnsExpectedResult()
35 BatteryUsageSlotEntity.newBuilder() in testBuilder_returnsExpectedResult()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProviderTest.java35 import com.android.settings.fuelgauge.batteryusage.db.BatteryUsageSlotEntity;
426 values.put(BatteryUsageSlotEntity.KEY_TIMESTAMP, 10001L); in insertAndQuery_batteryUsageSlot_returnsExpectedResult()
427 values.put(BatteryUsageSlotEntity.KEY_BATTERY_USAGE_SLOT, "TEST_STRING"); in insertAndQuery_batteryUsageSlot_returnsExpectedResult()
432 final List<BatteryUsageSlotEntity> entities = in insertAndQuery_batteryUsageSlot_returnsExpectedResult()
441 assertThat(cursor1.getLong(cursor1.getColumnIndex(BatteryUsageSlotEntity.KEY_TIMESTAMP))) in insertAndQuery_batteryUsageSlot_returnsExpectedResult()
446 BatteryUsageSlotEntity.KEY_BATTERY_USAGE_SLOT))) in insertAndQuery_batteryUsageSlot_returnsExpectedResult()
DConvertUtilsTest.java43 import com.android.settings.fuelgauge.batteryusage.db.BatteryUsageSlotEntity;
294 assertThat(values.getAsLong(BatteryUsageSlotEntity.KEY_TIMESTAMP)).isEqualTo(10001L); in convertBatteryUsageSlotToContentValues_normalCase_returnsExpectedContentValues()
295 assertThat(BatteryUsageSlotEntity.KEY_BATTERY_USAGE_SLOT).isNotEmpty(); in convertBatteryUsageSlotToContentValues_normalCase_returnsExpectedContentValues()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DLogUtils.java40 import com.android.settings.fuelgauge.batteryusage.db.BatteryUsageSlotEntity;
117 final List<BatteryUsageSlotEntity> entities = in dumpBatteryUsageSlotDatabaseHist()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtils.java42 import com.android.settings.fuelgauge.batteryusage.db.BatteryUsageSlotEntity;
170 values.put(BatteryUsageSlotEntity.KEY_TIMESTAMP, batteryUsageSlot.getStartTimestamp()); in convertBatteryUsageSlotToContentValues()
172 BatteryUsageSlotEntity.KEY_BATTERY_USAGE_SLOT, in convertBatteryUsageSlotToContentValues()
363 cursor.getColumnIndex(BatteryUsageSlotEntity.KEY_BATTERY_USAGE_SLOT); in convertToBatteryUsageSlot()
DBatteryUsageContentProvider.java39 import com.android.settings.fuelgauge.batteryusage.db.BatteryUsageSlotEntity;
176 mBatteryUsageSlotDao.insert(BatteryUsageSlotEntity.create(contentValues)); in insert()