Home
last modified time | relevance | path

Searched refs:timestamp (Results 1 – 25 of 480) sorted by relevance

12345678910>>...20

/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorEvent.java158 public long timestamp; field in CarSensorEvent
174 timestamp = in.readLong(); in CarSensorEvent()
192 dest.writeLong(timestamp); in writeToParcel()
211 public CarSensorEvent(int sensorType, long timestamp, int floatValueSize, int intValueSize, in CarSensorEvent() argument
214 this.timestamp = timestamp; in CarSensorEvent()
221 CarSensorEvent(int sensorType, long timestamp, float[] floatValues, int[] intValues, in CarSensorEvent() argument
224 this.timestamp = timestamp; in CarSensorEvent()
243 public long timestamp; field in CarSensorEvent.EnvironmentData
268 data.timestamp = timestamp; in getEnvironmentData()
276 public long timestamp; field in CarSensorEvent.IgnitionStateData
[all …]
/packages/services/Car/tools/emulator/
Ddiagjson.example3 "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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DObexTimeTest.java68 ObexTime timestamp = new ObexTime(VALID_TIME_STRING); in createWithValidDateTimeString_TimestampCorrect() local
70 timestamp.getInstant()); in createWithValidDateTimeString_TimestampCorrect()
72 VALID_DATE_LOCAL_TZ, timestamp.getTime()); in createWithValidDateTimeString_TimestampCorrect()
77 ObexTime timestamp = new ObexTime(VALID_TIME_STRING_WITH_OFFSET_POS); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect() local
79 timestamp.getInstant()); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect()
81 VALID_DATE_WITH_OFFSET_POS, timestamp.getTime()); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect()
86 ObexTime timestamp = new ObexTime(VALID_TIME_STRING_WITH_OFFSET_NEG); in createWithValidDateTimeStringWithNegOffset_TimestampCorrect() local
88 timestamp.getInstant()); in createWithValidDateTimeStringWithNegOffset_TimestampCorrect()
90 VALID_DATE_WITH_OFFSET_NEG, timestamp.getTime()); in createWithValidDateTimeStringWithNegOffset_TimestampCorrect()
95 ObexTime timestamp = new ObexTime(VALID_DATE_LOCAL_TZ); in createWithValidDate_TimestampCorrect() local
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DHalPropValueBuilder.java87 public HalPropValue build(int prop, int areaId, long timestamp, int status) { in build() argument
89 return new AidlHalPropValue(prop, areaId, timestamp, status); in build()
91 return new HidlHalPropValue(prop, areaId, timestamp, status); in build()
115 public HalPropValue build(int prop, int areaId, long timestamp, int status, int value) { in build() argument
117 return new AidlHalPropValue(prop, areaId, timestamp, status, value); in build()
119 return new HidlHalPropValue(prop, areaId, timestamp, status, value); in build()
143 public HalPropValue build(int prop, int areaId, long timestamp, int status, int[] values) { in build() argument
145 return new AidlHalPropValue(prop, areaId, timestamp, status, values); in build()
147 return new HidlHalPropValue(prop, areaId, timestamp, status, values); in build()
171 public HalPropValue build(int prop, int areaId, long timestamp, int status, float value) { in build() argument
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/src/
DRtpContextParams.cpp15 timestamp(0), in RtpContextParams()
21 const int64_t ssrc, const int64_t timestamp, const int32_t sequenceNumber) in RtpContextParams() argument
24 this->timestamp = timestamp; in RtpContextParams()
31 this->timestamp = params.timestamp; in RtpContextParams()
42 this->timestamp = params.timestamp; in operator =()
50 return (this->ssrc == params.ssrc && this->timestamp == params.timestamp && in operator ==()
56 return (this->ssrc != params.ssrc || this->timestamp != params.timestamp || in operator !=()
76 err = out->writeInt64(timestamp); in writeToParcel()
109 err = in->readInt64(&timestamp); in readFromParcel()
138 return timestamp; in getTimestamp()
[all …]
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DGazeAttentionProcessorTest.java58 long timestamp = 1234; in testUpdateAttention_neverExceedsOne() local
63 assertThat(mAttentionProcessor.updateAttention(onRoadDetection, timestamp)) in testUpdateAttention_neverExceedsOne()
65 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverExceedsOne()
69 assertTrue(mAttentionProcessor.updateAttention(onRoadDetection, timestamp) <= 1.0f); in testUpdateAttention_neverExceedsOne()
70 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverExceedsOne()
77 long timestamp = 1234; in testUpdateAttention_neverBelowZero() local
82 assertThat(mAttentionProcessor.updateAttention(offRoadDetection, timestamp)) in testUpdateAttention_neverBelowZero()
84 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverBelowZero()
88 assertTrue(mAttentionProcessor.updateAttention(offRoadDetection, timestamp) >= 0); in testUpdateAttention_neverBelowZero()
89 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverBelowZero()
[all …]
DGazeDriverAwarenessSupplierTest.java117 long timestamp = START_TIME_MILLIS + FRAME_TIME_MILLIS; in testprocessDetectionEvent_neverExceedsOne() local
122 buildGazeDetection(timestamp, GazeDetection.VEHICLE_REGION_FORWARD_ROADWAY); in testprocessDetectionEvent_neverExceedsOne()
126 .emitAwarenessEvent(new DriverAwarenessEvent(timestamp, attention)); in testprocessDetectionEvent_neverExceedsOne()
130 timestamp += FRAME_TIME_MILLIS; in testprocessDetectionEvent_neverExceedsOne()
143 long timestamp = START_TIME_MILLIS + FRAME_TIME_MILLIS; in testprocessDetectionEvent_neverFallsBelowZero() local
148 buildGazeDetection(timestamp, GazeDetection.VEHICLE_REGION_HEAD_UNIT_DISPLAY); in testprocessDetectionEvent_neverFallsBelowZero()
152 .emitAwarenessEvent(new DriverAwarenessEvent(timestamp, attention)); in testprocessDetectionEvent_neverFallsBelowZero()
156 timestamp += FRAME_TIME_MILLIS; in testprocessDetectionEvent_neverFallsBelowZero()
162 long timestamp, @GazeDetection.VehicleRegion int gazeTarget) { in buildGazeDetection() argument
174 OccupantAwarenessDetection.VEHICLE_OCCUPANT_DRIVER, timestamp, true, gaze, null); in buildGazeDetection()
[all …]
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DAudioJitterBufferTest.cpp137 uint32_t timestamp = 0; in TEST_F() local
149 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
152 EXPECT_EQ(timestamp, countGetFrame * TEST_FRAME_INTERVAL); in TEST_F()
169 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
172 EXPECT_EQ(timestamp, countGetFrame * TEST_FRAME_INTERVAL); in TEST_F()
201 uint32_t timestamp = 0; in TEST_F() local
218 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
222 EXPECT_EQ(timestamp, countGetFrame * TEST_FRAME_INTERVAL); in TEST_F()
238 if (mJitterBuffer->Get(&subtype, &data, &size, &timestamp, &mark, &seq, getTime)) in TEST_F()
242 EXPECT_EQ(timestamp, countGetFrame * TEST_FRAME_INTERVAL); in TEST_F()
[all …]
DJitterNetworkAnalyserTest.cpp61 int32_t timestamp = 0; in TEST_F() local
66 timestamp += TEST_FRAME_INTERVAL; in TEST_F()
71 EXPECT_EQ(mAnalyzer->CalculateTransitTimeDifference(timestamp, arrivalTime), 0); in TEST_F()
75 EXPECT_EQ(mAnalyzer->CalculateTransitTimeDifference(timestamp, arrivalTime), kJitter); in TEST_F()
79 mAnalyzer->GetNextJitterBufferSize(currentJitterBufferSize, timestamp); in TEST_F()
91 int32_t timestamp = 0; in TEST_F() local
97 timestamp += TEST_FRAME_INTERVAL; in TEST_F()
102 EXPECT_EQ(mAnalyzer->CalculateTransitTimeDifference(timestamp, arrivalTime), 0); in TEST_F()
106 EXPECT_EQ(mAnalyzer->CalculateTransitTimeDifference(timestamp, arrivalTime), kJitter); in TEST_F()
123 int32_t timestamp = 0; in TEST_F() local
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DTimestampUtils.java24 static long getNextHourTimestamp(final long timestamp) { in getNextHourTimestamp() argument
25 final Calendar calendar = getSharpHourCalendar(timestamp); in getNextHourTimestamp()
30 static long getNextEvenHourTimestamp(final long timestamp) { in getNextEvenHourTimestamp() argument
31 final Calendar calendar = getSharpHourCalendar(timestamp); in getNextEvenHourTimestamp()
37 static long getLastEvenHourTimestamp(final long timestamp) { in getLastEvenHourTimestamp() argument
38 final Calendar calendar = getSharpHourCalendar(timestamp); in getLastEvenHourTimestamp()
44 static long getNextDayTimestamp(final long timestamp) { in getNextDayTimestamp() argument
45 final Calendar calendar = getSharpHourCalendar(timestamp); in getNextDayTimestamp()
51 static boolean isMidnight(final long timestamp) { in isMidnight() argument
53 calendar.setTimeInMillis(timestamp); in isMidnight()
[all …]
DBatteryLevelData.java54 for (Long timestamp : timestamps) { in PeriodBatteryLevelData()
55 mLevels.add(batteryLevelMap.containsKey(timestamp) in PeriodBatteryLevelData()
56 ? batteryLevelMap.get(timestamp) : BATTERY_LEVEL_UNKNOWN); in PeriodBatteryLevelData()
179 for (long timestamp = startTimestamp; timestamp < endTimestamp; in getDailyTimestamps()
180 timestamp = TimestampUtils.getNextDayTimestamp(timestamp)) { in getDailyTimestamps()
181 dailyTimestampList.add(timestamp); in getDailyTimestamps()
195 for (long timestamp = TimestampUtils.getNextEvenHourTimestamp(startTime); in getHourlyTimestamps()
196 timestamp < endTime; timestamp += TIME_SLOT) { in getHourlyTimestamps()
197 hourlyTimestampsPerDay.add(timestamp); in getHourlyTimestamps()
/packages/modules/StatsD/statsd/tests/external/
Dpuller_util_test.cpp44 const int timestamp = 1234; variable
67 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, hostNonAdditiveData, in TEST()
71 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
89 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, isolatedNonAdditiveData, in TEST()
93 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, isolatedNonAdditiveData, in TEST()
97 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
122 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, isolatedNonAdditiveData, in TEST()
126 makeUidLogEvent(uidAtomTagId, timestamp, hostUid, hostNonAdditiveData, in TEST()
151 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, isolatedNonAdditiveData, in TEST()
155 makeUidLogEvent(uidAtomTagId, timestamp, isolatedUid1, hostNonAdditiveData, in TEST()
[all …]
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/
DBluetoothActivityEnergyInfoTest.java43 long timestamp = 10000; in constructor() local
50 timestamp, stackState, txTime, rxTime, idleTime, energyUsed); in constructor()
52 assertThat(info.getTimestampMillis()).isEqualTo(timestamp); in constructor()
63 long timestamp = 10000; in setUidTraffic() local
70 timestamp, stackState, txTime, rxTime, idleTime, energyUsed); in setUidTraffic()
83 long timestamp = 10000; in isValid() local
90 timestamp, stackState, txTime, rxTime, idleTime, energyUsed); in isValid()
95 timestamp, stackState, -1, rxTime, idleTime, energyUsed); in isValid()
99 timestamp, stackState, txTime, -1, idleTime, energyUsed); in isValid()
103 timestamp, stackState, txTime, rxTime, -1, energyUsed); in isValid()
[all …]
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DOringDurationTracker.cpp84 void OringDurationTracker::noteStop(const HashableDimensionKey& key, const int64_t timestamp, in noteStop() argument
96 (timestamp - mLastStartTime); in noteStop()
98 timestamp, mCurrentBucketNum, in noteStop()
101 (long long)timestamp - mLastStartTime, (long long)getCurrentStateKeyDuration(), in noteStop()
115 stopAnomalyAlarm(timestamp); in noteStop()
119 void OringDurationTracker::noteStopAll(const int64_t timestamp) { in noteStopAll() argument
122 (timestamp - mLastStartTime); in noteStopAll()
124 (long long)timestamp - mLastStartTime, (long long)getCurrentStateKeyDuration(), in noteStopAll()
127 timestamp, mCurrentBucketNum, in noteStopAll()
131 stopAnomalyAlarm(timestamp); in noteStopAll()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java111 long timestamp = SystemClock.elapsedRealtimeNanos(); in addNewEvent() local
112 return addNewEvent(builder, timestamp); in addNewEvent()
115 synchronized VehiclePropValue addNewEvent(DiagnosticEventBuilder builder, long timestamp) { in addNewEvent() argument
116 VehiclePropValue newEvent = builder.build(timestamp); in addNewEvent()
117 mEvents.put(timestamp, newEvent); in addNewEvent()
121 synchronized VehiclePropValue removeEvent(long timestamp) { in removeEvent() argument
122 return mEvents.remove(timestamp); in removeEvent()
133 synchronized VehiclePropValue getEvent(long timestamp) { in getEvent() argument
134 return mEvents.get(timestamp); in getEvent()
208 long timestamp = value.value.int64Values[0]; in onPropertyGet() local
[all …]
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/nodes/
DTextRtpPayloadEncoderNode.cpp69 uint32_t size, uint32_t timestamp, bool mark, uint32_t /*seq*/, in OnDataFromFrontNode() argument
76 EncodeT140(data, size, timestamp, mark); in OnDataFromFrontNode()
114 uint8_t* data, uint32_t size, uint32_t timestamp, bool mark) in EncodeT140() argument
124 if (size > 0 && timestamp > mLastTimestampSent + T140_BUFFERING_TIME) in EncodeT140()
133 size, bNewMark, mRedundantLevel, timestamp, mLastTimestampSent, in EncodeT140()
159 uint32_t nTSInterval = timestamp - pEntry->nTimestamp; in EncodeT140()
165 timestamp, pEntry->nTimestamp, nTSInterval, pEntry->arrivalTime); in EncodeT140()
227 nullRED.nTimestamp = timestamp; in EncodeT140()
252 uint32_t nTSInterval = timestamp - pEntry->nTimestamp; in EncodeT140()
288 mBWPayload.GetBufferSize(), timestamp, bNewMark); in EncodeT140()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DSimpleDate.java33 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/Car/Settings/src/com/android/car/settingslib/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java52 long timestamp = mDpm.getLastSecurityLogRetrievalTime(); in getLastSecurityLogRetrievalTime() local
53 return timestamp < 0 ? null : new Date(timestamp); in getLastSecurityLogRetrievalTime()
58 long timestamp = mDpm.getLastBugReportRequestTime(); in getLastBugReportRequestTime() local
59 return timestamp < 0 ? null : new Date(timestamp); in getLastBugReportRequestTime()
64 long timestamp = mDpm.getLastNetworkLogRetrievalTime(); in getLastNetworkLogRetrievalTime() local
65 return timestamp < 0 ? null : new Date(timestamp); in getLastNetworkLogRetrievalTime()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DFileUtils.java58 static File getTempDir(Context context, String timestamp) { in getTempDir() argument
61 File dir = new File(context.getDataDir(), TEMP_DIR + "/" + timestamp); in getTempDir()
85 static String getAudioFileName(String timestamp, MetaBugReport bug, String extension) { in getAudioFileName() argument
87 return (PREFIX + bug.getUserName() + FS + timestamp in getAudioFileName()
106 static File getFileWithSuffix(Context context, String timestamp, String suffix) { in getFileWithSuffix() argument
107 return new File(getTempDir(context, timestamp), timestamp + suffix); in getFileWithSuffix()
119 static File getFile(Context context, String timestamp, String name) { in getFile() argument
120 return new File(getTempDir(context, timestamp), name); in getFile()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/metadatasynchronizer/
DMetadataPoolImpl.java56 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/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/nodes/
DRtpEncoderNode.cpp159 uint32_t timestamp = 0; in ProcessData() local
165 if (GetData(&subtype, &data, &size, &timestamp, &mark, &seq, &datatype, &arrivalTime)) in ProcessData()
176 ProcessVideoData(subtype, data, size, timestamp, mark); in ProcessData()
180 ProcessTextData(subtype, data, size, timestamp, mark); in ProcessData()
543 ImsMediaSubType subtype, uint8_t* data, uint32_t size, uint32_t timestamp, bool mark) in ProcessVideoData() argument
546 subtype, size, timestamp, mark); in ProcessVideoData()
560 mRtpSession->SendRtpPacket(mRtpPayloadTx, data, size, timestamp, mark, 0, in ProcessVideoData()
565 mRtpSession->SendRtpPacket(mRtpPayloadTx, data, size, timestamp, mark, 0); in ProcessVideoData()
570 ImsMediaSubType subtype, uint8_t* data, uint32_t size, uint32_t timestamp, bool mark) in ProcessTextData() argument
574 timestamp, mark); in ProcessTextData()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVoicemail.java28 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/Settings/src/com/android/settings/fuelgauge/batteryusage/db/
DBatteryUsageSlotEntity.java40 public final long timestamp; field in BatteryUsageSlotEntity
43 public BatteryUsageSlotEntity(final long timestamp, final String batteryUsageSlot) { in BatteryUsageSlotEntity() argument
44 this.timestamp = timestamp; in BatteryUsageSlotEntity()
60 final String recordAtDateTime = ConvertUtils.utcToLocalTimeForLogging(timestamp); in toString()
93 public Builder setTimestamp(final long timestamp) { in setTimestamp() argument
94 mTimestamp = timestamp; in setTimestamp()
DBatteryStateDao.java42 Cursor getLatestTimestampBefore(long timestamp); in getLatestTimestampBefore() argument
46 Cursor getBatteryStatesAfter(long timestamp); in getBatteryStatesAfter() argument
50 List<BatteryState> getAllAfter(long timestamp); in getAllAfter() argument
54 int getDistinctTimestampCount(long timestamp); in getDistinctTimestampCount() argument
58 List<Long> getDistinctTimestamps(long timestamp); in getDistinctTimestamps() argument
62 void clearAllBefore(long timestamp); in clearAllBefore() argument
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DDTC.java69 long timestamp, in DTC() argument
74 this.mTimestamp = timestamp; in DTC()
87 DTC(String code, long timestamp, Context context) { in DTC() argument
89 this.mTimestamp = timestamp; in DTC()
123 public void setTimestamp(long timestamp) { in setTimestamp() argument
124 mTimestamp = timestamp; in setTimestamp()
144 long timestamp = sRandomGen.nextLong(); in createSampleDTC() local
145 return new DTC(code, timestamp, context); in createSampleDTC()

12345678910>>...20