/libcore/ojluni/src/main/java/java/util/ |
ComparableTimSort.java | 198 ComparableTimSort ts = new ComparableTimSort(a, work, workBase, workLen); local 212 ts.pushRun(lo, runLen); 213 ts.mergeCollapse(); 222 ts.mergeForceCollapse(); 223 assert ts.stackSize == 1; [all...] |
TimSort.java | 230 TimSort<T> ts = new TimSort<>(a, c, work, workBase, workLen); local 244 ts.pushRun(lo, runLen); 245 ts.mergeCollapse(); 254 ts.mergeForceCollapse(); 255 assert ts.stackSize == 1; [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
TreeSetTest.java | 46 TreeSet ts; field in class:TreeSetTest 114 ts.add(new Integer(-8)); 115 assertTrue("Failed to add Object", ts.contains(new Integer(-8))); 116 ts.add(objArray[0]); 117 assertTrue("Added existing element", ts.size() == objArray.length + 1); 128 s.addAll(ts); 129 assertTrue("Incorrect size after add", s.size() == ts.size()); 130 Iterator i = ts.iterator(); 141 ts.clear(); 142 assertEquals("Returned non-zero size after clear", 0, ts.size()) [all...] |
/art/test/1919-vminit-thread-start-timing/src/art/ |
Test1919.java | 43 Thread[] ts = getEventThreads(); local 44 Event[] es = new Event[Math.min(ns.length, ts.length)]; 46 es[i] = new Event(ns[i], ts[i]);
|
/bionic/tests/ |
sys_sem_test.cpp | 62 timespec ts = { .tv_sec = 0, .tv_nsec = 100 }; local 65 ASSERT_EQ(-1, semtimedop(id, ops, 1, &ts));
|
/cts/tests/tests/os/jni/ |
android_os_cts_SeccompTest.cpp | 83 struct timespec ts; local 84 int rv = clock_gettime(CLOCK_BOOTTIME_ALARM, &ts);
|
/device/generic/goldfish/wifi/ipv6proxy/ |
log.cpp | 27 struct timespec ts; local 30 if (newLine && clock_gettime(CLOCK_REALTIME, &ts) == 0) { 31 time_t now = ts.tv_sec; 35 snprintf(format, sizeof(format), "[%%T.%03lld] ", (long long)(ts.tv_nsec) / 1000000);
|
/external/boringssl/src/crypto/asn1/ |
a_time.c | 87 struct tm *ts; local 90 ts = OPENSSL_gmtime(&t, &data); 91 if (ts == NULL) { 96 if (!OPENSSL_gmtime_adj(ts, offset_day, offset_sec)) 99 if ((ts->tm_year >= 50) && (ts->tm_year < 150))
|
/external/chromium-trace/catapult/systrace/atrace_helper/jni/ |
time_utils.cc | 16 struct timespec ts = {}; local 17 CHECK(clock_gettime(CLOCK_MONOTONIC_COARSE, &ts) == 0); 18 return ts.tv_sec * 1000 + ts.tv_nsec / 1000000ul; 35 struct itimerspec ts = {}; local 36 ts.it_value.tv_nsec = nsec; 37 ts.it_value.tv_sec = sec; 38 ts.it_interval.tv_nsec = nsec; 39 ts.it_interval.tv_sec = sec; 40 CHECK(timerfd_settime(timer_fd_, 0, &ts, nullptr) == 0) [all...] |
/external/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/ |
p8.cpp | 13 template<typename T> static constexpr T ts(); 25 int (*ts)() = &S::ts; 35 template<typename T> constexpr T S::ts() { return T(); } function in class:S
|
/external/libchrome/base/synchronization/ |
condition_variable_posix.cc | 52 struct timespec ts; local 53 ts.tv_sec = 0; 54 ts.tv_nsec = 1; 56 &ts);
|
/external/libcxx/src/ |
condition_variable.cpp | 60 timespec ts; variable 62 typedef decltype(ts.tv_sec) ts_sec; 66 ts.tv_sec = static_cast<ts_sec>(s.count()); 67 ts.tv_nsec = static_cast<decltype(ts.tv_nsec)>((d - s).count()); 71 ts.tv_sec = ts_sec_max; 72 ts.tv_nsec = giga::num - 1; 74 int ec = __libcpp_condvar_timedwait(&__cv_, lk.mutex()->native_handle(), &ts);
|
/external/libmicrohttpd/src/microhttpd/ |
internal.c | 186 struct timespec ts; local 188 if (0 == clock_gettime (CLOCK_MONOTONIC, &ts)) 189 return ts.tv_sec;
|
/external/libxcam/xcore/ |
v4l2_buffer_proxy.cpp | 62 struct timeval ts = buf->get_buf().timestamp; local 66 set_timestamp (XCAM_TIMEVAL_2_USEC (ts));
|
/external/ltp/testcases/kernel/syscalls/mq_timedreceive/ |
mq_timedreceive01.c | 31 static struct timespec ts; variable in typeref:struct:timespec 121 .rq = &ts, 128 .rq = &ts,
|
/external/ltp/testcases/kernel/syscalls/mq_timedsend/ |
mq_timedsend01.c | 28 static struct timespec ts; variable in typeref:struct:timespec 122 .rq = &ts, 133 .rq = &ts,
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
10-1.c | 38 struct timespec ts; local 57 ts.tv_sec = time(NULL) - 1; 58 ts.tv_nsec = 0; 59 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) {
|
10-2.c | 43 struct timespec ts; local 63 ts.tv_sec = time(NULL) - 1; /* Past time */ 64 ts.tv_nsec = 0; 65 if (mq_timedreceive(mqdes, msgrv, BUFFER, &rvprio, &ts) == -1) {
|
13-1.c | 38 struct timespec ts; local 52 ts.tv_sec = time(NULL) + 1; 53 ts.tv_nsec = 0; 54 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
|
14-1.c | 39 struct timespec ts; local 53 ts.tv_sec = time(NULL) + 1; 54 ts.tv_nsec = 0; 55 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
|
15-1.c | 40 struct timespec ts; local 58 ts.tv_sec = time(NULL) + 1; 59 ts.tv_nsec = 0; 60 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) > 0) {
|
17-1.c | 40 struct timespec ts; local 53 ts.tv_sec = time(NULL) + 1; 54 ts.tv_nsec = -1; 55 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
|
17-2.c | 41 struct timespec ts; local 54 ts.tv_sec = time(NULL) + 1; 55 ts.tv_nsec = 1000000000; 56 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
|
17-3.c | 41 struct timespec ts; local 54 ts.tv_sec = time(NULL) + 1; 55 ts.tv_nsec = 1000000000 + 1; 56 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) == -1) {
|
2-1.c | 39 struct timespec ts; local 57 ts.tv_sec = time(NULL) + 1; 58 ts.tv_nsec = 0; 59 if (mq_timedreceive(mqdes, msgrv, BUFFER, NULL, &ts) > 0) {
|