Home
last modified time | relevance | path

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

12345

/system/update_engine/
Dmetrics_utils_unittest.cc86 base::TimeDelta duration; in TEST() local
98 &fake_system_state, state_variable_key, &duration)); in TEST()
102 &fake_system_state, state_variable_key, &duration)); in TEST()
103 EXPECT_EQ(duration.InSeconds(), 0); in TEST()
108 &fake_system_state, state_variable_key, &duration)); in TEST()
109 EXPECT_EQ(duration.InSeconds(), 0); in TEST()
111 &fake_system_state, state_variable_key, &duration)); in TEST()
112 EXPECT_EQ(duration.InSeconds(), 0); in TEST()
118 &fake_system_state, state_variable_key, &duration)); in TEST()
119 EXPECT_EQ(duration.InSeconds(), 1); in TEST()
[all …]
Dupdate_attempter_android_unittest.cc107 TimeDelta duration = now - Time::FromInternalValue(23456); in TEST_F() local
108 EXPECT_CALL(*metrics_reporter_, ReportTimeToReboot(duration.InMinutes())) in TEST_F()
131 TimeDelta duration = boot_time - Time::FromInternalValue(10000); in TEST_F() local
138 duration, in TEST_F()
146 2, 0, _, _, _, _, duration, duration_uptime, 3, _)) in TEST_F()
/system/chre/core/tests/
Daudio_request_manager_test.cc25 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/
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/extras/libperfmgr/tests/
DRequestGroupTest.cc42 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/
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.cc33 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()
239 + currentTimerRequest.duration; in handleExpiredTimersAndScheduleNextLocked()
246 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNextLocked() local
247 mSystemTimer.set(handleSystemTimerCallback, this, duration); in handleExpiredTimersAndScheduleNextLocked()
/system/extras/alloc-stress/
Dmem-pressure.cpp24 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/chre/core/include/chre/core/
Dtimer_pool.h61 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/
Dbtm_ble_multi_adv.cc65 uint16_t duration; // 1 unit is 10ms member
96 duration(0), in AdvertisingInstance()
152 uint16_t duration; member
199 if (restart && (p_inst->duration || p_inst->maxExtAdvEvents)) { in ConfigureRpa()
281 std::vector<uint8_t> scan_response_data, int duration, in StartAdvertising() argument
291 int duration; in StartAdvertising() member
303 c->duration = duration; in StartAdvertising()
367 … c->self->Enable(c->inst_id, true, c->cb, c->duration, 0, std::move(c->timeout_cb)); in StartAdvertising()
381 uint16_t duration, uint8_t maxExtAdvEvents, in StartAdvertisingSet() argument
393 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/core/base/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/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/bt/common/test/
Dthread_performance_test.cc133 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
269 LOG(INFO) << "ReactorPerformanceTest, " << duration.count() << " ms, " in TEST_F()
314 std::chrono::milliseconds duration = in TEST_F() local
318 LOG(INFO) << "WorkerThreadPerformanceTest, " << duration.count() << " ms, " in TEST_F()
[all …]
/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/extras/libperfmgr/
DRequestGroup.cc50 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/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/core/fs_mgr/tests/
Dadb-remount-test.sh188 local duration="${1}"
189 if [ X"${duration}" != X"${duration%s}" ]; then
190 duration=${duration%s}
191 elif [ X"${duration}" != X"${duration%m}" ]; then
192 duration=`expr ${duration%m} \* 60`
193 elif [ X"${duration}" != X"${duration%h}" ]; then
194 duration=`expr ${duration%h} \* 3600`
195 elif [ X"${duration}" != X"${duration%d}" ]; then
196 duration=`expr ${duration%d} \* 86400`
198 local seconds=`expr ${duration} % 60`
[all …]
/system/extras/zram-perf/
Dzram-perf.cpp101 size_t duration = chrono::duration_cast<chrono::microseconds>(end - start).count(); in benchSequentialRead() local
102 …cout << "read: " << (double)devSize * passes / 1024.0 / 1024.0 / (duration / 1000.0 / 1000.0) << "… in benchSequentialRead()
123 size_t duration = chrono::duration_cast<chrono::microseconds>(end - start).count(); in benchSequentialWrite() local
124 …cout << "write: " << (double)devSize * passes / 1024.0 / 1024.0 / (duration / 1000.0 / 1000.0) << … in benchSequentialWrite()
/system/bt/stack/include/
Dble_advertiser.h89 int duration, MultiAdvCb timeout_cb) = 0;
106 std::vector<uint8_t> periodic_data, uint16_t duration,
121 uint16_t duration, uint8_t maxExtAdvEvents,
/system/chre/platform/shared/
Dchre_api_re.cc46 DLL_EXPORT uint32_t chreTimerSet(uint64_t duration, const void *cookie, in chreTimerSet() argument
50 .setNanoappTimer(nanoapp, chre::Nanoseconds(duration), cookie, oneShot); in chreTimerSet()
/system/core/init/
Daction.cpp122 auto duration = t.duration(); in ExecuteCommand() local
135 if (report_failure || duration > 50ms || in ExecuteCommand()
141 << ":" << command.line() << ") took " << duration.count() << "ms and " in ExecuteCommand()
/system/extras/tests/icachetest/
DProfiler.h112 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/base/
Dchrono_utils_test.cpp61 auto stop_timer = t.duration(); in TEST()
70 auto stop_timer = t.duration().count(); in TEST()

12345