/aosp12/packages/services/Car/car-lib/src/android/car/hardware/ |
H A D | CarSensorEvent.java | 183 this.timestamp = timestamp; in CarSensorEvent() 193 this.timestamp = timestamp; in CarSensorEvent() 233 data.timestamp = timestamp; in getEnvironmentData() 261 data.timestamp = timestamp; in getIgnitionStateData() 289 data.timestamp = timestamp; in getNightData() 317 data.timestamp = timestamp; in getGearData() 345 data.timestamp = timestamp; in getParkingBrakeData() 374 data.timestamp = timestamp; in getFuelLevelData() 410 data.timestamp = timestamp; in getOdometerData() 438 data.timestamp = timestamp; in getRpmData() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/ |
H A D | EventIndexTest.java | 69 assertTimeSlot(timestamp("01-30 18:14"), timestamp("01-30 18:16"), mostRecentSlot); in testMultipleEvents() 73 assertTimeSlot(timestamp("01-06 00:00"), timestamp("01-07 00:00"), slots.get(0)); in testMultipleEvents() 74 assertTimeSlot(timestamp("01-27 16:00"), timestamp("01-27 20:00"), slots.get(1)); in testMultipleEvents() 75 assertTimeSlot(timestamp("01-30 03:00"), timestamp("01-30 04:00"), slots.get(2)); in testMultipleEvents() 76 assertTimeSlot(timestamp("01-30 18:14"), timestamp("01-30 18:16"), slots.get(3)); in testMultipleEvents() 86 assertTimeSlot(timestamp("01-30 18:50"), timestamp("01-30 18:52"), slots.get(0)); in testBitmapShift() 92 assertTimeSlot(timestamp("01-30 18:00"), timestamp("01-30 19:00"), slots.get(0)); in testBitmapShift() 98 assertTimeSlot(timestamp("01-30 16:00"), timestamp("01-30 20:00"), slots.get(0)); in testBitmapShift() 104 assertTimeSlot(timestamp("01-30 00:00"), timestamp("01-31 00:00"), slots.get(0)); in testBitmapShift() 147 assertTimeSlot(timestamp("01-06 00:00"), timestamp("01-07 00:00"), slots.get(0)); in combineEventIndexes() [all …]
|
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
H A D | datalogger_outputs.c | 55 if (timestamp) in inv_get_sensor_type_gyro_raw_short() 56 *timestamp = pg->timestamp; in inv_get_sensor_type_gyro_raw_short() 81 if (timestamp) in inv_get_sensor_type_gyro_raw_body_float() 82 *timestamp = pg->timestamp; in inv_get_sensor_type_gyro_raw_body_float() 113 if (timestamp) in inv_get_sensor_type_accel_raw_short() 114 *timestamp = pa->timestamp; in inv_get_sensor_type_accel_raw_short() 147 if (timestamp) in inv_get_sensor_type_compass_raw_short() 148 *timestamp = pc->timestamp; in inv_get_sensor_type_compass_raw_short() 217 *timestamp = pt->timestamp; 231 *timestamp = pt->timestamp; in inv_get_sensor_type_temperature_float() [all …]
|
H A D | datalogger_outputs.h | 22 inv_time_t *timestamp); 24 inv_time_t *timestamp); 26 inv_time_t *timestamp); 28 float *values, int8_t *accuracy, inv_time_t *timestamp); 30 inv_time_t *timestamp); 32 inv_time_t * timestamp); 34 inv_time_t * timestamp); 38 inv_time_t *timestamp); 40 inv_time_t *timestamp); 42 inv_time_t *timestamp); [all …]
|
/aosp12/packages/services/Car/tools/emulator/ |
H A 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 …]
|
/aosp12/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
H A D | data_builder.c | 402 timestamp = sensors.accel.timestamp; in inv_get_last_timestamp() 406 timestamp = sensors.gyro.timestamp; in inv_get_last_timestamp() 416 if (timestamp < sensors.temp.timestamp) in inv_get_last_timestamp() 808 sensors.accel.timestamp = timestamp; in inv_build_accel() 834 sensors.gyro.timestamp = timestamp; in inv_build_gyro() 881 sensors.compass.timestamp = timestamp; in inv_build_compass() 906 sensors.temp.timestamp = timestamp; in inv_build_temp() 945 sensors.quat.timestamp = timestamp; in inv_build_quat() 1249 *timestamp = sensors.gyro.timestamp; in inv_get_gyro_set() 1265 *timestamp = sensors.gyro.timestamp; in inv_get_gyro_set_raw() [all …]
|
H A D | hal_outputs.h | 17 inv_time_t * timestamp); 19 inv_time_t * timestamp); 21 inv_time_t * timestamp); 23 inv_time_t * timestamp); 29 inv_time_t * timestamp); 33 inv_time_t * timestamp); 35 inv_time_t * timestamp); 38 inv_time_t * timestamp); 40 inv_time_t * timestamp); 42 inv_time_t * timestamp); [all …]
|
H A D | hal_outputs.c | 104 inv_time_t * timestamp) in inv_get_sensor_type_linear_acceleration() argument 139 *timestamp = hal_out.nav_timestamp; in inv_get_sensor_type_gravity() 233 inv_time_t * timestamp) in inv_get_sensor_type_rotation_vector() argument 236 *timestamp = hal_out.nav_timestamp; in inv_get_sensor_type_rotation_vector() 254 inv_time_t * timestamp) in inv_get_sensor_type_rotation_vector_6_axis() argument 297 inv_time_t * timestamp) in inv_get_sensor_type_geomagnetic_rotation_vector() argument 337 *timestamp = hal_out.mag_timestamp; in inv_get_sensor_type_magnetic_field() 382 inv_time_t timestamp; in inv_get_rotation_geomagnetic() local 411 inv_time_t timestamp; in inv_get_rotation_6_axis() local 496 *timestamp = hal_out.nav_timestamp; in inv_get_sensor_type_orientation() [all …]
|
/aosp12/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/ |
H A D | GazeAttentionProcessorTest.java | 58 long timestamp = 1234; in testUpdateAttention_neverExceedsOne() local 63 assertThat(mAttentionProcessor.updateAttention(onRoadDetection, timestamp)) in testUpdateAttention_neverExceedsOne() 65 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverExceedsOne() 70 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverExceedsOne() 77 long timestamp = 1234; in testUpdateAttention_neverBelowZero() local 84 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverBelowZero() 89 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_neverBelowZero() 102 long timestamp = 1234; in testUpdateAttention_offRoadAndOnRoad() local 107 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_offRoadAndOnRoad() 112 timestamp += FRAME_TIME_MILLIS; in testUpdateAttention_offRoadAndOnRoad() [all …]
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/mapclient/ |
H A D | ObexTimeTest.java | 61 ObexTime timestamp = new ObexTime(VALID_TIME_STRING); in createWithValidDateTimeString_TimestampCorrect() local 63 timestamp.getTime()); in createWithValidDateTimeString_TimestampCorrect() 70 timestamp.getTime()); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect() 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() 98 timestamp.getTime()); in createWithInvalidDelimiterString_TimestampIsNull() 105 timestamp.getTime()); in createWithInvalidOffsetString_TimestampIsNull() [all …]
|
/aosp12/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
H A D | data_builder.c | 605 timestamp = sensors.accel.timestamp; in inv_get_last_timestamp() 609 timestamp = sensors.gyro.timestamp; in inv_get_last_timestamp() 620 timestamp = sensors.temp.timestamp; in inv_get_last_timestamp() 1034 sensors.accel.timestamp = timestamp; in inv_build_accel() 1060 sensors.gyro.timestamp = timestamp; in inv_build_gyro() 1107 sensors.compass.timestamp = timestamp; in inv_build_compass() 1132 sensors.temp.timestamp = timestamp; in inv_build_temp() 1172 sensors.quat.timestamp = timestamp; in inv_build_quat() 1476 *timestamp = sensors.gyro.timestamp; in inv_get_gyro_set() 1492 *timestamp = sensors.gyro.timestamp; in inv_get_gyro_set_raw() [all …]
|
H A D | hal_outputs.h | 17 inv_time_t * timestamp); 19 inv_time_t * timestamp); 21 inv_time_t * timestamp); 23 inv_time_t * timestamp); 29 inv_time_t * timestamp); 33 inv_time_t * timestamp); 35 inv_time_t * timestamp); 38 inv_time_t * timestamp); 40 inv_time_t * timestamp); 42 inv_time_t * timestamp); [all …]
|
H A D | hal_outputs.c | 130 inv_get_accel_set(accel, accuracy, timestamp); in inv_get_sensor_type_accelerometer() 152 inv_time_t * timestamp) in inv_get_sensor_type_linear_acceleration() argument 207 inv_get_gyro_set(gyro, accuracy, timestamp); in inv_get_sensor_type_gyroscope() 233 inv_get_gyro_set_raw(gyro, accuracy, timestamp); in inv_get_sensor_type_gyroscope_raw() 272 inv_time_t * timestamp) in inv_get_sensor_type_rotation_vector() argument 294 inv_time_t * timestamp) in inv_get_sensor_type_rotation_vector_6_axis() argument 339 inv_time_t * timestamp) in inv_get_sensor_type_geomagnetic_rotation_vector() argument 383 *timestamp = hal_out.mag_timestamp; in inv_get_sensor_type_magnetic_field() 409 inv_get_compass_set_raw(mag, accuracy, timestamp); in inv_get_sensor_type_magnetic_field_raw() 428 inv_time_t timestamp; in inv_get_rotation_geomagnetic() local [all …]
|
H A D | results_holder.h | 62 void inv_store_gaming_quaternion(const long *quat, inv_time_t timestamp); 63 void inv_store_accel_quaternion(const long *quat, inv_time_t timestamp); 64 void inv_store_nav_quaternion(const float *quat, inv_time_t timestamp); 65 void inv_store_game_quaternion(const float *quat, inv_time_t timestamp); 66 void inv_store_geomag_quaternion(const float *quat, inv_time_t timestamp); 87 inv_error_t inv_get_6axis_quaternion(long *data, inv_time_t *timestamp); 90 inv_error_t inv_get_6axis_quaternion_float(float *data, inv_time_t *timestamp); 96 void inv_get_quaternion_set(long *data, int *accuracy, inv_time_t *timestamp); 98 inv_error_t inv_get_geomagnetic_quaternion(long *data, inv_time_t *timestamp); 115 void inv_set_compass_correction(const long *data, inv_time_t timestamp); [all …]
|
H A D | results_holder.c | 71 rh.gam_timestamp = timestamp; in inv_store_gaming_quaternion() 82 rh.nav_timestamp = timestamp; in inv_store_nav_quaternion() 93 rh.geomag_timestamp = timestamp; in inv_store_geomag_quaternion() 105 rh.gam_timestamp = timestamp; in inv_store_game_quaternion() 117 rh.geomag_timestamp = timestamp; in inv_store_accel_quaternion() 128 rh.nav_timestamp = timestamp; in inv_set_compass_correction() 140 rh.geomag_timestamp = timestamp; in inv_set_geomagnetic_compass_correction() 151 *timestamp = rh.nav_timestamp; in inv_get_compass_correction() 162 *timestamp = rh.geomag_timestamp; in inv_get_geomagnetic_compass_correction() 301 *timestamp = rh.gam_timestamp; in inv_get_6axis_quaternion() [all …]
|
/aosp12/frameworks/av/media/libaaudio/tests/ |
H A D | test_timestamps.cpp | 130 timestamp->result = AAudioStream_getTimestamp(stream, in timestampDataCallbackProc() 134 timestamp->framesTotal = timestampData->framesTotal; in timestampDataCallbackProc() 138 timestamp->appNanoseconds = getNanoseconds(); in timestampDataCallbackProc() 287 if (timestamp->result != AAUDIO_OK) { in testTimeStamps() 291 (long long) timestamp->framesTotal, in testTimeStamps() 292 (long long) timestamp->appPosition, in testTimeStamps() 299 const bool timeChanged = (timestamp->timestampNanos in testTimeStamps() 300 != (timestamp - 1)->timestampNanos); in testTimeStamps() 315 (long long) timestamp->framesTotal, in testTimeStamps() 316 (long long) timestamp->appPosition); in testTimeStamps() [all …]
|
/aosp12/hardware/qcom/camera/msm8998/QCamera2/util/ |
H A D | camscope_packet_type.cpp | 254 struct timeval timestamp, in fill_camscope_sw_base() argument 257 scope_struct->timestamp = timestamp; in fill_camscope_sw_base() 310 struct timeval timestamp, in fill_camscope_in_out_timing() argument 339 struct timeval timestamp; in camscope_base_log() local 340 gettimeofday(×tamp, NULL); in camscope_base_log() 375 struct timeval timestamp; in camscope_sw_base_log() local 376 gettimeofday(×tamp, NULL); in camscope_sw_base_log() 415 struct timeval timestamp; in camscope_timing_log() local 416 gettimeofday(×tamp, NULL); in camscope_timing_log() 458 struct timeval timestamp; in camscope_in_out_timing_log() local [all …]
|
/aosp12/frameworks/base/startop/scripts/lib/ |
H A D | logcat_utils.py | 27 def parse_logcat_datetime(timestamp: str) -> Optional[datetime]: 39 timestamp = datetime.strptime(timestamp, 41 return timestamp 43 print_utils.debug_print('Invalid line: ' + timestamp) 54 timestamp = parse_logcat_datetime(cur_timestamp_str) 55 if not timestamp: 58 return timestamp > timeout 60 async def _blocking_wait_for_logcat_pattern(timestamp: datetime, 65 logcat_cmd.append(str(timestamp)) 93 def blocking_wait_for_logcat_pattern(timestamp: datetime, [all …]
|
/aosp12/frameworks/opt/car/services/tests/src/com/android/internal/car/ |
H A D | UserMetricsTest.java | 49 long timestamp = sendStartingEvent(mUserId); in testStartingEvent_success() local 51 assertStartTime(timestamp, mUserId); in testStartingEvent_success() 85 assertSwitchTime(timestamp, mFromUserId, mUserId); in testSwitchingEvent_success() 98 long timestamp = sendUnlockingEvent(mUserId); in testUnlockingEvent_success() local 100 assertUnlockingTime(timestamp, mUserId); in testUnlockingEvent_success() 112 long timestamp = sendStartingEvent(mUserId); in testUnlockedEvent_success() local 113 assertStartTime(timestamp, mUserId); in testUnlockedEvent_success() 122 long timestamp = sendStopingEvent(mUserId); in testStopingEvent_success() local 124 assertStopingTime(timestamp, mUserId); in testStopingEvent_success() 155 long timestamp = sendStopingEvent(mUserId); in testStoppedEvent_success() local [all …]
|
/aosp12/frameworks/av/media/libheadtracking/ |
H A D | ScreenHeadFusion.cpp | 22 void ScreenHeadFusion::setWorldToHeadPose(int64_t timestamp, const Pose3f& worldToHead) { in setWorldToHeadPose() argument 23 mWorldToHead = TimestampedPose{.timestamp = timestamp, .pose = worldToHead}; in setWorldToHeadPose() 26 void ScreenHeadFusion::setWorldToScreenPose(int64_t timestamp, const Pose3f& worldToScreen) { in setWorldToScreenPose() argument 27 mWorldToScreen = TimestampedPose{.timestamp = timestamp, .pose = worldToScreen}; in setWorldToScreenPose() 36 .timestamp = std::min(mWorldToHead->timestamp, mWorldToScreen->timestamp), in calculate()
|
/aosp12/hardware/google/camera/common/sensor_listener/ |
H A D | goog_sensor_sync.cc | 176 return timestamp; in SyncTimestamp() 181 int64_t nearest_sync = timestamp; in SyncTimestamp() 183 if (llabs(event.sensor_event.timestamp - timestamp) < min_delta) { in SyncTimestamp() 184 min_delta = llabs(event.sensor_event.timestamp - timestamp); in SyncTimestamp() 185 nearest_sync = event.sensor_event.timestamp; in SyncTimestamp() 197 __func__, __LINE__, timestamp, curr_time); in SyncTimestamp() 212 int64_t timestamp) { in FindNearestEvent() argument 221 int64_t delta = llabs(event.sensor_event.timestamp - timestamp); in FindNearestEvent() 233 return timestamp; in MatchTimestamp() 242 return event.sensor_event.timestamp; in MatchTimestamp() [all …]
|
/aosp12/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/ |
H A 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()
|
/aosp12/packages/modules/StatsD/statsd/src/metrics/duration_helper/ |
H A D | OringDurationTracker.cpp | 112 stopAnomalyAlarm(timestamp); in noteStop() 119 (timestamp - mLastStartTime); in noteStopAll() 124 timestamp, mCurrentBucketNum, in noteStopAll() 128 stopAnomalyAlarm(timestamp); in noteStopAll() 293 mLastStartTime = timestamp; in onSlicedConditionMayChange() 298 startAnomalyAlarm(timestamp); in onSlicedConditionMayChange() 304 stopAnomalyAlarm(timestamp); in onSlicedConditionMayChange() 313 mLastStartTime = timestamp; in onConditionChanged() 316 startAnomalyAlarm(timestamp); in onConditionChanged() 334 stopAnomalyAlarm(timestamp); in onConditionChanged() [all …]
|
/aosp12/hardware/invensense/65xx/libsensors_iio/software/core/mllite/linux/ |
H A D | inv_sysfs_utils.c | 78 if (!timestamp) in inv_read_buffer() 82 &data[2], timestamp); in inv_read_buffer() 84 if (count < (timestamp?4:3)) in inv_read_buffer() 97 long long *timestamp) in inv_read_raw() argument 105 if (!timestamp) in inv_read_raw() 109 &data[2], timestamp); in inv_read_raw() 110 if (count < (timestamp?4:3)) in inv_read_raw() 123 long long *timestamp) in inv_read_temperature_raw() argument 131 count = sscanf(str, "%hd%lld", &data[0], timestamp); in inv_read_temperature_raw() 245 long long *timestamp) in inv_read_q16() argument [all …]
|
/aosp12/hardware/invensense/6515/libsensors_iio/software/core/mllite/linux/ |
H A D | inv_sysfs_utils.c | 84 if (!timestamp) in inv_read_buffer() 88 &data[2], timestamp); in inv_read_buffer() 90 if (count < (timestamp?4:3)) in inv_read_buffer() 103 long long *timestamp) in inv_read_raw() argument 111 if (!timestamp) in inv_read_raw() 115 &data[2], timestamp); in inv_read_raw() 116 if (count < (timestamp?4:3)) in inv_read_raw() 129 long long *timestamp) in inv_read_temperature_raw() argument 137 count = sscanf(str, "%hd%lld", &data[0], timestamp); in inv_read_temperature_raw() 251 long long *timestamp) in inv_read_q16() argument [all …]
|