Home
last modified time | relevance | path

Searched refs:clock (Results 1 – 25 of 61) sorted by relevance

123

/system/netd/include/
DStopwatch.h24 Stopwatch() : mStart(clock::now()) {} in Stopwatch()
29 return getElapsed(clock::now()); in timeTaken()
33 const auto& now = clock::now(); in getTimeAndReset()
40 typedef std::chrono::steady_clock clock; typedef
41 typedef std::chrono::time_point<clock> time_point;
/system/update_engine/update_manager/
Dfake_update_manager.h29 explicit FakeUpdateManager(chromeos_update_engine::ClockInterface* clock) in FakeUpdateManager() argument
30 : UpdateManager(clock, base::TimeDelta::FromSeconds(5), in FakeUpdateManager()
33 set_policy(new DefaultPolicy(clock)); in FakeUpdateManager()
Dreal_time_provider.cc37 CurrDateVariable(const string& name, ClockInterface* clock) in CurrDateVariable() argument
38 : Variable<Time>(name, TimeDelta::FromHours(1)), clock_(clock) {} in CurrDateVariable()
63 CurrHourVariable(const string& name, ClockInterface* clock) in CurrHourVariable() argument
64 : Variable<int>(name, TimeDelta::FromMinutes(5)), clock_(clock) {} in CurrHourVariable()
Dupdate_manager.cc28 UpdateManager::UpdateManager(chromeos_update_engine::ClockInterface* clock, in UpdateManager() argument
31 : default_policy_(clock), state_(state), clock_(clock), in UpdateManager()
Dstate_factory.cc51 chromeos_update_engine::ClockInterface* const clock = system_state->clock(); in DefaultStateFactory() local
67 new RealShillProvider(new chromeos_update_engine::ShillProxy(), clock)); in DefaultStateFactory()
75 unique_ptr<RealTimeProvider> time_provider(new RealTimeProvider(clock)); in DefaultStateFactory()
Dreal_time_provider.h32 explicit RealTimeProvider(chromeos_update_engine::ClockInterface* clock) in RealTimeProvider() argument
33 : clock_(clock) {} in RealTimeProvider()
Devaluation_context.h69 chromeos_update_engine::ClockInterface* clock,
73 EvaluationContext(chromeos_update_engine::ClockInterface* clock, in EvaluationContext() argument
76 clock, evaluation_timeout, base::TimeDelta::Max(), in EvaluationContext()
Dreal_shill_provider.h41 chromeos_update_engine::ClockInterface* clock) in RealShillProvider() argument
42 : shill_proxy_(shill_proxy), clock_(clock) {} in RealShillProvider()
Ddefault_policy.cc34 DefaultPolicy::DefaultPolicy(chromeos_update_engine::ClockInterface* clock) in DefaultPolicy() argument
35 : clock_(clock), aux_state_(new DefaultPolicyState()) {} in DefaultPolicy()
Dmock_policy.h32 explicit MockPolicy(chromeos_update_engine::ClockInterface* clock) in MockPolicy() argument
33 : default_policy_(clock) { in MockPolicy()
Dreal_updater_provider.cc247 chromeos_update_engine::ClockInterface* clock = system_state()->clock(); in GetValue() local
248 Time curr_boottime = clock->GetBootTime(); in GetValue()
255 return new Time(clock->GetWallclockTime() - duration_since_update); in GetValue()
452 system_state->clock()->GetWallclockTime()), in RealUpdaterProvider()
/system/update_engine/
Dmetrics_utils.cc278 Time now = system_state->clock()->GetWallclockTime(); in WallclockDurationHelper()
304 Time now = system_state->clock()->GetMonotonicTime(); in MonotonicDurationHelper()
347 void SetSystemUpdatedMarker(ClockInterface* clock, PrefsInterface* prefs) { in SetSystemUpdatedMarker() argument
349 CHECK(clock); in SetSystemUpdatedMarker()
350 Time update_finish_time = clock->GetMonotonicTime(); in SetSystemUpdatedMarker()
367 ClockInterface* clock) { in LoadAndReportTimeToReboot() argument
369 CHECK(clock); in LoadAndReportTimeToReboot()
376 clock->GetMonotonicTime() - system_updated_at; in LoadAndReportTimeToReboot()
Dmetrics_utils.h88 void SetSystemUpdatedMarker(ClockInterface* clock, PrefsInterface* prefs);
101 ClockInterface* clock);
Dpayload_state.cc192 ClockInterface *clock = system_state_->clock(); in AttemptStarted() local
193 attempt_start_time_boot_ = clock->GetBootTime(); in AttemptStarted()
194 attempt_start_time_monotonic_ = clock->GetMonotonicTime(); in AttemptStarted()
231 SetUpdateTimestampEnd(system_state_->clock()->GetWallclockTime()); in UpdateSucceeded()
252 metrics_utils::SetSystemUpdatedMarker(system_state_->clock(), prefs_); in UpdateSucceeded()
594 ClockInterface *clock = system_state_->clock(); in CollectAndReportAttemptMetrics() local
595 TimeDelta duration = clock->GetBootTime() - attempt_start_time_boot_; in CollectAndReportAttemptMetrics()
596 TimeDelta duration_uptime = clock->GetMonotonicTime() - in CollectAndReportAttemptMetrics()
782 SetUpdateTimestampStart(system_state_->clock()->GetWallclockTime()); in ResetPersistedState()
981 ? system_state_->clock()->GetWallclockTime() : in GetUpdateDuration()
[all …]
Dfake_system_state.h53 inline ClockInterface* clock() override { return clock_; } in clock() function
113 inline void set_clock(ClockInterface* clock) { in set_clock() argument
114 clock_ = clock ? clock : &fake_clock_; in set_clock()
Dcommon_service.cc328 ClockInterface* clock = system_state_->clock(); in GetDurationSinceUpdate() local
329 *out_usec_wallclock = (clock->GetBootTime() - time).InMicroseconds(); in GetDurationSinceUpdate()
/system/core/libutils/
DTimers.cpp26 nsecs_t systemTime(int clock) in systemTime() argument
37 clock_gettime(clocks[clock], &t); in systemTime()
DStopWatch.cpp33 StopWatch::StopWatch(const char* name, int clock) : mName(name), mClock(clock) { in StopWatch() argument
/system/extras/boottime_tools/bootanalyze/
DREADME.md13 On some devise clock is showing incorrect time for first couple of seconds after boot.
15 be present in dmesg log after clock correction.
/system/libufdt/tests/src/
Dfdt_overlay_test_app.c50 clock_t start = clock(); in apply_overlay_files()
52 clock_t end = clock(); in apply_overlay_files()
Dufdt_overlay_test_app.c53 clock_t start = clock(); in apply_overlay_files()
55 clock_t end = clock(); in apply_overlay_files()
/system/core/libutils/include/utils/
DTimers.h89 nsecs_t systemTime(int clock = SYSTEM_TIME_MONOTONIC);
91 nsecs_t systemTime(int clock);
DStopWatch.h32 StopWatch(const char* name, int clock = SYSTEM_TIME_MONOTONIC);
/system/extras/simpleperf/
Dreport_sample.proto18 // Wall clock time for current sample.
19 // By default, it is perf clock used in kernel.
40 // Event type can be cpu-cycles, cpu-clock, sched:sched_switch or other types.
/system/media/radio/src/
Dradio_metadata.c250 const radio_metadata_clock_t *clock) { in radio_metadata_add_clock() argument
253 clock == NULL || clock->timezone_offset_in_minutes < (-12 * 60) || in radio_metadata_add_clock()
254 clock->timezone_offset_in_minutes > (14 * 60)) { in radio_metadata_add_clock()
258 (radio_metadata_buffer_t **)metadata, key, type, clock, sizeof(radio_metadata_clock_t)); in radio_metadata_add_clock()

123