Home
last modified time | relevance | path

Searched refs:ts (Results 1 – 25 of 754) sorted by relevance

12345678910>>...31

/external/opencv3/modules/videoio/test/
Dtest_video_io.cpp153 ts->printf(ts->LOG, "reading image : %s\n", _name.c_str()); in ImageTest()
160 ts->set_failed_test_info(ts->FAIL_MISSING_TEST_DATA); in ImageTest()
190 ts->printf(ts->LOG, " full_name : %s\n", full_name.c_str()); in ImageTest()
197 ts->printf(ts->LOG, "Reading failed at fmt=%s\n", ext.c_str()); in ImageTest()
198 ts->set_failed_test_info(ts->FAIL_MISMATCH); in ImageTest()
206ts->printf(ts->LOG, "Reading image from file: too big difference (=%g) with fmt=%s\n", psnr, ext.c… in ImageTest()
207 ts->set_failed_test_info(ts->FAIL_BAD_ACCURACY); in ImageTest()
226 ts->printf(ts->LOG, "Encoding failed with fmt=%s\n", ext.c_str()); in ImageTest()
227 ts->set_failed_test_info(ts->FAIL_MISMATCH); in ImageTest()
235 ts->printf(ts->LOG, "Decoding failed with fmt=%s\n", ext.c_str()); in ImageTest()
[all …]
Dtest_video_pos.cpp95 ts->printf(ts->LOG, "\nFile: %s\n", filename.c_str()); in run()
99 ts->printf(ts->LOG, "\nError: cannot create video file"); in run()
100 ts->set_failed_test_info(ts->FAIL_INVALID_OUTPUT); in run()
108 ts->printf(ts->LOG, "\nError: cannot read video file."); in run()
109 ts->set_failed_test_info(ts->FAIL_INVALID_TEST_DATA); in run()
124ts->printf(ts->LOG, "\nError: returned frame count (N0=%d, N=%d) is different from the reference n… in run()
125 ts->set_failed_test_info(ts->FAIL_INVALID_OUTPUT); in run()
135 ts->printf(ts->LOG, "\nError: cannot seek to frame %d.\n", idx); in run()
136 ts->set_failed_test_info(ts->FAIL_INVALID_OUTPUT); in run()
147ts->printf(ts->LOG, "\nError: the current position (%d) after seek is different from specified (%d… in run()
[all …]
/external/webrtc/webrtc/modules/audio_processing/transient/
Dtransient_suppressor_unittest.cc21 TransientSuppressor ts; in TEST() local
22 ts.Initialize(ts::kSampleRate16kHz, ts::kSampleRate16kHz, kNumChannels); in TEST()
25 EXPECT_FALSE(ts.detection_enabled_); in TEST()
26 ts.UpdateKeypress(true); in TEST()
27 EXPECT_TRUE(ts.detection_enabled_); in TEST()
30 for (int time_ms = 0; time_ms < 3990; time_ms += ts::kChunkSizeMs) { in TEST()
31 ts.UpdateKeypress(false); in TEST()
32 EXPECT_TRUE(ts.detection_enabled_); in TEST()
34 ts.UpdateKeypress(false); in TEST()
35 EXPECT_FALSE(ts.detection_enabled_); in TEST()
[all …]
/external/strace/tests/
Dclock_nanosleep.c49 struct timespec ts; in main() member
52 .ts = { .tv_nsec = 0xc0de1 }, in main()
55 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
65 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
68 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main()
70 if (!syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, NULL, &rem.ts)) in main()
73 " = -1 EFAULT (Bad address)\n", &rem.ts); in main()
75 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, &rem.ts)) in main()
78 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main()
80 req.ts.tv_nsec = 999999999 + 1; in main()
[all …]
Dnanosleep.c43 struct timespec ts; in main() member
46 .ts = { .tv_nsec = 0xc0de1 }, in main()
49 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
56 if (nanosleep(&req.ts, NULL)) in main()
59 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec); in main()
61 if (!nanosleep(NULL, &rem.ts)) in main()
63 printf("nanosleep(NULL, %p) = -1 EFAULT (Bad address)\n", &rem.ts); in main()
65 if (nanosleep(&req.ts, &rem.ts)) in main()
68 (intmax_t) req.ts.tv_sec, (intmax_t) req.ts.tv_nsec, &rem.ts); in main()
70 req.ts.tv_nsec = 1000000000; in main()
[all …]
Dutimensat.c43 print_ts(const struct timespec *ts) in print_ts() argument
45 printf("{%ju, %ju}", (uintmax_t) ts->tv_sec, (uintmax_t) ts->tv_nsec); in print_ts()
52 struct timespec ts[2]; in main() local
57 ts[0].tv_sec = tv.tv_sec; in main()
58 ts[0].tv_nsec = tv.tv_usec; in main()
59 ts[1].tv_sec = tv.tv_sec - 1; in main()
60 ts[1].tv_nsec = tv.tv_usec + 1; in main()
61 if (!utimensat(AT_FDCWD, "utimensat\nfilename", ts, in main()
68 print_ts(&ts[0]); in main()
70 print_ts(&ts[1]); in main()
[all …]
Dclock_xettime.c42 struct timespec ts; in main() member
48 if (syscall(__NR_clock_getres, CLOCK_REALTIME, &t.ts)) in main()
51 (intmax_t) t.ts.tv_sec, in main()
52 (intmax_t) t.ts.tv_nsec); in main()
54 if (syscall(__NR_clock_gettime, CLOCK_PROCESS_CPUTIME_ID, &t.ts)) in main()
57 (intmax_t) t.ts.tv_sec, in main()
58 (intmax_t) t.ts.tv_nsec); in main()
60 t.ts.tv_sec = 0xdeface1; in main()
61 t.ts.tv_nsec = 0xdeface2; in main()
62 if (!syscall(__NR_clock_settime, CLOCK_THREAD_CPUTIME_ID, &t.ts)) in main()
[all …]
/external/fio/
Dstat.c21 struct thread_stat *ts = &td->ts; in update_rusage_stat() local
24 ts->usr_time += mtime_since(&td->ru_start.ru_utime, in update_rusage_stat()
26 ts->sys_time += mtime_since(&td->ru_start.ru_stime, in update_rusage_stat()
28 ts->ctx += td->ru_end.ru_nvcsw + td->ru_end.ru_nivcsw in update_rusage_stat()
30 ts->minf += td->ru_end.ru_minflt - td->ru_start.ru_minflt; in update_rusage_stat()
31 ts->majf += td->ru_end.ru_majflt - td->ru_start.ru_majflt; in update_rusage_stat()
314 static void stat_calc_lat(struct thread_stat *ts, double *dst, in stat_calc_lat() argument
317 unsigned long total = ddir_rw_sum(ts->total_io_u); in stat_calc_lat()
334 void stat_calc_lat_u(struct thread_stat *ts, double *io_u_lat) in stat_calc_lat_u() argument
336 stat_calc_lat(ts, io_u_lat, ts->io_u_lat_u, FIO_IO_U_LAT_U_NR); in stat_calc_lat_u()
[all …]
Dtime.c31 unsigned long ts = usec; in usec_sleep() local
38 ts = usec - ns_granularity; in usec_sleep()
40 if (ts >= 1000000) { in usec_sleep()
41 req.tv_sec = ts / 1000000; in usec_sleep()
42 ts -= 1000000 * req.tv_sec; in usec_sleep()
46 req.tv_nsec = ts * 1000; in usec_sleep()
52 ts = utime_since_now(&tv); in usec_sleep()
53 t += ts; in usec_sleep()
54 if (ts >= usec) in usec_sleep()
57 usec -= ts; in usec_sleep()
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3tokenstream.c54 static pANTLR3_COMMON_TOKEN tokLT (pANTLR3_TOKEN_STREAM ts, ANTLR3_INT32 k);
55 static pANTLR3_COMMON_TOKEN dbgTokLT (pANTLR3_TOKEN_STREAM ts, ANTLR3_INT32 k);
56 static pANTLR3_COMMON_TOKEN get (pANTLR3_TOKEN_STREAM ts, ANTLR3_UINT32 i);
57 static pANTLR3_TOKEN_SOURCE getTokenSource (pANTLR3_TOKEN_STREAM ts);
58 static void setTokenSource (pANTLR3_TOKEN_STREAM ts, pANTLR3_TOKEN_SOURCE tokenSource);
59 static pANTLR3_STRING toString (pANTLR3_TOKEN_STREAM ts);
60 static pANTLR3_STRING toStringSS (pANTLR3_TOKEN_STREAM ts, ANTLR3_UINT32 start, ANTLR3_UINT32 …
61 static pANTLR3_STRING toStringTT (pANTLR3_TOKEN_STREAM ts, pANTLR3_COMMON_TOKEN start, pANTLR3…
62 static void setDebugListener (pANTLR3_TOKEN_STREAM ts, pANTLR3_DEBUG_EVENT_LISTENER debugger);
328 setDebugListener (pANTLR3_TOKEN_STREAM ts, pANTLR3_DEBUG_EVENT_LISTENER debugger) in setDebugListener() argument
[all …]
/external/opencv3/modules/highgui/test/
Dtest_gui.cpp61 ts->printf(ts->LOG, "GUI 0\n"); in run()
64 ts->printf(ts->LOG, "GUI 1\n"); in run()
67 ts->printf(ts->LOG, "GUI 2\n"); in run()
71 ts->printf(ts->LOG, "GUI 3\n"); in run()
74 ts->printf(ts->LOG, "GUI 4\n"); in run()
77 ts->printf(ts->LOG, "GUI 5\n"); in run()
80 ts->printf(ts->LOG, "GUI 6\n"); in run()
83 ts->printf(ts->LOG, "GUI 7\n"); in run()
86 ts->printf(ts->LOG, "GUI 8\n"); in run()
88 ts->set_failed_test_info(cvtest::TS::OK); in run()
/external/opencv3/modules/video/test/
Dtest_ecc.cpp114 Mat img = imread( string(ts->get_data_path()) + "shared/fruits.png", 0); in testTranslation()
119 ts->printf( ts->LOG, "test image can not be read"); in testTranslation()
120 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in testTranslation()
126 cv::RNG rng = ts->get_rng(); in testTranslation()
132 ts->update_context( this, k, true ); in testTranslation()
149 ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_OUTPUT); in testTranslation()
154 ts->set_failed_test_info(cvtest::TS::FAIL_BAD_ACCURACY); in testTranslation()
155 ts->printf( ts->LOG, "RMS = %f", in testTranslation()
170 ts->set_failed_test_info(cvtest::TS::OK); in run()
189 Mat img = imread( string(ts->get_data_path()) + "shared/fruits.png", 0); in testEuclidean()
[all …]
/external/skia/tests/
DPathOpsLineIntersectionTest.cpp88 const SkIntersections& ts, bool nearAllowed) { in check_results() argument
89 for (int i = 0; i < ts.used(); ++i) { in check_results()
90 SkDPoint result1 = line1.ptAtT(ts[0][i]); in check_results()
91 SkDPoint result2 = line2.ptAtT(ts[1][i]); in check_results()
95 if (!result1.approximatelyEqual(result2) && !ts.nearlySame(i)) { in check_results()
96 REPORTER_ASSERT(reporter, ts.used() != 1); in check_results()
97 result2 = line2.ptAtT(ts[1][i ^ 1]); in check_results()
102 REPORTER_ASSERT(reporter, result1.approximatelyEqual(ts.pt(i).asSkPoint())); in check_results()
123 SkIntersections ts; in testOne() local
124 ts.horizontal(line2, left, right, line1[0].fY, line1[0].fX != left); in testOne()
[all …]
/external/chromium-trace/catapult/tracing/test_data/
Dsimple_trace_gz.gz ... PERF", "pid": 22630, "tid": 22630, "ts": 826, "ph": "C", 3 "name": ...
/external/libxml2/os400/
Dtranscode.c56 char * ts; in xmlTranscodeResult() local
67 ts = (char *) NULL; in xmlTranscodeResult()
78 err = !(ts = xmlMalloc(4 * l + 4)); in xmlTranscodeResult()
80 dstp = ts; in xmlTranscodeResult()
105 ts = xmlRealloc(ts, (dstp - ts) + 4); in xmlTranscodeResult()
107 ret = (const char *) ts; in xmlTranscodeResult()
108 ts = (char *) NULL; in xmlTranscodeResult()
112 (xmlChar *) ts, dstp - ts + 1); in xmlTranscodeResult()
116 if (ts) in xmlTranscodeResult()
117 xmlFree(ts); in xmlTranscodeResult()
[all …]
/external/chromium-trace/catapult/telemetry/telemetry/web_perf/metrics/
Drendering_frame_unittest.py33 def AddSendEvent(self, ts=0, duration=1): argument
36 RenderingFrame.send_begin_frame_event, ts, duration)
39 def AddBeginMainFrameEvent(self, ts=0, duration=1): argument
41 RenderingFrame.begin_main_frame_event, ts, duration)
47 def _CreateEvent(self, event_name, ts, duration): argument
48 event = tracing_slice.Slice(None, 'cc,benchmark', event_name, ts,
65 d.AddSendEvent(ts=10)
66 d.AddBeginMainFrameEvent(ts=20)
74 d.AddBeginMainFrameEvent(ts=10)
81 d.AddSendEvent(ts=10)
[all …]
/external/opencv3/modules/imgcodecs/test/
Dtest_grfmt.cpp140 ts->printf(cvtest::TS::LOG, "start reading big image\n"); in run()
141 Mat img = imread(string(ts->get_data_path()) + "readwrite/read.png"); in run()
142 ts->printf(cvtest::TS::LOG, "finish reading big image\n"); in run()
143 if (img.empty()) ts->set_failed_test_info(cvtest::TS::FAIL_INVALID_TEST_DATA); in run()
144 ts->printf(cvtest::TS::LOG, "start writing big image\n"); in run()
146 ts->printf(cvtest::TS::LOG, "finish writing big image\n"); in run()
150 ts->set_failed_test_info(cvtest::TS::FAIL_EXCEPTION); in run()
152 ts->set_failed_test_info(cvtest::TS::OK); in run()
190ts->printf(ts->LOG, "image type depth:%d channels:%d ext: %s\n", CV_8U, num_channels, ext_from… in run()
195 ts->printf(ts->LOG, "writing image : %s\n", img_path.c_str()); in run()
[all …]
/external/skia/src/pathops/
DSkAddIntersections.cpp283 SkIntersections ts; in AddIntersectTs() local
295 pts = ts.lineHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
297 debugShowLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
300 pts = ts.quadHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
302 debugShowQuadLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
305 pts = ts.conicHorizontal(wn.pts(), wn.weight(), wt.left(), in AddIntersectTs()
307 debugShowConicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
310 pts = ts.cubicHorizontal(wn.pts(), wt.left(), in AddIntersectTs()
312 debugShowCubicLineIntersection(pts, wn, wt, ts); in AddIntersectTs()
324 pts = ts.lineVertical(wn.pts(), wt.top(), in AddIntersectTs()
[all …]
/external/v8/src/base/platform/
Dtime.cc103 TimeDelta TimeDelta::FromMachTimespec(struct mach_timespec ts) { in FromMachTimespec() argument
104 DCHECK_GE(ts.tv_nsec, 0); in FromMachTimespec()
105 DCHECK_LT(ts.tv_nsec, in FromMachTimespec()
107 return TimeDelta(ts.tv_sec * Time::kMicrosecondsPerSecond + in FromMachTimespec()
108 ts.tv_nsec / Time::kNanosecondsPerMicrosecond); in FromMachTimespec()
113 struct mach_timespec ts; in ToMachTimespec() local
115 ts.tv_sec = static_cast<unsigned>(delta_ / Time::kMicrosecondsPerSecond); in ToMachTimespec()
116 ts.tv_nsec = (delta_ % Time::kMicrosecondsPerSecond) * in ToMachTimespec()
118 return ts; in ToMachTimespec()
126 TimeDelta TimeDelta::FromTimespec(struct timespec ts) { in FromTimespec() argument
[all …]
/external/toybox/toys/posix/
Dtouch.c39 struct timespec ts[2]; local
44 ts[0].tv_nsec = UTIME_NOW;
50 localtime_r(&(ts->tv_sec), &tm);
62 localtime_r(&(ts->tv_sec), &tm);
65 ts->tv_nsec = 0;
67 sscanf(s, ".%lu%n", &ts->tv_nsec, &len);
83 ts->tv_nsec = 0;
85 sscanf(s += len, "%lu%n", &ts->tv_nsec, &len);
91 if (ts->tv_nsec > 999999999) s = 0;
92 else while (len++ < 10) ts->tv_nsec *= 10;
[all …]
/external/opencv3/modules/features2d/test/
Dtest_matchers_algorithmic.cpp95ts->printf( cvtest::TS::LOG, "match() on empty descriptors must not generate exception (1).\n" ); in emptyDataTest()
96 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
105ts->printf( cvtest::TS::LOG, "knnMatch() on empty descriptors must not generate exception (1).\n" … in emptyDataTest()
106 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
115ts->printf( cvtest::TS::LOG, "radiusMatch() on empty descriptors must not generate exception (1).\… in emptyDataTest()
116 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
125 ts->printf( cvtest::TS::LOG, "add() on empty descriptors must not generate exception.\n" ); in emptyDataTest()
126 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
135ts->printf( cvtest::TS::LOG, "match() on empty descriptors must not generate exception (2).\n" ); in emptyDataTest()
136 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
[all …]
Dtest_detectors_regression.cpp86 ts->printf( cvtest::TS::LOG, "detect() on empty image must not generate exception (1).\n" ); in emptyDataTest()
87 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
92ts->printf( cvtest::TS::LOG, "detect() on empty image must return empty keypoints vector (1).\n" ); in emptyDataTest()
93 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
106ts->printf( cvtest::TS::LOG, "detect() on empty image vector must not generate exception (2).\n" ); in emptyDataTest()
107 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in emptyDataTest()
135ts->printf( cvtest::TS::LOG, "Bad keypoints count ratio (validCount = %d, calcCount = %d).\n", in compareKeypointSets()
137 ts->set_failed_test_info( cvtest::TS::FAIL_INVALID_OUTPUT ); in compareKeypointSets()
163 ts->printf( cvtest::TS::LOG, "badPointCount = %d; validPointCount = %d; calcPointCount = %d\n", in compareKeypointSets()
167 ts->printf( cvtest::TS::LOG, " - Bad accuracy!\n" ); in compareKeypointSets()
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_tss.c135 SVGA3dTextureState *ts; in update_tss_binding() local
138 &ts, in update_tss_binding()
145 ts[i].stage = queue.bind[i].unit; in update_tss_binding()
146 ts[i].name = SVGA3D_TS_BIND_TEXTURE; in update_tss_binding()
155 &ts[i].value, in update_tss_binding()
204 SVGA3dTextureState *ts; in svga_reemit_tss_bindings() local
207 &ts, in svga_reemit_tss_bindings()
216 ts[i].stage = queue.bind[i].unit; in svga_reemit_tss_bindings()
217 ts[i].name = SVGA3D_TS_BIND_TEXTURE; in svga_reemit_tss_bindings()
222 &ts[i].value, in svga_reemit_tss_bindings()
[all …]
/external/opencv3/3rdparty/include/ffmpeg_/libavutil/
Dtimestamp.h39 static inline char *av_ts_make_string(char *buf, int64_t ts) in av_ts_make_string() argument
41 if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); in av_ts_make_string()
42 else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%"PRId64, ts); in av_ts_make_string()
50 #define av_ts2str(ts) av_ts_make_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts) argument
61 static inline char *av_ts_make_time_string(char *buf, int64_t ts, AVRational *tb) in av_ts_make_time_string() argument
63 if (ts == AV_NOPTS_VALUE) snprintf(buf, AV_TS_MAX_STRING_SIZE, "NOPTS"); in av_ts_make_time_string()
64 else snprintf(buf, AV_TS_MAX_STRING_SIZE, "%.6g", av_q2d(*tb) * ts); in av_ts_make_time_string()
72 #define av_ts2timestr(ts, tb) av_ts_make_time_string((char[AV_TS_MAX_STRING_SIZE]){0}, ts, tb) argument
/external/e2fsprogs/debugfs/
Dutil.c215 struct tm ts; in string_to_time() local
229 memset(&ts, 0, sizeof(ts)); in string_to_time()
231 strptime(arg, "%Y%m%d%H%M%S", &ts); in string_to_time()
233 sscanf(arg, "%4d%2d%2d%2d%2d%2d", &ts.tm_year, &ts.tm_mon, in string_to_time()
234 &ts.tm_mday, &ts.tm_hour, &ts.tm_min, &ts.tm_sec); in string_to_time()
235 ts.tm_year -= 1900; in string_to_time()
236 ts.tm_mon -= 1; in string_to_time()
237 if (ts.tm_year < 0 || ts.tm_mon < 0 || ts.tm_mon > 11 || in string_to_time()
238 ts.tm_mday < 0 || ts.tm_mday > 31 || ts.tm_hour > 23 || in string_to_time()
239 ts.tm_min > 59 || ts.tm_sec > 61) in string_to_time()
[all …]

12345678910>>...31