/system/update_engine/ |
D | metrics_utils_unittest.cc | 83 base::TimeDelta duration; in TEST() local 96 &duration)); in TEST() 101 &duration)); in TEST() 102 EXPECT_EQ(duration.InSeconds(), 0); in TEST() 108 &duration)); in TEST() 109 EXPECT_EQ(duration.InSeconds(), 0); in TEST() 112 &duration)); in TEST() 113 EXPECT_EQ(duration.InSeconds(), 0); in TEST() 120 &duration)); in TEST() 121 EXPECT_EQ(duration.InSeconds(), 1); in TEST() [all …]
|
D | update_attempter_android_unittest.cc | 107 TimeDelta duration = now - Time::FromInternalValue(23456); in TEST_F() local 108 EXPECT_CALL(*metrics_reporter_, ReportTimeToReboot(duration.InMinutes())) in TEST_F() 129 TimeDelta duration = boot_time - Time::FromInternalValue(12345); in TEST_F() local 136 duration, in TEST_F() 143 ReportSuccessfulUpdateMetrics(2, 0, _, _, _, _, duration, 3, _)) in TEST_F()
|
/system/chre/core/tests/ |
D | audio_request_manager_test.cc | 25 Nanoseconds duration = in TEST() local 27 EXPECT_EQ(duration.toRawNanoseconds(), 500000000); in TEST() 31 Nanoseconds duration = in TEST() local 33 EXPECT_EQ(duration.toRawNanoseconds(), 1000000000); in TEST() 37 Nanoseconds duration = in TEST() local 39 EXPECT_EQ(duration.toRawNanoseconds(), 100000000000); in TEST()
|
/system/extras/libperfmgr/tests/ |
D | RequestGroupTest.cc | 42 auto duration = 500ms; in TEST() local 43 bool ret = req.AddRequest("INTERACTION", start + duration); in TEST() 49 EXPECT_NEAR((duration - sleep_time).count(), expire_time.count(), in TEST() 74 auto duration = 5ms; in TEST() local 75 bool ret = req.AddRequest("INTERACTION", start + duration); in TEST() 77 ret = req.AddRequest("INTERACTION", start + duration + 1ms); in TEST() 79 std::this_thread::sleep_for(duration + 10ms); in TEST() 90 auto duration = 5000ms; in TEST() local 91 bool ret = req.AddRequest("INTERACTION", start + duration); in TEST() 95 EXPECT_NEAR(duration.count(), expire_time.count(), kTIMING_TOLERANCE_MS); in TEST() [all …]
|
/system/core/adb/sysdeps/ |
D | chrono.h | 33 constexpr std::chrono::duration<long double> operator"" s(long double s) { 34 return std::chrono::duration<long double>(s); 41 constexpr std::chrono::duration<long double, std::milli> operator"" ms(long double ms) { 42 return std::chrono::duration<long double, std::milli>(ms);
|
/system/chre/core/ |
D | timer_pool.cc | 31 TimerHandle TimerPool::setTimer(const Nanoapp *nanoapp, Nanoseconds duration, in setTimer() argument 38 timerRequest.expirationTime = SystemTime::getMonotonicTime() + duration; in setTimer() 39 timerRequest.duration = duration; in setTimer() 53 mSystemTimer.set(handleSystemTimerCallback, this, duration); in setTimer() 170 + currentTimerRequest.duration; in handleExpiredTimersAndScheduleNext() 177 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNext() local 178 mSystemTimer.set(handleSystemTimerCallback, this, duration); in handleExpiredTimersAndScheduleNext()
|
/system/extras/alloc-stress/ |
D | mem-pressure.cpp | 24 size_t duration, const char *oom_score) { in add_pressure() argument 42 usleep(duration); in add_pressure() 62 size_t duration = 1000; in main() local 75 duration = atoi(optarg); in main() 99 add_pressure(shared, size, step_size, duration, oom_score); in main()
|
/system/bt/stack/btm/ |
D | btm_ble_multi_adv.cc | 63 uint16_t duration; // 1 unit is 10ms member 94 duration(0), in AdvertisingInstance() 154 uint16_t duration; member 231 if (restart && (p_inst->duration || p_inst->maxExtAdvEvents)) { in ConfigureRpa() 313 std::vector<uint8_t> scan_response_data, int duration, in StartAdvertising() argument 323 int duration; in StartAdvertising() member 335 c->duration = duration; in StartAdvertising() 399 … c->self->Enable(c->inst_id, true, c->cb, c->duration, 0, std::move(c->timeout_cb)); in StartAdvertising() 413 uint16_t duration, uint8_t maxExtAdvEvents, in StartAdvertisingSet() argument 425 c->duration = duration; in StartAdvertisingSet() [all …]
|
D | ble_advertiser_hci_interface.h | 77 uint16_t duration; member 83 void Enable(uint8_t enable, uint8_t handle, uint16_t duration, in Enable() argument 89 .duration = duration, in Enable()
|
/system/core/base/include/android-base/ |
D | chrono_utils.h | 33 typedef std::chrono::nanoseconds duration; typedef 34 typedef std::chrono::time_point<boot_clock, duration> time_point; 43 std::chrono::milliseconds duration() const { in duration() function
|
/system/vold/ |
D | Benchmark.cpp | 131 return (timer.duration() < kTimeout); in benchmarkInternal() 134 if (res == OK) extras->putLong(String16("create"), timer.duration().count()); in benchmarkInternal() 147 if (res == OK) extras->putLong(String16("drop"), timer.duration().count()); in benchmarkInternal() 158 return (timer.duration() < kTimeout); in benchmarkInternal() 161 if (res == OK) extras->putLong(String16("run"), timer.duration().count()); in benchmarkInternal() 170 if (res == OK) extras->putLong(String16("destroy"), timer.duration().count()); in benchmarkInternal()
|
/system/extras/tests/sdcard/ |
D | plot_sdcard.py | 56 self.duration = float(res.group(2)) 94 self.duration = 0.0 115 self.kernel, self.duration, self.command_line, self.sched) 118 self.duration = max(self.duration, dataset.duration) 224 (metadata.name, metadata.kernel, metadata.duration), 260 (metadata.name, metadata.kernel, metadata.duration), 283 (metadata.name, metadata.kernel, metadata.duration),
|
/system/extras/libperfmgr/ |
D | RequestGroup.cc | 50 auto duration = std::chrono::duration_cast<std::chrono::milliseconds>( in GetExpireTime() local 52 if (duration <= std::chrono::milliseconds::zero()) { in GetExpireTime() 55 *expire_time = std::min(duration, *expire_time); in GetExpireTime()
|
/system/bt/test/suite/core/ |
D | thread_performance_test.cc | 90 std::chrono::milliseconds duration = in TEST_F() local 94 LOG(INFO) << "Message loop took " << duration.count() << "ms for " in TEST_F() 118 std::chrono::milliseconds duration = in TEST_F() local 122 LOG(INFO) << "Reactor thread took " << duration.count() << "ms for " in TEST_F()
|
/system/core/debuggerd/ |
D | debuggerd_benchmark.cpp | 46 static std::chrono::duration<double> GetMaximumPause(std::atomic<ThreadState>& state) { in GetMaximumPause() 47 std::chrono::duration<double> max_diff(0); in GetMaximumPause() 100 std::chrono::duration<double> max_pause; in BM_maximum_pause_impl()
|
/system/chre/core/include/chre/core/ |
D | timer_pool.h | 57 TimerHandle setTimer(const Nanoapp *nanoapp, Nanoseconds duration, 90 Nanoseconds duration; member
|
D | audio_request_manager.h | 127 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration() argument 133 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) in getSampleCountFromRateAndDuration()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 92 size_t duration = chrono::duration_cast<chrono::microseconds>(end - start).count(); in benchSequentialRead() local 93 …cout << "read: " << (double)devSize * passes / 1024.0 / 1024.0 / (duration / 1000.0 / 1000.0) << "… in benchSequentialRead() 114 size_t duration = chrono::duration_cast<chrono::microseconds>(end - start).count(); in benchSequentialWrite() local 115 …cout << "write: " << (double)devSize * passes / 1024.0 / 1024.0 / (duration / 1000.0 / 1000.0) << … in benchSequentialWrite()
|
/system/chre/platform/slpi/see/ |
D | island_vote_client.cc | 87 uint64_t duration = in decrementBigImageRefCount() local 90 LOGW("Big image ref count ends: %" PRIu64 " ms", duration); in decrementBigImageRefCount()
|
/system/bt/stack/include/ |
D | ble_advertiser.h | 89 int duration, MultiAdvCb timeout_cb) = 0; 106 std::vector<uint8_t> periodic_data, uint16_t duration, 121 uint16_t duration, uint8_t maxExtAdvEvents,
|
/system/extras/tests/icachetest/ |
D | Profiler.h | 112 std::chrono::duration<uint64_t, std::nano> getWallTime() const { in getWallTime() 113 return std::chrono::duration<uint64_t, std::nano>(time_enabled); in getWallTime() 116 std::chrono::duration<uint64_t, std::nano> getRunningTime() const { in getRunningTime() 117 return std::chrono::duration<uint64_t, std::nano>(time_running); in getRunningTime()
|
/system/core/init/ |
D | action.cpp | 124 auto duration = t.duration(); in ExecuteCommand() local 137 if (report_failure || duration > 50ms || in ExecuteCommand() 143 << ":" << command.line() << ") took " << duration.count() << "ms and " in ExecuteCommand()
|
/system/chre/platform/shared/ |
D | chre_api_re.cc | 46 DLL_EXPORT uint32_t chreTimerSet(uint64_t duration, const void *cookie, in chreTimerSet() argument 50 .setTimer(nanoapp, chre::Nanoseconds(duration), cookie, oneShot); in chreTimerSet()
|
/system/core/base/ |
D | chrono_utils_test.cpp | 61 auto stop_timer = t.duration(); in TEST() 70 auto stop_timer = t.duration().count(); in TEST()
|
/system/bt/include/hardware/ |
D | ble_advertiser.h | 75 uint16_t duration, uint8_t maxExtAdvEvents, 95 std::vector<uint8_t> periodic_data, uint16_t duration,
|