/external/protobuf/src/google/protobuf/ |
D | generated_message_reflection_unittest.cc | 74 TestUtil::ReflectionTester reflection_tester( in TEST() 98 TestUtil::ReflectionTester reflection_tester( in TEST() 102 TestUtil::ExpectAllFieldsSet(message); in TEST() 106 TestUtil::ExpectRepeatedFieldsModified(message); in TEST() 137 TestUtil::ReflectionTester reflection_tester( in TEST() 140 TestUtil::SetAllFields(&message); in TEST() 159 TestUtil::SetAllFields(&message1); in TEST() 164 TestUtil::ExpectClear(message1); in TEST() 165 TestUtil::ExpectAllFieldsSet(message2); in TEST() 172 TestUtil::SetAllFields(&message1); in TEST() [all …]
|
D | reflection_ops_unittest.cc | 55 TestUtil::SetAllFields(&message); in TEST() 56 TestUtil::ExpectAllFieldsSet(message); in TEST() 62 TestUtil::SetAllFields(&message); in TEST() 66 TestUtil::ExpectAllFieldsSet(message2); in TEST() 70 TestUtil::ExpectAllFieldsSet(message2); in TEST() 76 TestUtil::SetAllExtensions(&message); in TEST() 80 TestUtil::ExpectAllExtensionsSet(message2); in TEST() 85 TestUtil::SetOneof1(&message); in TEST() 87 TestUtil::ExpectOneofSet1(message2); in TEST() 89 TestUtil::SetOneof2(&message); in TEST() [all …]
|
D | extension_set_unittest.cc | 63 using TestUtil::EqualsToSerialized; 72 TestUtil::ExpectExtensionsClear(message); in TEST() 93 TestUtil::SetAllExtensions(&message); in TEST() 94 TestUtil::ExpectAllExtensionsSet(message); in TEST() 96 TestUtil::ModifyRepeatedExtensions(&message); in TEST() 97 TestUtil::ExpectRepeatedExtensionsModified(message); in TEST() 105 TestUtil::SetAllExtensions(&message); in TEST() 107 TestUtil::ExpectExtensionsClear(message); in TEST() 125 TestUtil::SetAllExtensions(&message); in TEST() 126 TestUtil::ExpectAllExtensionsSet(message); in TEST() [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/amr/ |
D | AmrExtractorSeekTest.java | 26 import com.google.android.exoplayer2.testutil.TestUtil; 61 Uri fileUri = TestUtil.buildAssetUri(fileName); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() 63 TestUtil.extractAllSamplesFromFile( in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() 70 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in amrExtractorReads_returnSeekableSeekMap_forNarrowBandAmr() 81 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() 83 TestUtil.extractAllSamplesFromFile( in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() 91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() 96 TestUtil.seekToTimeUs( in seeking_handlesSeekingToPositionInFile_extractsCorrectFrame_forNarrowBandAmr() 107 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() 109 TestUtil.extractAllSamplesFromFile( in seeking_handlesSeekToEoF_extractsLastFrame_forNarrowBandAmr() [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/ |
D | FlacExtractorSeekTest.java | 27 import com.google.android.exoplayer2.testutil.TestUtil; 53 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_SEEK_TABLE); in flacExtractorReads_seekTable_returnSeekableSeekMap() 55 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap() 65 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() 66 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero() 71 TestUtil.seekToTimeUs( in seeking_seekTable_handlesSeekToZero() 82 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() 83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF() 88 TestUtil.seekToTimeUs( in seeking_seekTable_handlesSeekToEoF() 99 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() [all …]
|
/external/exoplayer/tree/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/ |
D | FlacExtractorSeekTest.java | 27 import com.google.android.exoplayer2.testutil.TestUtil; 53 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_SEEK_TABLE); in flacExtractorReads_seekTable_returnSeekableSeekMap() 55 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in flacExtractorReads_seekTable_returnSeekableSeekMap() 65 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToZero() 66 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToZero() 71 TestUtil.seekToTimeUs( in seeking_seekTable_handlesSeekToZero() 82 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekToEoF() 83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_seekTable_handlesSeekToEoF() 88 TestUtil.seekToTimeUs( in seeking_seekTable_handlesSeekToEoF() 99 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_seekTable_handlesSeekingBackward() [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ts/ |
D | AdtsExtractorSeekTest.java | 26 import com.google.android.exoplayer2.testutil.TestUtil; 59 Uri fileUri = TestUtil.buildAssetUri(fileName); in adtsExtractorReads_returnSeekableSeekMap() 61 TestUtil.extractAllSamplesFromFile( in adtsExtractorReads_returnSeekableSeekMap() 68 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in adtsExtractorReads_returnSeekableSeekMap() 78 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() 80 TestUtil.extractAllSamplesFromFile( in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() 88 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() 93 TestUtil.seekToTimeUs( in seeking_handlesSeekingToPositionInFile_extractsCorrectSample() 104 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF_extractsLastSample() 106 TestUtil.extractAllSamplesFromFile( in seeking_handlesSeekToEoF_extractsLastSample() [all …]
|
D | TsExtractorSeekTest.java | 29 import com.google.android.exoplayer2.testutil.TestUtil; 59 TestUtil.extractAllSamplesFromFile( in setUp() 71 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap() 75 TestUtil.extractSeekMap(extractor, new FakeExtractorOutput(), dataSource, fileUri); in tsExtractorReads_nonSeekTableFile_returnSeekableSeekMap() 86 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() 89 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() 94 TestUtil.seekToTimeUs( in handlePendingSeek_handlesSeekingToPositionInFile_extractsCorrectFrame() 105 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame() 108 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in handlePendingSeek_handlesSeekToEoF_extractsLastFrame() 114 TestUtil.seekToTimeUs( in handlePendingSeek_handlesSeekToEoF_extractsLastFrame() [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_move_unittest.cc | 53 TestUtil::SetAllFields(&message1); in TEST() 57 TestUtil::ExpectAllFieldsSet(message2); in TEST() 67 TestUtil::SetAllFields(&message1); in TEST() 72 TestUtil::ExpectAllFieldsSet(message2); in TEST() 83 TestUtil::SetAllFields(&message); in TEST() 85 TestUtil::ExpectAllFieldsSet(message); in TEST() 93 TestUtil::SetAllFields(message1_on_arena); in TEST() 109 TestUtil::SetAllFields(message1_on_arena); in TEST() 118 TestUtil::ExpectAllFieldsSet(*message1_on_arena); in TEST() 119 TestUtil::ExpectAllFieldsSet(*message2_on_arena); in TEST() [all …]
|
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/core/ |
D | GradientsTest.java | 31 import org.tensorflow.TestUtil; 43 Output<Float> x = TestUtil.placeholder(g, "x1", Float.class); in createGradients() 44 Output<Float> y0 = TestUtil.square(g, "y0", x); in createGradients() 45 Output<Float> y1 = TestUtil.square(g, "y1", y0); in createGradients() 54 TestUtil.AutoCloseableList<Tensor<?>> outputs = in createGradients() 55 new TestUtil.AutoCloseableList<>( in createGradients() 70 Output<Float> x = TestUtil.placeholder(g, "x1", Float.class); in createGradientsWithSum() 71 Output<Float> y0 = TestUtil.square(g, "y0", x); in createGradientsWithSum() 72 Output<Float> y1 = TestUtil.square(g, "y1", y0); in createGradientsWithSum() 81 TestUtil.AutoCloseableList<Tensor<?>> outputs = in createGradientsWithSum() [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/ |
D | ConstantBitrateSeekerTest.java | 27 import com.google.android.exoplayer2.testutil.TestUtil; 61 Uri fileUri = TestUtil.buildAssetUri(CONSTANT_FRAME_SIZE_TEST_FILE); in mp3ExtractorReads_returnSeekableCbrSeeker() 63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnSeekableCbrSeeker() 73 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() 74 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero() 79 TestUtil.seekToTimeUs( in seeking_handlesSeekToZero() 90 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEoF() 91 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEoF() 96 TestUtil.seekToTimeUs( in seeking_handlesSeekToEoF() 107 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekingBackward() [all …]
|
D | IndexSeekerTest.java | 19 import static com.google.android.exoplayer2.testutil.TestUtil.extractAllSamplesFromFile; 29 import com.google.android.exoplayer2.testutil.TestUtil; 61 Uri fileUri = TestUtil.buildAssetUri(TEST_FILE_NO_SEEK_TABLE); in mp3ExtractorReads_returnsSeekableSeekMap() 63 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in mp3ExtractorReads_returnsSeekableSeekMap() 71 TestUtil.extractAllSamplesFromFile( in mp3ExtractorReads_correctsInexactDuration() 82 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToZero() 83 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToZero() 88 TestUtil.seekToTimeUs( in seeking_handlesSeekToZero() 100 Uri fileUri = TestUtil.buildAssetUri(fileName); in seeking_handlesSeekToEof() 101 SeekMap seekMap = TestUtil.extractSeekMap(extractor, extractorOutput, dataSource, fileUri); in seeking_handlesSeekToEof() [all …]
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/metadata/ |
D | MetadataRendererTest.java | 31 import com.google.android.exoplayer2.testutil.TestUtil; 45 TestUtil.joinByteArrays( 46 TestUtil.createByteArray( 52 TestUtil.createByteArray(0x00, 0x00, 0x00, 0x00), // pts_adjustment(32). 53 TestUtil.createByteArray( 61 TestUtil.createByteArray( 63 TestUtil.createByteArray( 171 TestUtil.joinByteArrays( in encodeTxxxId3Frame() 173 TestUtil.createByteArray(0, 0, 0, 0), // Frame size (set later) in encodeTxxxId3Frame() 174 TestUtil.createByteArray(0, 0), // Frame flags in encodeTxxxId3Frame() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | AbstractMessageTest.java | 33 import static com.google.protobuf.TestUtil.TEST_REQUIRED_INITIALIZED; 34 import static com.google.protobuf.TestUtil.TEST_REQUIRED_UNINITIALIZED; 234 TestUtil.ReflectionTester reflectionTester = 235 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 237 TestUtil.ReflectionTester extensionsReflectionTester = 238 new TestUtil.ReflectionTester( 239 TestAllExtensions.getDescriptor(), TestUtil.getFullExtensionRegistry()); 243 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder(TestUtil.getAllSet())) in testClear() 246 TestUtil.assertClear((TestAllTypes) message.wrappedMessage); in testClear() 252 .mergeFrom(TestUtil.getAllSet()) in testCopy() [all …]
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | AbstractMessageTest.java | 184 TestUtil.ReflectionTester reflectionTester = 185 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 187 TestUtil.ReflectionTester extensionsReflectionTester = 188 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(), 189 TestUtil.getExtensionRegistry()); 194 TestAllTypes.newBuilder(TestUtil.getAllSet())) in testClear() 196 TestUtil.assertClear((TestAllTypes) message.wrappedMessage); in testClear() 202 .mergeFrom(TestUtil.getAllSet()).build(); in testCopy() 203 TestUtil.assertAllFieldsSet((TestAllTypes) message.wrappedMessage); in testCopy() 207 TestAllTypes message = TestUtil.getAllSet(); in testSerializedSize() [all …]
|
D | DynamicMessageTest.java | 49 TestUtil.ReflectionTester reflectionTester = 50 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 52 TestUtil.ReflectionTester extensionsReflectionTester = 53 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(), 54 TestUtil.getExtensionRegistry()); 55 TestUtil.ReflectionTester packedReflectionTester = 56 new TestUtil.ReflectionTester(TestPackedTypes.getDescriptor(), null); 152 TestAllTypes message = TestUtil.getAllSet(); in testDynamicMessageSerializedSize() 172 TestUtil.assertAllFieldsSet(message2); in testDynamicMessageSerialization() 175 assertEquals(TestUtil.getAllSet().toByteString(), rawBytes); in testDynamicMessageSerialization() [all …]
|
D | WireFormatTest.java | 58 TestAllTypes message = TestUtil.getAllSet(); in testSerialization() 65 TestUtil.assertAllFieldsSet(message2); in testSerialization() 69 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPacked() 76 TestUtil.assertPackedFieldsSet(message2); in testSerializationPacked() 84 TestAllExtensions message = TestUtil.getAllExtensionsSet(); in testSerializeExtensions() 90 TestUtil.assertAllFieldsSet(message2); in testSerializeExtensions() 96 TestPackedExtensions message = TestUtil.getPackedExtensionsSet(); in testSerializePackedExtensions() 99 TestPackedTypes message2 = TestUtil.getPackedSet(); in testSerializePackedExtensions() 110 TestPackedTypes message = TestUtil.getPackedSet(); in testSerializationPackedWithoutGetSerializedSize() 124 TestUtil.assertPackedFieldsSet(message2); in testSerializationPackedWithoutGetSerializedSize() [all …]
|
D | GeneratedMessageTest.java | 77 TestUtil.ReflectionTester reflectionTester = 78 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null); 89 TestUtil.setAllFields(builder); in testMessageOrBuilder() 91 TestUtil.assertAllFieldsSet(message); in testMessageOrBuilder() 168 TestUtil.getAllSet().toByteString()); in testParsedMessagesAreImmutable() 274 TestUtil.setAllFields(builder); in testRepeatedSetters() 275 TestUtil.modifyRepeatedFields(builder); in testRepeatedSetters() 277 TestUtil.assertRepeatedFieldsModified(message); in testRepeatedSetters() 292 builder.addRepeatedBytes(TestUtil.toBytes("one")); in testRepeatedSettersRejectNull() 293 builder.addRepeatedBytes(TestUtil.toBytes("two")); in testRepeatedSettersRejectNull() [all …]
|
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/ |
D | GraphTest.java | 38 TestUtil.transpose_A_times_X(g, new int[2][2]); in graphDefRoundTrip() 86 operations.add(TestUtil.constant(g, "Const-A", Float.valueOf(1.0f)).op()); in iterateOverOperations() 87 operations.add(TestUtil.constant(g, "Const-B", Integer.valueOf(23)).op()); in iterateOverOperations() 88 operations.add(TestUtil.constant(g, "Const-C", Double.valueOf(1.618)).op()); in iterateOverOperations() 138 Output<Float> x1 = TestUtil.placeholder(g, "x1", Float.class); in addGradientsToGraph() 139 Output<Float> x2 = TestUtil.placeholder(g, "x2", Float.class); in addGradientsToGraph() 140 Output<Float> y0 = TestUtil.square(g, "y0", x1); in addGradientsToGraph() 141 Output<Float> y1 = TestUtil.square(g, "y1", y0); in addGradientsToGraph() 142 Output<Float> y2 = TestUtil.addN(g, y0, x2); in addGradientsToGraph() 157 TestUtil.AutoCloseableList<Tensor<?>> outputs = new TestUtil.AutoCloseableList<>( in addGradientsToGraph() [all …]
|
D | EagerOperationBuilderTest.java | 59 .addInput(TestUtil.constant(session, "Cond", true)) in addInputs() 60 .addInputList(new Output<?>[] {TestUtil.constant(session, "Error", -1)}) in addInputs() 76 .addInput(TestUtil.constant(session, "Const1", 2)) in setDevice() 77 .addInput(TestUtil.constant(session, "Const2", 4)) in setDevice() 100 .addInput(TestUtil.constant(session, "RandomUniformShape", new int[] {1})) in setAttrs() 106 .addInput(TestUtil.constant(session, "MaxPoolInput", new float[2][2][2][2])) in setAttrs() 113 .addInput(TestUtil.constant(session, "FractionalMaxPoolInput", new float[2][2][2][2])) in setAttrs() 118 .addInput(TestUtil.constant(session, "Const", new int[2][2])) in setAttrs() 128 .addInput(TestUtil.constant(session, "Const", new boolean[] {true, true, false})) in setAttrs() 129 .addInput(TestUtil.constant(session, "Axis", 0)) in setAttrs() [all …]
|
D | SessionTest.java | 35 TestUtil.transpose_A_times_X(g, new int[][] {{2}, {3}}); in runUsingOperationNames() 37 TestUtil.AutoCloseableList<Tensor<?>> outputs = in runUsingOperationNames() 38 new TestUtil.AutoCloseableList<Tensor<?>>(s.runner().feed("X", x).fetch("Y").run())) { in runUsingOperationNames() 50 TestUtil.transpose_A_times_X(g, new int[][] {{2}, {3}}); in runUsingOperationHandles() 54 TestUtil.AutoCloseableList<Tensor<?>> outputs = in runUsingOperationHandles() 55 … new TestUtil.AutoCloseableList<Tensor<?>>(s.runner().feed(feed, x).fetch(fetch).run())) { in runUsingOperationHandles() 69 .addInput(TestUtil.constant(g, "split_dim", 0)) in runUsingColonSeparatedNames() 70 .addInput(TestUtil.constant(g, "value", new int[] {1, 2, 3, 4})) in runUsingColonSeparatedNames() 104 TestUtil.transpose_A_times_X(g, new int[][] {{2}, {3}}); in runWithMetadata() 113 …TestUtil.AutoCloseableList<Tensor<?>> outputs = new TestUtil.AutoCloseableList<Tensor<?>>(result.o… in runWithMetadata() [all …]
|
D | GraphOperationTest.java | 41 .addInput(TestUtil.constant(g, "x", 1)) in outputListLengthFailsOnInvalidName() 42 .addInput(TestUtil.constant(g, "y", 2)) in outputListLengthFailsOnInvalidName() 59 op1 = TestUtil.constantOp(g, "op1", 1); in operationEquality() 60 GraphOperation op2 = TestUtil.constantOp(g, "op2", 2); in operationEquality() 74 Operation newOp1 = TestUtil.constant(g, "op1", 1).op(); in operationEquality() 82 GraphOperation op1 = TestUtil.constantOp(g, "op1", 1); in operationCollection() 83 GraphOperation op2 = TestUtil.constantOp(g, "op2", 2); in operationCollection() 99 Operation op = TestUtil.constant(g, "c", new int[] {1}).op(); in operationToString() 107 Output<Integer> output = TestUtil.constant(g, "c", 1); in outputEquality() 120 Output<Integer> output = TestUtil.constant(g, "c", 1); in outputCollection() [all …]
|
D | EagerOperationTest.java | 61 .addInput(TestUtil.constant(session, "Const1", 2)) in outputTensor() 62 .addInput(TestUtil.constant(session, "Const2", 4)) in outputTensor() 76 Output<Float> c1 = TestUtil.constant(session, "Const1", new float[] {1f, 2f}); in inputAndOutputListLengths() 77 Output<Float> c2 = TestUtil.constant(session, "Const2", new float[] {3f, 4f}); in inputAndOutputListLengths() 88 .addInput(TestUtil.constant(session, "Axis", 0)) in inputAndOutputListLengths() 116 .addInput(TestUtil.constant(session, "Const1", new int[] {1, 2, 1})) in numOutputs() 117 .addInput(TestUtil.constant(session, "Axis", new int[] {0})) in numOutputs() 129 .addInput(TestUtil.constant(session, "Const1", 2)) in opNotAccessibleIfSessionIsClosed() 130 .addInput(TestUtil.constant(session, "Const2", 4)) in opNotAccessibleIfSessionIsClosed() 147 .addInput(TestUtil.constant(session, "Const1", 2)) in outputIndexOutOfBounds() [all …]
|
/external/exoplayer/tree/library/common/src/test/java/com/google/android/exoplayer2/util/ |
D | ParsableBitArrayTest.java | 23 import com.google.android.exoplayer2.testutil.TestUtil; 34 byte[] testData = TestUtil.createByteArray(0x3C, 0xD2, 0x5F); in readAllBytes() 47 byte[] testData = TestUtil.createByteArray(0, 0b00110000); in readBitInSameByte() 59 byte[] testData = TestUtil.createByteArray(1, 1 << 7); in readBitInMultipleBytes() 71 byte[] testData = TestUtil.createByteArray(0x3C); in readBits0Bits() 81 byte[] testData = TestUtil.createByteArray(0x3C, 0xD2, 0x5F, 0x01); in readBitsByteAligned() 93 byte[] testData = TestUtil.createByteArray(0x3C, 0xD2, 0x5F); in readBitsNonByteAligned() 105 byte[] testData = TestUtil.createByteArray(0xF0, 0, 0, 0); in readBitsNegativeValue() 115 byte[] testData = TestUtil.createByteArray(0x3C); in readBitsToLong0Bits() 125 byte[] testData = TestUtil.createByteArray(0x3C, 0xD2, 0x5F, 0x01, 0xFF, 0x14, 0x60); in readBitsToLongByteAligned() [all …]
|
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/ogg/ |
D | OggPacketTest.java | 18 import static com.google.android.exoplayer2.testutil.TestUtil.getByteArray; 24 import com.google.android.exoplayer2.testutil.TestUtil; 43 byte[] firstPacket = TestUtil.buildTestData(8, random); in readPacketsWithEmptyPage() 44 byte[] secondPacket = TestUtil.buildTestData(272, random); in readPacketsWithEmptyPage() 45 byte[] thirdPacket = TestUtil.buildTestData(256, random); in readPacketsWithEmptyPage() 46 byte[] fourthPacket = TestUtil.buildTestData(271, random); in readPacketsWithEmptyPage() 92 byte[] firstPacket = TestUtil.buildTestData(255, random); in readPacketWithZeroSizeTerminator() 93 byte[] secondPacket = TestUtil.buildTestData(8, random); in readPacketWithZeroSizeTerminator() 107 byte[] firstPacket = TestUtil.buildTestData(518); in readContinuedPacketOverTwoPages() 124 byte[] firstPacket = TestUtil.buildTestData(1028); in readContinuedPacketOverFourPages() [all …]
|