/system/core/fastboot/ |
H A D | util.cpp | 38 double now() function
|
/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/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;
|
/system/update_engine/update_manager/ |
H A D | real_time_provider_unittest.cc | 62 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 D | event_history.cc | 39 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 D | event_history_unittest.cc | 64 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 D | shill_time.cc | 49 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 D | log_time.cpp | 32 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 D | metrics_utils.cc | 153 // 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 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/bt/btif/src/ |
H A D | btif_debug_btsnoop.c | 63 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 D | link_monitor.cc | 126 struct timeval now, elapsed_time; local 127 time_->GetTimeMonotonic(&now); 128 timersub(&now, &started_monitoring_at_, &elapsed_time);
|
H A D | portal_detector.cc | 165 struct timeval now, elapsed_time; local 166 time_->GetTimeMonotonic(&now); 167 timersub(&now, &attempt_start_time_, &elapsed_time);
|
H A D | active_link_monitor.cc | 268 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 D | dns_client.cc | 352 struct timeval now, elapsed_time, timeout_tv; local 353 time_->GetTimeMonotonic(&now); 354 timersub(&now, &resolver_state_->start_time, &elapsed_time);
|
H A D | ipconfig.cc | 166 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 D | adb_trace.cpp | 52 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 D | android_keymaster_messages_test.cpp | 653 time_t now = time(NULL); local 654 std::cout << "Seeding rand() with " << now << " for fuzz test." << std::endl; 655 srand(now);
|
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;
|
/system/netd/server/ |
H A D | ResolverController.cpp | 203 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 D | utils.cc | 40 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 D | wakelock.c | 236 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 D | netfilter_queue_processor_unittest.cc | 72 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 D | bootchart.cpp | 72 struct tm now = *localtime(&now_t); local 73 strftime(date, sizeof(date), "%F %T", &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);
|