/system/update_engine/common/ |
H A D | fake_clock.h | 24 // Implements a clock that can be made to tell any time you want. 41 void SetWallclockTime(const base::Time &time) { argument 42 wallclock_time_ = time; 45 void SetMonotonicTime(const base::Time &time) { argument 46 monotonic_time_ = time; 49 void SetBootTime(const base::Time &time) { argument 50 boot_time_ = time;
|
/system/extras/memcpy-perf/ |
H A D | graph_memcpy.py | 4 import time namespace
|
/system/media/audio_utils/include/audio_utils/ |
H A D | clock.h | 24 #include <sys/time.h> 25 #include <time.h> 28 * \brief Converts time in ns to a time string, with format similar to logcat. 29 * \param ns input time in nanoseconds to convert. 31 * in order to fully fit in time. The string is always returned 58 * An object that contains the formatted time string. 60 * The time string is 19 characters (including null termination). 65 char time[19]; /* minimum size buffer */ member in struct:audio_utils_time_string 69 * \brief Converts time i [all...] |
H A D | SimpleLog.h | 37 * Do not call from a sched_fifo thread as it can use a system time call 77 * \brief Adds a formatted string into the log with time. 79 * \param nowNs the time to use for logging. Assumed to be monotonically 97 * \brief Adds a formatted string by va_list with time. Not intended for typical use. 99 * \param nowNs the time to use for logging. Assumed to be monotonically 125 * \brief Logs a string to the buffer with time. 126 * \param nowNs the time to use for logging. Assumed to be monotonically 165 // Note: this restricts the lines before checking the time constraint. 170 const int64_t time = it->first; local 171 if (time < limitN [all...] |
H A D | ErrorLog.h | 35 * (within a specified time) into a single entry (to reduce log spamming). 38 * together with the first time the error code occurs and the last time the error code occurs. 49 * \param aggregateNs the maximum time in nanoseconds between identical error codes 67 * \param nowNs current time in nanoseconds. 127 ss << prefix << " Code Freq First time Last time\n"; 134 << " " << audio_utils_time_string_from_ns(entry.mFirstTime).time 135 << " " << audio_utils_time_string_from_ns(entry.mLastTime).time << "\n"; 170 // Initialize entry with code as the first error at the given time 171 setFirstError(T code, int64_t time) argument [all...] |
/system/core/libziparchive/ |
H A D | zip_writer_test.cc | 22 #include <time.h> 165 time_t time = mktime(&tm); local 166 ASSERT_EQ(0, writer.StartEntryWithTime("align.txt", ZipWriter::kAlign32, time)); 216 time_t time = mktime(&tm); local 217 ASSERT_EQ(0, writer.StartAlignedEntryWithTime("align.txt", 0, time, 4096));
|
/system/extras/simpleperf/scripts/ |
H A D | binary_cache_builder.py | 30 import time namespace
|
H A D | app_profiler.py | 31 import time namespace 156 time.sleep(1) 174 time.sleep(1)
|
H A D | pprof_proto_generator.py | 36 import time namespace
|
/system/extras/tests/framebuffer/ |
H A D | refresh.c | 10 #include <time.h> 146 int64_t time = systemTime(); local 160 time = now - time; 161 printf("refresh rate = %f Hz\n", (c*1000000000.0 / (double)time)); 163 time = now;
|
/system/extras/tests/sdcard/ |
H A D | stopwatch.cpp | 32 #include <time.h> 209 double StopWatch::timespecToDouble(const struct timespec& time) argument 211 double val = double(time.tv_nsec) / 1.0e9 + double(time.tv_sec);
|
/system/nfc/src/include/ |
H A D | buildcfg.h | 76 long time; member in struct:_timeb
|
/system/security/keystore/tests/ |
H A D | auth_token_table_test.cpp | 91 // Tests obviously run so fast that a real-time clock with a one-second granularity rarely changes 92 // output during a test run. This test clock "ticks" one second every time it's called. 94 static time_t time = 0; local 95 return time++; 276 // monotonic_clock "ticks" one second each time it's called, which is once per request, so the
|
/system/update_engine/update_manager/ |
H A D | real_updater_provider_unittest.cc | 22 #include <base/time/time.h> 47 // Generates a fixed timestamp for use in faking the current time. 63 Time RoundedToSecond(Time time) { argument 65 time.LocalExplode(&exp); 85 // Sets up mock expectations for testing the update completed time reporting. 86 // |valid| determines whether the returned time is valid. Returns the expected 87 // update completed time value.
|
/system/core/adb/ |
H A D | file_sync_service.h | 49 uint32_t time; member in struct:syncmsg::__anon1401 69 uint32_t time; member in struct:syncmsg::__anon1403
|
/system/extras/simpleperf/ |
H A D | InplaceSamplerClient.cpp | 149 uint64_t time; local 151 MoveFromBinaryFormat(time, p); 153 CommRecord r(attr_, pid_, tid, p, Id(), time); 158 uint64_t time; local 162 MoveFromBinaryFormat(time, p); 166 MmapRecord r(attr_, false, pid_, pid_, start, len, pgoff, p, Id(), time); 171 uint64_t time; local 175 MoveFromBinaryFormat(time, p); 182 SampleRecord r(attr_, Id(), ips[0], pid_, tid, time, 0, period, ips);
|
H A D | thread_tree.h | 41 uint64_t time; // Map creation time. member in struct:simpleperf::MapEntry 45 MapEntry(uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, argument 50 time(time), 93 uint64_t time, const std::string& filename); 95 uint64_t pgoff, uint64_t time, const std::string& filename); 111 // the time to reload dso information.
|
H A D | thread_tree.cpp | 42 if (map1->time != map2->time) { 43 return map1->time < map2->time; 103 uint64_t time, const std::string& filename) { 110 AllocateMap(MapEntry(start_addr, len, pgoff, time, dso, true)); 130 uint64_t len, uint64_t pgoff, uint64_t time, 135 AllocateMap(MapEntry(start_addr, len, pgoff, time, dso, false)); 169 old->pgoff, old->time, old->dso, old->in_kernel)); 175 map->get_end_addr() - old->start_addr + old->pgoff, old->time, 102 AddKernelMap(uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, const std::string& filename) argument 129 AddThreadMap(int pid, int tid, uint64_t start_addr, uint64_t len, uint64_t pgoff, uint64_t time, const std::string& filename) argument [all...] |
/system/vold/bench/ |
H A D | benchgen.py | 35 def __init__(self, thread, time, call, args, ret): 37 self.time = time 119 time, call, args, ret = line.groups() 123 time = float(time) variable 125 events.append(Event(thread, time, call, args, ret)) 175 events = sorted(events, key=lambda e: e.time)
|
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | async_manager.cc | 60 // time out or a notify on the cond var, the former means a task is due 76 // at a given time 332 Task(std::chrono::steady_clock::time_point time, argument 334 : time(time), 339 Task(std::chrono::steady_clock::time_point time, argument 341 : time(time), 348 return std::make_pair(time, task_id) < 349 std::make_pair(another.time, anothe 356 std::chrono::steady_clock::time_point time; member in class:test_vendor_lib::AsyncManager::AsyncTaskManager::Task [all...] |
/system/core/gatekeeperd/ |
H A D | SoftGateKeeper.h | 101 struct timespec time; local 102 int res = clock_gettime(CLOCK_BOOTTIME, &time); 104 return (time.tv_sec * 1000) + (time.tv_nsec / 1000 / 1000);
|
/system/core/init/ |
H A D | perfboot.py | 19 CPUs are cooled down sufficiently to avoid boot time slowdown caused by CPU 52 import time namespace 87 # The wait time used when the value of _CPU_COOL_DOWN_THRESHOLDS for 100 """Waits certain amount of time for CPUs cool-down.""" 106 time.sleep(self._interval) 125 time.sleep(IntervalAdjuster._CPU_COOL_DOWN_WAIT_TIME_DEFAULT) 134 time.sleep(IntervalAdjuster._CPU_COOL_DOWN_WAIT_INTERVAL) 239 return re.compile(r'(?P<pid>[0-9]+) +[0-9]+ I (?P<tag>%s): (?P<time>\d+)' % 358 """Measures the boot time once.""" 381 event_time = int(m.group('time')) [all...] |
/system/extras/cpustats/ |
H A D | cpustats.c | 41 long unsigned time; member in struct:freq_info 249 new_total_cpu.freqs[i].time = 0; 276 &new_cpus[cpu].freqs[i].time); 280 new_cpus[cpu].freqs[i].time = old_cpus[cpu].freqs[i].time; 284 new_total_cpu.freqs[i].time += new_cpus[cpu].freqs[i].time; 292 * Get the sum of the cpu time from all categories. 365 delta_time = new_cpu->freqs[i].time - old_cpu->freqs[i].time; [all...] |
/system/extras/iotop/ |
H A D | iotop.cpp | 36 static float TimeToTgidPercent(uint64_t ns, int time, const TaskStatistics& stats) { argument 37 float percent = ns / stats.threads() / (time * NSEC_PER_SEC / 100.0f);
|
/system/keymaster/include/keymaster/ |
H A D | android_keymaster_utils.h | 22 #include <time.h> // for time_t. 32 * Convert the specified time value into "Java time", which is a signed 64-bit integer representing 35 inline int64_t java_time(time_t time) { argument 39 return static_cast<int64_t>(time) * 1000;
|