| /external/webrtc/src/system_wrappers/source/ |
| condition_variable_linux.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...] |
| /packages/apps/Nfc/jni/ |
| com_android_nfc_NativeLlcpConnectionlessSocket.cpp | 60 struct timespec ts; local 122 struct timespec ts; local
|
| com_android_nfc_NativeLlcpServiceSocket.cpp | 72 struct timespec ts; local
|
| com_android_nfc_NativeLlcpSocket.cpp | 115 struct timespec ts; local 169 struct timespec ts; local 248 struct timespec ts; local 309 struct timespec ts; local
|
| com_android_nfc_NativeP2pDevice.cpp | 358 struct timespec ts; local
|
| /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;
|
| /bionic/libc/bionic/ |
| semaphore.c | 299 struct timespec ts; local 303 clock_gettime( CLOCK_REALTIME, &ts ); 304 ts.tv_sec = abs_timeout->tv_sec - ts.tv_sec; 305 ts.tv_nsec = abs_timeout->tv_nsec - ts.tv_nsec; 306 if (ts.tv_nsec < 0) { 307 ts.tv_nsec += 1000000000; 308 ts.tv_sec -= 1; 311 if (ts.tv_sec < 0 || ts.tv_nsec < 0) [all...] |
| /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
| CodeSignerTest.java | 41 private Timestamp ts = new Timestamp(now, cpath); field in class:CodeSignerTest 48 new CodeSigner(null, ts); 67 CodeSigner one = new CodeSigner(cpath, ts); 68 CodeSigner two = new CodeSigner(cpath, ts); 99 assertSame(new CodeSigner(cpath, ts).getTimestamp(), ts); 107 new CodeSigner(cpath, ts).toString();
|
| /external/chromium/chrome/browser/history/ |
| visitsegment_database.cc | 192 base::Time ts, 194 base::Time t = ts.LocalMidnight(); 250 base::Time ts = from_time.LocalMidnight(); local 251 statement.BindInt64(0, ts.ToInternalValue());
|
| /external/chromium/third_party/libevent/ |
| kqueue.c | 224 struct timespec ts, *ts_p = NULL; local 228 TIMEVAL_TO_TIMESPEC(tv, &ts); 229 ts_p = &ts;
|
| evport.c | 305 struct timespec ts; local 308 ts.tv_sec = tv->tv_sec; 309 ts.tv_nsec = tv->tv_usec * 1000; 310 ts_p = &ts;
|
| /external/dhcpcd/ |
| common.c | 148 struct timespec ts; local 152 if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) { 159 if (clock_gettime(posix_clock, &ts) == 0) { 160 tp->tv_sec = ts.tv_sec; 161 tp->tv_usec = ts.tv_nsec / 1000;
|
| /external/e2fsprogs/debugfs/ |
| util.c | 4 * Copyright (C) 1993, 1994 Theodore Ts'o. This file may be 214 struct tm ts; local 221 memset(&ts, 0, sizeof(ts)); 223 strptime(arg, "%Y%m%d%H%M%S", &ts); 225 sscanf(arg, "%4d%2d%2d%2d%2d%2d", &ts.tm_year, &ts.tm_mon, 226 &ts.tm_mday, &ts.tm_hour, &ts.tm_min, &ts.tm_sec) [all...] |
| /external/ipsec-tools/src/racoon/ |
| schedule.c | 68 struct timespec ts; local 70 clock_gettime(CLOCK_MONOTONIC, &ts); 71 tv->tv_sec = ts.tv_sec; 72 tv->tv_usec = ts.tv_nsec / 1000;
|
| /external/qemu/ |
| qemu-timer.h | 47 void qemu_free_timer(QEMUTimer *ts); 48 void qemu_del_timer(QEMUTimer *ts); 49 void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time); 50 int qemu_timer_pending(QEMUTimer *ts); 122 struct timespec ts; local 123 clock_gettime(CLOCK_MONOTONIC, &ts); 124 return ts.tv_sec * 1000000000LL + ts.tv_nsec; 135 void qemu_get_timer(QEMUFile *f, QEMUTimer *ts); 136 void qemu_put_timer(QEMUFile *f, QEMUTimer *ts); [all...] |
| /external/webrtc/src/system_wrappers/interface/ |
| tick_util.h | 145 struct timespec ts; local 147 clock_gettime(CLOCK_REALTIME, &ts); 149 clock_gettime(CLOCK_MONOTONIC, &ts); 151 result._ticks = 1000000000LL * static_cast<WebRtc_Word64>(ts.tv_sec) + static_cast<WebRtc_Word64>(ts.tv_nsec);
|
| /hardware/ril/mock-ril/src/cpp/ |
| worker.cpp | 164 struct timespec ts; local 171 ts.tv_sec = tv.tv_sec + (delay_ms / 1000); 172 ts.tv_nsec = (tv.tv_usec + 174 pthread_cond_timedwait(&cond_, &mutex_, &ts);
|
| /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
| CodeSignerTest.java | 41 private Timestamp ts = new Timestamp(now, cpath); field in class:CodeSignerTest 48 new CodeSigner(null, ts); 72 CodeSigner cs = new CodeSigner(cpath, ts); 84 CodeSigner one = new CodeSigner(cpath, ts); 85 CodeSigner two = new CodeSigner(cpath, ts); 116 assertSame(new CodeSigner(cpath, ts).getTimestamp(), ts); 124 assertTrue(new CodeSigner(cpath, ts).toString().contains("")); 127 assertTrue(new CodeSigner(cpath, ts).toString().contains(ts.toString())) [all...] |
| /bionic/libc/netbsd/isc/ |
| ev_timers.c | 157 struct timespec ts; local 159 ts.tv_sec = tv.tv_sec; 160 ts.tv_nsec = tv.tv_usec * 1000; 161 return (ts); 165 evTimeVal(struct timespec ts) { 168 tv.tv_sec = ts.tv_sec; 169 tv.tv_usec = ts.tv_nsec / 1000;
|
| /device/moto/stingray/whisper/ |
| SA_Phys_Linux.c | 80 struct timespec ts; local 98 ts.tv_sec = 0; 99 ts.tv_nsec = MAX_IO_TIMEOUT * 1000000; 100 nanosleep(&ts, NULL); 149 struct timespec ts; local 178 struct timespec ts; local 181 ts.tv_sec = 0; 182 ts.tv_nsec = MAX_IO_TIMEOUT * 1000000; 183 nanosleep(&ts, NULL); 323 struct timespec ts; local 395 struct timespec ts; local 413 struct timespec ts; local [all...] |
| /external/chromium/chrome/browser/ui/webui/ |
| most_visited_handler.cc | 123 history::TopSites* ts = profile->GetTopSites(); local 124 if (ts) 125 has_blacklisted_urls = ts->HasBlacklistedItems(); 138 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); local 139 if (ts) { 140 ts->GetMostVisitedURLs( 164 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); local 165 if (ts) 166 ts->RemoveBlacklistedURL(GURL(url)); 174 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites() local 214 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); local 225 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); local 303 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); local 366 history::TopSites* ts = web_ui_->GetProfile()->GetTopSites(); local [all...] |
| /external/icu4c/test/intltest/ |
| cpdtrtst.cpp | 216 UnicodeSet ts; local 218 retUS = &ct1->getTargetSet(ts); 219 if (retUS != &ts || ts.size() == 0) {
|
| /external/jhead/ |
| jhead.c | 133 struct tm ts; local 134 ts = *localtime(&ImageInfo.FileDateTime); 135 strftime(TimeStr, 20, "%Y:%m:%d %H:%M:%S", &ts); [all...] |
| /external/libpcap/ |
| pcap-win32.c | 198 ULONGLONG ts; local 302 ts = header->ts; 303 pcap_header.ts.tv_sec = (int)(ts >> 32); 304 ts = (ts & 0xffffffffi64) * 1000000; 305 ts += 0x80000000; /* rounding */ 306 pcap_header.ts.tv_usec = (int)(ts >> 32) [all...] |