Searched defs:now (Results 1 - 25 of 54) sorted by relevance

123

/system/core/fastboot/
H A Dutil.cpp38 double now() function
/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/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/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/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 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
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;
/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/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/extras/tests/framebuffer/
H A Drefresh.c131 // at least for now, always clear the fb
159 int64_t now = systemTime(); local
160 time = now - time;
163 time = now;
/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;
/system/connectivity/shill/
H A Dlink_monitor.cc126 struct timeval now, elapsed_time; local
127 time_->GetTimeMonotonic(&now);
128 timersub(&now, &started_monitoring_at_, &elapsed_time);
H A Dportal_detector.cc165 struct timeval now, elapsed_time; local
166 time_->GetTimeMonotonic(&now);
167 timersub(&now, &attempt_start_time_, &elapsed_time);
H A Dactive_link_monitor.cc268 struct timeval now, elapsed_time; local
269 time_->GetTimeMonotonic(&now);
270 timersub(&now, &sent_request_at_, &elapsed_time);
280 << "Gateway is now considered a reliable unicast responder. "
281 "Unicast failures will now count.";
H A Ddns_client.cc352 struct timeval now, elapsed_time, timeout_tv; local
353 time_->GetTimeMonotonic(&now);
354 timersub(&now, &resolver_state_->start_time, &elapsed_time);
H A Dipconfig.cc166 struct timeval now; local
167 time_->GetTimeBoottime(&now);
168 if (now.tv_sec > current_lease_expiration_time_.tv_sec) {
172 *time_left = current_lease_expiration_time_.tv_sec - now.tv_sec;
/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/keymaster/
H A Dandroid_keymaster_messages_test.cpp653 time_t now = time(NULL); local
654 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl;
655 srand(now);
H A Dkey_blob_test.cpp293 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;
/system/netd/server/
H A DResolverController.cpp203 time_t now = time(nullptr); local
220 int time_delta = (s.last_sample_time > 0) ? now - s.last_sample_time : -1;
/system/webservd/webservd/
H A Dutils.cc40 base::Time now = base::Time::Now(); local
45 !base::GetFileInfo(exe_path, &info) || info.creation_time < now) {
46 return now;
49 LOG(WARNING) << "Current time (" << now
/system/bt/osi/src/
H A Dwakelock.c236 static period_ms_t now(void) { function
263 wakelock_stats.last_reset_timestamp_ms = now();
277 const period_ms_t now_ms = now();
309 const period_ms_t now_ms = now();
345 const period_ms_t now_ms = now();
/system/connectivity/shill/shims/
H A Dnetfilter_queue_processor_unittest.cc72 void LogOutgoingPacket(time_t now) { argument
73 processor_.LogOutgoingPacket(packet_, now);
75 bool IsIncomingPacketAllowed(time_t now) { argument
76 return processor_.IsIncomingPacketAllowed(packet_, now);
/system/core/init/
H A Dbootchart.cpp72 struct tm now = *localtime(&now_t); local
73 strftime(date, sizeof(date), "%F %T", &now);
/system/core/libutils/
H A DBlobCache.cpp46 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);

Completed in 704 milliseconds

123