Home
last modified time | relevance | path

Searched refs:cur_time (Results 1 – 6 of 6) sorted by relevance

/system/bt/gd/btaa/linux_generic/
Dwakelock_processor.cc32 auto cur_time = std::chrono::system_clock::now(); in OnWakelockReleased() local
41 …std::chrono::duration_cast<std::chrono::milliseconds>(cur_time - wakelock_acquired_time_).count()); in OnWakelockReleased()
50 auto cur_time = std::chrono::system_clock::now(); in OnWakelockAcquired() local
56 wakelock_acquired_time_ = cur_time; in OnWakelockAcquired()
57 …} else if (cur_time - wakelock_acquired_time_ > std::chrono::milliseconds(kWakelockMaxDurationMs))… in OnWakelockAcquired()
60 wakelock_acquired_time_ = cur_time; in OnWakelockAcquired()
Dattribution_processor.cc67 auto cur_time = std::chrono::system_clock::now(); in OnWakelockReleased() local
72 btaa_aggregator_[it.first].creation_time = cur_time; in OnWakelockReleased()
76 …std::chrono::duration_cast<std::chrono::seconds>(cur_time - btaa_aggregator_[it.first].creation_ti… in OnWakelockReleased()
81 btaa_aggregator_[it.first].creation_time = cur_time; in OnWakelockReleased()
96 … std::chrono::duration_cast<std::chrono::seconds>(cur_time - it.second.creation_time).count(); in OnWakelockReleased()
/system/update_engine/update_manager/
Devaluation_context_unittest.cc381 Time cur_time = fake_clock_->GetWallclockTime(); in TEST_F() local
383 fake_clock_->SetWallclockTime(cur_time + TimeDelta::FromSeconds(4)); in TEST_F()
385 EXPECT_TRUE(eval_ctx_->IsWallclockTimeGreaterThan(cur_time - in TEST_F()
387 EXPECT_FALSE(eval_ctx_->IsWallclockTimeGreaterThan(cur_time)); in TEST_F()
389 cur_time + TimeDelta::FromSeconds(1))); in TEST_F()
393 cur_time = fake_clock_->GetWallclockTime(); in TEST_F()
394 EXPECT_TRUE(eval_ctx_->IsWallclockTimeGreaterThan(cur_time - in TEST_F()
396 EXPECT_FALSE(eval_ctx_->IsWallclockTimeGreaterThan(cur_time)); in TEST_F()
398 cur_time + TimeDelta::FromSeconds(1))); in TEST_F()
402 Time cur_time = fake_clock_->GetMonotonicTime(); in TEST_F() local
[all …]
/system/extras/simpleperf/
Dcpu_hotplug_test.cpp244 auto cur_time = start_time; in TEST() local
249 while (cur_time < end_time && !cpu_toggle_arg.cpu_hotplug_failed) { in TEST()
250 if (cur_time + report_step < std::chrono::steady_clock::now()) { in TEST()
257 cur_time = std::chrono::steady_clock::now(); in TEST()
301 auto cur_time = start_time; in TEST() local
306 while (cur_time < end_time && !cpu_toggle_arg.cpu_hotplug_failed) { in TEST()
307 if (cur_time + report_step < std::chrono::steady_clock::now()) { in TEST()
314 cur_time = std::chrono::steady_clock::now(); in TEST()
386 auto cur_time = start_time; in TEST() local
391 while (cur_time < end_time && !cpu_toggle_arg.cpu_hotplug_failed) { in TEST()
[all …]
/system/libhwbinder/vts/performance/
DPerfTest.cpp166 float cur_time = kTimePerBucketMS * i + 0.5f * kTimePerBucketMS; in dumpDistribution() local
169 cout << "\"p50\":" << cur_time << ", "; in dumpDistribution()
172 cout << "\"p90\":" << cur_time << ", "; in dumpDistribution()
175 cout << "\"p95\":" << cur_time << ", "; in dumpDistribution()
178 cout << "\"p99\": " << cur_time; in dumpDistribution()
DBenchmark_throughput.cpp150 float cur_time = time_per_bucket_ms * i + 0.5f * time_per_bucket_ms; in dump() local
153 cout << "50%: " << cur_time << " "; in dump()
157 cout << "90%: " << cur_time << " "; in dump()
161 cout << "95%: " << cur_time << " "; in dump()
165 cout << "99%: " << cur_time << " "; in dump()
244 uint64_t cur_time = uint64_t( in worker_fx() local
246 results.add_time(cur_time); in worker_fx()