| /external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/ |
| D | HlsMultivariantPlaylistParserTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 22 import androidx.test.ext.junit.runners.AndroidJUnit4; 36 import org.junit.Test; 39 /** Test for {@link HlsMultivariantPlaylist}. */ 43 private static final String PLAYLIST_URI = "https://example.com/test.m3u8"; 48 + "#EXT-X-STREAM-INF:BANDWIDTH=1280000," 52 + "#EXT-X-STREAM-INF:BANDWIDTH=1280000,CODECS=\"mp4a.40.2 , avc1.66.30 \"\n" 55 + "#EXT-X-STREAM-INF:BANDWIDTH=2560000,FRAME-RATE=25,RESOLUTION=384x160\n" 58 + "#EXT-X-STREAM-INF:BANDWIDTH=7680000,FRAME-RATE=29.997\n" 61 + "#EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS=\"mp4a.40.5\"\n" [all …]
|
| /external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/hls/src/test/java/com/google/android/exoplayer2/source/hls/playlist/ |
| D | HlsMultivariantPlaylistParserTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 22 import androidx.test.ext.junit.runners.AndroidJUnit4; 36 import org.junit.Test; 39 /** Test for {@link HlsMultivariantPlaylist}. */ 43 private static final String PLAYLIST_URI = "https://example.com/test.m3u8"; 48 + "#EXT-X-STREAM-INF:BANDWIDTH=1280000," 52 + "#EXT-X-STREAM-INF:BANDWIDTH=1280000,CODECS=\"mp4a.40.2 , avc1.66.30 \"\n" 55 + "#EXT-X-STREAM-INF:BANDWIDTH=2560000,FRAME-RATE=25,RESOLUTION=384x160\n" 58 + "#EXT-X-STREAM-INF:BANDWIDTH=7680000,FRAME-RATE=29.997\n" 61 + "#EXT-X-STREAM-INF:BANDWIDTH=65000,CODECS=\"mp4a.40.5\"\n" [all …]
|
| /external/rust/crates/grpcio-sys/grpc/third_party/xds/proposals/ |
| D | TP2-dynamically-generated-cacheable-xds-resources.md | 2 ---- 6 * Last updated: 2022-02-09 14 [xRFC TP1](TP1-xds-transport-next.md)), the mechanism described in 24 There are many use-cases where a control plane may need to 32 https://cloud.google.com/traffic-director/docs/configure-advanced-traffic-management#config-filteri… 35 The new xDS naming scheme described in [xRFC TP1](TP1-xds-transport-next.md) 41 - Dynamic context parameters are viral, spreading from a given resource 43 multiple variants of an EDS resource are needed, there need to be two 53 complexity to xDS servers, which need to construct the right variants 56 - In the new xDS naming scheme, context parameters are exact-match-only. [all …]
|
| /external/crosvm/base/base_event_token_derive/src/ |
| D | tests.rs | 2 // Use of this source code is governed by a BSD-style license that can be 9 #[test] 11 let mut variants = vec![parse_quote!(A)]; in test_variant_bits() localVariable 12 assert_eq!(crate::variant_bits(&variants), 0); in test_variant_bits() 14 variants.push(parse_quote!(B)); in test_variant_bits() 15 variants.push(parse_quote!(C)); in test_variant_bits() 16 assert_eq!(crate::variant_bits(&variants), 2); in test_variant_bits() 19 variants.push(parse_quote!(Dynamic)); in test_variant_bits() 21 assert_eq!(crate::variant_bits(&variants), 10); in test_variant_bits() 23 variants.push(parse_quote!(OneMore)); in test_variant_bits() [all …]
|
| /external/ltp/testcases/kernel/syscalls/clock_settime/ |
| D | clock_settime01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Basic test for clock_settime(2) on REALTIME clock: 13 * Restore wall clock at the end of test. 27 static struct time64_variants variants[] = { variable 41 begin->type = change->type = end->type = variants[tst_variant].ts_type; in setup() 42 tst_res(TINFO, "Testing variant: %s", variants[tst_variant].desc); in setup() 49 ret = tv->clock_gettime(CLOCK_REALTIME, tst_ts_get(ts)); in do_clock_gettime() 50 if (ret == -1) in do_clock_gettime() 56 struct time64_variants *tv = &variants[tst_variant]; in verify_clock_settime() 59 /* test 01: move forward */ in verify_clock_settime() [all …]
|
| D | clock_settime03.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 static struct time64_variants variants[] = { variable 33 struct time64_variants *tv = &variants[tst_variant]; in setup() 35 tst_res(TINFO, "Testing variant: %s", tv->desc); in setup() 36 start.type = end.type = its.type = tv->ts_type; in setup() 39 if (tv->ts_type == TST_KERN_OLD_TIMESPEC && in setup() 41 tst_brk(TCONF, "Not Y2038 safe to run test"); in setup() 47 struct time64_variants *tv = &variants[tst_variant]; in run() 62 TEST(tst_syscall(__NR_timer_create, CLOCK_REALTIME, &ev, &timer)); in run() 69 ret = tv->clock_settime(CLOCK_REALTIME, tst_ts_get(&start)); in run() [all …]
|
| /external/vixl/tools/test_generator/ |
| D | generator.py | 66 Remove variants in `variant_to_exclude` from operands with type `type_name`. 72 # Remove the intersection of the existing variants and variants we do not 74 for variant in set(operand.variants) & set(variant_to_exclude): 75 operand.variants.remove(variant) 109 Object representation of a test case, as described in JSON. This object is 114 name Name of the test case, it is used to name the array to 117 operand_names List of operand names this test case covers. 118 input_names List of input names this test case covers. 124 instruction under test to be valid. This member is a string 154 The algorithm used is a simple product of all operand variants. To limit [all …]
|
| /external/ltp/testcases/kernel/syscalls/timerfd/ |
| D | timerfd_gettime01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 21 static int bad_clockfd = -1; 36 static struct time64_variants variants[] = { variable 48 tst_res(TINFO, "Testing variant: %s", variants[tst_variant].desc); in setup() 52 if (clockfd == -1) { in setup() 71 struct time64_variants *tv = &variants[tst_variant]; in run() 72 struct test_case_t *test = &test_cases[n]; in run() local 75 if (test->exp_errno == EFAULT) in run() 78 its = tst_its_get(test->curr_value); in run() 80 TEST(tv->tfd_gettime(*test->fd, its)); in run() [all …]
|
| D | timerfd_settime01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 20 static int bad_clockfd = -1; 34 {&clockfd, -1, NULL, EINVAL}, 39 static struct time64_variants variants[] = { variable 51 struct time64_variants *tv = &variants[tst_variant]; in setup() 53 tst_res(TINFO, "Testing variant: %s", tv->desc); in setup() 55 new_value.type = tv->ts_type; in setup() 58 if (clockfd == -1) { in setup() 77 struct time64_variants *tv = &variants[tst_variant]; in run() 78 struct test_case_t *test = &test_cases[n]; in run() local [all …]
|
| D | timerfd01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * timerfd() test by Davide Libenzi (test app for timerfd) 9 * Test timerfd with the flags: 32 static struct time64_variants variants[] = { variable 44 struct time64_variants *tv = &variants[tst_variant]; in getustime() 45 struct tst_ts tp = {.type = tv->ts_type, }; in getustime() 47 if (tv->clock_gettime((clockid_t) clockid, tst_ts_get(&tp))) { in getustime() 58 struct time64_variants *tv = &variants[tst_variant]; in settime() 63 if (tv->tfd_settime(tfd, tflags, tst_its_get(tmr), NULL)) in settime() 75 if (poll(&pfd, 1, -1) < 0) { in waittmr() [all …]
|
| /external/ltp/testcases/kernel/syscalls/futex/ |
| D | futex_wake03.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 16 static struct futex_test_variants variants[] = { variable 28 struct futex_test_variants *tv = &variants[tst_variant]; in do_child() 30 futex_wait(tv->fntype, futex, *futex, NULL, 0); in do_child() 36 struct futex_test_variants *tv = &variants[tst_variant]; in do_wake() 39 TEST(futex_wake(tv->fntype, futex, nr_children, 0)); in do_wake() 48 while (waitpid(-1, &res, WNOHANG) > 0) in do_wake() 67 struct futex_test_variants *tv = &variants[tst_variant]; in run() 83 TEST(futex_wake(tv->fntype, futex, 1, 0)); in run() 95 struct futex_test_variants *tv = &variants[tst_variant]; in setup() [all …]
|
| D | futex_wake02.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 static struct futex_test_variants variants[] = { variable 51 struct futex_test_variants *tv = &variants[tst_variant]; in threaded() 54 futex_wait(tv->fntype, &futex, futex, NULL, FUTEX_PRIVATE_FLAG); in threaded() 63 struct futex_test_variants *tv = &variants[tst_variant]; in do_child() 75 TEST(futex_wake(tv->fntype, &futex, i, FUTEX_PRIVATE_FLAG)); in do_child() 98 TEST(futex_wake(tv->fntype, &futex, 1, FUTEX_PRIVATE_FLAG)); in do_child() 113 * We do the real test in a child because with the test -i parameter the loop 132 struct futex_test_variants *tv = &variants[tst_variant]; in setup() 134 tst_res(TINFO, "Testing variant: %s", tv->desc); in setup() [all …]
|
| D | futex_wait01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 * 2. Test if FUTEX_WAIT op returns -EWOULDBLOCK if the futex value differs 32 static struct futex_test_variants variants[] = { variable 44 struct futex_test_variants *tv = &variants[tst_variant]; in run() 46 struct tst_ts to = tst_ts_from_ns(tv->tstype, 10000); in run() 49 res = futex_wait(tv->fntype, tc->f_addr, tc->f_val, &to, tc->opflags); in run() 51 if (res != -1) { in run() 56 if (errno != tc->exp_errno) { in run() 58 tst_strerrno(tc->exp_errno)); in run() 67 struct futex_test_variants *tv = &variants[tst_variant]; in setup() [all …]
|
| D | futex_cmp_requeue02.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * It's also a regression test for CVE-2018-6927: 30 {1, -1, FUTEX_INITIALIZER, EINVAL}, 31 {-1, 1, FUTEX_INITIALIZER, EINVAL}, 35 static struct futex_test_variants variants[] = { variable 47 struct futex_test_variants *tv = &variants[tst_variant]; in verify_futex_cmp_requeue() 50 TEST(futex_cmp_requeue(tv->fntype, &futexes[0], tc->exp_val, in verify_futex_cmp_requeue() 51 &futexes[1], tc->set_wakes, tc->set_requeues, 0)); in verify_futex_cmp_requeue() 52 if (TST_RET != -1) { in verify_futex_cmp_requeue() 57 if (TST_ERR != tc->exp_errno) { in verify_futex_cmp_requeue() [all …]
|
| /external/rust/crates/der_derive/src/ |
| D | choice.rs | 3 //! enum variants. 21 /// Variants of this `Choice`. 22 variants: Vec<ChoiceVariant>, field 27 pub fn new(input: DeriveInput) -> syn::Result<Self> { in new() 44 let variants = data in new() localVariable 45 .variants in new() 53 variants, in new() 58 pub fn to_tokens(&self) -> TokenStream { in to_tokens() 83 for variant in &self.variants { in to_tokens() 93 fn can_decode(tag: ::der::Tag) -> bool { in to_tokens() [all …]
|
| /external/bazelbuild-rules_rust/test/rustfmt/ |
| D | rustfmt_failure_test.sh | 8 set -euo pipefail 10 if [[ -z "${BUILD_WORKSPACE_DIRECTORY:-}" ]]; then 22 # ${2}: The target within "//test/rustfmt" to be tested. 25 echo -n "Testing ${2}... " 26 (bazel test //test/rustfmt:"${2}") || ret="$?" && true 27 if [[ "${ret}" -ne "${1}" ]]; then 28 …>&2 echo "FAIL: Unexpected return code [saw: ${ret}, want: ${1}] building target //test/rustfmt:${… 29 >&2 echo " Run \"bazel test //test/rustfmt:${2}\" to see the output" 37 local -r TEST_OK=0 38 local -r TEST_FAILED=3 [all …]
|
| /external/ltp/testcases/kernel/syscalls/chmod/ |
| D | chmod01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 29 } variants[] = { variable 38 struct variant *tc = &variants[tst_variant]; in verify_chmod() 40 TST_EXP_PASS(chmod(*tc->name, mode), "chmod(%s, %04o)", in verify_chmod() 41 *tc->name, mode); in verify_chmod() 46 SAFE_STAT(*tc->name, &stat_buf); in verify_chmod() 47 stat_buf.st_mode &= ~tc->mode_mask; in verify_chmod() 51 *tc->name, stat_buf.st_mode); in verify_chmod() 54 *tc->name, stat_buf.st_mode); in verify_chmod() 60 tst_res(TINFO, "Testing variant: %s", variants[tst_variant].desc); in setup() [all …]
|
| /external/libvpx/test/ |
| D | vp9_c_vs_simd_encode.sh | 5 ## Use of this source code is governed by a BSD-style license 23 # Clips used in test. 29 # Number of frames to test. 33 if [ -n "${TMPDIR}" ]; then 35 elif [ -n "${TEMPDIR}" ]; then 43 if ! mkdir -p "${VPX_TEST_OUTPUT_DIR}" || \ 44 [ ! -d "${VPX_TEST_OUTPUT_DIR}" ]; then 61 if [ ! -x "${tool_path}" ]; then 69 if [ ! -e "${YUV_RAW_INPUT}" ]; then 70 elog "libvpx test data must exist in LIBVPX_TEST_DATA_PATH." [all …]
|
| /external/ltp/testcases/kernel/syscalls/clock_gettime/ |
| D | clock_gettime04.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 * This test reports a s390x BUG which has been fixed in: 44 return -1; in do_vdso_gettime() 78 static struct time64_variants variants[] = { variable 126 for (j = 0; j < ARRAY_SIZE(variants); j++) { in run() 130 tv = &variants[j]; in run() 131 ts.type = tv->ts_type; in run() 133 /* Do gettimeofday() test only for CLOCK_REALTIME */ in run() 134 if (tv->clock_gettime == my_gettimeofday && clks[i] != CLOCK_REALTIME) in run() 137 ret = tv->clock_gettime(clks[i], tst_ts_get(&ts)); in run() [all …]
|
| /external/ltp/testcases/kernel/syscalls/clock_nanosleep/ |
| D | clock_nanosleep04.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 static struct time64_variants variants[] = { variable 33 tst_res(TINFO, "Testing variant: %s", variants[tst_variant].desc); in setup() 38 struct time64_variants *tv = &variants[tst_variant]; in do_test() 39 struct tst_ts ts = {.type = tv->ts_type}; in do_test() 41 TEST(tv->clock_gettime(tcase[i], tst_ts_get(&ts))); in do_test() 42 if (TST_RET == -1) { in do_test() 50 TEST(tv->clock_nanosleep(tcase[i], TIMER_ABSTIME, tst_ts_get(&ts), NULL)); in do_test() 61 static struct tst_test test = { variable 63 .test = do_test, [all …]
|
| /external/ltp/testcases/kernel/syscalls/timer_gettime/ |
| D | timer_gettime01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 static struct time64_variants variants[] = { variable 34 tst_res(TINFO, "Testing variant: %s", variants[tst_variant].desc); in setup() 40 TEST(tst_syscall(__NR_timer_create, CLOCK_REALTIME, &ev, &timer)); in setup() 50 struct time64_variants *tv = &variants[tst_variant]; in verify() 51 struct tst_its spec = {.type = tv->ts_type, }; in verify() 53 TEST(tv->timer_gettime(timer, tst_its_get(&spec))); in verify() 66 TEST(tv->timer_gettime((kernel_timer_t)-1, tst_its_get(&spec))); in verify() 67 if (TST_RET == -1 && TST_ERR == EINVAL) in verify() 68 tst_res(TPASS, "timer_gettime(-1) Failed: EINVAL"); in verify() [all …]
|
| /external/ltp/lib/ |
| D | README.md | 1 # Test library design document 3 ## High-level picture 6 +----------------------------+ 11 | for_each_filesystem | test process 12 | fork_testrun ------------->+--------------------------------------------+ 15 | | | tst_test->setup | 17 | | | tst_test->test(i) or tst_test->test_all | 19 | | | tst_test->cleanup | 21 | do_exit | +--------------------------------------------+ 24 +----------------------------+ [all …]
|
| /external/mesa3d/src/panfrost/compiler/ |
| D | bifrost_isa.py | 180 variants = [] 183 variants = [[None, common]] 194 variants.append([cond, variant]) 196 return variants 218 # Expand out an opcode name to something C-escaped 232 for ((test, desc), i) in zip(c, range(len(c))): 236 out[name] = (ins, test if test is not None else [], desc) 254 # Converstions to integers default to rounding-to-zero 257 # 8-bit int to float is exact 264 variants = sum(variant_objs, []) [all …]
|
| /external/ltp/testcases/kernel/syscalls/io_pgetevents/ |
| D | io_pgetevents01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Basic io_pgetevents() test to receive 1 event successfully. 16 static struct time64_variants variants[] = { variable 28 tst_res(TINFO, "Testing variant: %s", variants[tst_variant].desc); in setup() 33 struct time64_variants *tv = &variants[tst_variant]; in run() 37 struct tst_ts to = tst_ts_from_ns(tv->ts_type, 10000); in run() 48 TEST(io_setup(1, &ctx)); in run() 49 if (TST_RET == -ENOSYS) in run() 59 ret = tv->io_pgetevents(ctx, 1, 1, events, tst_ts_get(&to), &sigmask); in run() 72 static struct tst_test test = { variable [all …]
|
| /external/ltp/testcases/kernel/syscalls/sched_rr_get_interval/ |
| D | sched_rr_get_interval01.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Gets round-robin time quantum by calling sched_rr_get_interval() and 12 * It is also a regression test for: 14 …* - 975e155ed873 (sched/rt: Show the 'sched_rr_timeslice' SCHED_RR timeslice tuning knob in millis… 15 * - c7fcb99877f9 ( sched/rt: Fix sysctl_sched_rr_timeslice intial value) 27 static struct time64_variants variants[] = { variable 41 struct time64_variants *tv = &variants[tst_variant]; in setup() 44 tst_res(TINFO, "Testing variant: %s", tv->desc); in setup() 46 tp.type = tv->ts_type; in setup() 48 if ((sys_sched_setscheduler(0, SCHED_RR, &p)) == -1) in setup() [all …]
|