/system/core/libutils/ |
D | Timers.cpp | 30 static void checkClockId(int clock) { in checkClockId() argument 31 if (clock < 0 || clock >= clock_id_max) abort(); in checkClockId() 35 nsecs_t systemTime(int clock) { in systemTime() argument 36 checkClockId(clock); in systemTime() 42 clock_gettime(clocks[clock], &t); in systemTime() 46 nsecs_t systemTime(int clock) { in systemTime() argument 48 checkClockId(clock); in systemTime()
|
D | StopWatch.cpp | 31 StopWatch::StopWatch(const char* name, int clock) : mName(name), mClock(clock) { in StopWatch() argument
|
/system/netd/libnetdutils/include/netdutils/ |
D | Stopwatch.h | 27 using clock = std::chrono::steady_clock; 28 using time_point = std::chrono::time_point<clock>; 31 Stopwatch() : mStart(clock::now()) {} in Stopwatch() 34 int64_t timeTakenUs() const { return getElapsedUs(clock::now()); } in timeTakenUs() 36 const auto& now = clock::now(); in getTimeAndResetUs()
|
/system/bt/gd/os/fuzz/ |
D | fake_timerfd.cc | 37 static uint64_t clock = 0; variable 70 entry->trigger_ms = clock + trigger_delta_ms; in fake_timerfd_settime() 85 clock = 0; in fake_timerfd_reset() 101 if (entry->trigger_ms > clock && entry->trigger_ms <= new_clock) { in fire_next_event() 124 uint64_t new_clock = clock + ms; in fake_timerfd_advance() 130 clock = new_clock; in fake_timerfd_advance()
|
/system/update_engine/update_manager/ |
D | real_time_provider.cc | 43 SystemState::Get()->clock()->GetWallclockTime().LocalExplode(&now_exp); in GetValue() 66 SystemState::Get()->clock()->GetWallclockTime().LocalExplode(&exploded); in GetValue() 82 SystemState::Get()->clock()->GetWallclockTime().LocalExplode(&exploded); in GetValue()
|
D | evaluation_context.cc | 101 monotonic_deadline - SystemState::Get()->clock()->GetMonotonicTime(); in RemainingTime() 108 : SystemState::Get()->clock()->GetMonotonicTime() + timeout); in MonotonicDeadline() 143 const auto* clock = SystemState::Get()->clock(); in ResetEvaluation() local 144 evaluation_start_wallclock_ = clock->GetWallclockTime(); in ResetEvaluation() 145 evaluation_start_monotonic_ = clock->GetMonotonicTime(); in ResetEvaluation()
|
D | update_time_restrictions_monitor.cc | 52 return WeeklyTime::FromTime(SystemState::Get()->clock()->GetWallclockTime()); in Now() 103 << (SystemState::Get()->clock()->GetWallclockTime() + in WaitForRestrictedIntervalStarts()
|
D | policy_test_utils.cc | 56 Time current_time = FakeSystemState::Get()->clock()->GetWallclockTime(); in SetUpDefaultTimeProvider() 86 FakeSystemState::Get()->clock()->GetWallclockTime() - first_seen_period; in GetDefaultUpdateState()
|
D | real_updater_provider.cc | 240 const auto* clock = SystemState::Get()->clock(); in GetValue() local 241 Time curr_boottime = clock->GetBootTime(); in GetValue() 248 return new Time(clock->GetWallclockTime() - duration_since_update); in GetValue() 475 SystemState::Get()->clock()->GetWallclockTime()), in RealUpdaterProvider()
|
/system/update_engine/ |
D | metrics_utils.h | 63 void SetSystemUpdatedMarker(ClockInterface* clock, PrefsInterface* prefs); 82 ClockInterface* clock);
|
D | metrics_utils.cc | 329 void SetSystemUpdatedMarker(ClockInterface* clock, PrefsInterface* prefs) { in SetSystemUpdatedMarker() argument 331 CHECK(clock); in SetSystemUpdatedMarker() 332 Time update_finish_time = clock->GetMonotonicTime(); in SetSystemUpdatedMarker() 358 ClockInterface* clock) { in LoadAndReportTimeToReboot() argument 360 CHECK(clock); in LoadAndReportTimeToReboot() 366 TimeDelta time_to_reboot = clock->GetMonotonicTime() - system_updated_at; in LoadAndReportTimeToReboot()
|
/system/libufdt/tests/src/ |
D | ufdt_overlay_test_app.c | 53 clock_t start = clock(); in apply_overlay_files() 55 clock_t end = clock(); in apply_overlay_files()
|
D | fdt_overlay_test_app.c | 50 clock_t start = clock(); in apply_overlay_files() 52 clock_t end = clock(); in apply_overlay_files()
|
/system/chre/apps/test/common/chre_stress_test/src/ |
D | chre_stress_test_manager.cc | 298 event->clock.time_ns, event->clock.hw_clock_discontinuity_count, in handleGnssDataEvent() 299 event->clock.flags); in handleGnssDataEvent() 301 if (sPrevDiscontCount == event->clock.hw_clock_discontinuity_count) { in handleGnssDataEvent() 302 checkTimestamp(event->clock.time_ns, mPrevGnssMeasurementEventTimestampNs); in handleGnssDataEvent() 305 sPrevDiscontCount = event->clock.hw_clock_discontinuity_count; in handleGnssDataEvent() 306 mPrevGnssMeasurementEventTimestampNs = event->clock.time_ns; in handleGnssDataEvent()
|
/system/update_engine/cros/ |
D | payload_state.cc | 199 const auto* clock = SystemState::Get()->clock(); in AttemptStarted() local 200 attempt_start_time_boot_ = clock->GetBootTime(); in AttemptStarted() 201 attempt_start_time_monotonic_ = clock->GetMonotonicTime(); in AttemptStarted() 238 SetUpdateTimestampEnd(SystemState::Get()->clock()->GetWallclockTime()); in UpdateSucceeded() 258 metrics_utils::SetSystemUpdatedMarker(SystemState::Get()->clock(), prefs_); in UpdateSucceeded() 631 const auto* clock = SystemState::Get()->clock(); in CollectAndReportAttemptMetrics() local 632 TimeDelta duration = clock->GetBootTime() - attempt_start_time_boot_; in CollectAndReportAttemptMetrics() 634 clock->GetMonotonicTime() - attempt_start_time_monotonic_; in CollectAndReportAttemptMetrics() 822 SetUpdateTimestampStart(SystemState::Get()->clock()->GetWallclockTime()); in ResetPersistedState() 1030 ? SystemState::Get()->clock()->GetWallclockTime() in GetUpdateDuration() [all …]
|
D | fake_system_state.h | 64 inline ClockInterface* clock() override { return clock_; } in clock() function 126 inline void set_clock(ClockInterface* clock) { in set_clock() argument 127 clock_ = clock ? clock : &fake_clock_; in set_clock()
|
D | common_service.cc | 370 const auto* clock = SystemState::Get()->clock(); in GetDurationSinceUpdate() local 371 *out_usec_wallclock = (clock->GetBootTime() - time).InMicroseconds(); in GetDurationSinceUpdate()
|
/system/core/libutils/include/utils/ |
D | Timers.h | 85 nsecs_t systemTime(int clock = SYSTEM_TIME_MONOTONIC); 87 nsecs_t systemTime(int clock);
|
D | StopWatch.h | 28 StopWatch(const char* name, int clock = SYSTEM_TIME_MONOTONIC);
|
/system/extras/boottime_tools/bootanalyze/ |
D | README.md | 37 On some devise clock is showing incorrect time for first couple of seconds after boot. 39 be present in dmesg log after clock correction.
|
/system/media/radio/src/ |
D | radio_metadata.c | 253 const radio_metadata_clock_t *clock) { in radio_metadata_add_clock() argument 256 clock == NULL || clock->timezone_offset_in_minutes < (-12 * 60) || in radio_metadata_add_clock() 257 clock->timezone_offset_in_minutes > (14 * 60)) { in radio_metadata_add_clock() 261 (radio_metadata_buffer_t **)metadata, key, type, clock, sizeof(radio_metadata_clock_t)); in radio_metadata_add_clock()
|
/system/chre/chpp/common/ |
D | gnss_convert.c | 89 chppGnssConvertClockFromChre(&in->clock, &out->clock); in chppGnssConvertDataEventFromChre() 208 if (!chppGnssConvertClockToChre(&in->clock, &out->clock)) { in chppGnssConvertDataEventToChre()
|
/system/update_engine/common/ |
D | system_state.h | 76 virtual ClockInterface* clock() = 0;
|
/system/extras/simpleperf/ |
D | cmd_report_sample.proto | 20 // Wall clock time for current sample. 21 // By default, it is perf clock used in kernel. 53 // Event type can be cpu-cycles, cpu-clock, sched:sched_switch or other types.
|
/system/chre/chpp/include/chpp/common/ |
D | gnss_types.h | 79 struct ChppGnssClock clock; member
|