/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 | 81 Milliseconds duration(0); in checkDramDuration() local 83 duration = Milliseconds(SystemTime::getMonotonicTime()) - mVoteCountStart; in checkDramDuration() 89 if (duration > kMaxDramDuration) { in checkDramDuration() 91 duration.getMilliseconds()); in checkDramDuration() 93 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/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/perf_tools/ |
D | parse_timing.py | 42 duration = float(sys.argv[5])*1000 50 extract_events(filepath1, file1_events, ts1, duration) 51 extract_events(filepath2, file2_events, ts2, duration) 74 duration = float(sys.argv[3])*1000 75 extract_events(filepath, events, ts, duration) 172 def check_time_range(line, ts, duration): argument 183 if deltatime.total_seconds()*1000 < 0 or deltatime.total_seconds() > duration: 187 def extract_events(filepath, events, ts, duration): argument 190 if check_time_range(line, ts, duration) == False:
|
/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() 67 TimerHandle TimerPool::setTimer(uint16_t instanceId, Nanoseconds duration, in setTimer() argument 77 timerRequest.expirationTime = SystemTime::getMonotonicTime() + duration; in setTimer() 78 timerRequest.duration = duration; in setTimer() 90 mSystemTimer.set(handleSystemTimerCallback, this, duration); in setTimer() 267 currentTime + currentTimerRequest.duration; in handleExpiredTimersAndScheduleNextLocked() 277 Nanoseconds duration = currentTimerRequest.expirationTime - currentTime; in handleExpiredTimersAndScheduleNextLocked() local 278 mSystemTimer.set(handleSystemTimerCallback, this, duration); in handleExpiredTimersAndScheduleNextLocked()
|
/system/media/audio_utils/ |
D | MelAggregator.cpp | 70 return {record.timestamp, record.duration, -record.value, record.averageMel}; in createRevertedRecord() 77 return mCsdRecords.rbegin()->second.timestamp + mCsdRecords.rbegin()->second.duration in csdTimeIntervalStored_l() 82 int64_t duration, in addNewestCsdRecord_l() argument 89 duration, in addNewestCsdRecord_l() 97 duration, in addNewestCsdRecord_l() 124 int64_t duration = 0; in updateCsdRecords_l() local 129 averageMel = averageMelEnergy(averageMel, duration, mel, 1.f); in updateCsdRecords_l() 131 ++duration; in updateCsdRecords_l() 135 duration, in updateCsdRecords_l() 140 duration = 0; in updateCsdRecords_l() [all …]
|
/system/chre/core/include/chre/core/ |
D | timer_pool.h | 64 TimerHandle setNanoappTimer(const Nanoapp *nanoapp, Nanoseconds duration, in setNanoappTimer() argument 67 return setTimer(nanoapp->getInstanceId(), duration, cookie, in setNanoappTimer() 88 TimerHandle setSystemTimer(Nanoseconds duration, 132 Nanoseconds duration; member 207 TimerHandle setTimer(uint16_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/media/audio_utils/include/audio_utils/ |
D | MelAggregator.h | 51 const size_t duration; member 58 size_t duration, in CsdRecord() 62 duration(duration), in CsdRecord() 132 int64_t duration,
|
/system/extras/simpleperf/rust/ |
D | lib.rs | 51 pub fn record(trace_file: &Path, duration: &Duration, binary_filter: &str, scope: RecordScope) { in record() 58 let duration = duration.as_secs_f32(); in record() localVariable 65 duration, in record()
|
/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/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/core/fs_mgr/tests/ |
D | adb-remount-test.sh | 264 local duration="${1}" 265 if [ X"${duration}" != X"${duration%s}" ]; then 266 duration=${duration%s} 267 elif [ X"${duration}" != X"${duration%m}" ]; then 268 duration=$(( ${duration%m} * 60 )) 269 elif [ X"${duration}" != X"${duration%h}" ]; then 270 duration=$(( ${duration%h} * 3600 )) 271 elif [ X"${duration}" != X"${duration%d}" ]; then 272 duration=$(( ${duration%d} * 86400 )) 274 local seconds=$(( ${duration} % 60 )) [all …]
|
/system/extras/simpleperf/doc/ |
D | executable_commands_reference.md | 98 $ simpleperf stat -p 7394 --duration 10 120 $ simpleperf stat -e cpu-cycles -p 11904 --duration 10 123 $ simpleperf stat -e cache-references,cache-misses -p 11904 --duration 10 134 -e cache-misses,cache-misses:u,cache-misses:k,instructions --duration 1 183 --duration 1 207 $ simpleperf stat -p 11904,11905 --duration 10 210 $ simpleperf stat -p chrome --duration 10 212 $ simpleperf stat -p "chrome:(privileged|sandboxed)" --duration 10 215 $ simpleperf stat -t 11904,11905 --duration 10 222 $ simpleperf stat --app simpleperf.example.cpp --duration 10 [all …]
|
/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/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 | 135 TimeDelta duration = now - Time::FromInternalValue(23456); in TEST_F() local 136 EXPECT_CALL(*metrics_reporter_, ReportTimeToReboot(duration.InMinutes())) in TEST_F() 159 TimeDelta duration = boot_time - Time::FromInternalValue(10000); in TEST_F() local 165 duration, in TEST_F() 173 2, 0, _, 50, _, _, duration, duration_uptime, 3, _)) in TEST_F()
|
/system/core/cli-test/ |
D | cli-test.cpp | 258 std::stringstream duration; in RunTests() local 259 duration << test_timer; in RunTests() 262 Print(kRed, "[ FAILED ]", " %s (%s)", test.name.c_str(), duration.str().c_str()); in RunTests() 264 Print(kGreen, "[ OK ]", " %s (%s)", test.name.c_str(), duration.str().c_str()); in RunTests() 270 std::stringstream duration; in RunTests() local 271 duration << total_timer; in RunTests() 272 Print(kGreen, "[==========]", " %zu tests ran. (%s total)", tests.size(), duration.str().c_str()); in RunTests()
|
/system/extras/simpleperf/ |
D | profcollect.cpp | 55 bool Record(const char* event_name, const char* output, float duration, const char* binary_filter) { in Record() argument 56 LOG(INFO) << "Record " << event_name << ", duration " << duration << ", output " << output in Record() 70 std::to_string(duration), in Record()
|
/system/extras/zram-perf/ |
D | zram-perf.cpp | 101 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/core/fs_mgr/libsnapshot/ |
D | snapshot_stats.cpp | 138 std::chrono::steady_clock::duration merge_time) in SnapshotMergeStatsResultImpl() 141 std::chrono::steady_clock::duration merge_time() const override { return merge_time_; } in merge_time() 145 std::chrono::steady_clock::duration merge_time_;
|