/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarSensorEvent.java | 124 public long timestamp; field in CarSensorEvent 137 timestamp = in.readLong(); in CarSensorEvent() 158 dest.writeLong(timestamp); in writeToParcel() 179 public CarSensorEvent(int sensorType, long timestamp, int floatValueSize, int intValueSize, in CarSensorEvent() argument 182 this.timestamp = timestamp; in CarSensorEvent() 189 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, in CarSensorEvent() argument 192 this.timestamp = timestamp; in CarSensorEvent() 207 public long timestamp; field in CarSensorEvent.EnvironmentData 229 data.timestamp = timestamp; in getEnvironmentData() 236 public long timestamp; field in CarSensorEvent.IgnitionStateData [all …]
|
/packages/services/Car/tools/emulator/ |
D | diagjson.example | 3 "timestamp": 72375175786629, 47 "timestamp": 72377177593287, 91 "timestamp": 72379176544788, 135 "timestamp": 72381179373780, 179 "timestamp": 72383179413967, 223 "timestamp": 72385179454210, 267 "timestamp": 72387176856679, 311 "timestamp": 72389180204642, 355 "timestamp": 72391178997905, 399 "timestamp": 72393179466175, [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarDiagnosticManagerTest.java | 95 long timestamp = SystemClock.elapsedRealtimeNanos(); in addNewEvent() local 96 return addNewEvent(builder, timestamp); in addNewEvent() 99 synchronized VehiclePropValue addNewEvent(DiagnosticEventBuilder builder, long timestamp) { in addNewEvent() argument 100 VehiclePropValue newEvent = builder.build(timestamp); in addNewEvent() 101 mEvents.put(timestamp, newEvent); in addNewEvent() 105 synchronized VehiclePropValue removeEvent(long timestamp) { in removeEvent() argument 106 return mEvents.remove(timestamp); in removeEvent() 117 synchronized VehiclePropValue getEvent(long timestamp) { in getEvent() argument 118 return mEvents.get(timestamp); in getEvent() 181 long timestamp = value.value.int64Values.get(0); in onPropertyGet() local [all …]
|
D | CarSensorManagerTest.java | 173 Log.d(TAG, "NightMode " + data.isNightMode + " at " + data.timestamp); in testEvents() 180 assertEquals("Unexpected event timestamp", data.timestamp, 51); in testEvents() 197 assertEquals("Unexpected event timestamp", 1001, data.timestamp); in testEvents() 225 assertEquals("Unexpected event timestamp", data.timestamp, 2001); in testEvents() 379 Log.d(TAG, "NightMode " + data.isNightMode + " at " + data.timestamp); in testEventsWithMultipleListeners() 383 Log.d(TAG, "NightMode " + data.isNightMode + " at " + data.timestamp); in testEventsWithMultipleListeners() 387 Log.d(TAG, "NightMode " + data.isNightMode + " at " + data.timestamp); in testEventsWithMultipleListeners() 393 assertEquals("Unexpected event timestamp", 1001, data.timestamp); in testEventsWithMultipleListeners() 416 assertEquals("Unexpected event timestamp", 2001, data.timestamp); in testEventsWithMultipleListeners() 420 assertEquals("Unexpected event timestamp", 2001, data.timestamp); in testEventsWithMultipleListeners() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
D | ObexTimeTest.java | 61 ObexTime timestamp = new ObexTime(VALID_TIME_STRING); in createWithValidDateTimeString_TimestampCorrect() local 63 timestamp.getTime()); in createWithValidDateTimeString_TimestampCorrect() 68 ObexTime timestamp = new ObexTime(VALID_TIME_STRING_WITH_OFFSET_POS); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect() local 70 timestamp.getTime()); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect() 75 ObexTime timestamp = new ObexTime(VALID_TIME_STRING_WITH_OFFSET_NEG); in createWithValidDateTimeStringWithNegOffset_TimestampCorrect() local 77 timestamp.getTime()); in createWithValidDateTimeStringWithNegOffset_TimestampCorrect() 82 ObexTime timestamp = new ObexTime(VALID_DATE_LOCAL_TZ); in createWithValidDate_TimestampCorrect() local 84 VALID_DATE_LOCAL_TZ, timestamp.getTime()); in createWithValidDate_TimestampCorrect() 89 ObexTime timestamp = new ObexTime(VALID_TIME_STRING); in printValidTime_TimestampMatchesInput() local 91 timestamp.toString()); in printValidTime_TimestampMatchesInput() [all …]
|
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/ |
D | FileUtils.java | 58 static File createTempDir(Context context, String timestamp) { in createTempDir() argument 59 File dir = getTempDir(context, timestamp); in createTempDir() 68 static File getTempDir(Context context, String timestamp) { in getTempDir() argument 71 return new File(context.getDataDir(), TEMP_DIR + "/" + timestamp); in getTempDir() 92 static String getAudioFileName(String timestamp, MetaBugReport bug) { in getAudioFileName() argument 94 return PREFIX + bug.getUserName() + FS + timestamp + "-" + lookupCode + "-message.3gp"; in getAudioFileName() 112 static File getFileWithSuffix(Context context, String timestamp, String suffix) { in getFileWithSuffix() argument 113 return new File(createTempDir(context, timestamp), timestamp + suffix); in getFileWithSuffix() 125 static File getFile(Context context, String timestamp, String name) { in getFile() argument 126 return new File(getTempDir(context, timestamp), name); in getFile()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarSensorEventFactory.java | 27 public static CarSensorEvent createBooleanEvent(int sensorType, long timestamp, in createBooleanEvent() argument 29 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createBooleanEvent() 34 public static CarSensorEvent createIntEvent(int sensorType, long timestamp, int value) { in createIntEvent() argument 35 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 1, 0); in createIntEvent() 48 public static CarSensorEvent createInt64VecEvent(int sensorType, long timestamp, in createInt64VecEvent() argument 50 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 0, 0, value.size()); in createInt64VecEvent() 57 public static CarSensorEvent createFloatEvent(int sensorType, long timestamp, float value) { in createFloatEvent() argument 58 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, 1, 0, 0); in createFloatEvent() 63 public static CarSensorEvent createMixedEvent(int sensorType, long timestamp, in createMixedEvent() argument 68 CarSensorEvent event = new CarSensorEvent(sensorType, timestamp, numFloats, numInts, in createMixedEvent()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | TestWallpaperPreferences.java | 303 public void addDailyRotation(long timestamp) { in addDailyRotation() argument 304 mDailyRotations.add(timestamp); in addDailyRotation() 333 public void setDailyWallpaperEnabledTimestamp(long timestamp) { in setDailyWallpaperEnabledTimestamp() argument 334 mDailyWallpaperEnabledTimestamp = timestamp; in setDailyWallpaperEnabledTimestamp() 348 public void setLastDailyLogTimestamp(long timestamp) { in setLastDailyLogTimestamp() argument 349 mLastDailyLogTimestamp = timestamp; in setLastDailyLogTimestamp() 358 public void setLastAppActiveTimestamp(long timestamp) { in setLastAppActiveTimestamp() argument 359 mLastAppActiveTimestamp = timestamp; in setLastAppActiveTimestamp() 363 public void setDailyWallpaperRotationStatus(int status, long timestamp) { in setDailyWallpaperRotationStatus() argument 365 mLastDailyWallpaperRotationStatusTimestamp = timestamp; in setDailyWallpaperRotationStatus() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | SimpleDate.java | 33 private long timestamp; field in SimpleDate 39 public SimpleDate(long timestamp) { in SimpleDate() argument 40 setTimestamp(timestamp); in SimpleDate() 45 public void setTimestamp(long timestamp) { in setTimestamp() argument 48 sCalendarInstance.setTimeInMillis(timestamp); in setTimestamp() 52 this.timestamp = timestamp; in setTimestamp() 54 DateFormat.getDateInstance(DateFormat.SHORT).format(timestamp); in setTimestamp() 123 DateFormat.getDateInstance(DateFormat.SHORT).format(timestamp); in toString()
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/metadatasynchronizer/ |
D | MetadataPoolImpl.java | 56 private SettableFuture<TotalCaptureResultProxy> getOrCreateFuture(long timestamp) { in getOrCreateFuture() argument 59 if (!mMetadataFutures.containsKey(timestamp)) { in getOrCreateFuture() 60 mMetadataFutures.put(timestamp, SettableFuture.<TotalCaptureResultProxy> create()); in getOrCreateFuture() 63 metadataFuture = mMetadataFutures.get(timestamp); in getOrCreateFuture() 70 public ListenableFuture<TotalCaptureResultProxy> removeMetadataFuture(final long timestamp) { in removeMetadataFuture() argument 71 ListenableFuture<TotalCaptureResultProxy> future = getOrCreateFuture(timestamp); in removeMetadataFuture() 77 mMetadataFutures.remove(timestamp); in removeMetadataFuture() 91 long timestamp = metadata.get(CaptureResult.SENSOR_TIMESTAMP); in update() local 92 SettableFuture<TotalCaptureResultProxy> future = getOrCreateFuture(timestamp); in update()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | Voicemail.java | 28 private final Long timestamp; field in Voicemail 41 Long timestamp, in Voicemail() argument 52 this.timestamp = timestamp; in Voicemail() 70 public static Builder createForInsertion(long timestamp, String number) { in createForInsertion() argument 71 return new Builder().setNumber(number).setTimestamp(timestamp); in createForInsertion() 112 public Builder setTimestamp(long timestamp) { in setTimestamp() argument 113 builderTimestamp = timestamp; in setTimestamp() 205 return timestamp; in getTimestampMillis() 268 dest.writeLong(timestamp); in writeToParcel() 313 timestamp = in.readLong(); in Voicemail()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessageData.java | 755 final long timestamp) { in updateSendingMessage() argument 760 mReceivedTimestamp = timestamp; in updateSendingMessage() 761 mSentTimestamp = timestamp; in updateSendingMessage() 763 mRetryStartTimestamp = timestamp; in updateSendingMessage() 766 public final void markMessageManualResend(final long timestamp) { in markMessageManualResend() argument 768 mReceivedTimestamp = timestamp; in markMessageManualResend() 769 mSentTimestamp = timestamp; in markMessageManualResend() 773 public final void markMessageSending(final long timestamp) { in markMessageSending() argument 776 mSentTimestamp = timestamp; in markMessageSending() 779 public final void markMessageResending(final long timestamp) { in markMessageResending() argument [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | InsertNewMessageAction.java | 145 final long timestamp = System.currentTimeMillis(); in executeAction() local 162 final long laterTimestamp = timestamp + 1; in executeAction() 173 timestamp, sendingConversationId); in executeAction() 180 final long timestampRoundedToSecond = 1000 * ((timestamp + 500) / 1000); in executeAction() 350 final String recipient, final long timestamp, final String sendingConversationId) { in insertSendingSmsMessage() argument 351 sLastSentMessageTimestamp = timestamp; in insertSendingSmsMessage() 357 syncManager.onNewMessageInserted(timestamp); in insertSendingSmsMessage() 384 timestamp, in insertSendingSmsMessage() 394 message.updateSendingMessage(conversationId, messageUri, timestamp); in insertSendingSmsMessage() 401 conversationId, message.getMessageId(), timestamp, in insertSendingSmsMessage() [all …]
|
D | ResendMessageAction.java | 71 long timestamp = System.currentTimeMillis(); in executeAction() local 74 timestamp = 1000 * ((timestamp + 500) / 1000); in executeAction() 79 + timestamp); in executeAction() 83 values.put(MessageColumns.RECEIVED_TIMESTAMP, timestamp); in executeAction() 84 values.put(MessageColumns.SENT_TIMESTAMP, timestamp); in executeAction() 85 values.put(MessageColumns.RETRY_START_TIMESTAMP, timestamp); in executeAction()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 48 long timestamp = halValue.timestamp; in toCarPropertyValue() local 53 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 56 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 59 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 62 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 69 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 75 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 81 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 83 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, v.stringValue); in toCarPropertyValue() 86 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, halData); in toCarPropertyValue() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AppScanStats.java | 68 public long timestamp; field in AppScanStats.LastScan 81 LastScan(long timestamp, boolean isFilterScan, boolean isCallbackScan, int scannerId, in LastScan() argument 84 this.timestamp = timestamp; in LastScan() 251 long scanDuration = stopTime - scan.timestamp; in recordScanStop() 346 return (SystemClock.elapsedRealtime() - mLastScans.get(0).timestamp) in isScanningTooFrequently() 472 scanDuration = currTime - scan.timestamp; in dumpToString() 525 Date timestamp = new Date(currentTime - currTime + scan.timestamp); in dumpToString() local 526 sb.append("\n " + DATE_FORMAT.format(timestamp) + " - "); in dumpToString() 570 Date timestamp = new Date(currentTime - currTime + scan.timestamp); in dumpToString() local 571 sb.append("\n " + DATE_FORMAT.format(timestamp) + " - "); in dumpToString() [all …]
|
/packages/services/Car/car-lib/src/android/car/diagnostic/ |
D | CarDiagnosticEvent.java | 47 public final long timestamp; field in CarDiagnosticEvent 69 timestamp = in.readLong(); in CarDiagnosticEvent() 96 dest.writeLong(timestamp); in writeToParcel() 141 jsonWriter.name("timestamp").value(timestamp); in writeToJson() 181 long timestamp, in CarDiagnosticEvent() argument 186 this.timestamp = timestamp; in CarDiagnosticEvent() 222 public Builder atTimestamp(long timestamp) { in atTimestamp() argument 223 mTimestamp = timestamp; in atTimestamp() 325 return new CarDiagnosticEvent(frameType, timestamp, newFloatValues, newIntValues, dtc); in withVendorSensorsRemoved() 361 return (timestamp < otherEvent.timestamp); in isEarlierThan() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | forgetting_curve_utils.cpp | 49 const int timestamp = newHistoricalInfo->getTimestamp(); in createUpdatedHistoricalInfo() local 54 return HistoricalInfo(timestamp, level, count); in createUpdatedHistoricalInfo() 63 return HistoricalInfo(timestamp, level, 0 /* count */); in createUpdatedHistoricalInfo() 66 return HistoricalInfo(timestamp, level, clampToValidCountRange(count, headerPolicy)); in createUpdatedHistoricalInfo() 73 return HistoricalInfo(timestamp, in createUpdatedHistoricalInfo() 77 return HistoricalInfo(timestamp, in createUpdatedHistoricalInfo() 81 return HistoricalInfo(timestamp, originalHistoricalInfo->getLevel(), updatedCount); in createUpdatedHistoricalInfo() 154 /* static */ int ForgettingCurveUtils::getElapsedTimeStepCount(const int timestamp, in getElapsedTimeStepCount() argument 156 const int elapsedTimeInSeconds = TimeKeeper::peekCurrentTime() - timestamp; in getElapsedTimeStepCount()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 116 final long timestamp = mDpm.getLastSecurityLogRetrievalTime(); in getLastSecurityLogRetrievalTime() local 117 return timestamp < 0 ? null : new Date(timestamp); in getLastSecurityLogRetrievalTime() 122 final long timestamp = mDpm.getLastBugReportRequestTime(); in getLastBugReportRequestTime() local 123 return timestamp < 0 ? null : new Date(timestamp); in getLastBugReportRequestTime() 128 final long timestamp = mDpm.getLastNetworkLogRetrievalTime(); in getLastNetworkLogRetrievalTime() local 129 return timestamp < 0 ? null : new Date(timestamp); in getLastNetworkLogRetrievalTime()
|
/packages/apps/Camera2/src/com/android/camera/session/ |
D | PlaceholderManager.java | 51 Placeholder(String title, Uri uri, long timestamp) { in Placeholder() argument 54 time = timestamp; in Placeholder() 71 public Placeholder insertEmptyPlaceholder(String title, Size size, long timestamp) { in insertEmptyPlaceholder() argument 73 return new Placeholder(title, uri, timestamp); in insertEmptyPlaceholder() 85 public Placeholder insertPlaceholder(String title, Bitmap placeholder, long timestamp) { in insertPlaceholder() argument 98 return new Placeholder(title, uri, timestamp); in insertPlaceholder() 101 public Placeholder insertPlaceholder(String title, byte[] placeholder, long timestamp) { in insertPlaceholder() argument 108 return insertPlaceholder(title, bitmap, timestamp); in insertPlaceholder()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPreferences.java | 502 public void addDailyRotation(long timestamp) { in addDailyRotation() argument 507 jsonArray.put(timestamp); in addDailyRotation() 615 long timestamp = jsonArray.getLong(i); in getDailyRotationsPreviousDay() local 616 if (timestamp >= midnightYesterdayTimestamp && timestamp < midnightTodayTimestamp) { in getDailyRotationsPreviousDay() 617 timestamps.add(timestamp); in getDailyRotationsPreviousDay() 635 public void setDailyWallpaperEnabledTimestamp(long timestamp) { in setDailyWallpaperEnabledTimestamp() argument 638 timestamp) in setDailyWallpaperEnabledTimestamp() 657 public void setLastDailyLogTimestamp(long timestamp) { in setLastDailyLogTimestamp() argument 659 .putLong(NoBackupKeys.KEY_LAST_DAILY_LOG_TIMESTAMP, timestamp) in setLastDailyLogTimestamp() 670 public void setLastAppActiveTimestamp(long timestamp) { in setLastAppActiveTimestamp() argument [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
D | MostRecentImageSaver.java | 104 for (Long timestamp : toRemove) { in closeOlderImages() 105 imageMap.remove(timestamp); in closeOlderImages() 124 long timestamp = image.getTimestamp(); in getMostRecentFullSizeImageTimestamp() local 125 if (!pairFound || timestamp > oldestTimestamp) { in getMostRecentFullSizeImageTimestamp() 126 oldestTimestamp = timestamp; in getMostRecentFullSizeImageTimestamp() 152 private ImageProxy getThumbnail(long timestamp) { in getThumbnail() argument 153 return mThumbnails.get(timestamp); in getThumbnail()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 105 final long timestamp = mDpm.getLastSecurityLogRetrievalTime(); in getLastSecurityLogRetrievalTime() local 106 return timestamp < 0 ? null : new Date(timestamp); in getLastSecurityLogRetrievalTime() 111 final long timestamp = mDpm.getLastBugReportRequestTime(); in getLastBugReportRequestTime() local 112 return timestamp < 0 ? null : new Date(timestamp); in getLastBugReportRequestTime() 117 final long timestamp = mDpm.getLastNetworkLogRetrievalTime(); in getLastNetworkLogRetrievalTime() local 118 return timestamp < 0 ? null : new Date(timestamp); in getLastNetworkLogRetrievalTime()
|
/packages/apps/DevCamera/src/com/android/devcamera/ |
D | GyroOperations.java | 60 public long timestamp; field in GyroOperations.GyroEvent2D 64 this.timestamp = event.timestamp; in GyroEvent2D() 87 mGyroLastTimestamp = event.timestamp; in integrateGyroForPosition() 90 long dt = (event.timestamp - mGyroLastTimestamp) / 1000; // microseconds between samples in integrateGyroForPosition() 96 mGyroLastTimestamp = event.timestamp; in integrateGyroForPosition()
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | VhalJsonReader.java | 74 long timestamp = rawEvent.getLong(JSON_FIELD_TIMESTAMP); in getEvent() local 79 timestamp, rawEvent.getInt(JSON_FIELD_VALUE) != 0); in getEvent() 82 timestamp, rawEvent.getInt(JSON_FIELD_VALUE)); in getEvent() 85 timestamp, rawEvent.getLong(JSON_FIELD_VALUE)); in getEvent() 88 CarPropertyValue.STATUS_AVAILABLE, timestamp, in getEvent() 92 timestamp, rawEvent.getString(JSON_FIELD_VALUE)); in getEvent() 107 timestamp, builder.build().value); in getEvent()
|