/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/update_engine/cros/ |
D | metrics_reporter_omaha_unittest.cc | 180 TimeDelta duration = TimeDelta::FromMinutes(1000); in TEST_F() local 199 duration.InMinutes(), in TEST_F() 240 duration, in TEST_F() 251 duration, in TEST_F() 523 base::TimeDelta duration; in TEST_F() local 531 reporter_.WallclockDurationHelper(state_variable_key, &duration)); in TEST_F() 534 EXPECT_TRUE(reporter_.WallclockDurationHelper(state_variable_key, &duration)); in TEST_F() 535 EXPECT_EQ(duration.InSeconds(), 0); in TEST_F() 539 EXPECT_TRUE(reporter_.WallclockDurationHelper(state_variable_key, &duration)); in TEST_F() 540 EXPECT_EQ(duration.InSeconds(), 0); in TEST_F() [all …]
|
/system/chre/core/tests/ |
D | audio_util_test.cc | 25 Nanoseconds duration = in TEST() local 27 EXPECT_EQ(duration.toRawNanoseconds(), 500000000ull); in TEST() 31 Nanoseconds duration = in TEST() local 33 EXPECT_EQ(duration.toRawNanoseconds(), 1000000000ull); in TEST() 37 Nanoseconds duration = in TEST() local 39 EXPECT_EQ(duration.toRawNanoseconds(), 100000000000ull); 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/chre/platform/shared/ |
D | dram_vote_client.cc | 80 Milliseconds duration(0); in checkDramDuration() local 82 duration = Milliseconds(SystemTime::getMonotonicTime()) - mVoteCountStart; in checkDramDuration() 88 if (duration > kMaxDramDuration) { in checkDramDuration() 90 duration.getMilliseconds()); in checkDramDuration() 92 return duration; in checkDramDuration()
|
/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 | 32 TimerHandle TimerPool::setSystemTimer(Nanoseconds duration, in setSystemTimer() argument 38 setTimer(kSystemInstanceId, duration, data, callback, callbackType, in setSystemTimer() 48 TimerHandle TimerPool::setTimer(uint32_t instanceId, Nanoseconds duration, in setTimer() argument 58 timerRequest.expirationTime = SystemTime::getMonotonicTime() + duration; in setTimer() 59 timerRequest.duration = duration; in setTimer() 71 mSystemTimer.set(handleSystemTimerCallback, this, duration); in setTimer() 249 currentTime + currentTimerRequest.duration; in handleExpiredTimersAndScheduleNextLocked() 259 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNextLocked() local 260 mSystemTimer.set(handleSystemTimerCallback, this, duration); in handleExpiredTimersAndScheduleNextLocked()
|
/system/extras/alloc-stress/ |
D | mem-pressure.cpp | 23 void add_pressure(size_t* shared, size_t size, size_t step_size, size_t duration, in add_pressure() argument 41 usleep(duration); in add_pressure() 58 size_t duration = 1000; in main() local 70 duration = atoi(optarg); in main() 94 add_pressure(shared, size, step_size, duration, oom_score); in main()
|
/system/extras/simpleperf/rust/ |
D | lib.rs | 44 pub fn record(trace_file: &Path, duration: &Duration, scope: RecordScope) { in record() 51 let duration = duration.as_secs_f32(); in record() localVariable 54 simpleperf_profcollect_bindgen::Record(event_name.as_ptr(), trace_file.as_ptr(), duration); in record()
|
/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 | 60 TimerHandle setNanoappTimer(const Nanoapp *nanoapp, Nanoseconds duration, in setNanoappTimer() argument 63 return setTimer(nanoapp->getInstanceId(), duration, cookie, in setNanoappTimer() 84 TimerHandle setSystemTimer(Nanoseconds duration, 119 Nanoseconds duration; member 191 TimerHandle setTimer(uint32_t instanceId, Nanoseconds duration,
|
D | audio_util.h | 59 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration() argument 65 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) / in getSampleCountFromRateAndDuration()
|
/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/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/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/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/bt/common/test/ |
D | thread_performance_test.cc | 134 std::chrono::milliseconds duration = in TEST_F() local 138 LOG(INFO) << "OsiThreadMessageLoopPerformanceTest, " << duration.count() in TEST_F() 179 std::chrono::milliseconds duration = in TEST_F() local 183 LOG(INFO) << "StlThreadMessageLoopPerformanceTest, " << duration.count() in TEST_F() 225 std::chrono::milliseconds duration = in TEST_F() local 229 LOG(INFO) << "PosixThreadMessageLoopPerformanceTest, " << duration.count() in TEST_F() 266 std::chrono::milliseconds duration = in TEST_F() local 271 LOG(INFO) << "ReactorPerformanceTest, " << duration.count() << " ms, " in TEST_F() 316 std::chrono::milliseconds duration = in TEST_F() local 320 LOG(INFO) << "WorkerThreadPerformanceTest, " << duration.count() << " ms, " in TEST_F() [all …]
|
/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/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/extras/simpleperf/ |
D | profcollect.cpp | 38 bool Record(const char* event_name, const char* output, float duration) { in Record() argument 43 args.insert(args.end(), {"--duration", std::to_string(duration)}); in Record()
|
/system/teeui/libteeui/src/ |
D | evdev.cpp | 66 current.next += ((diff / current.duration) + 1) * current.duration; in runTimers() 99 std::chrono::steady_clock::duration duration, bool oneShot) { in addTimer() argument 101 std::chrono::steady_clock::time_point next = std::chrono::steady_clock::now() + duration; in addTimer() 102 newTimers_.emplace_back(next, duration, std::move(handler), oneShot); in addTimer()
|
/system/update_engine/aosp/ |
D | update_attempter_android_unittest.cc | 116 TimeDelta duration = now - Time::FromInternalValue(23456); in TEST_F() local 117 EXPECT_CALL(*metrics_reporter_, ReportTimeToReboot(duration.InMinutes())) in TEST_F() 140 TimeDelta duration = boot_time - Time::FromInternalValue(10000); in TEST_F() local 146 duration, in TEST_F() 154 2, 0, _, 50, _, _, duration, duration_uptime, 3, _)) in TEST_F()
|