Home
last modified time | relevance | path

Searched refs:originalData (Results 1 – 13 of 13) sorted by relevance

/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DGzipInflatingBufferTest.java57 private byte[] originalData; field in GzipInflatingBufferTest
71 originalData = ByteStreams.toByteArray(getClass().getResourceAsStream(UNCOMPRESSABLE_FILE)); in setUp()
72 truncatedData = Arrays.copyOf(originalData, TRUNCATED_DATA_SIZE); in setUp()
76 gzippingOutputStream.write(originalData); in setUp()
110 byte[] b = new byte[originalData.length]; in gzipInflateWorks()
111 assertEquals(originalData.length, gzipInflatingBuffer.inflateBytes(b, 0, originalData.length)); in gzipInflateWorks()
113 assertTrue("inflated data does not match", Arrays.equals(originalData, b)); in gzipInflateWorks()
121 byte[] b = new byte[originalData.length]; in splitGzipStreamWorks()
122 int n = gzipInflatingBuffer.inflateBytes(b, 0, originalData.length); in splitGzipStreamWorks()
129 int bytesRemaining = originalData.length - n; in splitGzipStreamWorks()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DThreadContextMutableCopiesTest.kt64 val originalData = threadLocalData.get() in testDataIsNotOverwritten() constant
71 assertNotSame(originalData, threadLocalData.get()) in testDataIsNotOverwritten()
83 val originalData = threadLocalData.get() in <lambda>() constant
90 assertNotSame(originalData, threadLocalData.get()) in <lambda>()
101 val originalData = threadLocalData.get() in <lambda>() constant
109 assertNotSame(originalData, threadLocalData.get()) in <lambda>()
119 val originalData = root.mutableData in <lambda>() constant
121 assertNotSame(originalData, threadLocalData.get()) in <lambda>()
128 val originalData = root.mutableData in <lambda>() constant
131 assertNotSame(originalData, threadLocalData.get()) in <lambda>()
[all …]
/external/oss-fuzz/projects/zxing/
DMultiFormatEncodeFuzzer.java73 String originalData = data.consumeRemainingAsAsciiString(); in fuzzerTestOneInput() local
77 matrix = new MultiFormatWriter().encode(originalData, format, width, height); in fuzzerTestOneInput()
88 …throw new IllegalStateException("Failed to recover\n" + originalData + "\nencoded with " + format … in fuzzerTestOneInput()
92 if (!decodedData.equals(originalData)) { in fuzzerTestOneInput()
94 … "Failed to recover\n" + originalData + "\nencoded with " + format + " in " + width + "x" + height in fuzzerTestOneInput()
/external/apache-commons-math/src/main/java/org/apache/commons/math/genetics/
DRandomKey.java249 …public static <S> List<Double> inducedPermutation(List<S> originalData, List<S> permutedData) thro… in inducedPermutation() argument
250 if (originalData.size() != permutedData.size()) { in inducedPermutation()
253 int l = originalData.size(); in inducedPermutation()
255 List<S> origDataCopy = new ArrayList<S> (originalData); in inducedPermutation()
/external/skia/tests/
DWriter32Test.cpp102 AutoTMalloc<uint32_t> originalData(dataSize); in testWritePad() local
106 originalData[(int) i] = rand.nextU(); in testWritePad()
112 writer->writePad(originalData.get(), len); in testWritePad()
126 REPORTER_ASSERT(reporter, memcmp(readPtr, originalData.get(), len) == 0); in testWritePad()
/external/skia/tools/viewer/
DSBIXSlide.cpp155 sk_sp<SkData> updateSBIXData(SkData* originalData, bool setPts) { in updateSBIXData()
158 sk_sp<SkData> dataCopy = SkData::MakeWithCopy(originalData->data(), originalData->size()); in updateSBIXData()
162 SkASSERT_RELEASE(memcmp(sfntHeader, originalData->data(), originalData->size()) == 0); in updateSBIXData()
/external/angle/src/tests/gl_tests/
DImageTest.cpp5644 GLubyte originalData[4] = {255, 0, 255, 255}; in TEST_P() local
5650 createEGLImage2DTextureSource(1, 1, GL_RGBA, GL_UNSIGNED_BYTE, kDefaultAttribs, originalData, in TEST_P()
5664 verifyResults2D(targetTexture, originalData); in TEST_P()
5665 verifyResultsRenderbuffer(targetRenderbuffer, originalData); in TEST_P()
5681 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, originalData); in TEST_P()
5684 verifyResults2D(targetTexture, originalData); in TEST_P()
5685 verifyResultsRenderbuffer(targetRenderbuffer, originalData); in TEST_P()
5800 GLubyte originalData[4] = {255, 0, 255, 255}; in TEST_P() local
5806 createEGLImage2DTextureSource(1, 1, GL_RGBA, GL_UNSIGNED_BYTE, kDefaultAttribs, originalData, in TEST_P()
5818 verifyResults2D(target, originalData); in TEST_P()
[all …]
/external/okio/okio/src/jvmTest/kotlin/okio/
DBufferCursorKotlinTest.kt62 val originalData = buffer.head!!.data in <lambda>() constant
66 assertSame(cursor.data, originalData) in <lambda>()
/external/skia/src/core/
DSkRuntimeEffectPriv.h77 sk_sp<const SkData> originalData,
80 sk_sp<const SkData> originalData,
DSkRuntimeEffect.cpp148 sk_sp<const SkData> originalData, in TransformUniforms() argument
152 return TransformUniforms(uniforms, std::move(originalData), steps); in TransformUniforms()
157 sk_sp<const SkData> originalData, in TransformUniforms() argument
165 data = SkData::MakeWithCopy(originalData->data(), originalData->size()); in TransformUniforms()
197 return data ? data : originalData; in TransformUniforms()
/external/fonttools/Tests/ufoLib/
DUFO1_test.py36 originalData = dict(fontInfoVersion1)
37 self._writeInfoToPlist(originalData)
DUFO2_test.py36 originalData = dict(fontInfoVersion2)
37 self._writeInfoToPlist(originalData)
44 self.assertEqual(originalData, readData)
DUFO3_test.py41 originalData = dict(fontInfoVersion3)
42 self._writeInfoToPlist(originalData)
49 self.assertEqual(originalData, readData)