Home
last modified time | relevance | path

Searched refs:KEY_TIMESTAMP (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryUsageSlotEntity.java34 public static final String KEY_TIMESTAMP = "timestamp"; field in BatteryUsageSlotEntity
78 if (contentValues.containsKey(KEY_TIMESTAMP)) { in create()
79 builder.setTimestamp(contentValues.getAsLong(KEY_TIMESTAMP)); in create()
DBatteryEventEntity.java34 public static final String KEY_TIMESTAMP = "timestamp"; field in BatteryEventEntity
83 if (contentValues.containsKey(KEY_TIMESTAMP)) { in create()
84 builder.setTimestamp(contentValues.getAsLong(KEY_TIMESTAMP)); in create()
DAppUsageEventEntity.java37 public static final String KEY_TIMESTAMP = "timestamp"; field in AppUsageEventEntity
119 if (contentValues.containsKey(KEY_TIMESTAMP)) { in create()
120 builder.setTimestamp(contentValues.getAsLong(KEY_TIMESTAMP)); in create()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryEventDaoTest.java21 import static com.android.settings.fuelgauge.batteryusage.db.BatteryEventEntity.KEY_TIMESTAMP;
119 assertThat(cursor.getLong(cursor.getColumnIndex(KEY_TIMESTAMP))).isEqualTo(200L); in getAllAfter_normalFlow_returnExpectedResult()
145 assertThat(cursor.getLong(cursor.getColumnIndex(KEY_TIMESTAMP))).isEqualTo(100L); in getAllAfter_filterBatteryTypes_returnExpectedResult()
171 assertThat(cursor.getLong(cursor.getColumnIndex(KEY_TIMESTAMP))).isEqualTo(200L); in getAllAfter_filterTimestamp_returnExpectedResult()
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/radar/
DRadarSweepData.java35 private static final String KEY_TIMESTAMP = "timestamp"; field in RadarSweepData
85 bundle.putLong(KEY_TIMESTAMP, mTimestamp); in toBundle()
109 .setTimestamp(bundle.getLong(KEY_TIMESTAMP)) in parseBundleVersion1()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageContentProviderTest.java136 values.put(BatteryEventEntity.KEY_TIMESTAMP, 10001L); in query_getLastFullChargeTimestamp_returnsExpectedResult()
302 values.put(BatteryHistEntry.KEY_TIMESTAMP, Long.valueOf(2100021L)); in insert_batteryState_returnsExpectedResult()
338 values.put(BatteryHistEntry.KEY_TIMESTAMP, Long.valueOf(2100022L)); in insert_partialFieldsContentValues_returnsExpectedResult()
359 values.put(AppUsageEventEntity.KEY_TIMESTAMP, 10001L); in insert_appUsageEvent_returnsExpectedResult()
385 values.put(BatteryEventEntity.KEY_TIMESTAMP, 10001L); in insertAndQuery_batteryEvent_returnsExpectedResult()
407 assertThat(cursor1.getLong(cursor1.getColumnIndex(BatteryEventEntity.KEY_TIMESTAMP))) in insertAndQuery_batteryEvent_returnsExpectedResult()
426 values.put(BatteryUsageSlotEntity.KEY_TIMESTAMP, 10001L); in insertAndQuery_batteryUsageSlot_returnsExpectedResult()
441 assertThat(cursor1.getLong(cursor1.getColumnIndex(BatteryUsageSlotEntity.KEY_TIMESTAMP))) in insertAndQuery_batteryUsageSlot_returnsExpectedResult()
DDatabaseUtilsTest.java150 assertThat(contentValues.getAsInteger(BatteryEventEntity.KEY_TIMESTAMP)).isEqualTo(10001L); in sendBatteryEventData_returnsExpectedList()
267 new MatrixCursor(new String[] {AppUsageEventEntity.KEY_TIMESTAMP}); in getAppUsageStartTimestampOfUser_emptyCursorContent_returnEarliestTimestamp()
291 new MatrixCursor(new String[] {AppUsageEventEntity.KEY_TIMESTAMP}); in getAppUsageStartTimestampOfUser_returnExpectedResult()
316 AppUsageEventEntity.KEY_TIMESTAMP, in getAppUsageEventForUsers_emptyCursorContent_returnEmptyMap()
351 AppUsageEventEntity.KEY_TIMESTAMP in getAppUsageEventForUsers_returnExpectedMap()
380 BatteryHistEntry.KEY_TIMESTAMP in getHistoryMap_emptyCursorContent_returnEmptyMap()
599 BatteryHistEntry.KEY_TIMESTAMP, in getMatrixCursor()
DConvertUtilsTest.java120 assertThat(values.getAsLong(BatteryHistEntry.KEY_TIMESTAMP)).isEqualTo(10001L); in convertBatteryEntryToContentValues_appEntry_returnsExpectedContentValues()
185 assertThat(values.getAsLong(BatteryHistEntry.KEY_TIMESTAMP)).isEqualTo(10001L); in convertBatteryEntryToContentValues_systemEntry_returnsExpectedContentValues()
237 assertThat(values.getAsLong(BatteryHistEntry.KEY_TIMESTAMP)).isEqualTo(10001L); in convertBatteryEntryToContentValues_nullBatteryEntry_returnsExpectedContentValues()
258 assertThat(values.getAsLong(AppUsageEventEntity.KEY_TIMESTAMP)).isEqualTo(10001L); in convertAppUsageEventToContentValues_returnsExpectedContentValues()
276 assertThat(values.getAsLong(BatteryEventEntity.KEY_TIMESTAMP)).isEqualTo(10001L); in convertBatteryEventToContentValues_normalCase_returnsExpectedContentValues()
294 assertThat(values.getAsLong(BatteryUsageSlotEntity.KEY_TIMESTAMP)).isEqualTo(10001L); in convertBatteryUsageSlotToContentValues_normalCase_returnsExpectedContentValues()
495 AppUsageEventEntity.KEY_TIMESTAMP, in convertToAppUsageEvent_returnExpectedResult()
531 AppUsageEventEntity.KEY_TIMESTAMP, in convertToAppUsageEvent_emptyInstanceIdAndRootName_returnExpectedResult()
DDataProcessManagerTest.java147 AppUsageEventEntity.KEY_TIMESTAMP in start_loadEmptyDatabaseAppUsageData()
208 AppUsageEventEntity.KEY_TIMESTAMP, in start_loadExpectedAppUsageData()
332 AppUsageEventEntity.KEY_TIMESTAMP in start_currentUserLocked_emptyAppUsageList()
DBatteryHistEntryTest.java394 BatteryHistEntry.KEY_TIMESTAMP, in createBatteryHistEntry()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtils.java121 values.put(BatteryHistEntry.KEY_TIMESTAMP, Long.valueOf(timestamp)); in convertBatteryEntryToContentValues()
149 values.put(AppUsageEventEntity.KEY_TIMESTAMP, event.getTimestamp()); in convertAppUsageEventToContentValues()
160 values.put(BatteryEventEntity.KEY_TIMESTAMP, event.getTimestamp()); in convertBatteryEventToContentValues()
170 values.put(BatteryUsageSlotEntity.KEY_TIMESTAMP, batteryUsageSlot.getStartTimestamp()); in convertBatteryUsageSlotToContentValues()
294 eventBuilder.setTimestamp(getLongFromCursor(cursor, AppUsageEventEntity.KEY_TIMESTAMP)); in convertToAppUsageEvent()
323 eventBuilder.setTimestamp(getLongFromCursor(cursor, BatteryEventEntity.KEY_TIMESTAMP)); in convertToBatteryEvent()
DBatteryHistEntry.java33 public static final String KEY_TIMESTAMP = "timestamp"; field in BatteryHistEntry
74 mTimestamp = getLong(values, KEY_TIMESTAMP); in BatteryHistEntry()
104 mTimestamp = getLong(cursor, KEY_TIMESTAMP); in BatteryHistEntry()
/packages/apps/Camera2/src/com/android/camera/app/
DMemoryQuery.java36 public static final String KEY_TIMESTAMP = "timestamp"; field in MemoryQuery
105 outputData.put(KEY_TIMESTAMP, new Long(timestamp)); in queryMemory()