Searched refs:BatteryUsageSlotEntity (Results 1 – 10 of 10) sorted by relevance
32 public class BatteryUsageSlotEntity { class44 public BatteryUsageSlotEntity(final long timestamp, final String batteryUsageSlot) { in BatteryUsageSlotEntity() method in BatteryUsageSlotEntity76 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()
33 void insert(BatteryUsageSlotEntity event); in insert()37 List<BatteryUsageSlotEntity> getAll(); in getAll()49 List<BatteryUsageSlotEntity> getAllAfterForLog(long timestamp); in getAllAfterForLog()
33 BatteryUsageSlotEntity.class,
56 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()
34 BatteryUsageSlotEntity entity = in testBuilder_returnsExpectedResult()35 BatteryUsageSlotEntity.newBuilder() in testBuilder_returnsExpectedResult()
35 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()
43 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()
40 import com.android.settings.fuelgauge.batteryusage.db.BatteryUsageSlotEntity;117 final List<BatteryUsageSlotEntity> entities = in dumpBatteryUsageSlotDatabaseHist()
42 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()
39 import com.android.settings.fuelgauge.batteryusage.db.BatteryUsageSlotEntity;176 mBatteryUsageSlotDao.insert(BatteryUsageSlotEntity.create(contentValues)); in insert()