Searched refs:time (Results 1 - 25 of 152) sorted by relevance

1234567

/system/core/toolbox/
H A Duptime.c35 #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 Dprlimit.c35 #include <sys/time.h>
H A Dwatchprops.c4 #include <time.h>
31 fprintf(stderr,"%10d %s = '%s'\n", (int) time(0), name, value);
/system/security/keystore/
H A Dkeystore_keymaster_enforcement.h20 #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 Dauth_token_table.cpp20 #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 DTimers.cpp23 #include <sys/time.h>
24 #include <time.h>
/system/extras/tests/sdcard/
H A Dstopwatch.h34 #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 Dplot_sdcard.py23 -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 Dbtif_debug.c20 #include <sys/time.h>
/system/extras/tests/framebuffer/
H A Drefresh.c10 #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 Dslideshow.cpp20 #include <time.h>
135 start = time(NULL);
143 if (time(NULL) - start >= LAST_TIMEOUT_S) {
/system/bt/hci/src/
H A Dbtsnoop_mem.c20 #include <time.h>
/system/core/include/log/
H A Dlogd.h33 #include <time.h>
/system/extras/tests/schedtest/
H A Dschedtest.c20 #include <sys/time.h>
/system/media/audio_utils/include/audio_utils/
H A Decho_reference.h21 #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 Dresampler.h21 #include <sys/time.h>
/system/core/adb/
H A Dfile_sync_service.h49 unsigned time; member in struct:syncmsg::__anon1305
55 unsigned time; member in struct:syncmsg::__anon1306
H A Dfile_sync_client.cpp24 #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 Dpftest.c21 #include <sys/time.h>
22 #include <time.h>
/system/vold/bench/
H A Dbenchgen.py35 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 Dcpustats.c41 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 Dutil.c34 #include <sys/time.h>
/system/core/include/utils/
H A DProcessCallStack.h25 #include <time.h>
/system/extras/tests/icachetest/
H A Dicache_main.c2 #include <sys/time.h>
/system/extras/tests/include/
H A DtestUtil.h23 #include <sys/time.h>

Completed in 284 milliseconds

1234567