/external/snakeyaml/src/main/java/org/yaml/snakeyaml/representer/ |
SafeRepresenter.java | 339 int seconds = calendar.get(Calendar.SECOND); // 0..59 local 367 if (seconds < 10) { 370 buffer.append(String.valueOf(seconds));
|
/external/tcpdump/ |
util-print.c | 59 int32_t thiszone; /* seconds offset from gmt to local time */ 390 * Print an unsigned relative number of seconds (e.g. hold time, prune timer) 391 * in the form 5m1s. This does no truncation, so 32230861 seconds 399 static const u_int seconds[] = {31536000, 604800, 86400, 3600, 60, 1}; local 401 const u_int *s = seconds; 418 * Print a signed relative number of seconds (e.g. hold time, prune timer) 419 * in the form 5m1s. This does no truncation, so 32230861 seconds
|
/frameworks/base/core/java/android/net/ |
SntpClient.java | 59 // Number of seconds between Jan 1, 1900 and Jan 1, 1970 251 long seconds = read32(buffer, offset); local 254 if (seconds == 0 && fraction == 0) { 257 return ((seconds - OFFSET_1900_TO_1970) * 1000) + ((fraction * 1000L) / 0x100000000L); 271 long seconds = time / 1000L; local 272 long milliseconds = time - seconds * 1000L; 273 seconds += OFFSET_1900_TO_1970; 275 // write seconds in big endian format 276 buffer[offset++] = (byte)(seconds >> 24); 277 buffer[offset++] = (byte)(seconds >> 16) [all...] |
/frameworks/base/core/java/android/widget/ |
Chronometer.java | 287 long seconds = mCountDown ? mBase - now : now - mBase; local 288 seconds /= 1000; 290 if (seconds < 0) { 291 seconds = -seconds; 294 String text = DateUtils.formatElapsedTime(mRecycle, seconds);
|
/frameworks/base/tools/preload2/src/com/android/preload/ |
DeviceUtils.java | 95 doShell(device, "am start -n " + name + " /." + activity, 30, TimeUnit.SECONDS); 158 doShellReturnString(device, READ_PRELOADED_CMD, 1, TimeUnit.SECONDS); 166 doShell(device, STOP_SHELL_CMD, 1, TimeUnit.SECONDS); 168 doShell(device, REMOUNT_SYSTEM_CMD, 1, TimeUnit.SECONDS); 170 doShell(device, DELETE_PRELOADED_CMD, 1, TimeUnit.SECONDS); 172 doShell(device, DELETE_CACHE_CMD, 1, TimeUnit.SECONDS); 181 doShell(device, UNSET_BOOTCOMPLETE_CMD, 1, TimeUnit.SECONDS); 183 doShell(device, START_SHELL_CMD, 1, TimeUnit.SECONDS); 209 long seconds = local 210 TimeUnit.SECONDS.convert(endDate.getTime() - startDate.getTime(), TimeUnit.MILLISECONDS) [all...] |
/frameworks/native/libs/vr/libpdx/ |
encoder_performance_test.cpp | 347 auto seconds = local 351 double qps = iteration_count / seconds.count(); 353 << std::setw(time_column_width) << seconds.count() 369 auto seconds = local 374 double qps = iteration_count / seconds.count(); 376 << std::setw(time_column_width) << seconds.count()
|
/libcore/ojluni/src/main/java/java/time/ |
Instant.java | 105 * To achieve this, the class stores a {@code long} representing epoch-seconds and an 107 * The epoch-seconds are measured from the standard Java epoch of {@code 1970-01-01T00:00:00Z} 115 * This has traditionally been subdivided into 24 hours of 60 minutes of 60 seconds, 124 * As a result, the length of a solar day in 2012 is slightly longer than 86400 SI seconds. 131 * of a second from UT1 into whole seconds, known as <i>leap-seconds</i>. 133 * As such, UTC permits a day to have 86399 SI seconds or 86401 SI seconds where 136 * The modern UTC time-scale was introduced in 1972, introducing the concept of whole leap-seconds. 139 * to change the definition of UTC again, with the potential to remove leap seconds o 247 private final long seconds; field in class:Instant 1360 long seconds = in.readLong(); local [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerSetupView.java | 205 final int seconds = mInput[1] * 10 + mInput[0]; local 213 uidm.getFormattedNumber(seconds, 2))); 219 r.getQuantityString(R.plurals.seconds, seconds, seconds))); 306 final int seconds = mInput[1] * 10 + mInput[0]; local 309 return seconds * DateUtils.SECOND_IN_MILLIS
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
VoicemailPlaybackLayout.java | 358 * <p>We always use four digits, two for minutes two for seconds. In the very unlikely event that 362 int seconds = millis / 1000; local 363 int minutes = seconds / 60; 364 seconds -= minutes * 60; 368 return String.format("%02d:%02d", minutes, seconds);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
TimeBar.java | 252 int seconds = totalSeconds % 60; local 256 return String.format("%d:%02d:%02d", hours, minutes, seconds).toString(); 258 return String.format("%02d:%02d", minutes, seconds).toString();
|
/toolchain/binutils/binutils-2.27/gold/ |
fileread.h | 44 : seconds(0), nanoseconds(0) 48 : seconds(a_seconds), nanoseconds(a_nanoseconds) 51 time_t seconds; member in struct:gold::Timespec
|
/bionic/libc/dns/resolv/ |
res_send.c | 393 // question will block for PENDING_REQUEST_TIMEOUT seconds instead of failing fast. 1101 int resplen, seconds, n, s; local 1183 seconds = get_timeout(statp, ns); 1185 timeout = evConsTime((long)seconds, 0L); [all...] |
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/watchface/ |
OpenGLWatchFaceService.java | 53 private static final long FRAME_PERIOD_MS = TimeUnit.SECONDS.toMillis(1) / FPS; 444 float seconds = local 446 float minutes = mCalendar.get(Calendar.MINUTE) + seconds / 60f; 448 final int secIndex = (int) (seconds / 60f * 360f);
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/watchface/ |
OpenGLWatchFaceService.java | 53 private static final long FRAME_PERIOD_MS = TimeUnit.SECONDS.toMillis(1) / FPS; 444 float seconds = local 446 float minutes = mCalendar.get(Calendar.MINUTE) + seconds / 60f; 448 final int secIndex = (int) (seconds / 60f * 360f);
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
OpenGLWatchFaceService.java | 51 private static final long FRAME_PERIOD_MS = TimeUnit.SECONDS.toMillis(1) / FPS; 442 float seconds = local 444 float minutes = mCalendar.get(Calendar.MINUTE) + seconds / 60f; 446 final int secIndex = (int) (seconds / 60f * 360f);
|
/development/tools/bugreport/src/com/android/bugreport/inspector/ |
Inspector.java | 790 int seconds = (int)(f / 1000); local 793 begin.add(Calendar.SECOND, -seconds); 833 * Trim the logcat to show no more than 3 seconds after the beginning of
|
/external/ImageMagick/MagickCore/ |
log.c | 974 seconds; 979 seconds=time((time_t *) NULL); 994 (void) FormatMagickTime(seconds,extent,timestamp); 958 seconds; local [all...] |
/external/ImageMagick/coders/ |
cin.c | 938 seconds; 993 seconds=time((time_t *) NULL); 995 (void) localtime_r(&seconds,&local_time); 997 (void) memcpy(&local_time,localtime(&seconds),sizeof(local_time)); 930 seconds; local [all...] |
/external/google-benchmark/src/ |
benchmark.cc | 60 "Minimum number of seconds we should run benchmark before " 184 void SetIterationTime(double seconds) { manual_time_used_ += seconds; } 214 // Manually set iteration time. User sets this with SetIterationTime(seconds). 223 double seconds) { 237 if (results.bytes_processed > 0 && seconds > 0.0) { 238 bytes_per_second = (results.bytes_processed / seconds); 241 if (results.items_processed > 0 && seconds > 0.0) { 242 items_per_second = (results.items_processed / seconds); 258 internal::Finish(&report.counters, seconds, b.threads) 330 double seconds = results.cpu_time_used; local [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
TimeZoneAliasTest.java | 53 Zone.Seconds seconds = new Zone.Seconds(); local 81 if (zone.findOffsetOrdering(otherZone, seconds) != 0) { 83 + " differ at " + seconds); 97 Zone.Seconds diffDate = new Zone.Seconds(); 187 Zone.Seconds diffDate = new Zone.Seconds(); 233 public static class Seconds { 234 public long seconds = Long.MIN_VALUE; field in class:TimeZoneAliasTest.Zone.Seconds 310 long seconds = 0; local [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
TrieMapTest.java | 64 t.setTimingPeriod(1*Timer.SECONDS); 66 int seconds = TestFmwk.getExhaustiveness(); local 67 logln("\tExhaustive version, timing for " + seconds + "s"); 68 t.setTimingPeriod(seconds*Timer.SECONDS);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
TimeZoneAliasTest.java | 50 Zone.Seconds seconds = new Zone.Seconds(); local 78 if (zone.findOffsetOrdering(otherZone, seconds) != 0) { 80 + " differ at " + seconds); 94 Zone.Seconds diffDate = new Zone.Seconds(); 184 Zone.Seconds diffDate = new Zone.Seconds(); 230 public static class Seconds { 231 public long seconds = Long.MIN_VALUE; field in class:TimeZoneAliasTest.Zone.Seconds 307 long seconds = 0; local [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
TrieMapTest.java | 61 t.setTimingPeriod(1*Timer.SECONDS); 63 int seconds = TestFmwk.getExhaustiveness(); local 64 logln("\tExhaustive version, timing for " + seconds + "s"); 65 t.setTimingPeriod(seconds*Timer.SECONDS);
|
/external/libcxx/utils/google-benchmark/src/ |
benchmark.cc | 60 "Minimum number of seconds we should run benchmark before " 184 void SetIterationTime(double seconds) { manual_time_used_ += seconds; } 214 // Manually set iteration time. User sets this with SetIterationTime(seconds). 223 double seconds) { 237 if (results.bytes_processed > 0 && seconds > 0.0) { 238 bytes_per_second = (results.bytes_processed / seconds); 241 if (results.items_processed > 0 && seconds > 0.0) { 242 items_per_second = (results.items_processed / seconds); 258 internal::Finish(&report.counters, seconds, b.threads) 330 double seconds = results.cpu_time_used; local [all...] |
/external/protobuf/src/google/protobuf/util/internal/ |
protostream_objectsource.cc | 314 int64 seconds = p.first; local 316 if (seconds > kTimestampMaxSeconds || seconds < kTimestampMinSeconds) { 319 StrCat("Timestamp seconds exceeds limit for field: ", field_name)); 329 ::google::protobuf::internal::FormatTime(seconds, nanos)); 338 int64 seconds = p.first; local 340 if (seconds > kDurationMaxSeconds || seconds < kDurationMinSeconds) { 343 StrCat("Duration seconds exceeds limit for field: ", field_name)); 353 if (seconds < 0) 1022 uint64 seconds = 0; local [all...] |