| /tools/tradefederation/core/tests/src/com/android/tradefed/util/ | 
| TableFormatterTest.java | 32         List<List<String>> testData = new ArrayList<List<String>>(); 34         testData.add(Arrays.asList("1234", "12", "1234", "1"));
 35         testData.add(Arrays.asList("12", "1234", "1", "11"));
 39         String actualOutput = doDisplayTable(testData);
 47         List<List<String>> testData = new ArrayList<List<String>>();
 49         testData.add(Arrays.asList("1234", "12", "1234"));
 50         testData.add(Arrays.asList("12", "1234"));
 54         String actualOutput = doDisplayTable(testData);
 62     private String doDisplayTable(List<List<String>> testData) {
 65         new TableFormatter().displayTable(testData, writer)
 [all...]
 | 
| /platform_testing/libraries/device-collectors/src/test/java/android/device/collectors/ | 
| StubTestMetricListener.java | 38     public void onTestStart(DataRecord testData, Description description) { 39         testData.addStringMetric("test_start", "test_start" + description.getMethodName());
 43     public void onTestFail(DataRecord testData, Description description, Failure failure) {
 44         testData.addStringMetric("test_fail", "test_fail" + description.getMethodName());
 48     public void onTestEnd(DataRecord testData, Description description) {
 49         testData.addStringMetric("test_end", "test_end" + description.getMethodName());
 
 | 
| /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ | 
| WebPlatformUrlTest.java | 50   public WebPlatformUrlTestData testData; 70     if (!testData.scheme.isEmpty() && !HTTP_URL_SCHEMES.contains(testData.scheme)) {
 71       System.err.println("Ignoring unsupported scheme " + testData.scheme);
 74     if (!testData.base.startsWith("https:")
 75         && !testData.base.startsWith("http:")
 76         && !testData.base.equals("about:blank")) {
 77       System.err.println("Ignoring unsupported base " + testData.base);
 83       if (KNOWN_FAILURES.contains(testData.toString())) {
 84         System.err.println("Expected failure but was success: " + testData);
 [all...]
 | 
| /external/icu/icu4c/source/test/intltest/ | 
| dadrfmt.h | 12  * source/test/testdata/calendar.txt 28 class TestData;
 41     void processTest(TestData *testData);
 43     void testConvertDate(TestData *testData, const DataMap *settings, UBool fmt);
 44 //    void testOps(TestData *testData, const DataMap *settings);
 
 | 
| dadrcal.h | 12  * source/test/testdata/calendar.txt 28 class TestData;
 41 	void processTest(TestData *testData);
 43 	void testConvert(TestData *testData, const DataMap *settings, UBool fwd);
 44 	void testOps(TestData *testData, const DataMap *settings);
 
 | 
| itrbnf.h | 152   virtual void doTest(RuleBasedNumberFormat* formatter, const char* const testData[][2], UBool testParsing); 153   virtual void doLenientParseTest(RuleBasedNumberFormat* formatter, const char* testData[][2]);
 
 | 
| /frameworks/support/navigation/safe-args-generator/src/tests/kotlin/androidx/navigation/safe/args/generator/ | 
| TestData.kt | 21 fun testData(path: String) = File("src/tests/test-data/$path" 
 | 
| /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ | 
| CellularNetworkTest.java | 60         byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(1, plmnsData); 61         assertNull(CellularNetwork.parse(ByteBuffer.wrap(testData)));
 73         byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(plmnsData);
 74         CellularNetwork.parse(ByteBuffer.wrap(testData, 0, testData.length - 1));
 87         byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(
 89         CellularNetwork.parse(ByteBuffer.wrap(testData));
 101         byte[] testData = CellularNetworkTestUtil.formatPLMNListIEI(plmnsData);
 109         assertEquals(expected, CellularNetwork.parse(ByteBuffer.wrap(testData)));
 
 | 
| HSFriendlyNameElementTest.java | 97         byte[] testData = getTestData(new String[] {TEST_OPERATOR_NAME1}); 99         ByteBuffer buffer = ByteBuffer.allocate(testData.length - 1);
 100         buffer.put(testData, 0, testData.length - 1);
 113         byte[] testData = getTestData(new String[] {TEST_OPERATOR_NAME1, TEST_OPERATOR_NAME2});
 114         ByteBuffer buffer = ByteBuffer.allocate(testData.length);
 115         buffer.put(testData);
 139         byte[] testData = getTestData(new String[] {text});
 140         ByteBuffer buffer = ByteBuffer.allocate(testData.length);
 141         buffer.put(testData);
 [all...]
 | 
| ThreeGPPNetworkElementTest.java | 100         byte[] testData = getTestData(1, testIeiList); 101         ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData));
 115         byte[] testData = getTestData(ThreeGPPNetworkElement.GUD_VERSION_1, testIeiList);
 116         ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData, 0, testData.length - 1));
 130         byte[] testData = getTestData(ThreeGPPNetworkElement.GUD_VERSION_1, testIeiList);
 138         assertEquals(expected, ThreeGPPNetworkElement.parse(ByteBuffer.wrap(testData)));
 
 | 
| /art/test/563-checker-fakestring/src/ | 
| Main.java | 36     byte[] testData = testString.getBytes("UTF8"); 40       String result = (String) m.invoke(null, new Object[] { testData });
 51         m.invoke(null, new Object[] { new int[] { 1, 2, 3 }, testData });
 63       String result = (String) m.invoke(null, new Object[] { testData });
 69       String result = (String) m.invoke(null, new Object[] { testData, true });
 71       result = (String) m.invoke(null, new Object[] { testData, false });
 76       String result = (String) m.invoke(null, new Object[] { testData, true });
 78       result = (String) m.invoke(null, new Object[] { testData, false });
 
 | 
| /external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ | 
| RandomAccessFileInputStreamFactoryTest.java | 42   private byte[] testData = null; 51     testData = new byte[128];
 53       testData[x] = (byte) x;
 57     out.write(testData);
 61     factory = new RandomAccessFileInputStreamFactory(tempFile, 0, testData.length);
 79       for (int x = 0; x < testData.length; x++) {
 
 | 
| RandomAccessFileInputStreamTest.java | 44   private byte[] testData = null; 53     testData = new byte[128];
 55       testData[x] = (byte) x;
 61       out.write(testData);
 91     for (int x = 0; x < testData.length; x++) {
 99     int bytesLeft = testData.length;
 110     Assert.assertArrayEquals(testData, out.toByteArray());
 120     int bytesLeft = testData.length;
 131     Assert.assertArrayEquals(testData, out.toByteArray());
 143     stream = new RandomAccessFileInputStream(tempFile, 1, testData.length - 2)
 [all...]
 | 
| RandomAccessFileOutputStreamTest.java | 44   private byte[] testData = null; 53     testData = new byte[128];
 55       testData[x] = (byte) x;
 119     stream.write(testData, 0, testData.length);
 127       byte[] actual = new byte[testData.length];
 129       Assert.assertArrayEquals(testData, actual);
 
 | 
| /external/skia/src/gpu/effects/ | 
| 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);
 
 | 
| GrSimpleTextureEffect.cpp | 67         GrProcessorTestData* testData) { 68     int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
 71     GrTest::TestWrapModes(testData->fRandom, wrapModes);
 72     if (!testData->caps()->npotTextureTileSupport()) {
 79     GrSamplerState params(wrapModes, testData->fRandom->nextBool()
 83     const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom);
 84     return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params);
 
 | 
| GrCircleEffect.fp | 71 @test(testData) { 73     center.fX = testData->fRandom->nextRangeScalar(0.f, 1000.f);
 74     center.fY = testData->fRandom->nextRangeScalar(0.f, 1000.f);
 75     SkScalar radius = testData->fRandom->nextRangeF(1.f, 1000.f);
 78         et = (GrClipEdgeType) testData->fRandom->nextULessThan(kGrClipEdgeTypeCnt);
 
 | 
| GrEllipseEffect.fp | 109 @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/ | 
| 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);
 
 | 
| GrSimpleTextureEffect.cpp | 67         GrProcessorTestData* testData) { 68     int texIdx = testData->fRandom->nextBool() ? GrProcessorUnitTest::kSkiaPMTextureIdx
 71     GrTest::TestWrapModes(testData->fRandom, wrapModes);
 72     if (!testData->caps()->npotTextureTileSupport()) {
 79     GrSamplerState params(wrapModes, testData->fRandom->nextBool()
 83     const SkMatrix& matrix = GrTest::TestMatrix(testData->fRandom);
 84     return GrSimpleTextureEffect::Make(testData->textureProxy(texIdx), matrix, params);
 
 | 
| GrCircleEffect.fp | 71 @test(testData) { 73     center.fX = testData->fRandom->nextRangeScalar(0.f, 1000.f);
 74     center.fY = testData->fRandom->nextRangeScalar(0.f, 1000.f);
 75     SkScalar radius = testData->fRandom->nextRangeF(1.f, 1000.f);
 78         et = (GrClipEdgeType) testData->fRandom->nextULessThan(kGrClipEdgeTypeCnt);
 
 | 
| /frameworks/base/libs/hwui/tests/microbench/ | 
| ShadowBench.cpp | 63 static inline void tessellateShadows(ShadowTestData& testData, bool opaque, const SkPath& shape, 65     tessellateShadows(&testData.drawTransform, &testData.localClip, opaque, &shape,
 66                       &testData.casterTransformXY, &testData.casterTransformZ, testData.lightCenter,
 67                       testData.lightRadius, *ambient, *spot);
 
 | 
| /packages/apps/TV/tests/common/src/com/android/tv/testing/robo/ | 
| RobotTestAppHelper.java | 21 import com.android.tv.testing.testdata.TestData; 28     public static void loadTestData(TestSingletonApp app, TestData testData) {
 30         app.loadTestData(testData, TimeUnit.DAYS.toMillis(1));
 
 | 
| /external/skia/src/effects/ | 
| 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);
 
 | 
| /external/skqp/src/effects/ | 
| 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);
 
 |