Home
last modified time | relevance | path

Searched refs:shuffled (Results 1 – 25 of 52) sorted by relevance

123

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DShuffleOrder.java35 private final int[] shuffled; field in ShuffleOrder.DefaultShuffleOrder
73 private DefaultShuffleOrder(int[] shuffled, Random random) { in DefaultShuffleOrder() argument
74 this.shuffled = shuffled; in DefaultShuffleOrder()
76 this.indexInShuffled = new int[shuffled.length]; in DefaultShuffleOrder()
77 for (int i = 0; i < shuffled.length; i++) { in DefaultShuffleOrder()
78 indexInShuffled[shuffled[i]] = i; in DefaultShuffleOrder()
84 return shuffled.length; in getLength()
90 return ++shuffledIndex < shuffled.length ? shuffled[shuffledIndex] : C.INDEX_UNSET; in getNextIndex()
96 return --shuffledIndex >= 0 ? shuffled[shuffledIndex] : C.INDEX_UNSET; in getPreviousIndex()
101 return shuffled.length > 0 ? shuffled[shuffled.length - 1] : C.INDEX_UNSET; in getLastIndex()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DLoopingMediaSourceTest.java54 for (boolean shuffled : new boolean[] {false, true}) { in singleLoopTimeline()
56 timeline, Player.REPEAT_MODE_OFF, shuffled, C.INDEX_UNSET, 0, 1); in singleLoopTimeline()
58 timeline, Player.REPEAT_MODE_ONE, shuffled, 0, 1, 2); in singleLoopTimeline()
60 timeline, Player.REPEAT_MODE_ALL, shuffled, 2, 0, 1); in singleLoopTimeline()
62 timeline, Player.REPEAT_MODE_OFF, shuffled, 1, 2, C.INDEX_UNSET); in singleLoopTimeline()
63 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ONE, shuffled, 0, 1, 2); in singleLoopTimeline()
64 TimelineAsserts.assertNextWindowIndices(timeline, Player.REPEAT_MODE_ALL, shuffled, 1, 2, 0); in singleLoopTimeline()
73 for (boolean shuffled : new boolean[] {false, true}) { in multiLoopTimeline()
75 timeline, Player.REPEAT_MODE_OFF, shuffled, C.INDEX_UNSET, 0, 1, 2, 3, 4, 5, 6, 7, 8); in multiLoopTimeline()
77 timeline, Player.REPEAT_MODE_ONE, shuffled, 0, 1, 2, 3, 4, 5, 6, 7, 8); in multiLoopTimeline()
[all …]
/external/llvm-project/libcxx/test/std/algorithms/alg.modifying.operations/alg.random.shuffle/
Drandom_shuffle.pass.cpp33 int shuffled[] = {1, 2, 3, 4}; in test_with_iterator() local
36 std::random_shuffle(Iter(shuffled), Iter(shuffled+size)); in test_with_iterator()
37 assert(std::is_permutation(shuffled, shuffled+size, all_elements)); in test_with_iterator()
39 std::random_shuffle(Iter(shuffled), Iter(shuffled+size)); in test_with_iterator()
40 assert(std::is_permutation(shuffled, shuffled+size, all_elements)); in test_with_iterator()
/external/rust/crates/ahash/src/
Doperations.rs44 let shuffled: [u64; 2] = shuffle(base).convert(); in shuffle_and_add() localVariable
45 add_by_64s(shuffled, to_add.convert()).convert() in shuffle_and_add()
203 let shuffled: [u8; 16] = shuffle(value.convert()).convert(); in test_shuffle_contains_each_value() localVariable
205 assert!(shuffled.contains(&index), "Value is missing {}", index); in test_shuffle_contains_each_value()
214 let shuffled: [u8; 16] = shuffle(value.convert()).convert(); in test_shuffle_moves_every_value() localVariable
215 assert_eq!(0, shuffled[index], "Value is not moved {}", index); in test_shuffle_moves_every_value()
270 let mut shuffled = shuffle(numbered); in test_shuffle_does_not_loop() localVariable
273 assert_ne!(numbered, shuffled, "Equal after {} vs {:x}", count, shuffled); in test_shuffle_does_not_loop()
274 shuffled = shuffle(shuffled); in test_shuffle_does_not_loop()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_RandomShuffle.pbtxt6 The tensor to be shuffled.
12 A tensor of same shape and type as `value`, shuffled along its first
32 The tensor is shuffled along dimension 0, such that each `value[j]` is mapped
Dapi_def_RecordInput.pbtxt25 shuffled.
/external/junit/src/main/java/org/junit/runner/manipulation/
DOrdering.java40 List<Description> shuffled = new ArrayList<Description>(descriptions); in shuffledBy() local
41 Collections.shuffle(shuffled, random); in shuffledBy()
42 return shuffled; in shuffledBy()
/external/tensorflow/tensorflow/core/kernels/
Dreduction_ops_common.h224 Tensor shuffled;
227 &shuffled, alloc_attr));
229 &shuffled));
231 const int64 reduced = shuffled.NumElements() / unreduced;
232 const Tensor& const_shuffled = shuffled;
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DTimelineAsserts.java41 for (boolean shuffled : new boolean[] {false, true}) { in assertEmpty()
42 assertThat(timeline.getFirstWindowIndex(shuffled)).isEqualTo(C.INDEX_UNSET); in assertEmpty()
43 assertThat(timeline.getLastWindowIndex(shuffled)).isEqualTo(C.INDEX_UNSET); in assertEmpty()
/external/boringssl/src/util/
Dall_tests.go360 shuffled := make([]string, len(tests))
363 shuffled[i] = tests[j]
367 for i := 0; i < len(shuffled); i += testsPerShard {
368 n := len(shuffled) - i
373 shard.Cmd = []string{shard.Cmd[0], "--gtest_filter=" + strings.Join(shuffled[i:i+n], ":")}
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/actors/
DConcurrentStatefulActorBenchmark.kt94 computations.shuffled() in requestorActorUnfair()
122 computations.shuffled() in requestorActorFair()
/external/llvm/test/MC/Hexagon/
Ddcfetch.s3 # Check that DCFETCH is correctly shuffled.
/external/llvm-project/llvm/test/MC/Hexagon/
Ddcfetch.s3 # Check that DCFETCH is correctly shuffled.
/external/swiftshader/tests/regres/deqp/
Ddeqp.go207 shuffled := make([]string, len(list.Tests))
209 shuffled[i] = list.Tests[j]
213 for _, t := range shuffled {
/external/deqp/modules/gles2/scripts/
Dgen-conversions.py277 return [shuffled(inner) for inner in outer]
287 comps = [shuffled(values) for values in comps]
/external/mesa3d/src/intel/compiler/
Dbrw_vec4_visitor.cpp1396 dst_reg shuffled = dst_reg(this, glsl_type::dvec4_type); in emit_scratch_read() local
1397 dst_reg shuffled_float = retype(shuffled, BRW_REGISTER_TYPE_F); in emit_scratch_read()
1403 shuffle_64bit_data(temp, src_reg(shuffled), false, block, last_read); in emit_scratch_read()
1446 dst_reg shuffled = dst_reg(this, alloc_type); in emit_scratch_write() local
1448 shuffle_64bit_data(shuffled, temp, true, block, inst); in emit_scratch_write()
1449 src_reg shuffled_float = src_reg(retype(shuffled, BRW_REGISTER_TYPE_F)); in emit_scratch_write()
/external/deqp/modules/gles3/scripts/
Dgen-conversions.py303 return [shuffled(inner) for inner in outer]
313 comps = [shuffled(values) for values in comps]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64Schedule.td92 // Store a shuffled vector.
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64Schedule.td92 // Store a shuffled vector.
/external/llvm/lib/Target/AArch64/
DAArch64Schedule.td104 // Store a shuffled vector.
/external/tensorflow/tensorflow/python/keras/engine/
Dtraining_utils_v1_test.py189 shuffled = training_utils_v1.verify_dataset_shuffled(dataset)
192 self.assertFalse(shuffled)
/external/llvm/test/CodeGen/X86/
Dextractelement-load.ll80 ; Case where a load is unary shuffled, then bitcast (to a type with the same
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_ops_helpers.inc317 SmallVector<Attribute, 8> shuffled(values.size());
321 shuffled[i * inner_size + j] = values[permutation[i] * inner_size + j];
325 return ArrayAttr::get(attr.getContext(), shuffled);
/external/llvm-project/llvm/test/CodeGen/X86/
Dextractelement-load.ll79 ; Case where a load is unary shuffled, then bitcast (to a type with the same
/external/ltp/doc/
Dstyle-guide.txt232 headers get shuffled around a lot more than their +sys/+ counterparts it

123