/system/core/liblog/ |
log_ratelimit.cpp | 28 // seconds argument, so we will also hold on to the maximum value 31 // of varying the 'seconds' argument to their pleasure. 41 // seconds, otherwise we will take the maximum ever issued and hold 45 LIBLOG_ABI_PUBLIC int __android_log_ratelimit(time_t seconds, time_t* last) { 59 if (seconds == 0) { 60 seconds = last_seconds_default; 61 } else if (seconds < last_seconds_min) { 62 seconds = last_seconds_min; 63 } else if (seconds > last_seconds_max) { 64 seconds = last_seconds_max [all...] |
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_common_nolibc.cc | 26 void SleepForSeconds(int seconds) { internal_sleep(seconds); }
|
/external/libcxx/test/std/experimental/utilities/time/header.chrono.synop/ |
includes.pass.cpp | 17 std::chrono::seconds s;
|
/prebuilts/ndk/r13/sources/cxx-stl/llvm-libc++/test/std/experimental/utilities/time/header.chrono.synop/ |
includes.pass.cpp | 17 std::chrono::seconds s;
|
/external/autotest/client/tests/sleeptest/ |
sleeptest.py | 7 def run_once(self, seconds=1): 8 time.sleep(seconds)
|
/external/autotest/server/tests/sleeptest/ |
sleeptest.py | 7 def run_once(self, host=None, seconds=1): 8 time.sleep(seconds)
|
/external/webrtc/webrtc/system_wrappers/source/ |
clock_unittest.cc | 19 uint32_t seconds; local 21 clock->CurrentNtp(seconds, fractions); 24 EXPECT_GE(milliseconds, Clock::NtpToMs(seconds, fractions)); 25 EXPECT_NEAR(milliseconds, Clock::NtpToMs(seconds, fractions), 100);
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
sleep.c | 44 __sleep(unsigned int seconds) 50 * Avoid overflow when `seconds' is huge. This assumes that 53 if (seconds > INT_MAX) 54 return (seconds - INT_MAX + __sleep(INT_MAX)); 56 time_to_sleep.tv_sec = seconds; 61 return (seconds); /* best guess */
|
/external/protobuf/src/google/protobuf/stubs/ |
time.h | 48 // Converts a timestamp (seconds elapsed since 1970-01-01T00:00:00, could be 52 bool LIBPROTOBUF_EXPORT SecondsToDateTime(int64 seconds, DateTime* time); 53 // Converts DateTime to a timestamp (seconds since 1970-01-01T00:00:00). 55 bool LIBPROTOBUF_EXPORT DateTimeToSeconds(const DateTime& time, int64* seconds); 57 void LIBPROTOBUF_EXPORT GetCurrentTime(int64* seconds, int32* nanos); 66 string LIBPROTOBUF_EXPORT FormatTime(int64 seconds, int32 nanos); 69 bool LIBPROTOBUF_EXPORT ParseTime(const string& vaule, int64* seconds, int32* nanos);
|
/prebuilts/misc/windows/sdl2/test/ |
testpower.c | 20 int seconds, percent; local 21 const SDL_PowerState state = SDL_GetPowerInfo(&seconds, &percent); 54 if (seconds == -1) { 57 SDL_Log("Time left: %d minutes, %d seconds\n", (int) (seconds / 60), 58 (int) (seconds % 60));
|
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/ |
TimerFormat.java | 41 * Update the time to display. Separates that time into the hours, minutes, seconds. 54 long seconds = time / 1000; local 55 long hundreds = (time - seconds * 1000) / 10; 56 long minutes = seconds / 60; 57 seconds = seconds - minutes * 60; 63 // The time can be between 0 and -1 seconds, but the "truncated" equivalent time of hours 64 // and minutes and seconds could be zero, so since we do not show fractions of seconds 66 if (hours == 0 && minutes == 0 && seconds == 0) [all...] |
/developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/util/ |
TimerFormat.java | 41 * Update the time to display. Separates that time into the hours, minutes, seconds. 54 long seconds = time / 1000; local 55 long hundreds = (time - seconds * 1000) / 10; 56 long minutes = seconds / 60; 57 seconds = seconds - minutes * 60; 63 // The time can be between 0 and -1 seconds, but the "truncated" equivalent time of hours 64 // and minutes and seconds could be zero, so since we do not show fractions of seconds 66 if (hours == 0 && minutes == 0 && seconds == 0) [all...] |
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/util/ |
TimerFormat.java | 41 * Update the time to display. Separates that time into the hours, minutes, seconds. 54 long seconds = time / 1000; local 55 long hundreds = (time - seconds * 1000) / 10; 56 long minutes = seconds / 60; 57 seconds = seconds - minutes * 60; 63 // The time can be between 0 and -1 seconds, but the "truncated" equivalent time of hours 64 // and minutes and seconds could be zero, so since we do not show fractions of seconds 66 if (hours == 0 && minutes == 0 && seconds == 0) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
TimerTextController.java | 49 int seconds = (int) (remainder / SECOND_IN_MILLIS); local 54 seconds++; 55 if (seconds == 60) { 56 seconds = 0; 65 String time = Utils.getTimeString(mTextView.getContext(), hours, minutes, seconds); 66 if (isNegative && !(hours == 0 && minutes == 0 && seconds == 0)) {
|
/external/google-benchmark/src/ |
sleep.cc | 30 void SleepForSeconds(double seconds) { 31 SleepForMilliseconds(static_cast<int>(kNumMillisPerSecond * seconds)); 46 void SleepForSeconds(double seconds) { 47 SleepForMicroseconds(static_cast<int>(seconds * kNumMicrosPerSecond));
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.arithmetic/ |
op_+=.pass.cpp | 24 std::chrono::seconds s(3); 25 s += std::chrono::seconds(2); 35 std::chrono::seconds s(3); 36 s += std::chrono::seconds(2);
|
op_-=.pass.cpp | 24 std::chrono::seconds s(3); 25 s -= std::chrono::seconds(2); 35 std::chrono::seconds s(3); 36 s -= std::chrono::seconds(2);
|
/external/libcxx/utils/google-benchmark/src/ |
sleep.cc | 30 void SleepForSeconds(double seconds) { 31 SleepForMilliseconds(static_cast<int>(kNumMillisPerSecond * seconds)); 46 void SleepForSeconds(double seconds) { 47 SleepForMicroseconds(static_cast<int>(seconds * kNumMicrosPerSecond));
|
/external/llvm/include/llvm/Support/ |
Watchdog.h | 28 Watchdog(unsigned int seconds);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HeaderParser.java | 54 long seconds = Long.parseLong(value); local 55 if (seconds > Integer.MAX_VALUE) { 57 } else if (seconds < 0) { 60 return (int) seconds;
|
/external/swiftshader/src/Common/ |
Timer.hpp | 29 static double seconds();
|
/frameworks/av/media/mtp/ |
MtpUtils.h | 25 void formatDateTime(time_t seconds, char* buffer, int bufferLength);
|
/external/protobuf/src/google/protobuf/util/ |
time_util.cc | 54 static const int kSecondsPerMinute = 60; // Note that we ignore leap seconds. 59 T CreateNormalized(int64 seconds, int64 nanos); 62 Timestamp CreateNormalized(int64 seconds, int64 nanos) { 65 seconds += nanos / kNanosPerSecond; 70 seconds -= 1; 73 GOOGLE_DCHECK(seconds >= TimeUtil::kTimestampMinSeconds && 74 seconds <= TimeUtil::kTimestampMaxSeconds); 76 result.set_seconds(seconds); 82 Duration CreateNormalized(int64 seconds, int64 nanos) { 85 seconds += nanos / kNanosPerSecond 150 int64 seconds; local 160 int64 seconds; local 170 int64 seconds = duration.seconds(); local 211 int64 seconds = strto64(seconds_part.c_str(), &end, 10); local 397 int64 seconds = static_cast<int64>(Uint128Low64(value \/ kNanosPerSecond)); local 412 int64 seconds = static_cast<int64>(Uint128Low64(value \/ kNanosPerSecond)); local 451 int64 seconds = static_cast<int64>(result); local [all...] |
/external/autotest/client/site_tests/power_KernelSuspend/ |
power_KernelSuspend.py | 13 def run_once(self, seconds=10): 15 sys_power.kernel_suspend(seconds)
|
/external/autotest/client/site_tests/power_LoadTest/extension/ |
params.js | 5 // Convert seconds to milliseconds 6 function seconds(s) { function 12 return seconds(m * 60); 16 var test_startup_delay = seconds(5);
|