/external/javasqlite/src/main/java/SQLite/JDBC2z/ |
JDBCStatement.java | 58 public void setQueryTimeout(int seconds) throws SQLException { 61 // seconds >= 0 is not satisfied" 65 } else if (seconds < 0) { 66 throw new SQLException("can't set a query timeout of less than 0 seconds"); 67 } else if (seconds == 0) { 68 // An argument of 0 seconds should set an unlimited timeout. However, since this was not 72 conn.timeout = seconds * 1000; 78 return conn.timeout / 1000; // android-changed: should return seconds
|
/external/libcxx/test/std/utilities/time/time.duration/time.duration.cast/ |
duration_cast.pass.cpp | 40 test(std::chrono::milliseconds(7265000), std::chrono::seconds(7265));
|
/external/ltp/testcases/kernel/fs/racer/ |
fs_racer.sh | 73 echo usage: fs_racer.sh -t DURATION [Execute the testsuite for given DURATION seconds]
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/ |
pitest-1.c | 202 double seconds, t0, t1; local 215 seconds = t1 - t0; 218 t1 - base_time, seconds); 226 "slept %f \n", rc, strerror(rc), seconds)
|
/external/python/cpython3/Include/ |
datetime.h | 39 int seconds; /* 0 <= seconds < 24*3600 is invariant */ member in struct:__anon33124 144 #define PyDateTime_DELTA_GET_SECONDS(o) (((PyDateTime_Delta*)o)->seconds) 241 #define PyDelta_FromDSU(days, seconds, useconds) \ 242 PyDateTimeAPI->Delta_FromDelta(days, seconds, useconds, 1, \
|
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/ |
ManageDialog.java | 138 long seconds = (SystemClock.elapsedRealtime() - mConfig.startTime) / 1000; local 140 seconds / 3600, seconds / 60 % 60, seconds % 60));
|
/frameworks/wilhelm/tests/sandbox/ |
configbq.c | 150 float seconds = (((i * 8) / (format->bitsPerSample * format->numChannels)) * 1000.0) / local 152 short sampleLeft = sin(seconds * M_PI_2 * hzLeft) * 32767.0; 153 short sampleRight = sin(seconds * M_PI_2 * hzRight) * 32767.0; 177 if (seconds >= 1.0f)
|
/hardware/interfaces/radio/config/1.0/vts/functional/ |
radio_config_hidl_hal_test.cpp | 60 status = cv_.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
Duration.java | 35 * minutes, and seconds) plus a sign (+/-) field.</p> 39 * and the seconds field has a non-negative decimal or null. 163 boolean secondSet = isSet(DatatypeConstants.SECONDS); 288 * Obtains the value of the SECONDS field as an integer value, 292 * that this method works on the SECONDS field. 294 * @return seconds in the integer value. The fraction of seconds 299 return getFieldValueAsInt(DatatypeConstants.SECONDS); 305 * <p>If the seconds field carries more digits than millisecond order, 342 * <p>If the seconds field carries more digits than millisecond order 909 BigDecimal seconds = (BigDecimal) getField(DatatypeConstants.SECONDS); local [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
MediaDetails.java | 174 * Returns a (localized) string for the given duration (in seconds). 176 public static String formatDuration(final Context context, long seconds) { 177 long h = seconds / 3600; 178 long m = (seconds - h * 3600) / 60; 179 long s = seconds - (h * 3600 + m * 60);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/utilities/time/time.duration/time.duration.cast/ |
duration_cast.pass.cpp | 40 test(std::chrono::milliseconds(7265000), std::chrono::seconds(7265));
|
/system/core/debuggerd/client/ |
debuggerd_client.cpp | 59 auto seconds = std::chrono::duration_cast<std::chrono::seconds>(duration); local 60 auto microseconds = std::chrono::duration_cast<std::chrono::microseconds>(duration - seconds); 61 tv->tv_sec = static_cast<long>(seconds.count());
|
/test/vti/test_serving/gae/webapp/src/scheduler/ |
device_heartbeat.py | 49 ).seconds >= DEVICE_RESPONSE_TIMEOUT_SECONDS
|
job_heartbeat.py | 54 job_timestamp).seconds >= JOB_RESPONSE_TIMEOUT_SECONDS:
|
/external/curl/lib/ |
progress.c | 32 static void time2str(char *r, curl_off_t seconds) 35 if(seconds <= 0) { 39 h = seconds / CURL_OFF_T_C(3600); 41 m = (seconds - (h*CURL_OFF_T_C(3600))) / CURL_OFF_T_C(60); 42 s = (seconds - (h*CURL_OFF_T_C(3600))) - (m*CURL_OFF_T_C(60)); 49 d = seconds / CURL_OFF_T_C(86400); 50 h = (seconds - (d*CURL_OFF_T_C(86400))) / CURL_OFF_T_C(3600); 365 int countindex; /* amount of seconds stored in the speeder array */ 380 timespent = (curl_off_t)data->progress.timespent/1000000; /* seconds */ 410 here and we expect it to never wrap as 2^32 is a lot of seconds! */ [all...] |
/external/ltp/testcases/kernel/io/disktest/ |
stats.c | 309 "Heartbeat Read Time: %u seconds (%luh%lum%lus)\n", 312 time_struct.seconds); 317 "Heartbeat Write Time: %u seconds (%luh%lum%lus)\n", 320 time_struct.seconds); 327 "Cycle Read Time: %u seconds (%luh%lum%lus)\n", 330 time_struct.seconds); 335 "Cycle Write Time: %u seconds (%luh%lum%lus)\n", 338 time_struct.seconds); 345 "Total Read Time: %u seconds (%lud%luh%lum%lus)\n", 349 time_struct.seconds); [all...] |
/external/ImageMagick/MagickCore/ |
random.c | 369 seconds; 415 seconds=time((time_t *) 0); 424 seconds=timer.tv_sec; 436 seconds=timer.tv_sec; 441 SetStringInfoLength(chaos,sizeof(seconds)); 442 SetStringInfoDatum(chaos,(unsigned char *) &seconds); 492 seconds; 503 seconds=NTElapsedTime()+NTUserTime(); 504 SetStringInfoLength(chaos,sizeof(seconds)); 505 SetStringInfoDatum(chaos,(unsigned char *) &seconds); 361 seconds; local 484 seconds; local [all...] |
/system/core/storaged/ |
storaged_info.cpp | 87 day_start_tp += chrono::seconds(perf_history.day_start_sec()); 122 duration_cast<chrono::seconds>(day_start_tp.time_since_epoch()).count()); 150 duration_cast<chrono::seconds>(tp - day_start_tp).count() < DAY_TO_SEC) { 169 day_start_tp = tp - chrono::seconds(duration_cast<chrono::seconds>(
|
/external/python/cpython3/Lib/test/libregrtest/ |
main.py | 37 def format_duration(seconds): 38 if seconds < 1.0: 39 return '%.0f ms' % (seconds * 1e3) 40 if seconds < 60.0: 41 return '%.0f sec' % seconds 43 minutes, seconds = divmod(seconds, 60.0) 44 return '%.0f min %.0f sec' % (minutes, seconds) 128 test_time = datetime.timedelta(seconds=int(test_time))
|
/system/extras/perfprofd/tests/ |
perfprofd_test.cc | 314 void Sleep(size_t seconds) override { 316 LOG(INFO) << "sleep " << seconds << " seconds"; 479 I: sleep 90 seconds [all...] |
/external/python/cpython3/Lib/ |
datetime.py | 159 'seconds': '{:02d}:{:02d}:{:02d}', 166 timespec = 'microseconds' if us else 'seconds' 255 "of seconds, got %s" % (name, offset)) 350 Representation: (days, seconds, microseconds). Why? Because I 355 def __new__(cls, days=0, seconds=0, microseconds=0, 371 # Normalize everything to days, seconds, microseconds. 373 seconds += minutes*60 + hours*3600 394 if isinstance(seconds, float): 395 secondsfrac, seconds = _math.modf(seconds) 496 def seconds(self): member in class:timedelta [all...] |
/frameworks/base/core/java/android/text/format/ |
DateUtils.java | 271 * @param minResolution the minimum timespan to report. For example, a time 3 seconds in the 292 * 3 seconds in the past will be reported as "0 minutes ago" if 320 * when showing relative times. For example, a time 3 seconds in 360 * from seconds up to hours. 371 * from seconds up to hours. 404 final int seconds = (int) ((millis + 500) / SECOND_IN_MILLIS); local 405 return formatter.format(new Measure(seconds, MeasureUnit.SECOND)); 412 * @param elapsedSeconds the elapsed time in seconds. 424 * @param elapsedSeconds the elapsed time in seconds. 427 // Break the elapsed seconds into hours, minutes, and seconds 430 long seconds = 0; local [all...] |
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
DefaultItemAnimatorTest.java | 134 void runAndWait(int itemCount, int seconds) throws Throwable { 135 runAndWait(itemCount, seconds, null); 138 void runAndWait(int itemCount, int seconds, final ThrowingRunnable postRun) throws Throwable { 152 waitForItems(itemCount, seconds); 156 void waitForItems(int itemCount, int seconds) throws InterruptedException { 158 mExpectedItemCount.tryAcquire(itemCount, seconds, TimeUnit.SECONDS)); 162 mExpectedItemCount.tryAcquire(1, 2, TimeUnit.SECONDS));
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
ChronoLocalDateTimeImpl.java | 120 * Seconds per minute. 124 * Seconds per hour. 128 * Seconds per day. 311 case SECONDS: return plusSeconds(amountToAdd); 333 ChronoLocalDateTimeImpl<D> plusSeconds(long seconds) { 334 return plusWithOverflow(date, 0, 0, seconds, 0); 342 private ChronoLocalDateTimeImpl<D> plusWithOverflow(D newDate, long hours, long minutes, long seconds, long nanos) { 344 if ((hours | minutes | seconds | nanos) == 0) { 348 seconds / SECONDS_PER_DAY + // max/24*60*60 352 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 8640000000000 [all...] |
/prebuilts/go/darwin-x86/src/cmd/vendor/github.com/google/pprof/internal/symbolz/ |
symbolz_test.go | 30 "http://host:8000/profilez?seconds=5": "http://host:8000/symbolz", 31 "http://host:8000/profilez?seconds=5&format=proto": "http://host:8000/symbolz", 34 "http://host:8000/debug/pprof/profile?seconds=10": "http://host:8000/debug/pprof/symbol",
|