/external/webrtc/webrtc/modules/audio_processing/transient/ |
transient_suppressor_unittest.cc | 21 TransientSuppressor ts; local 22 ts.Initialize(ts::kSampleRate16kHz, ts::kSampleRate16kHz, kNumChannels); 25 EXPECT_FALSE(ts.detection_enabled_); 26 ts.UpdateKeypress(true); 27 EXPECT_TRUE(ts.detection_enabled_); 30 for (int time_ms = 0; time_ms < 3990; time_ms += ts::kChunkSizeMs) { 31 ts.UpdateKeypress(false); 32 EXPECT_TRUE(ts.detection_enabled_) [all...] |
/external/libmicrohttpd/src/microspdy/ |
internal.c | 34 struct timespec ts; local 35 if (0 == clock_gettime (CLOCK_MONOTONIC, &ts)) 36 return ts.tv_sec * 1000 + ts.tv_nsec / 1000000;
|
/external/opencv3/modules/highgui/test/ |
test_gui.cpp | 61 ts->printf(ts->LOG, "GUI 0\n"); 64 ts->printf(ts->LOG, "GUI 1\n"); 67 ts->printf(ts->LOG, "GUI 2\n"); 71 ts->printf(ts->LOG, "GUI 3\n"); 74 ts->printf(ts->LOG, "GUI 4\n") [all...] |
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
clock_gettime.c | 8 struct timespec ts; local 9 clock_gettime(CLOCK_REALTIME, &ts);
|
/external/opencv3/3rdparty/include/ffmpeg_/libavutil/ |
timestamp.h | 36 * @param ts the timestamp to represent 39 static inline char *av_ts_make_string(char *buf, int64_t ts) 41 if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); 42 else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%"PRId64, ts); 50 #define av_ts2str(ts) av_ts_make_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts) 57 * @param ts the timestamp to represent 61 static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb) 63 if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); 64 else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts); [all...] |
/external/strace/tests/ |
utimensat.c | 43 print_ts(const struct timespec *ts) 45 printf("{%ju, %ju}", (uintmax_t) ts->tv_sec, (uintmax_t) ts->tv_nsec); 52 struct timespec ts[2]; local 57 ts[0].tv_sec = tv.tv_sec; 58 ts[0].tv_nsec = tv.tv_usec; 59 ts[1].tv_sec = tv.tv_sec - 1; 60 ts[1].tv_nsec = tv.tv_usec + 1; 61 if (!utimensat(AT_FDCWD, "utimensat\nfilename", ts, 68 print_ts(&ts[0]) [all...] |
clock_nanosleep.c | 49 struct timespec ts; member in struct:__anon24319 52 .ts = { .tv_nsec = 0xc0de1 }, 55 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 65 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) 68 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); 70 if (!syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, NULL, &rem.ts)) 73 " = -1 EFAULT (Bad address)\n", &rem.ts); 75 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, &rem.ts)) [all...] |
nanosleep.c | 43 struct timespec ts; member in struct:__anon24323 46 .ts = { .tv_nsec = 0xc0de1 }, 49 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, 56 if (nanosleep(&req.ts, NULL)) 59 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); 61 if (!nanosleep(NULL, &rem.ts)) 63 printf("nanosleep(NULL, %p) = -1 EFAULT (Bad address)\n", &rem.ts); 65 if (nanosleep(&req.ts, &rem.ts)) [all...] |
clock_xettime.c | 42 struct timespec ts; member in struct:__anon24320 48 if (syscall(__NR_clock_getres, CLOCK_REALTIME, &t.ts)) 51 (intmax_t) t.ts.tv_sec, 52 (intmax_t) t.ts.tv_nsec); 54 if (syscall(__NR_clock_gettime, CLOCK_PROCESS_CPUTIME_ID, &t.ts)) 57 (intmax_t) t.ts.tv_sec, 58 (intmax_t) t.ts.tv_nsec); 60 t.ts.tv_sec = 0xdeface1; 61 t.ts.tv_nsec = 0xdeface2; 62 if (!syscall(__NR_clock_settime, CLOCK_THREAD_CPUTIME_ID, &t.ts)) [all...] |
/bionic/libc/private/ |
bionic_time_conversions.h | 40 __LIBC_HIDDEN__ bool timespec_from_timeval(timespec& ts, const timeval& tv); 41 __LIBC_HIDDEN__ void timespec_from_ms(timespec& ts, const int ms); 43 __LIBC_HIDDEN__ void timeval_from_timespec(timeval& tv, const timespec& ts); 45 __LIBC_HIDDEN__ void absolute_timespec_from_timespec(timespec& abs_ts, const timespec& ts, 50 static inline int check_timespec(const timespec* ts, bool null_allowed) { 51 if (null_allowed && ts == nullptr) { 56 if (ts->tv_nsec < 0 || ts->tv_nsec >= NS_PER_S) { 59 if (ts->tv_sec < 0) {
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_structmembers.py | 11 ts=_test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8, variable 17 ts.T_BOOL = True 18 self.assertEqual(ts.T_BOOL, True) 19 ts.T_BOOL = False 20 self.assertEqual(ts.T_BOOL, False) 21 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1) 24 ts.T_BYTE = CHAR_MAX 25 self.assertEqual(ts.T_BYTE, CHAR_MAX) 26 ts.T_BYTE = CHAR_MIN 27 self.assertEqual(ts.T_BYTE, CHAR_MIN [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_structmembers.py | 11 ts=_test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8, variable 17 ts.T_BOOL = True 18 self.assertEqual(ts.T_BOOL, True) 19 ts.T_BOOL = False 20 self.assertEqual(ts.T_BOOL, False) 21 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1) 24 ts.T_BYTE = CHAR_MAX 25 self.assertEqual(ts.T_BYTE, CHAR_MAX) 26 ts.T_BYTE = CHAR_MIN 27 self.assertEqual(ts.T_BYTE, CHAR_MIN [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_structmembers.py | 11 ts=_test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8, variable 17 ts.T_BOOL = True 18 self.assertEqual(ts.T_BOOL, True) 19 ts.T_BOOL = False 20 self.assertEqual(ts.T_BOOL, False) 21 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1) 24 ts.T_BYTE = CHAR_MAX 25 self.assertEqual(ts.T_BYTE, CHAR_MAX) 26 ts.T_BYTE = CHAR_MIN 27 self.assertEqual(ts.T_BYTE, CHAR_MIN [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_structmembers.py | 11 ts=_test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8, variable 17 ts.T_BOOL = True 18 self.assertEqual(ts.T_BOOL, True) 19 ts.T_BOOL = False 20 self.assertEqual(ts.T_BOOL, False) 21 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1) 24 ts.T_BYTE = CHAR_MAX 25 self.assertEqual(ts.T_BYTE, CHAR_MAX) 26 ts.T_BYTE = CHAR_MIN 27 self.assertEqual(ts.T_BYTE, CHAR_MIN [all...] |
/bionic/libc/bionic/ |
bionic_time_conversions.cpp | 33 bool timespec_from_timeval(timespec& ts, const timeval& tv) { 35 ts.tv_sec = tv.tv_sec; 41 ts.tv_nsec = tv.tv_usec * 1000; 45 void timespec_from_ms(timespec& ts, const int ms) { 46 ts.tv_sec = ms / 1000; 47 ts.tv_nsec = (ms % 1000) * 1000000; 50 void timeval_from_timespec(timeval& tv, const timespec& ts) { 51 tv.tv_sec = ts.tv_sec; 52 tv.tv_usec = ts.tv_nsec / 1000; 55 void absolute_timespec_from_timespec(timespec& abs_ts, const timespec& ts, clockid_t clock) [all...] |
clock.cpp | 37 timespec ts; local 38 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts) == -1) { 41 return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC));
|
/external/clang/test/SemaCXX/ |
PR9459.cpp | 6 template<typename>struct ts{}ap() // expected-error {{expected ';' after struct}} expected-error {{requires a type specifier}} struct 7 {ts<a>::ap<ae_same<int>::&ae_same<>>::p(a); }; // expected-error {{use of undeclared identifier 'a'}}
|
/prebuilts/go/darwin-x86/src/runtime/cgo/ |
gcc_windows_386.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%eax [all...] |
gcc_windows_amd64.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%rax [all...] |
/prebuilts/go/linux-x86/src/runtime/cgo/ |
gcc_windows_386.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%eax [all...] |
gcc_windows_amd64.c | 28 _cgo_sys_thread_start(ThreadStart *ts) 32 thandle = _beginthread(threadentry, 0, ts); 42 ThreadStart ts; local 44 ts = *(ThreadStart*)v; 47 ts.g->stackhi = (uintptr)&ts; 48 ts.g->stacklo = (uintptr)&ts - STACKSIZE + 8*1024; 57 :: "r"(ts.tls), "r"(ts.g) : "%rax [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/test/unit/ |
test-scheme.rb | 11 @ts = TokenScheme.new do 20 @a_class.send(:include, @ts) 26 @ts::A.should == 4 27 @ts::B.should == 5 28 @ts::T__6.should == 6 29 @ts::EOF.should == -1 33 @ts::TOKEN_NAMES.should == { 38 @ts.token_name(5).should == 'B' 39 @ts.token_name(6).should == "'+'" 40 @ts.token_name(-1).should == '<EOF> [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/transformer/ |
TransformerClient.java | 40 * @param ts A reference to a TransformState object 42 void setTransformState(TransformState ts);
|
/hardware/bsp/intel/peripheral/sensors/mraa/ |
Utils.cpp | 21 struct timespec ts = {0, 0}; local 23 if (!clock_gettime(clock_id, &ts)) 24 return 1000000000LL * ts.tv_sec + ts.tv_nsec;
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
TelephonyNetworkFactoryTest.java | 110 private TelephonyNetworkFactory makeTnf(int phoneId, TestSetup ts) { 111 return new TelephonyNetworkFactory(ts.phoneSwitcherMock, ts.subscriptionControllerMock, 112 ts.subscriptionMonitorMock, ts.looper, ts.contextMock, phoneId, ts.dcTrackerMock); 115 private NetworkRequest makeSubSpecificDefaultRequest(TestSetup ts, int subId) { 121 return ts.connectivityServiceMock.requestNetwork(netCap, null, 0, new Binder(), -1); 123 private NetworkRequest makeSubSpecificMmsRequest(TestSetup ts, int subId) 143 TestSetup ts = new TestSetup(numberOfPhones); local 228 TestSetup ts = new TestSetup(numberOfPhones); local [all...] |