Home
last modified time | relevance | path

Searched refs:expectedBytes (Results 1 – 24 of 24) sorted by relevance

/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DLatin1Converter.java75 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/
DvktSpvAsmComputeShaderTestUtil.cpp40 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()
DvktSpvAsmWorkgroupMemoryTests.cpp63 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 …]
DvktSpvAsmComputeShaderTestUtil.hpp191 std::vector<deUint8> expectedBytes; in compareWithRetvals() local
193 expectedOutput->getBytes(expectedBytes); in compareWithRetvals()
195 if (deMemCmp(&expectedBytes.front(), values, expectedBytes.size())) in compareWithRetvals()
DvktSpvAsmComputeShaderCase.cpp762 vector<deUint8> expectedBytes; in iterate() local
764 expectedOutput->getBytes(expectedBytes); in iterate()
766 … if (deMemCmp(&expectedBytes.front(), outputAllocs[outputNdx]->getHostPtr(), expectedBytes.size())) in iterate()
769 const deUint8* ptrExpected = static_cast<deUint8*>(&expectedBytes.front()); in iterate()
771 for (; ndx < expectedBytes.size(); ++ndx) in iterate()
DvktSpvAsmCompositeInsertTests.cpp113 vector<deUint8> expectedBytes; in verifyMatrixOutput() local
114 expectedOutputs[0].getBytes(expectedBytes); in verifyMatrixOutput()
116 …const float* const expectedOutputAsFloat = reinterpret_cast<const float*>(&expectedBytes.fr… in verifyMatrixOutput()
120 for (size_t idx = 0; idx < expectedBytes.size() / sizeof(float); ++idx) in verifyMatrixOutput()
DvktSpvAsmImageSamplerTests.cpp1159 vector<deUint8> expectedBytes; in verifyDepthCompareResult() local
1160 expectedOutputs[0].getBytes(expectedBytes); in verifyDepthCompareResult()
1163 const float* expectedAsFloat = reinterpret_cast<const float*>(&expectedBytes.front()); in verifyDepthCompareResult()
1165 …for (deUint32 elementNdx = 0; elementNdx < static_cast<deUint32>(expectedBytes.size() / sizeof(flo… in verifyDepthCompareResult()
DvktSpvAsmFloatControlsTests.cpp2033 bool compareBytes(vector<deUint8>& expectedBytes, AllocationSp outputAlloc, TestLog& log) in compareBytes() argument
2036 const TYPE* fValueId = reinterpret_cast<const TYPE*>(&expectedBytes.front()); in compareBytes()
2039 DE_ASSERT((expectedBytes.size() / sizeof(TYPE)) == 1); in compareBytes()
2130 vector<deUint8> expectedBytes; in checkFloats() local
2131 expectedOutputs[outputNdx].getBytes(expectedBytes); in checkFloats()
2133 if (!compareBytes<TYPE, FLOAT_TYPE>(expectedBytes, outputAllocs[outputNdx], log)) in checkFloats()
DvktSpvAsm16bitStorageTests.cpp335 vector<deUint8> expectedBytes; in check64BitFloats() local
336 expectedOutputs[outputNdx].getBuffer()->getPackedBytes(expectedBytes); in check64BitFloats()
339 const double* expectedAsDouble = reinterpret_cast<const double*>(&expectedBytes.front()); in check64BitFloats()
340 const deUint32 count = static_cast<deUint32>(expectedBytes.size() / sizeof(double)); in check64BitFloats()
364 vector<deUint8> expectedBytes; in check32BitFloats() local
365 expectedOutputs[outputNdx].getBuffer()->getPackedBytes(expectedBytes); in check32BitFloats()
368 const float* expectedAsFloat = reinterpret_cast<const float*>(&expectedBytes.front()); in check32BitFloats()
369 const deUint32 count = static_cast<deUint32>(expectedBytes.size() / sizeof(float)); in check32BitFloats()
DvktSpvAsmGraphicsShaderTestUtil.cpp4069 vector<deUint8> expectedBytes; in runAndVerifyDefaultPipeline() local
4070 expected->getBytes(expectedBytes); in runAndVerifyDefaultPipeline()
4072 …if (deMemCmp(&expectedBytes.front(), outResourceMemories[outputNdx]->getHostPtr(), expectedBytes.s… in runAndVerifyDefaultPipeline()
DvktSpvAsmInstructionTests.cpp388 vector<deUint8> expectedBytes; in compareFUnord() local
392 expectedOutputs[0].getBytes(expectedBytes); in compareFUnord()
394 …const deInt32* const expectedOutputAsInt = reinterpret_cast<const deInt32*>(&expectedBytes.front(… in compareFUnord()
400 for (size_t idx = 0; idx < expectedBytes.size() / sizeof(deInt32); ++idx) in compareFUnord()
1095 vector<deUint8> expectedBytes; in compareFRem() local
1096 expectedOutputs[0].getBytes(expectedBytes); in compareFRem()
1098 const float* expectedOutputAsFloat = reinterpret_cast<const float*>(&expectedBytes.front()); in compareFRem()
1101 for (size_t idx = 0; idx < expectedBytes.size() / sizeof(float); ++idx) in compareFRem()
17498 vector<deUint8> expectedBytes; in compareFloats() local
17502 expectedOutputs[outputNdx].getBytes(expectedBytes); in compareFloats()
[all …]
DvktSpvAsmTypeTests.cpp1540 vector<deUint8> expectedBytes; in verifyResult() local
1542 expectedOutputs[0].getBytes(expectedBytes); in verifyResult()
1543 const deUint32 count = static_cast<deUint32>(expectedBytes.size() / sizeof(T)); in verifyResult()
1545 const T* expected = reinterpret_cast<const T*>(&expectedBytes.front()); in verifyResult()
/external/brotli/csharp/org/brotli/dec/
DDecodeTest.cs75 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/brotli/java/org/brotli/dec/
DDecodeTest.java61 byte[] expectedBytes = readUniBytes(expected); in checkDecodeResource()
64 assertArrayEquals(expectedBytes, actual); in checkDecodeResource()
66 assertArrayEquals(expectedBytes, actualByByte); in checkDecodeResource()
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
DPartiallyUncompressingPipeTest.java46 byte[] expectedBytes = new byte[] {1, 2, 3, 4, 5}; in testWriteAll_Uncompressed()
47 stream.pipe(new ByteArrayInputStream(expectedBytes), Mode.COPY); in testWriteAll_Uncompressed()
48 Assert.assertArrayEquals(expectedBytes, outBuffer.toByteArray()); in testWriteAll_Uncompressed()
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/
DSinkTester.java192 byte[] expectedBytes = { 5, 6 }; in sinkTestWriteAfterClose()
195 out.write(expectedBytes); in sinkTestWriteAfterClose()
204 assertArrayEquals(expectedBytes, getBytes()); in sinkTestWriteAfterClose()
/external/guava/guava-tests/test/com/google/common/hash/
DAbstractStreamingHasherTest.java228 void assertInvariants(int expectedBytes) {
230 assertEquals(out.toByteArray().length, ceilToMultiple(expectedBytes, chunkSize));
231 assertEquals(expectedBytes / chunkSize, processCalled);
232 assertEquals(expectedBytes % chunkSize != 0, remainingCalled);
DHashingInputStreamTest.java98 byte[] expectedBytes = buf.clone(); in testRead_putByteArrayOutOfBound()
99 System.arraycopy(testBytes, 0, expectedBytes, 0, testBytes.length); in testRead_putByteArrayOutOfBound()
101 EasyMock.expect(hasher.putBytes(aryEq(expectedBytes), eq(0), eq(4))) in testRead_putByteArrayOutOfBound()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCodedOutputStreamTest.java317 final byte[] expectedBytes = TestUtil.getGoldenMessage().toByteArray(); in testWriteWholeMessage()
325 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholeMessage()
333 assertEqualBytes(OutputType.STREAM, expectedBytes, coder.toByteArray()); in testWriteWholeMessage()
342 byte[] expectedBytes = TestUtil.getGoldenPackedFieldsMessage().toByteArray(); in testWriteWholePackedFieldsMessage()
350 assertEqualBytes(outputType, expectedBytes, rawBytes); in testWriteWholePackedFieldsMessage()
498 final byte[] expectedBytes = expectedBytesStream.toByteArray();
502 Coder coder = outputType.newCoder(expectedBytes.length);
508 assertEqualBytes(outputType, expectedBytes, coder.toByteArray());
/external/icu/icu4c/source/test/cintltst/
Ducptrietest.c519 uint32_t value, expectedBytes, actualBytes; in testTrieUTF8() local
610 expectedBytes=0; in testTrieUTF8()
614 expectedBytes=(expectedBytes<<8)|s[k++]; in testTrieUTF8()
618 actualBytes=expectedBytes; in testTrieUTF8()
630 (long)value, (long)values[i], (unsigned long)expectedBytes); in testTrieUTF8()
636 (long)(p-s), (long)i8, (unsigned long)expectedBytes); in testTrieUTF8()
656 expectedBytes=0; in testTrieUTF8()
660 expectedBytes=(expectedBytes<<8)|s[k++]; in testTrieUTF8()
664 actualBytes=expectedBytes; in testTrieUTF8()
676 (long)value, (long)values[i], (unsigned long)expectedBytes); in testTrieUTF8()
[all …]
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStreamTest.java285 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/guava/guava-tests/test/com/google/common/io/
DFilesTest.java619 byte[] expectedBytes = new byte[size]; in testMap_readWrite()
627 random.nextBytes(expectedBytes); in testMap_readWrite()
631 map.put(expectedBytes); in testMap_readWrite()
635 assertTrue(Arrays.equals(expectedBytes, actualBytes)); in testMap_readWrite()
641 byte[] expectedBytes = newPreFilledByteArray(1024); in testMap_readWrite_creates()
651 map.put(expectedBytes); in testMap_readWrite_creates()
658 assertTrue(Arrays.equals(expectedBytes, actualBytes)); in testMap_readWrite_creates()
/external/protobuf/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs168 var expectedBytes = rawOutput.ToArray(); in RepeatedWrappersBinaryFormat()
172 Assert.AreEqual(expectedBytes, actualBytes); in RepeatedWrappersBinaryFormat()
/external/protobuf/objectivec/Tests/
DGPBMessageTests+Serialization.m102 const uint8_t expectedBytes[] = {0x08, 0x01};
103 NSData *expected = [NSData dataWithBytes:expectedBytes length:2];