/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | Latin1Converter.java | 75 int expectedBytes = 0; in convert() local 95 expectedBytes = -1; in convert() 97 for (; expectedBytes < 8 && (test & 0x80) == 0x80; test = test << 1) in convert() 99 expectedBytes++; in convert() 113 if (expectedBytes > 0 && (b & 0xC0) == 0x80) in convert() 117 expectedBytes--; in convert() 119 if (expectedBytes == 0) in convert()
|
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmComputeShaderTestUtil.cpp | 40 std::vector<deUint8> expectedBytes; in verifyOutputWithEpsilon() local 41 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyOutputWithEpsilon() 43 std::vector<float> expectedFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon() 44 std::vector<float> actualFloats (expectedBytes.size() / sizeof (float)); in verifyOutputWithEpsilon() 46 memcpy(&expectedFloats[0], &expectedBytes.front(), expectedBytes.size()); in verifyOutputWithEpsilon() 47 memcpy(&actualFloats[0], outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size()); in verifyOutputWithEpsilon()
|
D | vktSpvAsmWorkgroupMemoryTests.cpp | 63 std::vector<deUint8> expectedBytes; in checkResultsFloat16() local 64 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat16() 67 const deUint16* expected = reinterpret_cast<const deUint16*>(&expectedBytes[0]); in checkResultsFloat16() 69 for (size_t i = 0; i < expectedBytes.size() / sizeof (deUint16); i++) in checkResultsFloat16() 92 std::vector<deUint8> expectedBytes; in checkResultsFloat32() local 93 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat32() 96 const deUint32* expected = reinterpret_cast<const deUint32*>(&expectedBytes[0]); in checkResultsFloat32() 98 for (size_t i = 0; i < expectedBytes.size() / sizeof (deUint32); i++) in checkResultsFloat32() 128 std::vector<deUint8> expectedBytes; in checkResultsFloat64() local 129 expectedOutputs.front().getBuffer()->getPackedBytes(expectedBytes); in checkResultsFloat64() [all …]
|
D | vktSpvAsmEmptyStructTests.cpp | 46 std::vector<deUint8> expectedBytes; in verifyResult() local 47 expectedOutputs[outputNdx].getBytes(expectedBytes); in verifyResult() 49 const deUint32 itemCount = static_cast<deUint32>(expectedBytes.size()) / 4u; in verifyResult() 51 const deUint32* expected = reinterpret_cast<const deUint32*>(&expectedBytes.front()); in verifyResult()
|
D | vktSpvAsmComputeShaderTestUtil.hpp | 191 std::vector<deUint8> expectedBytes; in compareWithRetvals() local 193 expectedOutput->getBytes(expectedBytes); in compareWithRetvals() 195 if (deMemCmp(&expectedBytes.front(), values, expectedBytes.size())) in compareWithRetvals()
|
D | vktSpvAsmComputeShaderCase.cpp | 888 vector<deUint8> expectedBytes; in iterate() local 890 expectedOutput->getBytes(expectedBytes); in iterate() 892 … if (deMemCmp(&expectedBytes.front(), outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size())) in iterate() 896 const deUint8* ptrExpected = static_cast<deUint8*>(&expectedBytes.front()); in iterate() 900 for (; ndx < expectedBytes.size(); ++ndx) in iterate() 906 for (; ndx < expectedBytes.size(); ++ndx) in iterate()
|
D | vktSpvAsmCompositeInsertTests.cpp | 123 vector<deUint8> expectedBytes; in verifyMatrixOutput() local 124 expectedOutputs[0].getBytes(expectedBytes); in verifyMatrixOutput() 126 …const float* const expectedOutputAsFloat = reinterpret_cast<const float*>(&expectedBytes.fr… in verifyMatrixOutput() 130 for (size_t idx = 0; idx < expectedBytes.size() / sizeof(float); ++idx) in verifyMatrixOutput()
|
D | vktSpvAsmImageSamplerTests.cpp | 1160 vector<deUint8> expectedBytes; in verifyDepthCompareResult() local 1161 expectedOutputs[0].getBytes(expectedBytes); in verifyDepthCompareResult() 1164 const float* expectedAsFloat = reinterpret_cast<const float*>(&expectedBytes.front()); in verifyDepthCompareResult() 1166 …for (deUint32 elementNdx = 0; elementNdx < static_cast<deUint32>(expectedBytes.size() / sizeof(flo… in verifyDepthCompareResult()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | BinaryProtocolTest.java | 56 byte[] expectedBytes = expected.toByteArray(); in proto3Roundtrip() 60 ExperimentalSerializationUtil.fromByteArray(expectedBytes, Proto3Message.class); in proto3Roundtrip() 65 Assert.assertEquals(expectedBytes.length, actualBytes.length); in proto3Roundtrip() 75 byte[] expectedBytes = expected.toByteArray(); in proto2Roundtrip() 79 ExperimentalSerializationUtil.fromByteArray(expectedBytes, Proto2Message.class); in proto2Roundtrip() 84 Assert.assertEquals(expectedBytes.length, actualBytes.length); in proto2Roundtrip()
|
D | CodedAdapterTest.java | 56 byte[] expectedBytes = expected.toByteArray(); in proto3Roundtrip() 59 Proto3Message result = fromByteArray(expectedBytes, Proto3Message.class); in proto3Roundtrip() 63 byte[] actualBytes = toByteArray(result, expectedBytes.length); in proto3Roundtrip() 73 byte[] expectedBytes = expected.toByteArray(); in proto2Roundtrip() 76 Proto2Message result = fromByteArray(expectedBytes, Proto2Message.class); in proto2Roundtrip() 80 byte[] actualBytes = toByteArray(result, expectedBytes.length); in proto2Roundtrip()
|
D | CodedOutputStreamTest.java | 340 final byte[] expectedBytes = TestUtil.getGoldenMessage().toByteArray(); in testWriteWholeMessage() 348 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholeMessage() 356 assertEqualBytes(OutputType.STREAM, expectedBytes, coder.toByteArray()); in testWriteWholeMessage() 365 byte[] expectedBytes = TestUtil.getGoldenPackedFieldsMessage().toByteArray(); in testWriteWholePackedFieldsMessage() 373 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholePackedFieldsMessage() 522 final byte[] expectedBytes = expectedBytesStream.toByteArray(); 526 Coder coder = outputType.newCoder(expectedBytes.length); 532 assertEqualBytes(outputType, expectedBytes, coder.toByteArray());
|
/external/brotli/csharp/org/brotli/dec/ |
D | DecodeTest.cs | 75 byte[] expectedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(expected); in CheckDecodeResourceWithDictionary() 79 NUnit.Framework.Assert.AreEqual(expectedBytes, actual); in CheckDecodeResourceWithDictionary() 85 byte[] expectedBytes = Org.Brotli.Dec.Transform.ReadUniBytes(expected); in CheckDecodeResource() 88 NUnit.Framework.Assert.AreEqual(expectedBytes, actual); in CheckDecodeResource() 90 NUnit.Framework.Assert.AreEqual(expectedBytes, actualByByte); in CheckDecodeResource()
|
/external/conscrypt/common/src/test/java/org/conscrypt/ |
D | MacTest.java | 82 byte[] expectedBytes = decodeHex(expected); in knownAnswerTest() 91 expectedBytes, macBytes); in knownAnswerTest() 96 expectedBytes, macBytes); in knownAnswerTest() 102 expectedBytes, macBytes); in knownAnswerTest() 110 expectedBytes, macBytes); in knownAnswerTest() 116 expectedBytes, macBytes); in knownAnswerTest() 122 expectedBytes, macBytes); in knownAnswerTest() 127 expectedBytes, macBytes); in knownAnswerTest()
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/ |
D | MacTest.java | 86 byte[] expectedBytes = decodeHex(expected); in knownAnswerTest() 95 expectedBytes, macBytes); in knownAnswerTest() 100 expectedBytes, macBytes); in knownAnswerTest() 106 expectedBytes, macBytes); in knownAnswerTest() 114 expectedBytes, macBytes); in knownAnswerTest() 120 expectedBytes, macBytes); in knownAnswerTest() 126 expectedBytes, macBytes); in knownAnswerTest() 131 expectedBytes, macBytes); in knownAnswerTest()
|
/external/brotli/java/org/brotli/dec/ |
D | DecodeTest.java | 61 byte[] expectedBytes = readUniBytes(expected); in checkDecodeResource() 64 assertArrayEquals(expectedBytes, actual); in checkDecodeResource() 66 assertArrayEquals(expectedBytes, actualByByte); in checkDecodeResource()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | AbstractStreamingHasherTest.java | 230 void assertInvariants(int expectedBytes) { 232 assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize)); 233 assertEquals(expectedBytes / chunkSize, processCalled); 234 assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
|
D | HashingInputStreamTest.java | 92 byte[] expectedBytes = buf.clone(); in testRead_putByteArrayOutOfBound() 93 System.arraycopy(testBytes, 0, expectedBytes, 0, testBytes.length); in testRead_putByteArrayOutOfBound() 103 verify(hasher).putBytes(expectedBytes, 0, 4); in testRead_putByteArrayOutOfBound()
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | AbstractStreamingHasherTest.java | 230 void assertInvariants(int expectedBytes) { 232 assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize)); 233 assertEquals(expectedBytes / chunkSize, processCalled); 234 assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
|
D | HashingInputStreamTest.java | 92 byte[] expectedBytes = buf.clone(); in testRead_putByteArrayOutOfBound() 93 System.arraycopy(testBytes, 0, expectedBytes, 0, testBytes.length); in testRead_putByteArrayOutOfBound() 103 verify(hasher).putBytes(expectedBytes, 0, 4); in testRead_putByteArrayOutOfBound()
|
/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/internal/ |
D | MemoryMappedFileTest.java | 537 byte[] expectedBytes = new byte[byteCount + 2]; in assertReadByteArraySucceeds() 538 expectedBytes[0] = Byte.MAX_VALUE; in assertReadByteArraySucceeds() 539 expectedBytes[byteCount - 1] = Byte.MIN_VALUE; in assertReadByteArraySucceeds() 540 System.arraycopy(underlyingData, posBefore, expectedBytes, 1, byteCount); in assertReadByteArraySucceeds() 545 dst[0] = expectedBytes[0]; in assertReadByteArraySucceeds() 546 dst[byteCount - 1] = expectedBytes[byteCount - 1]; in assertReadByteArraySucceeds() 550 assertArrayEquals(expectedBytes, dst); in assertReadByteArraySucceeds()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ucptrietest.c | 520 uint32_t value, expectedBytes, actualBytes; in testTrieUTF8() local 611 expectedBytes=0; in testTrieUTF8() 615 expectedBytes=(expectedBytes<<8)|s[k++]; in testTrieUTF8() 619 actualBytes=expectedBytes; in testTrieUTF8() 631 (long)value, (long)values[i], (unsigned long)expectedBytes); in testTrieUTF8() 637 (long)(p-s), (long)i8, (unsigned long)expectedBytes); in testTrieUTF8() 657 expectedBytes=0; in testTrieUTF8() 661 expectedBytes=(expectedBytes<<8)|s[k++]; in testTrieUTF8() 665 actualBytes=expectedBytes; in testTrieUTF8() 677 (long)value, (long)values[i], (unsigned long)expectedBytes); in testTrieUTF8() [all …]
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | FilesTest.java | 563 byte[] expectedBytes = new byte[size]; in testMap_readWrite() 571 random.nextBytes(expectedBytes); in testMap_readWrite() 575 map.put(expectedBytes); in testMap_readWrite() 579 assertTrue(Arrays.equals(expectedBytes, actualBytes)); in testMap_readWrite() 585 byte[] expectedBytes = newPreFilledByteArray(1024); in testMap_readWrite_creates() 595 map.put(expectedBytes); in testMap_readWrite_creates() 602 assertTrue(Arrays.equals(expectedBytes, actualBytes)); in testMap_readWrite_creates()
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | FilesTest.java | 563 byte[] expectedBytes = new byte[size]; in testMap_readWrite() 571 random.nextBytes(expectedBytes); in testMap_readWrite() 575 map.put(expectedBytes); in testMap_readWrite() 579 assertTrue(Arrays.equals(expectedBytes, actualBytes)); in testMap_readWrite() 585 byte[] expectedBytes = newPreFilledByteArray(1024); in testMap_readWrite_creates() 595 map.put(expectedBytes); in testMap_readWrite_creates() 602 assertTrue(Arrays.equals(expectedBytes, actualBytes)); in testMap_readWrite_creates()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | FixedLengthBlockOutputStreamTest.java | 285 private void validate(int blockSize, byte[] expectedBytes, byte[] actualBytes) { in validate() argument 286 double v = Math.ceil(expectedBytes.length / (double) blockSize) * blockSize; in validate() 288 assertContainsAtOffset("output", expectedBytes, 0, actualBytes); in validate() 289 for (int i = expectedBytes.length; i < actualBytes.length; i++) { in validate()
|
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/ |
D | PathSubject.java | 334 byte[] expectedBytes = Files.readAllBytes(toPath(path)); in containsSameBytesAs() 335 if (!Arrays.equals(expectedBytes, Files.readAllBytes(actual))) { in containsSameBytesAs()
|