Home
last modified time | relevance | path

Searched refs:current_time (Results 1 – 17 of 17) sorted by relevance

/hardware/google/pixel/pixelstats/
DBatteryCapacityReporter.cpp99 const int64_t current_time = getTimeSecs(); in shouldReportEvent() local
100 if (current_time == 0) { in shouldReportEvent()
108 log_event_time_secs_[i] + ONE_HOUR_SECS < current_time) { in shouldReportEvent()
118 log_event_time_secs_[i] = current_time; in shouldReportEvent()
/hardware/qcom/sdm845/display/libhistogram/
Dringbuffer.cpp21 nsecs_t histogram::DefaultTimeKeeper::current_time() const { in current_time() function in histogram::DefaultTimeKeeper
62 auto now = timekeeper->current_time(); in insert()
85 update_cumulative(timekeeper->current_time(), std::get<0>(sample), std::get<1>(sample)); in collect_cumulative()
121 end_timestamp = timekeeper->current_time(); in collect_max()
Dringbuffer.h34 virtual nsecs_t current_time() const = 0;
44 nsecs_t current_time() const final;
Dringbuffer_test.cpp38 nsecs_t current_time() const final { return tk->current_time(); } in current_time() function
47 nsecs_t current_time() const final { return fake_time; } in current_time() function
/hardware/qcom/sm8150/display/libhistogram/
Dringbuffer.cpp21 nsecs_t histogram::DefaultTimeKeeper::current_time() const { in current_time() function in histogram::DefaultTimeKeeper
62 auto now = timekeeper->current_time(); in insert()
85 update_cumulative(timekeeper->current_time(), std::get<0>(sample), std::get<1>(sample)); in collect_cumulative()
121 end_timestamp = timekeeper->current_time(); in collect_max()
Dringbuffer.h34 virtual nsecs_t current_time() const = 0;
44 nsecs_t current_time() const final;
Dringbuffer_test.cpp38 nsecs_t current_time() const final { return tk->current_time(); } in current_time() function
47 nsecs_t current_time() const final { return fake_time; } in current_time() function
/hardware/qcom/sm7250/display/libhistogram/
Dringbuffer.h34 virtual nsecs_t current_time() const = 0;
44 nsecs_t current_time() const final;
Dringbuffer.cpp24 nsecs_t histogram::DefaultTimeKeeper::current_time() const { in current_time() function in histogram::DefaultTimeKeeper
69 auto now = timekeeper->current_time(); in insert()
96 update_cumulative(timekeeper->current_time(), std::get<0>(sample), std::get<1>(sample)); in collect_cumulative()
132 end_timestamp = timekeeper->current_time(); in collect_max()
Dringbuffer_test.cpp38 nsecs_t current_time() const final { return tk->current_time(); } in current_time() function
47 nsecs_t current_time() const final { return fake_time; } in current_time() function
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Ddata_builder.c1176 inv_time_t current_time = 0; in inv_set_contiguous() local
1179 current_time = sensors.gyro.timestamp; in inv_set_contiguous()
1183 current_time = MAX(current_time, sensors.accel.timestamp); in inv_set_contiguous()
1187 current_time = MAX(current_time, sensors.compass.timestamp); in inv_set_contiguous()
1191 current_time = MAX(current_time, sensors.temp.timestamp); in inv_set_contiguous()
1195 current_time = MAX(current_time, sensors.quat.timestamp); in inv_set_contiguous()
1202 if (inv_delta_time_ms(current_time, sensors.gyro.timestamp) >= 2000) in inv_set_contiguous()
1204 if (inv_delta_time_ms(current_time, sensors.accel.timestamp) >= 2000) in inv_set_contiguous()
1206 if (inv_delta_time_ms(current_time, sensors.compass.timestamp) >= 2000) in inv_set_contiguous()
1209 if (inv_delta_time_ms(current_time, sensors.temp.timestamp) >= 2000) in inv_set_contiguous()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Ddata_builder.c1403 inv_time_t current_time = 0; in inv_set_contiguous() local
1406 current_time = sensors.gyro.timestamp; in inv_set_contiguous()
1410 current_time = MAX(current_time, sensors.accel.timestamp); in inv_set_contiguous()
1414 current_time = MAX(current_time, sensors.compass.timestamp); in inv_set_contiguous()
1418 current_time = MAX(current_time, sensors.temp.timestamp); in inv_set_contiguous()
1422 current_time = MAX(current_time, sensors.quat.timestamp); in inv_set_contiguous()
1429 if (inv_delta_time_ms(current_time, sensors.gyro.timestamp) >= 2000) in inv_set_contiguous()
1431 if (inv_delta_time_ms(current_time, sensors.accel.timestamp) >= 2000) in inv_set_contiguous()
1433 if (inv_delta_time_ms(current_time, sensors.compass.timestamp) >= 2000) in inv_set_contiguous()
1436 if (inv_delta_time_ms(current_time, sensors.temp.timestamp) >= 2000) in inv_set_contiguous()
/hardware/google/camera/common/sensor_listener/tests/
Dgoog_gyro_test.cc105 int64_t current_time = android::elapsedRealtimeNano(); in QueryGyroDirectEventsForDuration() local
106 if (current_time - start_measure_time > check_time_duration_ns) { in QueryGyroDirectEventsForDuration()
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCamera2HWICallbacks.cpp2815 time_t current_time; in dumpMetadataToFile() local
2817 time (&current_time); in dumpMetadataToFile()
2818 timeinfo = localtime (&current_time); in dumpMetadataToFile()
2938 time_t current_time; in dumpFrameToFile() local
2943 time (&current_time); in dumpFrameToFile()
2944 timeinfo = localtime (&current_time); in dumpFrameToFile()
/hardware/qcom/sm7250/media/mm-video-v4l2/vidc/venc/src/
Dvideo_encoder_device_v4l2.cpp453 OMX_U64 current_time; in async_venc_message_thread() local
457 current_time = (OMX_U64)curr_tv.tv_sec * 1000000000ULL + (OMX_U64)curr_tv.tv_nsec; in async_venc_message_thread()
459 if (current_time < prev_time) { in async_venc_message_thread()
463 } else if (current_time - prev_time >= 1000000000ULL) { // timestamp is in nano_seconds in async_venc_message_thread()
465 OMX_U64 time_diff = current_time - prev_time; in async_venc_message_thread()
/hardware/qcom/sm7250/display/sdm/libs/core/drm/
Dhw_device_drm.cpp1560 uint64_t current_time = (UINT64(t.tv_sec) * 1000000000LL + t.tv_nsec); in AtomicCommit() local
1561 if (current_time < hw_layers->elapse_timestamp) { in AtomicCommit()
1562 usleep(UINT32((hw_layers->elapse_timestamp - current_time) / 1000)); in AtomicCommit()
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3HWI.cpp8998 time_t current_time; in dumpMetadataToFile() local
9000 time (&current_time); in dumpMetadataToFile()
9001 timeinfo = localtime (&current_time); in dumpMetadataToFile()