/system/core/toolbox/ |
H A D | uptime.c | 35 #include <time.h> 37 static void format_time(int time, char* buffer) { argument 38 int seconds = time % 60; 39 time /= 60; 40 int minutes = time % 60; 41 time /= 60; 42 int hours = time % 24; 43 int days = time / 24; 68 fprintf(stderr, "Could not get monotonic time: %s\n", strerror(errno)); 75 fprintf(stderr, "Could not get boot time [all...] |
H A D | prlimit.c | 35 #include <sys/time.h>
|
H A D | watchprops.c | 4 #include <time.h> 31 fprintf(stderr,"%10d %s = '%s'\n", (int) time(0), name, value);
|
/system/security/keystore/ |
H A D | keystore_keymaster_enforcement.h | 20 #include <time.h> 41 time_t now = time(NULL); 43 // Failed to obtain current time -- fail safe: activation_date hasn't yet occurred. 46 // Current time is prior to start of the epoch -- activation_date hasn't yet occurred. 50 // time(NULL) returns seconds since epoch and "loses" milliseconds information. We thus add 53 // time(NULL) is replaced by a millisecond-precise source of time. 59 time_t now = time(NULL); 61 // Failed to obtain current time -- fail safe: expiration_date has passed. 64 // Current time i [all...] |
H A D | auth_token_table.cpp | 20 #include <time.h> 47 struct timespec time; local 48 clock_gettime(CLOCK_MONOTONIC_RAW, &time); 49 return time.tv_sec; 203 void AuthTokenTable::Entry::UpdateLastUse(time_t time) { argument 204 this->last_use_ = time;
|
/system/core/libutils/ |
H A D | Timers.cpp | 23 #include <sys/time.h> 24 #include <time.h>
|
/system/extras/tests/sdcard/ |
H A D | stopwatch.h | 34 #include <time.h> 51 // If the time measure is associated with some volume of data, use 55 // To capture the time accurately and since the runs are not too long, 56 // we collect the raw start and stop time in an array that get 94 // A StopWatch instance measures time intervals. Use setDataSize 99 // Starts and stops the timer. The time between the 2 calls is an 106 // is a pair (time, duration). The 1st sample is always at time 126 double timespecToDouble(const struct timespec& time);
|
H A D | plot_sdcard.py | 23 -t x axis is time 48 """Dataset holds the summary and data (time,value pairs).""" 53 self.time = [] 61 return str(zip(self.time, self.data)) 63 def Add(self, time, value): 64 self.time.append(time) 75 for t, d in izip(self.time, self.data): 82 self.time = new_time 164 (time, valu [all...] |
/system/bt/btif/src/ |
H A D | btif_debug.c | 20 #include <sys/time.h>
|
/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/slideshow/ |
H A D | slideshow.cpp | 20 #include <time.h> 135 start = time(NULL); 143 if (time(NULL) - start >= LAST_TIMEOUT_S) {
|
/system/bt/hci/src/ |
H A D | btsnoop_mem.c | 20 #include <time.h>
|
/system/core/include/log/ |
H A D | logd.h | 33 #include <time.h>
|
/system/extras/tests/schedtest/ |
H A D | schedtest.c | 20 #include <sys/time.h>
|
/system/media/audio_utils/include/audio_utils/ |
H A D | echo_reference.h | 21 #include <sys/time.h> 25 /* Buffer descriptor used by read() and write() methods, including the time stamp and delay. */ 30 struct timespec time_stamp; // time stamp for this buffer (see comment below) 36 * - time_stamp is the time stamp corresponding to the delay calculation 42 * - time_stamp is the time stamp corresponding to the delay calculation 44 * - delay_ns is the delay between the returned frames and the capture time derived from 45 * delay and time stamp indicated as input. This delay is to be communicated to the AEC.
|
H A D | resampler.h | 21 #include <sys/time.h>
|
/system/core/adb/ |
H A D | file_sync_service.h | 49 unsigned time; member in struct:syncmsg::__anon1305 55 unsigned time; member in struct:syncmsg::__anon1306
|
H A D | file_sync_client.cpp | 24 #include <sys/time.h> 26 #include <time.h> 92 typedef void (*sync_ls_cb)(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie); 124 ltohl(msg.dent.time), 163 *timestamp = ltohl(msg.stat.time); 195 *timestamp = ltohl(msg.stat.time); 536 static void do_sync_ls_cb(unsigned mode, unsigned size, unsigned time, argument 539 printf("%08x %08x %08x %s\n", mode, size, time, name); 563 unsigned int time; member in struct:copyinfo 586 ci->time 811 sync_ls_build_list_cb(unsigned mode, unsigned size, unsigned time, const char *name, void *cookie) argument 872 set_time_and_mode(const char *lpath, time_t time, unsigned int mode) argument 967 unsigned mode, time; local [all...] |
/system/extras/tests/pftest/ |
H A D | pftest.c | 21 #include <sys/time.h> 22 #include <time.h>
|
/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/extras/cpustats/ |
H A D | cpustats.c | 41 long unsigned time; member in struct:freq_info 246 new_total_cpu.freqs[i].time = 0; 273 &new_cpus[cpu].freqs[i].time); 276 new_total_cpu.freqs[i].time += new_cpus[cpu].freqs[i].time; 283 * Get the sum of the cpu time from all categories. 356 delta_time = new_cpu->freqs[i].time - old_cpu->freqs[i].time; 369 new_cpu->freqs[i].time - old_cpu->freqs[i].time); [all...] |
/system/core/fastboot/ |
H A D | util.c | 34 #include <sys/time.h>
|
/system/core/include/utils/ |
H A D | ProcessCallStack.h | 25 #include <time.h>
|
/system/extras/tests/icachetest/ |
H A D | icache_main.c | 2 #include <sys/time.h>
|
/system/extras/tests/include/ |
H A D | testUtil.h | 23 #include <sys/time.h>
|