/external/chromium_org/third_party/skia/tests/ |
PathOpsLineIntersectionTest.cpp | 85 const SkIntersections& ts) { 86 for (int i = 0; i < ts.used(); ++i) { 87 SkDPoint result1 = line1.ptAtT(ts[0][i]); 88 SkDPoint result2 = line2.ptAtT(ts[1][i]); 89 if (!result1.approximatelyEqual(result2) && !ts.nearlySame(i)) { 90 REPORTER_ASSERT(reporter, ts.used() != 1); 91 result2 = line2.ptAtT(ts[1][i ^ 1]); 96 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); 115 SkIntersections ts; local 116 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left) 122 SkIntersections ts; local 129 SkIntersections ts; local 136 SkIntersections ts; local 147 SkIntersections ts; local 158 SkIntersections ts; local 167 SkIntersections ts; local 176 SkIntersections ts; local 185 SkIntersections ts; local 209 SkIntersections ts; local [all...] |
PathOpsTestCommon.cpp | 15 SkTArray<double, true> ts; local 16 cubic.toQuadraticTs(precision, &ts); 17 if (ts.count() <= 0) { 23 for (int i1 = 0; i1 <= ts.count(); ++i1) { 24 const double tEnd = i1 < ts.count() ? ts[i1] : 1;
|
/external/chromium_org/third_party/skia/third_party/lua/src/ |
lstring.c | 100 TString *ts; local 103 ts = &luaC_newobj(L, tag, totalsize, list, 0)->ts; 104 ts->tsv.len = l; 105 ts->tsv.hash = h; 106 ts->tsv.extra = 0; 107 memcpy(ts+1, str, l*sizeof(char)); 108 ((char *)(ts+1))[l] = '\0'; /* ending 0 */ 109 return ts; 140 TString *ts = rawgco2ts(o) local [all...] |
/external/compiler-rt/lib/tsan/tests/unit/ |
tsan_clock_test.cc | 338 timespec ts; local 339 clock_gettime(CLOCK_MONOTONIC, &ts); 340 int seed = ts.tv_sec + ts.tv_nsec;
|
/external/icu/icu4c/source/test/compat/ |
tzdate.c | 111 struct tm ts; local 115 ts = *localtime(&now); 118 memset(&ts, 0, sizeof(ts)); 119 ts.tm_year = year; 120 ts.tm_mon = month - OFFSET_MONTH; 121 ts.tm_mday = day; 122 ts.tm_hour = hour; 123 ts.tm_min = minute; 125 now = mktime(&ts); [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
MessageLog.java | 98 long ts = Long.parseLong(timeStamp); local 99 if (ts < 0) 101 this.timeStamp = ts; 131 throw new IllegalArgumentException("negative ts");
|
/external/openssl/crypto/asn1/ |
a_utctm.c | 196 struct tm *ts; local 210 ts=OPENSSL_gmtime(&t, &data); 211 if (ts == NULL) 216 if (!OPENSSL_gmtime_adj(ts, offset_day, offset_sec)) 220 if((ts->tm_year < 50) || (ts->tm_year >= 150)) 237 BIO_snprintf(p,len,"%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100, 238 ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTabHost.java | 92 ShadowTabSpec ts = Robolectric.shadowOf(getCurrentTabSpec()); local 93 View v = ts.getContentView(); 95 int viewId = ts.getContentViewId();
|
/external/skia/src/pathops/ |
SkAddIntersections.cpp | 201 SkIntersections ts; local 210 pts = ts.lineHorizontal(wn.pts(), wt.left(), 212 debugShowLineIntersection(pts, wn, wt, ts); 216 pts = ts.quadHorizontal(wn.pts(), wt.left(), 218 debugShowQuadLineIntersection(pts, wn, wt, ts); 222 pts = ts.cubicHorizontal(wn.pts(), wt.left(), 224 debugShowCubicLineIntersection(pts, wn, wt, ts); 237 pts = ts.lineVertical(wn.pts(), wt.top(), 239 debugShowLineIntersection(pts, wn, wt, ts); 243 pts = ts.quadVertical(wn.pts(), wt.top() 418 SkIntersections ts; local [all...] |
/external/skia/tests/ |
PathOpsLineIntersectionTest.cpp | 78 const SkIntersections& ts) { 79 for (int i = 0; i < ts.used(); ++i) { 80 SkDPoint result1 = line1.ptAtT(ts[0][i]); 81 SkDPoint result2 = line2.ptAtT(ts[1][i]); 82 if (!result1.approximatelyEqual(result2) && !ts.nearlySame(i)) { 83 REPORTER_ASSERT(reporter, ts.used() != 1); 84 result2 = line2.ptAtT(ts[1][i ^ 1]); 89 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); 108 SkIntersections ts; local 109 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left) 115 SkIntersections ts; local 122 SkIntersections ts; local 129 SkIntersections ts; local 140 SkIntersections ts; local 151 SkIntersections ts; local 160 SkIntersections ts; local 169 SkIntersections ts; local 178 SkIntersections ts; local 202 SkIntersections ts; local [all...] |
PathOpsTestCommon.cpp | 15 SkTArray<double, true> ts; local 16 cubic.toQuadraticTs(precision, &ts); 17 if (ts.count() <= 0) { 23 for (int i1 = 0; i1 <= ts.count(); ++i1) { 24 const double tEnd = i1 < ts.count() ? ts[i1] : 1;
|
/external/stressapptest/src/ |
queue.h | 46 uint64 ts; // Timestamp of the last read from this page. member in struct:page_entry 56 pe->ts = 0;
|
/external/valgrind/main/helgrind/tests/ |
annotate_hbefore.c | 339 struct timespec ts = { 0, 1 * 1000 * 1000 }; local 346 nanosleep(&ts, NULL);
|
tc08_hbl2.c | 140 struct timespec ts = { 0, 1000 * 1000 }; local 150 nanosleep(&ts, 0);
|
/external/webrtc/src/system_wrappers/source/ |
condition_variable_posix.cc | 109 timespec ts; local 112 clock_gettime(CLOCK_REALTIME, &ts); 114 clock_gettime(CLOCK_MONOTONIC, &ts); 119 ts.tv_sec = tv.tv_sec; 120 ts.tv_nsec = tv.tv_usec * MICROSECONDS_PER_MILLISECOND; 123 ts.tv_sec += maxTimeInMS / MILLISECONDS_PER_SECOND; 124 ts.tv_nsec += (maxTimeInMS - ((maxTimeInMS / MILLISECONDS_PER_SECOND)* 127 if (ts.tv_nsec >= NANOSECONDS_PER_SECOND) 129 ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND [all...] |
/hardware/qcom/gps/utils/ |
loc_timer.c | 56 struct timespec ts; local 63 clock_gettime(CLOCK_REALTIME, &ts); 65 ts.tv_sec += t->time_msec/1000; 69 ts.tv_nsec += t->time_msec * 1000000; 70 if(ts.tv_nsec > 999999999) { 72 ts.tv_sec += 1; 73 ts.tv_nsec -= 1000000000; 75 LOC_LOGD("%s:%d]: ts.tv_sec:%d; ts.tv_nsec:%d\n" 77 __func__, __LINE__, (int)ts.tv_sec, (int)ts.tv_nsec [all...] |
/ndk/sources/android/crazy_linker/tests/ |
bench_load_library.cpp | 30 struct timespec ts; local 31 clock_gettime(CLOCK_MONOTONIC, &ts); 32 return (ts.tv_sec * 1000.) + (ts.tv_nsec / 1000000.);
|
/packages/apps/Nfc/nxp/jni/ |
com_android_nfc_NativeLlcpConnectionlessSocket.cpp | 60 struct timespec ts; local 122 struct timespec ts; local
|
com_android_nfc_NativeLlcpServiceSocket.cpp | 73 struct timespec ts; local
|
com_android_nfc_NativeLlcpSocket.cpp | 115 struct timespec ts; local 169 struct timespec ts; local 251 struct timespec ts; local 312 struct timespec ts; local
|
/system/core/libbacktrace/ |
BacktraceThread.cpp | 111 timespec ts; local 112 if (clock_gettime(CLOCK_MONOTONIC, &ts) == -1) { 116 ts.tv_sec += 10; 120 int ret = pthread_cond_timedwait(&wait_cond_, &wait_mutex_, &ts);
|
/system/core/liblog/tests/ |
liblog_benchmark.cpp | 144 log_time ts; local 146 ts = log_time(CLOCK_REALTIME), 147 android_btWriteLog(0, EVENT_TYPE_LONG, &ts, sizeof(ts)))); 169 if (ts != tx) { 177 uint64_t start = ts.nsec(); 224 log_time ts(CLOCK_REALTIME); 227 android_btWriteLog(0, EVENT_TYPE_LONG, &ts, sizeof(ts))); 249 if (ts != tx) [all...] |
/system/core/toolbox/ |
date.c | 15 static int settime_alarm(struct timespec *ts) { 22 ret = ioctl(fd, ANDROID_ALARM_SET_RTC, ts); 29 struct timespec ts; local 32 ts.tv_sec = t; 33 ts.tv_nsec = 0; 34 return settime_alarm(&ts); 38 struct timespec ts; local 40 ts.tv_sec = tv->tv_sec; 41 ts.tv_nsec = tv->tv_usec * 1000; 42 return settime_alarm(&ts); [all...] |
/system/extras/sane_schedstat/ |
sane_schedstat.c | 113 unsigned long long ts; local 122 if (!b || sscanf(b, "timestamp %llu\n", &ts) != 1) {
|
/system/extras/tests/bionic/libc/other/ |
test_zlib.c | 160 struct timespec ts; local 162 if ( clock_gettime( CLOCK_MONOTONIC, &ts ) < 0 ) 165 return ts.tv_sec*1e6 + ts.tv_nsec*1e-3;
|