Searched refs:now (Results 1 - 25 of 77) sorted by relevance

1234

/system/security/keystore/
H A Dkeystore_keymaster_enforcement.h41 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;
/system/extras/tests/icachetest/
H A Dicache_main.c11 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/connectivity/shill/net/
H A Devent_history.cc39 Timestamp now = time_->GetNow(); local
40 RecordEventInternal(now);
41 ExpireEventsBeforeInternal(seconds_ago, now, clock_type);
53 void EventHistory::RecordEventInternal(Timestamp now) { argument
54 events_.push_back(now);
61 void EventHistory::ExpireEventsBeforeInternal(int seconds_ago, Timestamp now, argument
68 timersub(&now.boottime, &events_.front().boottime, &elapsed);
71 timersub(&now.monotonic, &events_.front().monotonic, &elapsed);
77 timersub(&now.boottime, &events_.front().boottime, &elapsed);
90 Timestamp now local
[all...]
H A Dshill_time.cc49 struct timeval now; local
50 if (GetTimeMonotonic(&now) < 0) {
53 *seconds = now.tv_sec;
59 struct timeval now; local
60 if (GetTimeBoottime(&now) < 0) {
63 *seconds = now.tv_sec;
H A Devent_history.h71 // now and the time |seconds_ago| before now (inclusive). |clock_type|
85 void RecordEventInternal(Timestamp now);
87 void ExpireEventsBeforeInternal(int seconds_ago, Timestamp now,
H A Devent_history_unittest.cc64 void RecordEvent(Timestamp now) { argument
65 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now));
69 void ExpireEventsBefore(int seconds_ago, Timestamp now, argument
71 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now));
75 void RecordEventAndExpireEventsBefore(int seconds_ago, Timestamp now, argument
77 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now));
94 Timestamp now) {
95 EXPECT_CALL(time_, GetNow()).WillOnce(Return(now));
92 CountEventsWithinInterval(int seconds_ago, EventHistory::ClockType clock_type, Timestamp now) argument
/system/core/liblog/
H A Dlog_time.cpp32 time_t now; local
35 now = tv_sec;
37 time(&now);
38 tv_sec = now;
45 ptm = localtime_r(&now, &tmBuf);
47 ptm = localtime(&now);
81 now = tv_sec;
83 ptm = localtime_r(&now, &tmBuf);
85 ptm = localtime(&now);
130 time(&now);
[all...]
/system/netd/include/
H A DStopwatch.h24 Stopwatch() : mStart(std::chrono::steady_clock::now()) {}
30 std::chrono::steady_clock::now() - mStart)).count();
/system/update_engine/update_manager/
H A Dreal_time_provider_unittest.cc62 const Time now = CurrTime(); local
64 now.LocalExplode(&exploded);
71 fake_clock_.SetWallclockTime(now);
76 const Time now = CurrTime(); local
78 now.LocalExplode(&expected);
79 fake_clock_.SetWallclockTime(now);
/system/core/crash_reporter/
H A Dperiodic_scheduler67 local now="$(date +%s)"
68 local time_diff=$((now - last_rotation))
/system/connectivity/shill/
H A Dicmp_session_unittest.cc221 base::TimeTicks now = testing_clock_.NowTicks(); local
241 testing_clock_.Advance(kSentTime1 - now);
242 now = testing_clock_.NowTicks();
250 EXPECT_EQ(now, GetSeqNumToSentRecvTime()->at(kIcmpEchoReply1_SeqNum).first);
254 testing_clock_.Advance(kRecvTime1 - now);
255 now = testing_clock_.NowTicks();
268 testing_clock_.Advance(kSentTime2 - now);
269 now = testing_clock_.NowTicks();
276 EXPECT_EQ(now, GetSeqNumToSentRecvTime()->at(kIcmpEchoReply2_SeqNum).first);
280 testing_clock_.Advance(kSentTime3 - now);
348 base::TimeTicks now = testing_clock_.NowTicks(); local
[all...]
H A Dlink_monitor.cc126 struct timeval now, elapsed_time; local
127 time_->GetTimeMonotonic(&now);
128 timersub(&now, &started_monitoring_at_, &elapsed_time);
/system/core/logd/
H A DLogBuffer.h52 log_time now(CLOCK_REALTIME);
55 if (now.tv_sec >= EPOCH_PLUS_2_YEARS) {
60 if (now.tv_sec < EPOCH_PLUS_MINUTE) {
66 if ((cpu.tv_sec + EPOCH_PLUS_MINUTE) >= now.tv_sec) {
71 return mono.tv_sec < ((cpu.tv_sec + now.tv_sec) / 2);
H A DLogAudit.cpp120 log_time now; local
125 && ((cp = now.strptime(timeptr + sizeof(audit_str) - 1, "%s.%q")))
130 if (android::isMonotonic(now)) {
131 LogKlog::convertMonotonicToReal(now);
134 if (!android::isMonotonic(now)) {
135 LogKlog::convertRealToMonotonic(now);
139 now = log_time(CLOCK_MONOTONIC);
141 now = log_time(CLOCK_REALTIME);
177 rc = logbuf->log(LOG_ID_EVENTS, now, uid, pid, tid,
230 rc = logbuf->log(LOG_ID_MAIN, now, ui
[all...]
H A DLogKlog.cpp288 time_t now = real.tv_sec; local
292 localtime_r(&now, &tm);
330 void LogKlog::sniffTime(log_time &now, argument
333 const char *cp = now.strptime(*buf, "[ %s.%q]");
356 calculateCorrection(now, b, len);
360 calculateCorrection(now, b, len);
395 convertMonotonicToReal(now);
398 now = log_time(CLOCK_MONOTONIC);
400 now = log_time(CLOCK_REALTIME);
491 log_time now; local
592 log_time now; local
[all...]
/system/extras/memcpy-perf/
H A Dmemcpy-perf.cpp68 copy_start = chrono::high_resolution_clock::now();
72 copy_end = chrono::high_resolution_clock::now();
78 copy_start = chrono::high_resolution_clock::now();
82 copy_end = chrono::high_resolution_clock::now();
88 copy_start = chrono::high_resolution_clock::now();
92 copy_end = chrono::high_resolution_clock::now();
/system/core/healthd/
H A Dhealthd_mode_charger.cpp456 static void update_screen_state(struct charger *charger, int64_t now) argument
461 if (!batt_anim->run || now < charger->next_screen_transition) return;
466 LOGV("[%" PRId64 "] leave screen off\n", now);
490 LOGV("[%" PRId64 "] animation done\n", now);
501 LOGV("[%" PRId64 "] animation starting\n", now);
533 LOGW("[%" PRId64 "] animation missing or unknown battery status\n", now);
534 charger->next_screen_transition = now + BATTERY_UNKNOWN_TIME;
540 charger->next_screen_transition = now + disp_time;
574 int64_t now = curr_time_ms(); local
587 charger->keys[code].timestamp = now;
621 process_key(struct charger *charger, int code, int64_t now) argument
667 handle_input_state(struct charger *charger, int64_t now) argument
675 handle_power_supply_state(struct charger *charger, int64_t now) argument
710 int64_t now = curr_time_ms(); local
742 int64_t now = curr_time_ms(); local
[all...]
/system/update_engine/
H A Dmetrics_utils.cc153 // For now just map that to kDownloading. See http://crbug.com/355745
267 Time now = system_state->clock()->GetWallclockTime(); local
271 if (stored_time > now) {
275 *out_duration = now - stored_time;
281 now.ToInternalValue())) {
293 Time now = system_state->clock()->GetMonotonicTime(); local
296 *out_duration = now - stored_time;
299 *storage = now.ToInternalValue();
/system/connectivity/shill/shims/
H A Dnetfilter_queue_processor.cc261 time_t now = time(NULL); local
262 if (processor->IsIncomingPacketAllowed(packet, now)) {
283 time_t now = time(NULL); local
284 processor->LogOutgoingPacket(packet, now);
312 void NetfilterQueueProcessor::ExpireListeners(time_t now) { argument
313 time_t expiration_threshold = now - kExpirationIntervalSeconds;
359 const Packet& packet, time_t now) {
372 ExpireListeners(now);
402 const Packet& packet, time_t now) {
435 (*entry_it)->last_transmission = now;
358 IsIncomingPacketAllowed( const Packet& packet, time_t now) argument
401 LogOutgoingPacket( const Packet& packet, time_t now) argument
[all...]
/system/core/adb/
H A Dadb_trace.cpp52 struct tm now; local
56 localtime_r(&t, &now);
59 strftime(timestamp, sizeof(timestamp), "%Y-%m-%d-%H-%M-%S", &now);
/system/bt/embdrv/sbc/decoder/include/
H A Doi_osinterface.h86 * @param[out] now Pointer to the buffer to which the current
89 void OI_Time_Now(OI_TIME *now);
/system/core/fastboot/
H A Dutil.cpp38 double now() function
/system/extras/zram-perf/
H A Dzram-perf.cpp80 start = chrono::high_resolution_clock::now();
91 end = chrono::high_resolution_clock::now();
101 start = chrono::high_resolution_clock::now();
113 end = chrono::high_resolution_clock::now();
/system/core/logd/tests/
H A Dlogd_test.cpp628 log_time now(android_log_clockid());
629 now.tv_sec -= 30; // reach back a moderate period of time
640 now.tv_sec, now.tv_nsec);
684 EXPECT_FALSE(msg < now); argument
685 if (msg > now) {
686 now = msg;
687 now.tv_sec += 30;
689 if (now > msg) {
690 now
[all...]
/system/bt/btif/src/
H A Dbtif_debug_btsnoop.c63 const uint64_t now = btif_debug_ts(); local
68 header.delta_time_ms = last_timestamp_ms ? now - last_timestamp_ms : 0;
69 last_timestamp_ms = now;

Completed in 652 milliseconds

1234