Home
last modified time | relevance | path

Searched refs:timespec (Results 1 – 25 of 34) sorted by relevance

12

/aosp14/frameworks/base/libs/androidfw/include/androidfw/
H A DZipUtils.h72 static inline void zipTimeToTimespec(uint32_t when, struct tm* timespec) { in zipTimeToTimespec() argument
75 memset(timespec, 0, sizeof(struct tm)); in zipTimeToTimespec()
76 timespec->tm_year = ((date >> 9) & 0x7F) + 80; // Zip is years since 1980 in zipTimeToTimespec()
77 timespec->tm_mon = ((date >> 5) & 0x0F) - 1; in zipTimeToTimespec()
78 timespec->tm_mday = date & 0x1F; in zipTimeToTimespec()
80 timespec->tm_hour = (when >> 11) & 0x1F; in zipTimeToTimespec()
81 timespec->tm_min = (when >> 5) & 0x3F; in zipTimeToTimespec()
82 timespec->tm_sec = (when & 0x1F) << 1; in zipTimeToTimespec()
83 timespec->tm_isdst = -1; in zipTimeToTimespec()
H A DResourceTimer.h210 struct timespec start_;
/aosp14/frameworks/base/apex/jobscheduler/service/jni/
H A Dcom_android_server_alarm_AlarmManagerService.cpp83 int set(int type, struct timespec *ts);
102 int AlarmImpl::set(int type, struct timespec *ts) in set()
268 struct timespec nextTimespec = spec.it_value; in android_server_alarm_AlarmManagerService_getNextAlarm()
283 struct timespec ts; in android_server_alarm_AlarmManagerService_set()
/aosp14/frameworks/base/libs/androidfw/
H A DResourceTimer.cpp51 unsigned int diffInNs(timespec const &a, timespec const &b) { in diffInNs()
52 timespec r = { 0, 0 }; in diffInNs()
91 struct timespec end; in record()
/aosp14/system/core/storaged/
H A Dstoraged_diskstats.cpp66 bool get_time(struct timespec* ts) { in get_time()
77 void init_disk_stats_other(const struct timespec& ts, struct disk_stats* stats) { in init_disk_stats_other()
86 struct timespec ts; in parse_disk_stats()
123 struct timespec ts; in get_disk_stats_from_health_hal()
/aosp14/system/core/libstats/push_compat/
H A Dstatsd_writer.h40 int (*write)(struct timespec* ts, struct iovec* vec, size_t nr);
H A Dstatsd_writer.c63 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr);
156 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr) { in statsdWrite()
H A Dstats_event_list.c149 struct timespec ts; in __write_to_stats_daemon()
/aosp14/system/core/libutils/
H A DSystemClock.cpp67 struct timespec ts; in elapsedRealtimeNano()
H A DTimers.cpp39 timespec t = {}; in systemTime()
H A DSystemClock_test.cpp55 timespec ts; in TEST()
/aosp14/system/core/libasyncio/include/asyncio/
H A DAsyncIO.h40 struct timespec* timeout);
/aosp14/frameworks/base/cmds/incidentd/src/
H A Dincidentd_util.cpp165 timespec ts; in Nanotime()
207 timespec ts; in waitpid_with_timeout()
/aosp14/system/core/libasyncio/
H A DAsyncIO.cpp35 int io_getevents(aio_context_t ctx, long min_nr, long max_nr, io_event* events, timespec* timeout) { in io_getevents()
/aosp14/system/core/libutils/include/utils/
H A DCondition.h121 struct timespec ts; in waitRelative()
H A DMutex.h194 const struct timespec ts = { in timedLock()
/aosp14/system/core/debuggerd/
H A Dutil.cpp64 timespec ts; in get_timestamp()
/aosp14/frameworks/base/libs/usb/tests/accessorytest/
H A Dhid.c42 struct timespec tm; in milli_sleep()
H A Dusb.c38 struct timespec tm; in milli_sleep()
/aosp14/frameworks/base/libs/usb/tests/AccessoryChat/accessorychat/
H A Daccessorychat.c70 struct timespec tm; in milli_sleep()
/aosp14/frameworks/base/tests/JankBench/app/src/main/jni/
H A Dtest.cpp32 struct timespec t; in GetTime()
H A DBench.cpp44 struct timespec t; in getTimeNanos()
/aosp14/system/core/llkd/
H A Dlibllkd.cpp431 milliseconds llkGetTimespecDiffMs(timespec* from, timespec* to) { in llkGetTimespecDiffMs()
969 static timespec last; in llkCheck()
970 timespec now; in llkCheck()
1260 timespec end; in llkCheck()
/aosp14/system/core/libcutils/
H A Dtrace-container.cpp127 struct timespec ts; in gettime()
/aosp14/frameworks/base/cmds/uinput/jni/
H A Dcom_android_commands_uinput_Device.cpp174 timespec ts; in injectEvent()

12