Home
last modified time | relevance | path

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

12345678910>>...88

/external/python/cpython3/Lib/test/
Dtest_graphlib.py10 def static_order_with_groups(ts): argument
11 ts.prepare()
12 while ts.is_active():
13 nodes = ts.get_ready()
15 ts.done(node)
18 ts = graphlib.TopologicalSorter(graph)
19 self.assertEqual(list(static_order_with_groups(ts)), list(expected))
21 ts = graphlib.TopologicalSorter(graph)
22 self.assertEqual(list(ts.static_order()), list(chain(*expected)))
25 ts = graphlib.TopologicalSorter()
[all …]
Dtest_structmembers.py14 ts=_test_structmembersType(False, # T_BOOL variable
32 ts.T_BOOL = True
33 self.assertEqual(ts.T_BOOL, True)
34 ts.T_BOOL = False
35 self.assertEqual(ts.T_BOOL, False)
36 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1)
39 ts.T_BYTE = CHAR_MAX
40 self.assertEqual(ts.T_BYTE, CHAR_MAX)
41 ts.T_BYTE = CHAR_MIN
42 self.assertEqual(ts.T_BYTE, CHAR_MIN)
[all …]
/external/strace/tests/
Dclock_nanosleep.c50 struct timespec ts; in main() member
53 .ts.tv_nsec = 0xc0de1, in main()
56 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
70 (long long) req.ts.tv_sec, in main()
71 zero_extend_signed_to_ull(req.ts.tv_nsec)); in main()
74 NULL, &rem.ts) == -1); in main()
76 " = -1 EFAULT (%m)\n", &rem.ts); in main()
79 &req.ts, &rem.ts) == 0); in main()
82 (long long) req.ts.tv_sec, in main()
[all …]
Dnanosleep.c48 struct timespec ts; in main() member
51 .ts.tv_nsec = 0xc0de1, in main()
54 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
61 if (nanosleep(&req.ts, NULL)) in main()
64 (long long) req.ts.tv_sec, in main()
65 zero_extend_signed_to_ull(req.ts.tv_nsec)); in main()
67 assert(nanosleep(NULL, &rem.ts) == -1); in main()
68 printf("nanosleep(NULL, %p) = -1 EFAULT (%m)\n", &rem.ts); in main()
70 if (nanosleep(&req.ts, &rem.ts)) in main()
73 (long long) req.ts.tv_sec, in main()
[all …]
Dutimensat.c83 print_ts(const struct timespec *ts) in print_ts() argument
85 printf("{tv_sec=%lld, tv_nsec=%llu}", (long long) ts->tv_sec, in print_ts()
86 zero_extend_signed_to_ull(ts->tv_nsec)); in print_ts()
87 print_time_t_nsec(ts->tv_sec, in print_ts()
88 zero_extend_signed_to_ull(ts->tv_nsec), 1); in print_ts()
116 struct timespec *const ts = tail_alloc(sizeof(*ts) * 2); in main() local
153 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 1), 0); in main()
155 qname, ts + 1, errstr); in main()
157 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 2), 0); in main()
159 " = %s\n", qname, ts + 2, errstr); in main()
[all …]
/external/strace/tests-m32/
Dclock_nanosleep.c50 struct timespec ts; in main() member
53 .ts.tv_nsec = 0xc0de1, in main()
56 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
70 (long long) req.ts.tv_sec, in main()
71 zero_extend_signed_to_ull(req.ts.tv_nsec)); in main()
74 NULL, &rem.ts) == -1); in main()
76 " = -1 EFAULT (%m)\n", &rem.ts); in main()
79 &req.ts, &rem.ts) == 0); in main()
82 (long long) req.ts.tv_sec, in main()
[all …]
Dnanosleep.c48 struct timespec ts; in main() member
51 .ts.tv_nsec = 0xc0de1, in main()
54 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
61 if (nanosleep(&req.ts, NULL)) in main()
64 (long long) req.ts.tv_sec, in main()
65 zero_extend_signed_to_ull(req.ts.tv_nsec)); in main()
67 assert(nanosleep(NULL, &rem.ts) == -1); in main()
68 printf("nanosleep(NULL, %p) = -1 EFAULT (%m)\n", &rem.ts); in main()
70 if (nanosleep(&req.ts, &rem.ts)) in main()
73 (long long) req.ts.tv_sec, in main()
[all …]
Dutimensat.c83 print_ts(const struct timespec *ts) in print_ts() argument
85 printf("{tv_sec=%lld, tv_nsec=%llu}", (long long) ts->tv_sec, in print_ts()
86 zero_extend_signed_to_ull(ts->tv_nsec)); in print_ts()
87 print_time_t_nsec(ts->tv_sec, in print_ts()
88 zero_extend_signed_to_ull(ts->tv_nsec), 1); in print_ts()
116 struct timespec *const ts = tail_alloc(sizeof(*ts) * 2); in main() local
153 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 1), 0); in main()
155 qname, ts + 1, errstr); in main()
157 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 2), 0); in main()
159 " = %s\n", qname, ts + 2, errstr); in main()
[all …]
Dclock_xettime.c44 struct timespec ts; in main() member
51 if (syscall(__NR_clock_getres, CLOCK_REALTIME, &t.ts)) in main()
55 (long long) t.ts.tv_sec, in main()
56 zero_extend_signed_to_ull(t.ts.tv_nsec)); in main()
58 if (syscall(__NR_clock_gettime, CLOCK_PROCESS_CPUTIME_ID, &t.ts)) in main()
62 (long long) t.ts.tv_sec, in main()
63 zero_extend_signed_to_ull(t.ts.tv_nsec)); in main()
65 t.ts.tv_sec = 0xdeface1; in main()
66 t.ts.tv_nsec = 0xdeface2; in main()
67 rc = syscall(__NR_clock_settime, CLOCK_THREAD_CPUTIME_ID, &t.ts); in main()
[all …]
/external/strace/tests-mx32/
Dclock_nanosleep.c50 struct timespec ts; in main() member
53 .ts.tv_nsec = 0xc0de1, in main()
56 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
66 if (syscall(__NR_clock_nanosleep, CLOCK_REALTIME, 0, &req.ts, NULL)) in main()
70 (long long) req.ts.tv_sec, in main()
71 zero_extend_signed_to_ull(req.ts.tv_nsec)); in main()
74 NULL, &rem.ts) == -1); in main()
76 " = -1 EFAULT (%m)\n", &rem.ts); in main()
79 &req.ts, &rem.ts) == 0); in main()
82 (long long) req.ts.tv_sec, in main()
[all …]
Dnanosleep.c48 struct timespec ts; in main() member
51 .ts.tv_nsec = 0xc0de1, in main()
54 .ts = { .tv_sec = 0xc0de2, .tv_nsec = 0xc0de3 }, in main()
61 if (nanosleep(&req.ts, NULL)) in main()
64 (long long) req.ts.tv_sec, in main()
65 zero_extend_signed_to_ull(req.ts.tv_nsec)); in main()
67 assert(nanosleep(NULL, &rem.ts) == -1); in main()
68 printf("nanosleep(NULL, %p) = -1 EFAULT (%m)\n", &rem.ts); in main()
70 if (nanosleep(&req.ts, &rem.ts)) in main()
73 (long long) req.ts.tv_sec, in main()
[all …]
Dutimensat.c83 print_ts(const struct timespec *ts) in print_ts() argument
85 printf("{tv_sec=%lld, tv_nsec=%llu}", (long long) ts->tv_sec, in print_ts()
86 zero_extend_signed_to_ull(ts->tv_nsec)); in print_ts()
87 print_time_t_nsec(ts->tv_sec, in print_ts()
88 zero_extend_signed_to_ull(ts->tv_nsec), 1); in print_ts()
116 struct timespec *const ts = tail_alloc(sizeof(*ts) * 2); in main() local
153 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 1), 0); in main()
155 qname, ts + 1, errstr); in main()
157 k_utimensat(kfdcwd, kfname, (uintptr_t) (ts + 2), 0); in main()
159 " = %s\n", qname, ts + 2, errstr); in main()
[all …]
/external/webrtc/modules/audio_processing/transient/
Dtransient_suppressor_unittest.cc21 TransientSuppressorImpl 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/python/cpython2/Lib/test/
Dtest_structmembers.py13 ts=_test_structmembersType(False, 1, 2, 3, 4, 5, 6, 7, 8, variable
19 ts.T_BOOL = True
20 self.assertEqual(ts.T_BOOL, True)
21 ts.T_BOOL = False
22 self.assertEqual(ts.T_BOOL, False)
23 self.assertRaises(TypeError, setattr, ts, 'T_BOOL', 1)
26 ts.T_BYTE = CHAR_MAX
27 self.assertEqual(ts.T_BYTE, CHAR_MAX)
28 ts.T_BYTE = CHAR_MIN
29 self.assertEqual(ts.T_BYTE, CHAR_MIN)
[all …]
/external/perfetto/src/trace_processor/metrics/chrome/
Drail_modes.sql51 MAX(ts + MAX(dur, 0)) AS ts field
54 ts,
61 ts,
76 slice.ts,
80 WHEN dur == -1 THEN max_ts_per_process.ts - slice.ts + 1
107 SELECT ts, dur, track_id,
119 SELECT s.ts,
124 SELECT ts,
125 LEAD(ts, 1, (SELECT MAX(ts + dur) FROM rail_mode_slices)) OVER (
126 ORDER BY ts
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_point_sprite.c116 struct psprite_transform_context *ts = psprite_transform_context(ctx); in psprite_decl() local
121 ts->point_size_in = decl->Range.First; in psprite_decl()
124 ts->point_pos_in = decl->Range.First; in psprite_decl()
129 ts->point_size_out = decl->Range.First; in psprite_decl()
132 ts->point_pos_out = decl->Range.First; in psprite_decl()
136 ts->point_coord_decl |= 1 << decl->Semantic.Index; in psprite_decl()
137 ts->max_generic = MAX2(ts->max_generic, (int)decl->Semantic.Index); in psprite_decl()
139 ts->num_out = MAX2(ts->num_out, range_end); in psprite_decl()
142 ts->num_tmp = MAX2(ts->num_tmp, range_end); in psprite_decl()
145 ts->num_const = MAX2(ts->num_const, range_end); in psprite_decl()
[all …]
/external/skqp/src/compute/ts/
Dtransform_stack.c106 ts_transform_stack_resize(struct ts_transform_stack * const ts, uint32_t const size) in ts_transform_stack_resize() argument
108 ts->size = size; in ts_transform_stack_resize()
109 ts->weakrefs = realloc(ts->weakrefs, size * sizeof(*ts->weakrefs)); in ts_transform_stack_resize()
110 ts->transforms = realloc(ts->transforms,size * sizeof(*ts->transforms)); in ts_transform_stack_resize()
115 ts_transform_stack_ensure(struct ts_transform_stack * const ts) in ts_transform_stack_ensure() argument
117 if (ts->count < ts->size) in ts_transform_stack_ensure()
121 ts_transform_stack_resize(ts,ts->size + max(ts->size/2,8)); in ts_transform_stack_ensure()
131 struct ts_transform_stack * ts = malloc(sizeof(*ts)); in ts_transform_stack_create() local
133 ts->size = size; in ts_transform_stack_create()
134 ts->count = 0; in ts_transform_stack_create()
[all …]
/external/perfetto/test/trace_processor/graphics/
Dandroid_jank.py21 def add_main_thread_atrace(trace, ts, ts_end, buf): argument
22 trace.add_atrace_begin(ts=ts, tid=PID, pid=PID, buf=buf)
23 trace.add_atrace_end(ts=ts_end, tid=PID, pid=PID)
26 def add_render_thread_atrace(trace, ts, ts_end, buf): argument
27 trace.add_atrace_begin(ts=ts, tid=RTID, pid=PID, buf=buf)
28 trace.add_atrace_end(ts=ts_end, tid=RTID, pid=PID)
35 ts=0, name="com.android.systemui", uid=10001, version_code=1)
37 ts=0,
55 ts=1_000_000, tid=1000, pid=1000, buf='Choreographer#doFrame')
56 trace.add_atrace_begin(ts=1_000_100, tid=1000, pid=1000, buf='traversal')
[all …]
Dandroid_sysui_cuj.py26 def add_main_thread_atrace(trace, ts, ts_end, buf): argument
27 trace.add_atrace_begin(ts=ts, tid=PID, pid=PID, buf=buf)
28 trace.add_atrace_end(ts=ts_end, tid=PID, pid=PID)
31 def add_render_thread_atrace(trace, ts, ts_end, buf): argument
32 trace.add_atrace_begin(ts=ts, tid=RTID, pid=PID, buf=buf)
33 trace.add_atrace_end(ts=ts_end, tid=RTID, pid=PID)
36 def add_gpu_thread_atrace(trace, ts, ts_end, buf): argument
37 trace.add_atrace_begin(ts=ts, tid=1666, pid=PID, buf=buf)
38 trace.add_atrace_end(ts=ts_end, tid=1666, pid=PID)
41 def add_jit_thread_atrace(trace, ts, ts_end, buf): argument
[all …]
Dframe_timeline_events.py50 trace.add_expected_display_frame_start_event(ts=20, cookie=1, token=2, pid=666)
51 trace.add_frame_end_event(ts=26, cookie=1)
52 trace.add_actual_display_frame_start_event(ts=20, cookie=2, token=2, pid=666, present_type=PresentT…
53 trace.add_frame_end_event(ts=26, cookie=2)
56 trace.add_expected_display_frame_start_event(ts=40, cookie=3, token=4, pid=666)
57 trace.add_frame_end_event(ts=46, cookie=3)
58 trace.add_actual_display_frame_start_event(ts=42, cookie=4, token=4, pid=666, present_type=PresentT…
59 trace.add_frame_end_event(ts=47, cookie=4)
60 trace.add_expected_surface_frame_start_event(ts=21, cookie=5, token=1, display_frame_token=4, pid=1…
61 trace.add_frame_end_event(ts=36, cookie=5)
[all …]
Dcomposer_execution.py25 trace.add_packet(ts=1)
32 trace.add_atrace_begin(ts=100, tid=10335, pid=10335, buf="onMessageRefresh")
33 trace.add_atrace_begin(ts=200, tid=10335, pid=10335, buf="HwcPresentOrValidateDisplay")
34 trace.add_atrace_end(ts=300, tid=10335, pid=10335)
35 trace.add_atrace_begin(ts=400, tid=10335, pid=10335, buf="HwcPresentDisplay")
36 trace.add_atrace_end(ts=500, tid=10335, pid=10335)
37 trace.add_atrace_end(ts=600, tid=10335, pid=10335)
40 trace.add_atrace_begin(ts=1_100, tid=10335, pid=10335, buf="onMessageRefresh")
41 trace.add_atrace_begin(ts=1_200, tid=10335, pid=10335, buf="HwcPresentOrValidateDisplay")
42 trace.add_atrace_end(ts=1_300, tid=10335, pid=10335)
[all …]
/external/perfetto/test/trace_processor/startup/
Dandroid_startup_breakdown.py21 def to_s(ts): argument
22 return ts * 1000 * 1000 * 1000
35 ts=to_s(102),
39 trace.add_atrace_end(ts=to_s(103), tid=2, pid=2)
42 ts=to_s(110), tid=2, pid=2, buf='launching: com.google.android.calendar')
45 ts=to_s(120), tid=2, pid=2, buf='Start proc: com.google.android.calendar')
46 trace.add_atrace_end(ts=to_s(155), tid=2, pid=2)
49 trace.add_atrace_begin(ts=to_s(125), tid=1, pid=1, buf='bindApplication')
50 trace.add_atrace_end(ts=to_s(195), tid=1, pid=1)
52 trace.add_atrace_begin(ts=to_s(185), tid=3, pid=3, buf='bindApplication')
[all …]
Dandroid_startup_attribution.py54 ts=LAUNCH_START_TS,
59 ts=LAUNCH_START_TS + 1, tid=SYSTEM_SERVER_TID, pid=SYSTEM_SERVER_PID)
63 ts=LAUNCH_START_TS + 2,
70 ts=150, pid=APP_PID, tid=APP_TID, buf='OpenDexFilesFromOat(something)')
71 trace.add_atrace_end(ts=165, pid=APP_PID, tid=APP_TID)
74 ts=170, pid=APP_PID, tid=APP_TID, buf='OpenDexFilesFromOat(something else)')
75 trace.add_atrace_end(ts=175, pid=APP_PID, tid=APP_TID)
79 ts=5, pid=APP_PID, tid=APP_TID, buf='OpenDexFilesFromOat(nothing)')
80 trace.add_atrace_end(ts=35, pid=APP_PID, tid=APP_TID)
83 ts=LAUNCH_END_TS,
[all …]
/external/perfetto/src/trace_processor/metrics/android/
Dandroid_batt.sql19 all_ts.ts as ts,
25 SELECT distinct(ts) AS ts
31 SELECT ts, value AS current_avg_ua
35 ) USING(ts)
37 SELECT ts, value AS capacity_percent
41 ) USING(ts)
43 SELECT ts, value AS charge_uah
47 ) USING(ts)
49 SELECT ts, value AS current_ua
53 ) USING(ts)
[all …]
/external/chromium-trace/catapult/systrace/systrace/test_data/
Dprofile-chrome_systrace_perf_chrome_data1ts": 196489505302, "cat": "toplevel", "tid": 13956, "ph": "X", "dur": 463}, {"tdur": 412, "name": …

12345678910>>...88