Home
last modified time | relevance | path

Searched refs:nanoseconds (Results 1 – 25 of 30) sorted by relevance

12

/system/chre/util/include/chre/util/
Dtime_impl.h49 constexpr Milliseconds::Milliseconds(Nanoseconds nanoseconds) in Milliseconds() argument
50 : mMilliseconds(nanoseconds.toRawNanoseconds() / in Milliseconds()
82 constexpr Microseconds::Microseconds(Nanoseconds nanoseconds) in Microseconds() argument
83 : mMicroseconds(nanoseconds.toRawNanoseconds() / in Microseconds()
105 constexpr Nanoseconds::Nanoseconds(uint64_t nanoseconds) in Nanoseconds() argument
106 : mNanoseconds(nanoseconds) {} in Nanoseconds()
Dtime.h93 constexpr Milliseconds(Nanoseconds nanoseconds);
142 constexpr Microseconds(Nanoseconds nanoseconds);
185 constexpr explicit Nanoseconds(uint64_t nanoseconds);
/system/netd/libnetdutils/
DBackoffSequenceTest.cpp171 auto backoff = BackoffSequence<std::chrono::nanoseconds>::Builder() in TEST()
172 .withInitialRetransmissionTime(std::chrono::nanoseconds(7)) in TEST()
173 .withMaximumRetransmissionTime(std::chrono::nanoseconds(3)) in TEST()
174 .withMaximumRetransmissionDuration(std::chrono::nanoseconds(5)) in TEST()
177 EXPECT_EQ(std::chrono::nanoseconds(3), backoff.getNextTimeout()); in TEST()
178 EXPECT_EQ(std::chrono::nanoseconds(2), backoff.getNextTimeout()); in TEST()
/system/testing/gtest_extras/
DNanoTime.cpp27 std::chrono::nanoseconds duration(std::chrono::steady_clock::now().time_since_epoch()); in NanoTime()
/system/chre/chpp/test/
Dclients_test.cpp280 std::this_thread::sleep_for(std::chrono::nanoseconds(timeout1 / 2)); in TEST_F()
288 std::chrono::nanoseconds(timeout1 + time1 - chppGetCurrentTimeNs())); in TEST_F()
293 std::chrono::nanoseconds(timeout2 + time2 - chppGetCurrentTimeNs())); in TEST_F()
324 std::this_thread::sleep_for(std::chrono::nanoseconds(timeout1)); in TEST_F()
344 std::this_thread::sleep_for(std::chrono::nanoseconds(timeout2)); in TEST_F()
/system/libbase/
Dchrono_utils.cpp29 std::chrono::nanoseconds(ts.tv_nsec)); in now()
Dchrono_utils_test.cpp36 std::chrono::nanoseconds(now.tv_nsec)); in GetBootTimeSeconds()
Dproperties.cpp157 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(d - s); in DurationToTimeSpec()
/system/chre/platform/linux/include/chre/target_platform/
Dcondition_variable_impl.h38 mutex, std::chrono::nanoseconds(timeout.toRawNanoseconds())); in wait_for()
/system/libbase/include/android-base/
Dchrono_utils.h32 typedef std::chrono::nanoseconds duration;
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspend.cpp43 std::chrono::nanoseconds suspendOverhead;
44 std::chrono::nanoseconds suspendTime;
115 return {std::chrono::duration_cast<std::chrono::nanoseconds>( in readSuspendTime()
117 std::chrono::duration_cast<std::chrono::nanoseconds>( in readSuspendTime()
DWakeLockEntryList.cpp115 std::chrono::nanoseconds{monotime.tv_nsec}) in getTimeNow()
/system/libfmq/include/fmq/
DEventFlag.h146 inline void addNanosecondsToCurrentTime(int64_t nanoseconds, struct timespec* timeAbs);
/system/core/libcutils/
Dsched_policy_test.cpp50 std::this_thread::sleep_for(std::chrono::nanoseconds(1)); in medianSleepTime()
/system/libhwbinder/vts/performance/
DPerfTest.h153 return uint64_t(std::chrono::duration_cast<std::chrono::nanoseconds>(end - sta).count()); in tickDiffNS()
DBenchmark_throughput.cpp245 chrono::duration_cast<chrono::nanoseconds>(end - start).count()); in worker_fx()
377 / (chrono::duration_cast < chrono::nanoseconds in main()
/system/core/init/
Dutil.h56 int wait_for_file(const char *filename, std::chrono::nanoseconds timeout);
/system/bt/gd/os/
Dalarm_benchmark.cc96 …auto duration = std::chrono::duration_cast<std::chrono::nanoseconds>(end_time_point - start_time_p… in BENCHMARK_DEFINE_F()
/system/core/libstats/push_compat/
DStatsEventCompat.cpp40 return std::chrono::time_point_cast<std::chrono::nanoseconds>(boot_clock::now()) in elapsedRealtimeNano()
/system/vold/
DUtils.h180 status_t WaitForFile(const char* filename, std::chrono::nanoseconds timeout);
/system/core/storaged/
Dstoraged.cpp275 benchmark_time_ns += duration_cast<nanoseconds>(end - start).count(); in flush_proto_data()
/system/apex/apexd/
Dapexd_utils.h208 const std::string& path, std::chrono::nanoseconds timeout) { in WaitForFile()
/system/core/llkd/
Dlibllkd.cpp282 nanoseconds schedUpdate; // /proc/<tid>/sched "se.avg.lastUpdateTime",
433 duration_cast<milliseconds>(nanoseconds(to->tv_nsec - from->tv_nsec)); in llkGetTimespecDiffMs()
884 auto schedUpdate = nanoseconds(val); in llkCheckSchedUpdate()
/system/libfmq/benchmarks/
Dmsgq_benchmark_client.cpp140 accumulatedTime += static_cast<int64_t>(std::chrono::duration_cast<std::chrono::nanoseconds>( in TEST_F()
/system/core/bootstat/
Dbootstat.cpp1268 std::chrono::nanoseconds GetBootTimeOffset() { in GetBootTimeOffset()
1271 return std::chrono::nanoseconds(boottime_offset); in GetBootTimeOffset()

12