/bionic/libc/bionic/ |
bionic_time_conversions.cpp | 31 bool timespec_from_timeval(timespec& ts, const timeval& tv) { 33 ts.tv_sec = tv.tv_sec; 39 ts.tv_nsec = tv.tv_usec * 1000; 43 void timespec_from_ms(timespec& ts, const int ms) { 44 ts.tv_sec = ms / 1000; 45 ts.tv_nsec = (ms % 1000) * 1000000; 48 void timeval_from_timespec(timeval& tv, const timespec& ts) { 49 tv.tv_sec = ts.tv_sec; 50 tv.tv_usec = ts.tv_nsec / 1000;
|
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));
|
utimes.cpp | 36 timespec ts[2]; local 39 if (!timespec_from_timeval(ts[0], tv[0]) || !timespec_from_timeval(ts[1], tv[1])) { 43 ts_ptr = ts;
|
pthread_internals.cpp | 71 // Initialize 'ts' with the difference between 'abstime' and the current time 73 int __timespec_from_absolute(timespec* ts, const timespec* abstime, clockid_t clock) { 74 clock_gettime(clock, ts); 75 ts->tv_sec = abstime->tv_sec - ts->tv_sec; 76 ts->tv_nsec = abstime->tv_nsec - ts->tv_nsec; 77 if (ts->tv_nsec < 0) { 78 ts->tv_sec--; 79 ts->tv_nsec += 1000000000 [all...] |
/external/chromium_org/native_client_sdk/src/libraries/third_party/pthreads-win32/ |
ptw32_timespec.c | 51 ptw32_timespec_to_filetime (const struct timespec *ts, FILETIME * ft) 61 *(int64_t *) ft = ts->tv_sec * 10000000 62 + (ts->tv_nsec + 50) / 100 + PTW32_TIMESPEC_TO_FILETIME_OFFSET; 66 ptw32_filetime_to_timespec (const FILETIME * ft, struct timespec *ts) 76 ts->tv_sec = 78 ts->tv_nsec = 80 ((int64_t) ts->tv_sec * (int64_t) 10000000)) * 100);
|
/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...] |
/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'}}
|
/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);
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/svg/ |
SVGRenderTreeAsText.cpp | 93 TextStream& operator<<(TextStream& ts, TextStreamSeparator& sep) 96 ts << sep.m_separator; 99 return ts; 103 static void writeNameValuePair(TextStream& ts, const char* name, ValueType value) 105 ts << " [" << name << "=" << value << "]"; 109 static void writeNameAndQuotedValue(TextStream& ts, const char* name, ValueType value) 111 ts << " [" << name << "=\"" << value << "\"]"; 114 static void writeIfNotEmpty(TextStream& ts, const char* name, const String& value) 117 writeNameValuePair(ts, name, value); 121 static void writeIfNotDefault(TextStream& ts, const char* name, ValueType value, ValueType defaultValue [all...] |
/bionic/libc/private/ |
bionic_time_conversions.h | 37 __LIBC_HIDDEN__ bool timespec_from_timeval(timespec& ts, const timeval& tv); 38 __LIBC_HIDDEN__ void timespec_from_ms(timespec& ts, const int ms); 40 __LIBC_HIDDEN__ void timeval_from_timespec(timeval& tv, const timespec& ts);
|
/external/chromium_org/third_party/WebKit/Source/platform/text/ |
TextStream.cpp | 138 TextStream& operator<<(TextStream& ts, const IntRect& r) 140 return ts << "at (" << r.x() << "," << r.y() << ") size " << r.width() << "x" << r.height(); 143 TextStream& operator<<(TextStream& ts, const IntPoint& p) 145 return ts << "(" << p.x() << "," << p.y() << ")"; 148 TextStream& operator<<(TextStream& ts, const FloatPoint& p) 150 ts << "(" << TextStream::FormatNumberRespectingIntegers(p.x()); 151 ts << "," << TextStream::FormatNumberRespectingIntegers(p.y()); 152 ts << ")"; 153 return ts; 156 TextStream& operator<<(TextStream& ts, const FloatSize& s [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/filters/ |
PointLightSource.cpp | 58 static TextStream& operator<<(TextStream& ts, const FloatPoint3D& p) 60 ts << "x=" << p.x() << " y=" << p.y() << " z=" << p.z(); 61 return ts; 64 TextStream& PointLightSource::externalRepresentation(TextStream& ts) const 66 ts << "[type=POINT-LIGHT] "; 67 ts << "[position=\"" << position() << "\"]"; 68 return ts;
|
/system/core/include/utils/ |
Condition.h | 110 struct timespec ts; local 111 ts.tv_sec = reltime/1000000000; 112 ts.tv_nsec = reltime%1000000000; 113 return -pthread_cond_timedwait_relative_np(&mCond, &mutex.mMutex, &ts); 115 struct timespec ts; 117 clock_gettime(CLOCK_REALTIME, &ts); 122 ts.tv_sec = t.tv_sec; 123 ts.tv_nsec= t.tv_usec*1000; 125 ts.tv_sec += reltime/1000000000; 126 ts.tv_nsec+= reltime%1000000000 [all...] |
/external/fio/ |
time.c | 27 unsigned long ts = usec; local 34 ts = usec - ns_granularity; 36 if (ts >= 1000000) { 37 req.tv_sec = ts / 1000000; 38 ts -= 1000000 * req.tv_sec; 42 req.tv_nsec = ts * 1000; 48 ts = utime_since_now(&tv); 49 if (ts >= usec) 52 usec -= ts; 100 struct timespec ts; local [all...] |
/external/chromium_org/third_party/webrtc/system_wrappers/source/ |
condition_variable_posix.cc | 92 timespec ts; local 95 clock_gettime(CLOCK_REALTIME, &ts); 97 clock_gettime(CLOCK_MONOTONIC, &ts); 102 ts.tv_sec = tv.tv_sec; 103 ts.tv_nsec = tv.tv_usec * MICROSECONDS_PER_MILLISECOND; 106 ts.tv_sec += max_time_inMS / MILLISECONDS_PER_SECOND; 107 ts.tv_nsec += 112 if (ts.tv_nsec >= NANOSECONDS_PER_SECOND) { 113 ts.tv_sec += ts.tv_nsec / NANOSECONDS_PER_SECOND [all...] |
/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...] |
/cts/tests/app/src/android/app/cts/ |
LaunchpadTabActivity.java | 37 final TabHost.TabSpec ts = th.newTabSpec("1"); local 38 ts.setIndicator("One"); 39 ts.setContent(tabIntent); 40 th.addTab(ts);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LaunchpadTabActivity.java | 37 TabHost.TabSpec ts = th.newTabSpec("1"); local 38 ts.setIndicator("One"); 39 ts.setContent(tabIntent); 40 th.addTab(ts);
|
/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...] |
/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...] |
/external/chromium_org/third_party/WebKit/Source/core/rendering/ |
RenderTreeAsText.cpp | 68 static void printBorderStyle(TextStream& ts, const EBorderStyle borderStyle) 72 ts << "none"; 75 ts << "hidden"; 78 ts << "inset"; 81 ts << "groove"; 84 ts << "ridge"; 87 ts << "outset"; 90 ts << "dotted"; 93 ts << "dashed"; 96 ts << "solid" 701 TextStream ts; local [all...] |
/external/clang/test/CXX/drs/ |
dr13xx.cpp | 13 template<typename...Ts> void f(Ts ...ts) { // expected-error 0-1{{extension}} 14 auto x(ts...); // expected-error {{empty}} expected-error 0-1{{extension}}
|
/external/eigen/bench/btl/generic_bench/timers/ |
portable_timer.hh | 111 timespec ts; local 112 clock_gettime(m_clkid, &ts); 113 m_start_time = double(ts.tv_sec) + 1e-9 * double(ts.tv_nsec); 119 timespec ts; local 120 clock_gettime(m_clkid, &ts); 121 m_stop_time = double(ts.tv_sec) + 1e-9 * double(ts.tv_nsec);
|