Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 160) sorted by relevance

1234567

/system/bt/gd/l2cap/classic/cert/
Dl2cap_performance_test.py52 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/
Dmetrics_reporter_omaha_unittest.cc180 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/
Daudio_util_test.cc25 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/
Disland_vote_client.cc92 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/
Ddram_vote_client.cc80 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/
DProcess.cpp64 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/
Dtimer_pool.cc32 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/
Dmem-pressure.cpp23 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/
Dlib.rs44 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/
Dle_advertiser.h41 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_{};
Dle_advertiser.cc28 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/
Dtimer_pool.h60 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,
Daudio_util.h59 uint32_t sampleRate, Nanoseconds duration) { in getSampleCountFromRateAndDuration() argument
65 return static_cast<uint32_t>((sampleRate * duration.toRawNanoseconds()) / in getSampleCountFromRateAndDuration()
/system/bt/stack/btm/
Dbtm_ble_multi_adv.cc66 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 …]
Dble_advertiser_hci_interface.h78 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/
Dchrono_utils.h32 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/
Devdev.h104 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/
DBenchmark.cpp131 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/
DNanoTime.cpp27 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/
Dthread_performance_test.cc134 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/
DLog.cpp163 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/
Ddebuggerd_benchmark.cpp46 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/
Dprofcollect.cpp38 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/
Devdev.cpp66 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/
Dupdate_attempter_android_unittest.cc116 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()

1234567