/system/security/keystore/ |
H A D | keystore_keymaster_enforcement.h | 41 time_t now = time(NULL); variable 42 if (now == static_cast<time_t>(-1)) { 45 } else if (now < 0) { 54 uint64_t now_date = static_cast<uint64_t>(now) * 1000 + 999; 59 time_t now = time(NULL); variable 60 if (now == static_cast<time_t>(-1)) { 63 } else if (now < 0) { 71 uint64_t now_date = static_cast<uint64_t>(now) * 1000;
|
H A D | auth_token_table.cpp | 137 time_t now = clock_function_(); local 138 if (static_cast<int64_t>(newest_match->time_received()) + timeout < static_cast<int64_t>(now)) 141 newest_match->UpdateLastUse(now);
|
/system/extras/tests/icachetest/ |
H A D | icache_main.c | 11 struct timeval now, tm; local 19 gettimeofday(&now, 0); 22 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec); 26 gettimeofday(&now, 0); 29 t = (tm.tv_sec*1000000LL+tm.tv_usec) - (now.tv_sec*1000000LL+now.tv_usec);
|
/system/core/liblog/ |
H A D | log_time.cpp | 31 time_t now; local 34 now = tv_sec; 36 time(&now); 37 tv_sec = now; 44 ptm = localtime_r(&now, &tmBuf); 46 ptm = localtime(&now); 80 now = tv_sec; 82 ptm = localtime_r(&now, &tmBuf); 84 ptm = localtime(&now); 129 time(&now); [all...] |
/system/extras/simpleperf/ |
H A D | workload_test.cpp | 30 auto start_time = steady_clock::now(); 35 auto end_time = steady_clock::now();
|
/system/core/healthd/ |
H A D | healthd_mode_charger.cpp | 345 static void update_screen_state(struct charger *charger, int64_t now) argument 350 if (!batt_anim->run || now < charger->next_screen_transition) 357 LOGV("[%" PRId64 "] leave screen off\n", now); 380 LOGV("[%" PRId64 "] animation done\n", now); 391 LOGV("[%" PRId64 "] animation starting\n", now); 420 LOGV("[%" PRId64 "] animation missing or unknown battery status\n", now); 421 charger->next_screen_transition = now + BATTERY_UNKNOWN_TIME; 427 charger->next_screen_transition = now + disp_time; 462 int64_t now = curr_time_ms(); local 475 charger->keys[code].timestamp = now; 509 process_key(struct charger *charger, int code, int64_t now) argument 555 handle_input_state(struct charger *charger, int64_t now) argument 563 handle_power_supply_state(struct charger *charger, int64_t now) argument 598 int64_t now = curr_time_ms(); local 630 int64_t now = curr_time_ms(); local [all...] |
/system/core/logd/ |
H A D | LogKlog.cpp | 243 time_t now = real.tv_sec; local 247 localtime_r(&now, &tm); 252 void LogKlog::sniffTime(log_time &now, const char **buf, bool reverse) { argument 254 if ((cp = now.strptime(*buf, "[ %s.%q]"))) { 263 calculateCorrection(now, cp + sizeof(suspend) - 1); 265 calculateCorrection(now, cp + sizeof(resume) - 1); 280 convertMonotonicToReal(now); 283 now = log_time(CLOCK_REALTIME); 299 log_time now; local 300 sniffTime(now, 405 log_time now; local [all...] |
H A D | LogAudit.cpp | 116 log_time now; local 121 && ((cp = now.strptime(timeptr + sizeof(audit_str) - 1, "%s.%q"))) 131 if (now.tv_sec < EPOCH_PLUS_10_YEARS) { 132 LogKlog::convertMonotonicToReal(now); 135 now.strptime("", ""); // side effect of setting CLOCK_REALTIME 170 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid, 220 rc = logbuf->log(LOG_ID_MAIN, now, uid, pid, tid, newstr,
|
H A D | LogKlog.h | 51 void sniffTime(log_time &now, const char **buf, bool reverse);
|
/system/bt/btif/src/ |
H A D | btif_debug_btsnoop.c | 57 const uint64_t now = btif_debug_ts(); local 61 header.delta_time_ms = last_timestamp_ms ? now - last_timestamp_ms : 0; 62 last_timestamp_ms = now;
|
H A D | btif_hf.c | 313 struct timespec now, conn_time_delta; local 316 clock_gettime(CLOCK_MONOTONIC, &now); 317 conn_time_delta.tv_sec = now.tv_sec; 323 if ((now.tv_sec - btif_hf_cb[i].connected_timestamp.tv_sec) 327 now.tv_sec - btif_hf_cb[i].connected_timestamp.tv_sec; 594 /* TODO: Some of these commands may need to be sent to app. For now respond with error */ 1503 struct timespec now; local 1505 clock_gettime(CLOCK_MONOTONIC, &now); 1506 if (now.tv_sec < btif_hf_cb[0].call_end_timestamp.tv_sec + 1543 ** It will not send codec setting cmd to the controller now [all...] |
/system/bt/embdrv/sbc/decoder/include/ |
H A D | oi_osinterface.h | 86 * @param[out] now Pointer to the buffer to which the current 89 void OI_Time_Now(OI_TIME *now);
|
/system/core/fastboot/ |
H A D | util.c | 38 double now() function
|
H A D | fastboot.h | 70 double now();
|
H A D | engine.c | 129 double split = now(); 239 double split = now(); 251 double split = now(); 380 a->start = now(); 411 fprintf(stderr,"finished. total time: %.3fs\n", (now() - start));
|
/system/bt/osi/src/ |
H A D | alarm.c | 77 static period_ms_t now(void); 136 remaining_ms = alarm->deadline - now(); 158 alarm->created = now(); 248 static period_ms_t now(void) { function 269 period_ms_t just_now = now(); 303 int64_t next_expiration = next->deadline - now(); 368 if (list_is_empty(alarms) || (alarm = list_front(alarms))->deadline > now()) {
|
/system/core/init/ |
H A D | util.cpp | 264 timespec now; local 265 clock_gettime(CLOCK_MONOTONIC, &now); 266 return now.tv_sec; 270 timespec now; local 271 clock_gettime(CLOCK_MONOTONIC, &now); 272 return static_cast<uint64_t>(now.tv_sec) * UINT64_C(1000000000) + now.tv_nsec;
|
H A D | signal_handler.cpp | 116 time_t now = gettime(); local 118 if (svc->time_crashed + CRITICAL_CRASH_WINDOW >= now) { 127 svc->time_crashed = now;
|
/system/extras/tests/framebuffer/ |
H A D | refresh.c | 131 // at least for now, always clear the fb 159 int64_t now = systemTime(); local 160 time = now - time; 163 time = now;
|
/system/core/libutils/ |
H A D | BlobCache.cpp | 46 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 48 srand(now); 50 mRandState[0] = (now >> 0) & 0xFFFF; 51 mRandState[1] = (now >> 16) & 0xFFFF; 52 mRandState[2] = (now >> 32) & 0xFFFF; 54 ALOGV("initializing random seed using %lld", (unsigned long long)now);
|
H A D | Looper.cpp | 227 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); 228 int messageTimeoutMillis = toMillisecondTimeoutDelay(now, mNextMessageUptime); 235 this, mNextMessageUptime - now, timeoutMillis); 316 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); 318 if (messageEnvelope.uptime <= now) { 395 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); 396 timeoutMillis = toMillisecondTimeoutDelay(now, endTime); 487 // file descriptor with the same number has been created and is now 495 // now unable to remove since its file descriptor is no longer valid. 561 // now unabl [all...] |
/system/vold/ |
H A D | Ext4Crypt.cpp | 325 struct timespec now; local 326 clock_gettime(CLOCK_BOOTTIME, &now); 330 now.tv_sec + password_max_age_seconds}; 429 struct timespec now; local 430 clock_gettime(CLOCK_BOOTTIME, &now); 431 if (i->second.expiry_time < now.tv_sec) {
|
/system/bt/audio_a2dp_hw/ |
H A D | audio_a2dp_hw.c | 157 struct timespec now; local 164 clock_gettime(CLOCK_MONOTONIC, &now); 166 now_us = now.tv_sec*USEC_PER_SEC + now.tv_nsec/1000; 170 diff_us = (now.tv_sec - prev.tv_sec) * USEC_PER_SEC + (now.tv_nsec - prev.tv_nsec)/1000; 171 *pprev_opt = now; 176 diff_us = (now.tv_sec - prev.tv_sec) * USEC_PER_SEC + (now.tv_nsec - prev.tv_nsec)/1000; 177 prev = now; [all...] |
/system/core/libutils/tests/ |
H A D | Looper_test.cpp | 561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 563 mLooper->sendMessageAtTime(now + ms2ns(100), handler, Message(MSG_TEST1)); 598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 600 mLooper->sendMessageAtTime(now - ms2ns(1000), handler, Message(MSG_TEST1)); 617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 619 mLooper->sendMessageAtTime(now, handler, Message(MSG_TEST1));
|
/system/keymaster/ |
H A D | key_blob_test.cpp | 293 time_t now = time(NULL); local 294 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl; 295 srand(now); 324 << "Somehow sucessfully parsed a blob with seed " << now << " at offset " << i;
|