| /frameworks/base/services/jni/ |
| com_android_server_AlarmManagerService.cpp | 70 struct timespec ts; local 71 ts.tv_sec = seconds; 72 ts.tv_nsec = nanoseconds; 74 int result = ioctl(fd, ANDROID_ALARM_SET(type), &ts);
|
| /frameworks/media/libvideoeditor/osal/src/ |
| M4OSA_Mutex.c | 134 struct timespec ts; local 167 ts.tv_sec = 0; 170 ts.tv_nsec = 1000000; 175 ts.tv_nsec = timeout * 1000000; 178 nanosleep(&ts, &left);
|
| M4OSA_Semaphore.c | 132 struct timespec ts; local 160 ts.tv_sec = 0; 163 ts.tv_nsec = 1000000; 168 ts.tv_nsec = timeout * 1000000; 171 nanosleep(&ts, &left);
|
| /system/core/toolbox/ |
| date.c | 17 struct timespec ts; local 38 ts.tv_sec = t; 39 ts.tv_nsec = 0; 40 ioctl(fd, ANDROID_ALARM_SET_RTC, &ts); 50 struct timespec ts; local 119 ts.tv_sec = tv.tv_sec; 120 ts.tv_nsec = tv.tv_usec * 1000; 121 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
|
| alarm.c | 17 struct timespec ts; local 105 time(&ts.tv_sec); 106 ts.tv_nsec = 0; 114 res = ioctl(afd, ANDROID_ALARM_GET_TIME(alarmtype), &ts); 119 ts.tv_sec += strtol(argv[optind], NULL, 0); 121 gmtime_r(&ts.tv_sec, &tm); 122 printf("time %s -> %ld.%09ld\n", argv[optind], ts.tv_sec, ts.tv_nsec); 126 res = ioctl(afd, ANDROID_ALARM_SET(alarmtype), &ts);
|
| uptime.c | 59 struct timespec ts; local 66 result = ioctl(fd, ANDROID_ALARM_GET_TIME(ANDROID_ALARM_ELAPSED_REALTIME), &ts); 70 return ts.tv_sec;
|
| /system/extras/tests/bionic/libc/common/ |
| test_pthread_getcpuclockid.c | 42 struct timespec ts; local 55 ts.tv_sec = 0; 56 ts.tv_nsec = 300000000 + ((int)arg)*50000000; 57 nanosleep( &ts, &ts ); 59 clock_gettime( clock, &ts ); 60 fprintf(stderr, "thread %08lx: clock_gettime() returned %g nsecs\n", self, ts.tv_sec*1e9 + ts.tv_nsec);
|
| /system/extras/tests/bionic/libc/other/ |
| test_timer_create2.c | 53 struct itimerspec ts, ots; local 65 ts.it_value.tv_sec = 3; 66 ts.it_value.tv_nsec = 0; 67 ts.it_interval.tv_sec = seconds; 68 ts.it_interval.tv_nsec = 0; 69 if (timer_settime (tid, TIMER_ABSTIME, &ts, &ots) < 0)
|
| /libcore/luni/src/main/java/java/util/ |
| TimSort.java | 195 TimSort<T> ts = new TimSort<T>(a, c); local 209 ts.pushRun(lo, runLen); 210 ts.mergeCollapse(); 219 ts.mergeForceCollapse(); 220 if (DEBUG) assert ts.stackSize == 1; [all...] |
| /external/clang/test/Preprocessor/ |
| pragma_diagnostic_sections.cpp | 20 struct TS { 26 TS<int> ts; local 27 ts.m();
|
| /external/ipsec-tools/src/racoon/ |
| logger.c | 185 char ts[256]; local 198 strftime(ts, sizeof(ts), "%B %d %T", tm); 199 fprintf(fp, "%s: %s\n", ts, p->buf[j]);
|
| /external/nist-sip/java/gov/nist/javax/sip/parser/ |
| TimeStampParser.java | 85 float ts = Float.parseFloat(s); local 86 timeStamp.setTimeStamp(ts); 88 long ts = Long.parseLong(firstNumber); local 89 timeStamp.setTime(ts); 110 float ts = Float.parseFloat(s); local 111 timeStamp.setDelay(ts); 113 int ts = Integer.parseInt(firstNumber); local 114 timeStamp.setDelay(ts);
|
| /system/core/libcutils/ |
| zygote.c | 228 struct timespec ts; local 230 memset(&ts, 0, sizeof(ts)); 231 ts.tv_nsec = ZYGOTE_RETRY_MILLIS * 1000 * 1000; 234 err = nanosleep (&ts, &ts);
|
| /external/bluetooth/hcidump/parser/ |
| ppp.c | 158 msg.ts = frm->ts; 175 uint32_t ts = htonl(frm->ts.tv_sec & 0xffffffff); local 179 err = write(frm->pppdump_fd, &ts, 4);
|
| /external/chromium/base/ |
| time_posix.cc | 171 struct timespec ts; local 172 if (clock_gettime(CLOCK_MONOTONIC, &ts) != 0) { 178 (static_cast<int64>(ts.tv_sec) * Time::kMicrosecondsPerSecond) + 179 (static_cast<int64>(ts.tv_nsec) / Time::kNanosecondsPerMicrosecond);
|
| /external/chromium/third_party/libevent/test/ |
| bench.c | 87 static struct timeval ts, te; local 106 gettimeofday(&ts, NULL); 116 evutil_timersub(&te, &ts, &te);
|
| /external/clang/test/Sema/ |
| struct-decl.c | 16 } *ts; member in struct:s
|
| /external/icu4c/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 205 ts=OPENSSL_gmtime(&t, &data); 206 if (ts == NULL) 211 if (!OPENSSL_gmtime_adj(ts, offset_day, offset_sec)) 215 if((ts->tm_year < 50) || (ts->tm_year >= 150)) 232 BIO_snprintf(p,len,"%02d%02d%02d%02d%02d%02dZ",ts->tm_year%100, 233 ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec) [all...] |
| /external/openssl/crypto/rand/ |
| rand_unix.c | 145 struct timespec ts; local 160 clock_gettime (CLOCK_REALTIME, &ts); 163 seed = ts.tv_sec ^ ts.tv_nsec ^ curr_pid ^ curr_uid;
|
| /external/qemu/ |
| qemu-thread.c | 60 static void timespec_add_ms(struct timespec *ts, uint64_t msecs) 62 ts->tv_sec = ts->tv_sec + (long)(msecs / 1000); 63 ts->tv_nsec = (ts->tv_nsec + ((long)msecs % 1000) * 1000000); 64 if (ts->tv_nsec >= 1000000000) { 65 ts->tv_nsec -= 1000000000; 66 ts->tv_sec++; 73 struct timespec ts; local 75 clock_gettime(CLOCK_REALTIME, &ts); 140 struct timespec ts; local [all...] |
| /external/valgrind/main/helgrind/tests/ |
| annotate_hbefore.c | 221 struct timespec ts = { 0, 100 * 1000 * 1000 }; local 222 nanosleep(&ts, NULL);
|
| /external/webkit/Source/WebCore/platform/graphics/android/ |
| FontPlatformDataAndroid.cpp | 183 float ts = mTextSize; local 184 if (!(ts > 0)) 185 ts = 12; 195 paint->setTextSize(SkFloatToScalar(ts));
|
| /external/webkit/Source/WebCore/platform/graphics/chromium/ |
| FontPlatformDataLinux.cpp | 157 const float ts = m_textSize >= 0 ? m_textSize : 12; local 173 paint->setTextSize(SkFloatToScalar(ts));
|