/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | SeekableInMemoryByteChannelTest.java | 35 private final byte[] testData = "Some data".getBytes(Charset.forName(UTF_8)); field in SeekableInMemoryByteChannelTest 40 SeekableInMemoryByteChannel c = new SeekableInMemoryByteChannel(testData); in shouldReadContentsProperly() 41 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length); in shouldReadContentsProperly() 45 assertEquals(testData.length, readCount); in shouldReadContentsProperly() 46 assertArrayEquals(testData, readBuffer.array()); in shouldReadContentsProperly() 47 assertEquals(testData.length, c.position()); in shouldReadContentsProperly() 54 SeekableInMemoryByteChannel c = new SeekableInMemoryByteChannel(testData); in shouldReadContentsWhenBiggerBufferSupplied() 55 ByteBuffer readBuffer = ByteBuffer.allocate(testData.length + 1); in shouldReadContentsWhenBiggerBufferSupplied() 59 assertEquals(testData.length, readCount); in shouldReadContentsWhenBiggerBufferSupplied() 60 assertArrayEquals(testData, Arrays.copyOf(readBuffer.array(), testData.length)); in shouldReadContentsWhenBiggerBufferSupplied() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | WebPlatformUrlTest.java | 50 public WebPlatformUrlTestData testData; field in WebPlatformUrlTest 70 if (!testData.scheme.isEmpty() && !HTTP_URL_SCHEMES.contains(testData.scheme)) { in httpUrl() 71 System.err.println("Ignoring unsupported scheme " + testData.scheme); in httpUrl() 74 if (!testData.base.startsWith("https:") in httpUrl() 75 && !testData.base.startsWith("http:") in httpUrl() 76 && !testData.base.equals("about:blank")) { in httpUrl() 77 System.err.println("Ignoring unsupported base " + testData.base); in httpUrl() 83 if (KNOWN_FAILURES.contains(testData.toString())) { in httpUrl() 84 System.err.println("Expected failure but was success: " + testData); in httpUrl() 87 if (KNOWN_FAILURES.contains(testData.toString())) { in httpUrl() [all …]
|
/external/protobuf/js/binary/ |
D | arith_test.js | 184 var testData = [ 198 for (var i = 0; i < testData.length; i++) { 199 var a = testData[i][0] >>> 0; 200 var b = testData[i][1] >>> 0; 201 var cLow = testData[i][2] >>> 0; 202 var cHigh = testData[i][3] >>> 0; 217 var testData = [ 231 for (var i = 0; i < testData.length; i++) { 232 var a = new jspb.arith.UInt64(testData[i][0], testData[i][1]); 233 var prod = a.mul(testData[i][2]); [all …]
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | RandomAccessFileInputStreamTest.java | 44 private byte[] testData = null; field in RandomAccessFileInputStreamTest 53 testData = new byte[128]; in setup() 55 testData[x] = (byte) x; in setup() 61 out.write(testData); in setup() 91 for (int x = 0; x < testData.length; x++) { in testRead_OneByte() 99 int bytesLeft = testData.length; in testRead_WithBuffer() 110 Assert.assertArrayEquals(testData, out.toByteArray()); in testRead_WithBuffer() 120 int bytesLeft = testData.length; in testRead_WithPartialBuffer() 131 Assert.assertArrayEquals(testData, out.toByteArray()); in testRead_WithPartialBuffer() 143 stream = new RandomAccessFileInputStream(tempFile, 1, testData.length - 2); in testMarkAndReset_WithOffsetFile() [all …]
|
D | RandomAccessFileOutputStreamTest.java | 44 private byte[] testData = null; field in RandomAccessFileOutputStreamTest 53 testData = new byte[128]; in setup() 55 testData[x] = (byte) x; in setup() 119 stream.write(testData, 0, testData.length); in testWriteArray() 127 byte[] actual = new byte[testData.length]; in testWriteArray() 129 Assert.assertArrayEquals(testData, actual); in testWriteArray()
|
D | RandomAccessFileInputStreamFactoryTest.java | 42 private byte[] testData = null; field in RandomAccessFileInputStreamFactoryTest 51 testData = new byte[128]; in setup() 53 testData[x] = (byte) x; in setup() 57 out.write(testData); in setup() 61 factory = new RandomAccessFileInputStreamFactory(tempFile, 0, testData.length); in setup() 79 for (int x = 0; x < testData.length; x++) { in testNewStream_MakesIdenticalStreams()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | RbnfTest.java | 275 String[][] testData = { in TestEnglishSpellout() local 298 doTest(formatter, testData, true); in TestEnglishSpellout() 308 String[][] testData = { in TestOrdinalAbbreviations() local 328 doTest(formatter, testData, false); in TestOrdinalAbbreviations() 338 String[][] testData = { in TestDurations() local 352 doTest(formatter, testData, true); in TestDurations() 362 String[][] testData = { in TestSpanishSpellout() local 387 doTest(formatter, testData, true); in TestSpanishSpellout() 397 String[][] testData = { in TestFrenchSpellout() local 427 doTest(formatter, testData, true); in TestFrenchSpellout() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | RbnfTest.java | 278 String[][] testData = { in TestEnglishSpellout() local 301 doTest(formatter, testData, true); in TestEnglishSpellout() 311 String[][] testData = { in TestOrdinalAbbreviations() local 331 doTest(formatter, testData, false); in TestOrdinalAbbreviations() 341 String[][] testData = { in TestDurations() local 355 doTest(formatter, testData, true); in TestDurations() 365 String[][] testData = { in TestSpanishSpellout() local 390 doTest(formatter, testData, true); in TestSpanishSpellout() 400 String[][] testData = { in TestFrenchSpellout() local 430 doTest(formatter, testData, true); in TestFrenchSpellout() [all …]
|
/external/skqp/src/gpu/effects/ |
D | GrAlphaThresholdFragmentProcessor.fp | 63 @test(testData) { 64 sk_sp<GrTextureProxy> maskProxy = testData->textureProxy(GrProcessorUnitTest::kAlphaTextureIdx); 66 float innerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; 67 float outerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; 70 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); 71 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); 72 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); 73 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height);
|
D | GrSimpleTextureEffect.cpp | 69 GrProcessorTestData* testData) { in TestCreate() argument 70 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate() 73 GrTest::TestWrapModes(testData->fRandom, wrapModes); in TestCreate() 74 if (!testData->caps()->npotTextureTileSupport()) { in TestCreate() 81 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate() 85 const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom); in TestCreate() 86 return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params); in TestCreate()
|
D | GrAlphaThresholdFragmentProcessor.cpp | 109 GrProcessorTestData* testData) { in TestCreate() argument 110 sk_sp<GrTextureProxy> maskProxy = testData->textureProxy(GrProcessorUnitTest::kAlphaTextureIdx); in TestCreate() 112 float innerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate() 113 float outerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate() 116 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); in TestCreate() 117 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); in TestCreate() 118 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); in TestCreate() 119 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
|
D | GrSimpleTextureEffect.fp | 58 @test(testData) { 59 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx 62 GrTest::TestWrapModes(testData->fRandom, wrapModes); 63 if (!testData->caps()->npotTextureTileSupport()) { 70 GrSamplerState params(wrapModes, testData->fRandom->nextBool() 74 const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom); 75 return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params);
|
D | GrEllipseEffect.cpp | 132 std::unique_ptr<GrFragmentProcessor> GrEllipseEffect::TestCreate(GrProcessorTestData* testData) { in TestCreate() argument 134 center.fX = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 135 center.fY = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 136 SkScalar rx = testData->fRandom->nextRangeF(0.f, 1000.f); in TestCreate() 137 SkScalar ry = testData->fRandom->nextRangeF(0.f, 1000.f); in TestCreate() 140 et = (GrClipEdgeType)testData->fRandom->nextULessThan(kGrClipEdgeTypeCnt); in TestCreate() 143 *testData->caps()->shaderCaps()); in TestCreate()
|
D | GrCircleEffect.cpp | 110 std::unique_ptr<GrFragmentProcessor> GrCircleEffect::TestCreate(GrProcessorTestData* testData) { in TestCreate() argument 112 center.fX = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 113 center.fY = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 114 SkScalar radius = testData->fRandom->nextRangeF(1.f, 1000.f); in TestCreate() 117 et = (GrClipEdgeType)testData->fRandom->nextULessThan(kGrClipEdgeTypeCnt); in TestCreate()
|
/external/skia/src/gpu/effects/ |
D | GrAlphaThresholdFragmentProcessor.fp | 63 @test(testData) { 64 sk_sp<GrTextureProxy> maskProxy = testData->textureProxy(GrProcessorUnitTest::kAlphaTextureIdx); 66 float innerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; 67 float outerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; 70 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); 71 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); 72 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); 73 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height);
|
D | GrSimpleTextureEffect.cpp | 69 GrProcessorTestData* testData) { in TestCreate() argument 70 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate() 73 GrTest::TestWrapModes(testData->fRandom, wrapModes); in TestCreate() 74 if (!testData->caps()->npotTextureTileSupport()) { in TestCreate() 81 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate() 85 const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom); in TestCreate() 86 return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params); in TestCreate()
|
D | GrAlphaThresholdFragmentProcessor.cpp | 109 GrProcessorTestData* testData) { in TestCreate() argument 110 sk_sp<GrTextureProxy> maskProxy = testData->textureProxy(GrProcessorUnitTest::kAlphaTextureIdx); in TestCreate() 112 float innerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate() 113 float outerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate() 116 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); in TestCreate() 117 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); in TestCreate() 118 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); in TestCreate() 119 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
|
D | GrSimpleTextureEffect.fp | 58 @test(testData) { 59 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx 62 GrTest::TestWrapModes(testData->fRandom, wrapModes); 63 if (!testData->caps()->npotTextureTileSupport()) { 70 GrSamplerState params(wrapModes, testData->fRandom->nextBool() 74 const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom); 75 return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params);
|
D | GrEllipseEffect.cpp | 133 std::unique_ptr<GrFragmentProcessor> GrEllipseEffect::TestCreate(GrProcessorTestData* testData) { in TestCreate() argument 135 center.fX = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 136 center.fY = testData->fRandom->nextRangeScalar(0.f, 1000.f); in TestCreate() 137 SkScalar rx = testData->fRandom->nextRangeF(0.f, 1000.f); in TestCreate() 138 SkScalar ry = testData->fRandom->nextRangeF(0.f, 1000.f); in TestCreate() 141 et = (GrClipEdgeType)testData->fRandom->nextULessThan(kGrClipEdgeTypeCnt); in TestCreate() 144 *testData->caps()->shaderCaps()); in TestCreate()
|
/external/icu/icu4c/source/test/intltest/ |
D | dadrfmt.cpp | 51 TestData *testData = driver->createTestData(index, status); in runIndexedTest() local 53 name = testData->getName(); in runIndexedTest() 54 if (testData->getInfo(info, status)) { in runIndexedTest() 62 processTest(testData); in runIndexedTest() 64 delete testData; in runIndexedTest() 95 void DataDrivenFormatTest::testConvertDate(TestData *testData, in testConvertDate() argument 114 while (testData->nextCase(currentCase, status)) { in testConvertDate() 329 void DataDrivenFormatTest::processTest(TestData *testData) { in processTest() argument 339 while (testData->nextSettings(settings, status)) { in processTest() 355 testConvertDate(testData, settings, true); in processTest() [all …]
|
D | dadrcal.cpp | 49 TestData *testData = driver->createTestData(index, status); in runIndexedTest() local 51 name = testData->getName(); in runIndexedTest() 52 if (testData->getInfo(info, status)) { in runIndexedTest() 60 processTest(testData); in runIndexedTest() 62 delete testData; in runIndexedTest() 73 void DataDrivenCalendarTest::testOps(TestData *testData, in testOps() argument 99 while (testData->nextCase(currentCase, status)) { in testOps() 366 void DataDrivenCalendarTest::testConvert(TestData *testData, in testConvert() argument 394 while (testData->nextCase(currentCase, status)) { in testConvert() 450 void DataDrivenCalendarTest::processTest(TestData *testData) { in processTest() argument [all …]
|
D | itrbnf.cpp | 404 static const char* const testData[][2] = { in TestMultiplePluralRules() local 418 doTest(&formatter, testData, TRUE); in TestMultiplePluralRules() 480 static const char* const testData[][2] = { in TestFractionalRuleSet() local 506 doTest(&formatter, testData, FALSE); // exact values aren't parsable from fractions in TestFractionalRuleSet() 1148 static const char* const testData[][2] = { in TestEnglishSpellout() local 1172 doTest(formatter, testData, TRUE); in TestEnglishSpellout() 1201 static const char* const testData[][2] = { in TestOrdinalAbbreviations() local 1222 doTest(formatter, testData, FALSE); in TestOrdinalAbbreviations() 1237 static const char* const testData[][2] = { in TestDurations() local 1252 doTest(formatter, testData, TRUE); in TestDurations() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemFillUpdateCopyBufferTests.cpp | 306 } testData[] = { in createFillUpdateCopyBufferFloatTests() local 348 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(testData); ++ndx) in createFillUpdateCopyBufferFloatTests() 350 DE_ASSERT(testData[ndx].data.positions[0].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests() 351 DE_ASSERT(testData[ndx].data.positions[1].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests() 352 DE_ASSERT(testData[ndx].data.positions[2].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests() 353 DE_ASSERT(testData[ndx].data.positions[3].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests() 357 … testCtx, name.c_str(), testData[ndx].fillValue.uint, testData[ndx].data, cmdType, cmdBufferType)); in createFillUpdateCopyBufferFloatTests() 415 } testData[] = { in createFillUpdateCopyBufferIntegerTests() local 457 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(testData); ++ndx) in createFillUpdateCopyBufferIntegerTests() 459 DE_ASSERT(testData[ndx].data.positions[0].x() < MAX_POSITION); in createFillUpdateCopyBufferIntegerTests() [all …]
|
D | vktProtectedMemStorageBufferTests.cpp | 674 const ValidationDataStorage<tcu::UVec4> testData[], in createSpecifiedStorageBufferTests() argument 684 …ase<tcu::UVec4>(testCtx, testType, shaderType, name.c_str(), testData[ndx].values, testData[ndx])); in createSpecifiedStorageBufferTests() 693 std::vector<ValidationDataStorage<tcu::UVec4> > testData; in createRandomizedBufferTests() local 694 testData.resize(testCount); in createRandomizedBufferTests() 697 …testData[ndx].values = tcu::UVec4(rnd.getUint32(), rnd.getUint32(), rnd.getUint32(), rnd.getUint32… in createRandomizedBufferTests() 699 …ifiedStorageBufferTests(testCtx, "random", testType, shaderType, testData.data(), testData.size()); in createRandomizedBufferTests() 706 const ValidationDataStorage<tcu::UVec4> testData[], in createRWStorageBufferTests() argument 723 …d(createSpecifiedStorageBufferTests(testCtx, "static", testType, shaderType, testData, testCount)); in createRWStorageBufferTests() 801 const ValidationDataStorage<tcu::UVec4> testData[] = { in createReadStorageBufferTests() local 807 …tCtx, "ssbo_read", "Storage Buffer Read Tests", SSBO_READ, testData, DE_LENGTH_OF_ARRAY(testData)); in createReadStorageBufferTests() [all …]
|
/external/libchrome/mojo/public/java/system/javatests/src/org/chromium/mojo/bindings/ |
D | ValidationTest.java | 104 TestData testData = new TestData(); in getTestData() local 105 testData.dataFile = dataFile; in getTestData() 106 testData.inputData = ValidationTestUtil.parseData(getStringContent(dataFile)); in getTestData() 107 testData.expectedResult = getStringContent(resultFile); in getTestData() 108 results.add(testData); in getTestData() 119 List<TestData> testData = getTestData(prefix); in runTest() local 120 for (TestData test : testData) { in runTest()
|