/system/update_engine/ |
D | metrics_utils_unittest.cc | 80 base::TimeDelta duration; in TEST() local 92 &fake_system_state, state_variable_key, &duration)); in TEST() 96 &fake_system_state, state_variable_key, &duration)); in TEST() 97 EXPECT_EQ(duration.InSeconds(), 0); in TEST() 102 &fake_system_state, state_variable_key, &duration)); in TEST() 103 EXPECT_EQ(duration.InSeconds(), 0); in TEST() 105 &fake_system_state, state_variable_key, &duration)); in TEST() 106 EXPECT_EQ(duration.InSeconds(), 0); in TEST() 112 &fake_system_state, state_variable_key, &duration)); in TEST() 113 EXPECT_EQ(duration.InSeconds(), 1); in TEST() [all …]
|
/system/bt/gd/l2cap/classic/cert/ |
D | l2cap_performance_test.py | 52 duration = self.performance_test_logger.get_duration_of_intervals("TX")[0] 53 self.log.info("Duration: %s" % str(duration)) 55 return duration 89 duration = self.performance_test_logger.get_duration_of_intervals("RX")[0] 90 self.log.info("Duration: %s" % str(duration)) 118 duration = self.performance_test_logger.get_duration_of_intervals("TX")[0] 119 self.log.info("Duration: %s" % str(duration)) 121 return duration 146 duration = self.performance_test_logger.get_duration_of_intervals("RX")[0] 147 self.log.info("Duration: %s" % str(duration)) [all …]
|
/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/chre/platform/slpi/see/ |
D | island_vote_client.cc | 92 uint64_t duration = checkBigImageDuration(); in decrementBigImageRefCount() local 94 LOGW("Big image ref count ends: %" PRIu64 " ms", duration); in decrementBigImageRefCount() 117 uint64_t duration = 0; in checkBigImageDuration() local 119 duration = Milliseconds(SystemTime::getMonotonicTime()).getMilliseconds() in checkBigImageDuration() 126 if (duration > kSeeMaxBigImageDuration.getMilliseconds()) { in checkBigImageDuration() 127 FATAL_ERROR("Forced into big image for %" PRIu64 " msec", duration); in checkBigImageDuration() 129 return duration; in checkBigImageDuration()
|
/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/netd/server/ |
D | Process.cpp | 64 std::string formatDuration(std::chrono::milliseconds duration) { in formatDuration() argument 65 auto hrs = std::chrono::duration_cast<std::chrono::hours>(duration); in formatDuration() 66 duration -= hrs; in formatDuration() 67 const auto mins = std::chrono::duration_cast<std::chrono::minutes>(duration); in formatDuration() 68 duration -= mins; in formatDuration() 69 const auto secs = std::chrono::duration_cast<std::chrono::seconds>(duration); in formatDuration() 70 duration -= secs; in formatDuration() 77 days, hrs.count(), mins.count(), secs.count(), duration.count()); in formatDuration()
|
/system/chre/core/ |
D | timer_pool.cc | 33 Nanoseconds duration, SystemCallbackFunction *callback, in setSystemTimer() argument 36 kSystemInstanceId, duration, callback, in setSystemTimer() 47 uint32_t instanceId, Nanoseconds duration, in setTimer() argument 55 timerRequest.expirationTime = SystemTime::getMonotonicTime() + duration; in setTimer() 56 timerRequest.duration = duration; in setTimer() 68 mSystemTimer.set(handleSystemTimerCallback, this, duration); in setTimer() 238 + currentTimerRequest.duration; in handleExpiredTimersAndScheduleNextLocked() 245 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNextLocked() local 246 mSystemTimer.set(handleSystemTimerCallback, this, duration); in handleExpiredTimersAndScheduleNextLocked()
|
/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/vendor_libs/test_vendor_lib/model/controller/ |
D | le_advertiser.h | 41 std::chrono::steady_clock::duration interval); 47 std::chrono::steady_clock::duration interval); 66 void EnableExtended(std::chrono::steady_clock::duration duration); 80 std::chrono::steady_clock::duration interval_{};
|
D | le_advertiser.cc | 28 std::chrono::steady_clock::duration interval) { in Initialize() 42 std::chrono::steady_clock::duration interval) { in InitializeExtended() 84 std::chrono::steady_clock::duration duration) { in EnableExtended() argument 86 if (duration != std::chrono::milliseconds(0)) { in EnableExtended() 87 ending_time_ = std::chrono::steady_clock::now() + duration; in EnableExtended()
|
/system/chre/core/include/chre/core/ |
D | timer_pool.h | 61 const Nanoapp *nanoapp, Nanoseconds duration, const void *cookie, in setNanoappTimer() argument 64 return setTimer(nanoapp->getInstanceId(), duration, nullptr /* callback */, in setNanoappTimer() 85 Nanoseconds duration, SystemCallbackFunction *callback, 125 Nanoseconds duration; member 194 uint32_t instanceId, Nanoseconds duration,
|
/system/bt/stack/btm/ |
D | btm_ble_multi_adv.cc | 66 uint16_t duration; // 1 unit is 10ms member 97 duration(0), in AdvertisingInstance() 153 uint16_t duration; member 200 if (restart && (p_inst->duration || p_inst->maxExtAdvEvents)) { in ConfigureRpa() 282 std::vector<uint8_t> scan_response_data, int duration, in StartAdvertising() argument 292 int duration; in StartAdvertising() member 304 c->duration = duration; in StartAdvertising() 368 … c->self->Enable(c->inst_id, true, c->cb, c->duration, 0, std::move(c->timeout_cb)); in StartAdvertising() 382 uint16_t duration, uint8_t maxExtAdvEvents, in StartAdvertisingSet() argument 394 c->duration = duration; in StartAdvertisingSet() [all …]
|
D | ble_advertiser_hci_interface.h | 78 uint16_t duration; member 84 void Enable(uint8_t enable, uint8_t handle, uint16_t duration, in Enable() argument 90 .duration = duration, in Enable()
|
/system/libbase/include/android-base/ |
D | chrono_utils.h | 32 typedef std::chrono::nanoseconds duration; typedef 33 typedef std::chrono::time_point<boot_clock, duration> time_point; 42 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/teeui/libteeui/include/secure_input/ |
D | evdev.h | 104 std::chrono::steady_clock::duration _duration, NonCopyableFunction<void()> handle, in Timer() 106 : next(_next), duration(_duration), handleTimer(std::move(handle)), oneShot(_oneShot) {} in Timer() 109 std::chrono::steady_clock::duration duration; member 128 void addTimer(NonCopyableFunction<void()> handler, std::chrono::steady_clock::duration duration,
|
/system/bt/common/test/ |
D | thread_performance_test.cc | 133 std::chrono::milliseconds duration = in TEST_F() local 137 LOG(INFO) << "OsiThreadMessageLoopPerformanceTest, " << duration.count() in TEST_F() 178 std::chrono::milliseconds duration = in TEST_F() local 182 LOG(INFO) << "StlThreadMessageLoopPerformanceTest, " << duration.count() in TEST_F() 224 std::chrono::milliseconds duration = in TEST_F() local 228 LOG(INFO) << "PosixThreadMessageLoopPerformanceTest, " << duration.count() in TEST_F() 265 std::chrono::milliseconds duration = in TEST_F() local 270 LOG(INFO) << "ReactorPerformanceTest, " << duration.count() << " ms, " in TEST_F() 315 std::chrono::milliseconds duration = in TEST_F() local 319 LOG(INFO) << "WorkerThreadPerformanceTest, " << duration.count() << " ms, " in TEST_F() [all …]
|
/system/testing/gtest_extras/ |
D | NanoTime.cpp | 27 std::chrono::nanoseconds duration(std::chrono::steady_clock::now().time_since_epoch()); in NanoTime() local 28 return static_cast<uint64_t>(duration.count()); in NanoTime()
|
/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()
|
D | FileNode.cc | 81 auto duration = t.duration(); in Update() local 82 if (duration > 50ms) { in Update() 85 << "' took: " << duration.count() << " ms"; in Update()
|
/system/extras/simpleperf/ |
D | profcollect.cpp | 40 const std::chrono::duration<float>& duration) { in Record() argument 45 args.insert(args.end(), {"--duration", std::to_string(duration.count())}); in Record()
|
/system/extras/simpleperf/include/ |
D | simpleperf_profcollect.h | 27 const std::chrono::duration<float>& duration);
|
/system/netd/libnetdutils/ |
D | Log.cpp | 163 using ms = std::chrono::duration<float, std::ratio<1, 1000>>; in withAutomaticDuration() 166 std::stringstream duration; in withAutomaticDuration() local 167 duration << std::setprecision(1) << std::chrono::duration_cast<ms>(end - mStart).count() in withAutomaticDuration() 169 mDuration = duration.str(); in withAutomaticDuration() 173 LogEntry& LogEntry::withDuration(const std::string& duration) { in withDuration() argument 174 mDuration = duration; in withDuration()
|
/system/core/cli-test/ |
D | cli-test.cpp | 251 std::stringstream duration; in RunTests() local 252 duration << test_timer; in RunTests() 255 Print(kRed, "[ FAILED ]", " %s (%s)", test.name.c_str(), duration.str().c_str()); in RunTests() 257 Print(kGreen, "[ OK ]", " %s (%s)", test.name.c_str(), duration.str().c_str()); in RunTests() 263 std::stringstream duration; in RunTests() local 264 duration << total_timer; in RunTests() 265 Print(kGreen, "[==========]", " %zu tests ran. (%s total)", tests.size(), duration.str().c_str()); in RunTests()
|
/system/core/fs_mgr/libsnapshot/ |
D | snapshot_stats.cpp | 103 std::chrono::steady_clock::duration merge_time) in SnapshotMergeStatsResultImpl() 106 std::chrono::steady_clock::duration merge_time() const override { return merge_time_; } in merge_time() 110 std::chrono::steady_clock::duration merge_time_;
|