Home
last modified time | relevance | path

Searched refs:testData (Results 1 – 25 of 110) sorted by relevance

12345

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DWebPlatformUrlTest.java50 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/
Darith_test.js184 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/
DRandomAccessFileInputStreamTest.java44 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 …]
DRandomAccessFileOutputStreamTest.java44 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()
DRandomAccessFileInputStreamFactoryTest.java42 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/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRbnfTest.java278 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRbnfTest.java275 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/skqp/src/effects/
DGrAlphaThresholdFragmentProcessor.fp63 @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);
DGrAlphaThresholdFragmentProcessor.cpp106 GrProcessorTestData* testData) { in TestCreate() argument
107 sk_sp<GrTextureProxy> maskProxy = testData->textureProxy(GrProcessorUnitTest::kAlphaTextureIdx); in TestCreate()
109 float innerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate()
110 float outerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate()
113 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); in TestCreate()
114 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); in TestCreate()
115 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); in TestCreate()
116 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
/external/skia/src/effects/
DGrAlphaThresholdFragmentProcessor.fp63 @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);
DGrAlphaThresholdFragmentProcessor.cpp106 GrProcessorTestData* testData) { in TestCreate() argument
107 sk_sp<GrTextureProxy> maskProxy = testData->textureProxy(GrProcessorUnitTest::kAlphaTextureIdx); in TestCreate()
109 float innerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate()
110 float outerThresh = testData->fRandom->nextUScalar1() * .99f + 0.005f; in TestCreate()
113 uint32_t width = testData->fRandom->nextULessThan(kMaxWidth); in TestCreate()
114 uint32_t height = testData->fRandom->nextULessThan(kMaxHeight); in TestCreate()
115 uint32_t x = testData->fRandom->nextULessThan(kMaxWidth - width); in TestCreate()
116 uint32_t y = testData->fRandom->nextULessThan(kMaxHeight - height); in TestCreate()
/external/skia/src/gpu/effects/
DGrSimpleTextureEffect.cpp67 GrProcessorTestData* testData) { in TestCreate() argument
68 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
71 GrTest::TestWrapModes(testData->fRandom, wrapModes); in TestCreate()
72 if (!testData->caps()->npotTextureTileSupport()) { in TestCreate()
79 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate()
83 const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom); in TestCreate()
84 return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params); in TestCreate()
DGrSimpleTextureEffect.fp58 @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);
DGrEllipseEffect.cpp133 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()
DGrEllipseEffect.fp109 @test(testData) {
111 center.fX = testData->fRandom->nextRangeScalar(0.f, 1000.f);
112 center.fY = testData->fRandom->nextRangeScalar(0.f, 1000.f);
113 SkScalar rx = testData->fRandom->nextRangeF(0.f, 1000.f);
114 SkScalar ry = testData->fRandom->nextRangeF(0.f, 1000.f);
117 et = (GrClipEdgeType) testData->fRandom->nextULessThan(kGrClipEdgeTypeCnt);
120 *testData->caps()->shaderCaps());
/external/skqp/src/gpu/effects/
DGrSimpleTextureEffect.cpp67 GrProcessorTestData* testData) { in TestCreate() argument
68 int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx in TestCreate()
71 GrTest::TestWrapModes(testData->fRandom, wrapModes); in TestCreate()
72 if (!testData->caps()->npotTextureTileSupport()) { in TestCreate()
79 GrSamplerState params(wrapModes, testData->fRandom->nextBool() in TestCreate()
83 const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom); in TestCreate()
84 return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params); in TestCreate()
DGrSimpleTextureEffect.fp58 @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);
DGrEllipseEffect.cpp133 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/
Ddadrfmt.cpp51 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 …]
Ddadrcal.cpp49 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 …]
Ditrbnf.cpp402 static const char* const testData[][2] = { in TestMultiplePluralRules() local
416 doTest(&formatter, testData, TRUE); in TestMultiplePluralRules()
478 static const char* const testData[][2] = { in TestFractionalRuleSet() local
504 doTest(&formatter, testData, FALSE); // exact values aren't parsable from fractions in TestFractionalRuleSet()
1146 static const char* const testData[][2] = { in TestEnglishSpellout() local
1170 doTest(formatter, testData, TRUE); in TestEnglishSpellout()
1199 static const char* const testData[][2] = { in TestOrdinalAbbreviations() local
1220 doTest(formatter, testData, FALSE); in TestOrdinalAbbreviations()
1235 static const char* const testData[][2] = { in TestDurations() local
1250 doTest(formatter, testData, TRUE); in TestDurations()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemFillUpdateCopyBufferTests.cpp381 } testData[] = { in createFillUpdateCopyBufferFloatTests() local
423 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(testData); ++ndx) in createFillUpdateCopyBufferFloatTests()
425 DE_ASSERT(testData[ndx].data.positions[0].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests()
426 DE_ASSERT(testData[ndx].data.positions[1].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests()
427 DE_ASSERT(testData[ndx].data.positions[2].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests()
428 DE_ASSERT(testData[ndx].data.positions[3].x() < MAX_POSITION); in createFillUpdateCopyBufferFloatTests()
432 … testCtx, name.c_str(), testData[ndx].fillValue.uint, testData[ndx].data, cmdType, cmdBufferType)); in createFillUpdateCopyBufferFloatTests()
490 } testData[] = { in createFillUpdateCopyBufferIntegerTests() local
532 for (int ndx = 0; ndx < DE_LENGTH_OF_ARRAY(testData); ++ndx) in createFillUpdateCopyBufferIntegerTests()
534 DE_ASSERT(testData[ndx].data.positions[0].x() < MAX_POSITION); in createFillUpdateCopyBufferIntegerTests()
[all …]
DvktProtectedMemStorageBufferTests.cpp684 const ValidationDataStorage<tcu::UVec4> testData[], in createSpecifiedStorageBufferTests() argument
694 …ase<tcu::UVec4>(testCtx, testType, shaderType, name.c_str(), testData[ndx].values, testData[ndx])); in createSpecifiedStorageBufferTests()
703 std::vector<ValidationDataStorage<tcu::UVec4> > testData; in createRandomizedBufferTests() local
704 testData.resize(testCount); in createRandomizedBufferTests()
707testData[ndx].values = tcu::UVec4(rnd.getUint32(), rnd.getUint32(), rnd.getUint32(), rnd.getUint32… in createRandomizedBufferTests()
709 …ifiedStorageBufferTests(testCtx, "random", testType, shaderType, testData.data(), testData.size()); in createRandomizedBufferTests()
716 const ValidationDataStorage<tcu::UVec4> testData[], in createRWStorageBufferTests() argument
733 …d(createSpecifiedStorageBufferTests(testCtx, "static", testType, shaderType, testData, testCount)); in createRWStorageBufferTests()
811 const ValidationDataStorage<tcu::UVec4> testData[] = { in createReadStorageBufferTests() local
817 …tCtx, "ssbo_read", "Storage Buffer Read Tests", SSBO_READ, testData, DE_LENGTH_OF_ARRAY(testData)); in createReadStorageBufferTests()
[all …]
/external/skqp/tests/
DIntTextureTest.cpp55 std::unique_ptr<int32_t[]> testData(new int32_t[kS * kS]); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
62 testData.get()[j * kS + i] = (a << 24) | (b << 16) | (g << 8) | r; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
69 levels[0].fPixels = testData.get(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
71 levels[1].fPixels = testData.get(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
83 testData.get(), kRowBytes); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
123 check_pixels(reporter, kS, kS, testData.get(), readData.get(), "readPixels"); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
152 check_pixels(reporter, kS, kS, testData.get(), readData.get(), "copyIntegerToInteger"); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
179 const void* bottomRightQuarter = testData.get() + kS / 2 * kS + kS / 2; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
221 memcpy(overwrittenTestData.get(), testData.get(), sizeof(int32_t) * kS * kS); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
223 char* src = (char*)(testData.get() + kS/2 * kS + kS/2); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
DValidationTest.java94 TestData testData = new TestData(); in getTestData() local
95 testData.dataFile = dataFile; in getTestData()
96 testData.inputData = ValidationTestUtil.parseData(getStringContent(dataFile)); in getTestData()
97 testData.expectedResult = getStringContent(resultFile); in getTestData()
98 results.add(testData); in getTestData()
109 List<TestData> testData = getTestData(prefix); in runTest() local
110 for (TestData test : testData) { in runTest()

12345