/external/strace/tests/ |
D | clock_nanosleep.c | 50 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 …]
|
D | nanosleep.c | 48 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 …]
|
D | utimensat.c | 83 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 …]
|
D | clock_xettime.c | 44 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-m32/ |
D | clock_nanosleep.c | 50 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 …]
|
D | nanosleep.c | 48 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 …]
|
D | utimensat.c | 83 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 …]
|
D | clock_xettime.c | 44 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/ |
D | clock_nanosleep.c | 50 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 …]
|
D | nanosleep.c | 48 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 …]
|
D | utimensat.c | 83 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 …]
|
D | clock_xettime.c | 44 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/syzkaller/vendor/golang.org/x/net/internal/timeseries/ |
D | timeseries.go | 136 func (ts *timeSeries) init(resolutions []time.Duration, f func() Observable, numBuckets int, clock … 137 ts.provider = f 138 ts.numBuckets = numBuckets 139 ts.clock = clock 140 ts.levels = make([]*tsLevel, len(resolutions)) 148 newLevel.InitLevel(resolutions[i], ts.numBuckets, ts.provider) 149 ts.levels[i] = newLevel 152 ts.Clear() 156 func (ts *timeSeries) Clear() { 157 ts.lastAdd = time.Time{} [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_structmembers.py | 14 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/webrtc/webrtc/modules/audio_processing/transient/ |
D | transient_suppressor_unittest.cc | 21 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/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_point_sprite.c | 116 struct psprite_transform_context *ts = psprite_transform_context(ctx); in psprite_decl() local 120 ts->point_size_in = decl->Range.First; in psprite_decl() 123 ts->point_pos_in = decl->Range.First; in psprite_decl() 128 ts->point_size_out = decl->Range.First; in psprite_decl() 131 ts->point_pos_out = decl->Range.First; in psprite_decl() 135 ts->point_coord_decl |= 1 << decl->Semantic.Index; in psprite_decl() 136 ts->max_generic = MAX2(ts->max_generic, (int)decl->Semantic.Index); in psprite_decl() 138 ts->num_out = MAX2(ts->num_out, decl->Range.Last + 1); in psprite_decl() 141 ts->num_tmp = MAX2(ts->num_tmp, decl->Range.Last + 1); in psprite_decl() 144 ts->num_const = MAX2(ts->num_const, decl->Range.Last + 1); in psprite_decl() [all …]
|
/external/skia/src/compute/ts/ |
D | transform_stack.c | 106 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/skqp/src/compute/ts/ |
D | transform_stack.c | 106 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 …]
|
D | transform_stack.h | 66 ts_transform_stack_release(struct ts_transform_stack * const ts); 73 ts_transform_stack_save(struct ts_transform_stack * const ts); 76 ts_transform_stack_restore(struct ts_transform_stack * const ts, uint32_t const restore); 83 ts_transform_stack_top_transform(struct ts_transform_stack * const ts); 86 ts_transform_stack_top_weakref(struct ts_transform_stack * const ts); 93 ts_transform_stack_dup(struct ts_transform_stack * const ts); 96 ts_transform_stack_drop(struct ts_transform_stack * const ts); 103 ts_transform_stack_transform_xy(struct ts_transform_stack * const ts, 114 ts_transform_stack_push_matrix(struct ts_transform_stack * const ts, 126 ts_transform_stack_push_identity(struct ts_transform_stack * const ts); [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_structmembers.py | 13 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/chromium-trace/catapult/systrace/systrace/test_data/ |
D | profile-chrome_systrace_perf_chrome_data | 1 …ts": 196489505302, "cat": "toplevel", "tid": 13956, "ph": "X", "dur": 463}, {"tdur": 412, "name": …
|
/external/antlr/runtime/C/src/ |
D | antlr3tokenstream.c | 54 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/golang-protobuf/ptypes/ |
D | timestamp.go | 63 func validateTimestamp(ts *tspb.Timestamp) error { 64 if ts == nil { 67 if ts.Seconds < minValidSeconds { 68 return fmt.Errorf("timestamp: %v before 0001-01-01", ts) 70 if ts.Seconds >= maxValidSeconds { 71 return fmt.Errorf("timestamp: %v after 10000-01-01", ts) 73 if ts.Nanos < 0 || ts.Nanos >= 1e9 { 74 return fmt.Errorf("timestamp: %v: nanos not in range [0, 1e9)", ts) 90 func Timestamp(ts *tspb.Timestamp) (time.Time, error) { 94 if ts == nil { [all …]
|
/external/perfetto/test/trace_processor/ |
D | oom_query.sql | 3 SELECT ts, 4 LEAD(ts, 1, ts) OVER(PARTITION BY ref ORDER BY ts) - ts as dur, 12 select ts, 13 lead(ts, 1, ts) over(PARTITION by ref order by ts) - ts as dur, 21 select ts, 22 lead(ts, 1, ts) over(PARTITION by ref order by ts) - ts as dur, 35 SELECT ts, 48 SELECT ts, 58 WINDOW win AS (PARTITION BY upid ORDER BY ts); 66 SELECT ts, [all …]
|
/external/syzkaller/vendor/github.com/golang/protobuf/ptypes/ |
D | timestamp.go | 63 func validateTimestamp(ts *tspb.Timestamp) error { 64 if ts == nil { 67 if ts.Seconds < minValidSeconds { 68 return fmt.Errorf("timestamp: %v before 0001-01-01", ts) 70 if ts.Seconds >= maxValidSeconds { 71 return fmt.Errorf("timestamp: %v after 10000-01-01", ts) 73 if ts.Nanos < 0 || ts.Nanos >= 1e9 { 74 return fmt.Errorf("timestamp: %v: nanos not in range [0, 1e9)", ts) 90 func Timestamp(ts *tspb.Timestamp) (time.Time, error) { 94 if ts == nil { [all …]
|