/packages/apps/UnifiedEmail/src/com/android/mail/perf/ |
SimpleTimer.java | 64 long now = SystemClock.uptimeMillis(); local 65 LogUtils.d(getTag(), "[%s] %sms elapsed (%sms since last mark)", msg, now - mStartTime, 66 now - mLastMarkTime); 67 mLastMarkTime = now;
|
/packages/services/Car/evs/app/ |
EvsStateControl.cpp | 155 // Ignore for now 225 static std::chrono::steady_clock::time_point start = std::chrono::steady_clock::now(); 226 std::chrono::steady_clock::time_point now = std::chrono::steady_clock::now(); local 227 if (std::chrono::duration_cast<std::chrono::seconds>(now - start).count() > kShowTime) { 311 // Now set the display state based on whether we have a video feed to show
|
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/ |
StatusNotification.java | 44 LocalDateTime now = LocalDateTime.now(); local 46 notify("Successfully captured data at " + now.format(dateTimeFormatter));
|
/prebuilts/misc/windows/sdl2/test/ |
testviewport.c | 85 Uint32 then, now, frames; local 175 now = SDL_GetTicks(); 176 if (now > then) { 177 double fps = ((double) frames * 1000) / (now - then);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.condition/thread.condition.condvar/ |
wait_until.pass.cpp | 35 static time_point now() function in struct:Clock 39 steady_clock::now().time_since_epoch() 58 Clock::time_point t0 = Clock::now(); 62 Clock::time_point t1 = Clock::now();
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/thread/thread.condition/thread.condition.condvarany/ |
wait_until.pass.cpp | 34 static time_point now() function in struct:Clock 38 steady_clock::now().time_since_epoch() 61 Clock::time_point t0 = Clock::now(); 65 Clock::time_point t1 = Clock::now();
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/src/ |
timers.cc | 174 std::time_t now = Clock::to_time_t(Clock::now()); local 182 std::strftime(storage, sizeof(storage), "%x %X", ::localtime(&now)); 186 ::localtime_r(&now, &timeinfo); 191 written = std::strftime(storage, sizeof(storage), "%x %X", ::gmtime(&now)); 195 ::gmtime_r(&now, &timeinfo);
|
/system/core/base/ |
chrono_utils_test.cpp | 32 struct timespec now; local 33 clock_gettime(CLOCK_BOOTTIME, &now); 35 auto now_tp = boot_clock::time_point(std::chrono::seconds(now.tv_sec) + 36 std::chrono::nanoseconds(now.tv_nsec)); 40 // Tests (at least) the seconds accuracy of the boot_clock::now() method. 42 auto now = GetBootTimeSeconds(); local 44 std::chrono::duration_cast<std::chrono::seconds>(boot_clock::now().time_since_epoch()); 45 EXPECT_EQ(now, boot_seconds); 57 auto start = boot_clock::now(); 60 auto stop = boot_clock::now(); [all...] |
/system/core/debuggerd/ |
debuggerd_benchmark.cpp | 49 const auto begin = std::chrono::high_resolution_clock::now(); 53 auto now = std::chrono::high_resolution_clock::now(); local 55 auto diff = now - last; 60 last = now;
|
/system/extras/tests/framebuffer/ |
refresh.c | 130 // at least for now, always clear the fb 158 int64_t now = systemTime(); local 159 time = now - time; 162 time = now;
|
/system/netd/server/dns/ |
DnsTlsDispatcher.cpp | 145 auto now = std::chrono::steady_clock::now(); local 149 xport->lastUsed = now; 150 cleanup(now); 157 void DnsTlsDispatcher::cleanup(std::chrono::time_point<std::chrono::steady_clock> now) { 160 if (now - mLastCleanup < IDLE_TIMEOUT) { 165 if (s->useCount == 0 && now - s->lastUsed > IDLE_TIMEOUT) { 171 mLastCleanup = now;
|
/system/security/keystore/ |
confirmationui_rate_limiting.h | 72 auto then = Clock::now() - 24h; 88 auto now = Clock::now(); local 89 if (!slot.counter || slot.prompt_start <= now - getBackoff(slot.counter)) { 93 slot.prompt_start = now;
|
/system/update_engine/ |
update_attempter_android_unittest.cc | 105 Time now = Time::FromInternalValue(34456); local 106 clock_->SetMonotonicTime(now); 107 TimeDelta duration = now - Time::FromInternalValue(23456);
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
ScheduleConditionProviderTest.java | 80 Calendar now = getNow(); local 82 // Schedule - 1 hour long; starts now 85 info.startHour = now.get(Calendar.HOUR_OF_DAY); 86 info.startMinute = now.get(Calendar.MINUTE); 89 info.endHour = now.get(Calendar.HOUR_OF_DAY) + 1; 94 assertTrue(cal.isInSchedule(now.getTimeInMillis())); 97 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); 104 Calendar now = getNow(); local 106 // Schedule - 1 hour long; starts now 130 Calendar now = new GregorianCalendar(); local 158 Calendar now = getNow(); local 181 Calendar now = getNow(); local 209 Calendar now = getNow(); local 238 Calendar now = getNow(); local 267 Calendar now = getNow(); local 296 Calendar now = getNow(); local 328 Calendar now = new GregorianCalendar(); local [all...] |
/bionic/libc/dns/resolv/ |
res_stats.c | 39 _res_stats_set_sample(struct __res_sample* sample, time_t now, int rcode, int rtt) 44 sample->at = now; 74 // as an indication of a broken server is unclear, though. For now treat such responses, 145 time_t now = evNowTime().tv_sec; local 146 if (now - last_sample_time > params->sample_validity) {
|
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/ |
ShortcutManagerSecondaryUserTest.java | 66 final long now = System.currentTimeMillis(); local 71 retryUntil(() -> MainActivity.getLastCreateTime() >= now, "Activity not started");
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
SyncOrderedBroadcast.java | 57 final long now = SystemClock.uptimeMillis(); local 58 if (now >= endTime) { 62 wait(endTime - now);
|
UidImportanceListener.java | 75 final long now = SystemClock.uptimeMillis(); local 76 if (now >= endTime) { 82 wait(endTime-now);
|
WaitForBroadcast.java | 64 final long now = SystemClock.uptimeMillis(); local 65 if (now >= endTime) { 71 wait(endTime - now);
|
/cts/tests/tests/view/jni/ |
android_view_cts_ChoreographerNativeTest.cpp | 57 static std::chrono::nanoseconds now() { function 58 return std::chrono::steady_clock::now().time_since_epoch(); 93 auto start = now(); 112 start = now(); 127 auto start = now();
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
Sweep.java | 71 long now = System.currentTimeMillis(); local 75 now = System.currentTimeMillis() - now; 76 android.util.Log.d("skia", "sweep ms = " + (now/20.));
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/SetStamp/ |
SetStamp.c | 71 "NOW NOW", write the current date and time to TIME file and set it to
85 struct tm *now;
local 92 // compare the value with "NOW NOW", write TIME file if equal
94 if (strncmp (buffer, "NOW NOW", 7) == 0) {
100 now = localtime (ltime);
101 if (now == NULL) {
106 if (strftime (buffer, LINE_MAXLEN, "%Y-%m-%d %H:%M:%S", now) == 0) { [all...] |
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/ |
res_init.c | 172 * now that we're doing dynamic initialization here, that we preserve
197 * has set it to something in particular, we can randomize it now.
229 * important now that the rfc1535 stuff restricts searches)
510 struct timeval now;
local 512 gettimeofday(&now, NULL);
513 return (0xffff & (now.tv_sec ^ now.tv_usec /* ^ getpid() */));
|
/external/adhd/cras/src/common/ |
cras_util.h | 177 struct timespec now, time_since; local 179 clock_gettime(CLOCK_MONOTONIC_RAW, &now); 180 if (!timespec_after(&now, beg)) 183 subtract_timespecs(&now, beg, &time_since);
|
/external/curl/docs/examples/ |
smtp-multi.c | 88 struct timeval now; local 91 now.tv_sec = (long)time(NULL); 92 now.tv_usec = 0; 94 return now;
|