Home
last modified time | relevance | path

Searched refs:testCase (Results 1 – 19 of 19) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java83 HintingTestCase testCase = HINTING_TESTCASES[i]; in testHintingWidth() local
85 paint.setTextSize(testCase.mTextSize); in testHintingWidth()
87 float[] widths = new float[testCase.mText.length()]; in testHintingWidth()
90 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth()
91 assertEquals("Text width of '" + testCase.mText + "' without hinting is not expected.", in testHintingWidth()
92 testCase.mWidthWithoutHinting, widths); in testHintingWidth()
95 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth()
96 assertEquals("Text width of '" + testCase.mText + "' with hinting is not expected.", in testHintingWidth()
97 testCase.mWidthWithHinting, widths); in testHintingWidth()
140 for (HasGlyphTestCase testCase : HAS_GLYPH_TEST_CASES) { in testHasGlyph_variationSelectors()
[all …]
/frameworks/minikin/tests/
DFontFamilyTest.cpp199 for (auto testCase : testCases) { in TEST_F() local
201 HB_TAG(testCase.requestedScript[0], testCase.requestedScript[1], in TEST_F()
202 testCase.requestedScript[2], testCase.requestedScript[3])); in TEST_F()
203 if (testCase.isSupported) { in TEST_F()
205 createFontLanguage(testCase.baseScript).supportsHbScript(script)) in TEST_F()
206 << testCase.baseScript << " should support " << testCase.requestedScript; in TEST_F()
209 createFontLanguage(testCase.baseScript).supportsHbScript(script)) in TEST_F()
210 << testCase.baseScript << " shouldn't support " << testCase.requestedScript; in TEST_F()
401 for (auto testCase : testCases) { in TEST_F() local
402 SCOPED_TRACE(testCase.hasVSTable ? in TEST_F()
[all …]
DFontCollectionItemizeTest.cpp789 for (auto testCase : testCases) { in TEST_F() local
791 for (size_t i = 0; i < testCase.fontLanguages.size(); ++i) { in TEST_F()
795 fontLanguagesStr += "\"" + testCase.fontLanguages[i] + "\""; in TEST_F()
798 SCOPED_TRACE("Test of user preferred languages: \"" + testCase.userPreferredLanguages + in TEST_F()
815 for (size_t i = 0; i < testCase.fontLanguages.size(); ++i) { in TEST_F()
817 FontStyle::registerLanguageList(testCase.fontLanguages[i]), 0 /* variant */); in TEST_F()
830 FontStyle::registerLanguageList(testCase.userPreferredLanguages)); in TEST_F()
842 EXPECT_EQ(testCase.selectedFontIndex, usedLangIndex); in TEST_F()
1140 for (auto testCase : testCases) { in TEST_F() local
1141 SCOPED_TRACE("Test for \"" + testCase.testString + "\" with languages " + in TEST_F()
[all …]
/frameworks/base/test-runner/src/android/test/
DAndroidTestRunner.java60 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() local
61 mTestCases = Lists.newArrayList(testCase); in setTestClassName()
120 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod() local
121 testCase.setName(testMethodName); in newSingleTestMethod()
122 return testCase; in newSingleTestMethod()
194 for (TestCase testCase : mTestCases) { in runTest()
195 setContextIfAndroidTestCase(testCase, mContext, testContext); in runTest()
196 setInstrumentationIfInstrumentationTestCase(testCase, mInstrumentation); in runTest()
197 setPerformanceWriterIfPerformanceCollectorTestCase(testCase, mPerfWriter); in runTest()
198 testCase.run(mTestResult); in runTest()
DTestCaseUtil.java126 TestCase testCase = (TestCase) test; in getTestName() local
127 return testCase.getName(); in getTestName()
DTestRunner.java395 public void runInPerformanceMode(Object testCase, String className, boolean junitTest, in runInPerformanceMode() argument
445 junit.textui.TestRunner.run((junit.framework.Test) testCase); in runInPerformanceMode()
448 Runnable test = (Runnable) testCase; in runInPerformanceMode()
/frameworks/base/test-runner/tests/src/android/test/
DAndroidTestRunnerTest.java108 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInSuite()
109 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext()); in testRunTestWithAndroidTestCaseInSuite()
124 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInNestedSuite()
125 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext()); in testRunTestWithAndroidTestCaseInNestedSuite()
144 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuiteProvider()
145 testNames.add(testCase.getName()); in testSetTestClassWithTestSuiteProvider()
156 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuite()
157 testNames.add(testCase.getName()); in testSetTestClassWithTestSuite()
167 for (TestCase testCase : testCases) { in testRunSingleTestMethod()
168 testNames.add(testCase.getName()); in testRunSingleTestMethod()
DTestCaseUtilTest.java38 TestCase testCase = new OneTestTestCaseWithSuite(); in testGetTestCaseNamesForTestCaseWithSuiteMethod() local
40 List<String> testCaseNames = TestCaseUtil.getTestCaseNames(testCase, false); in testGetTestCaseNamesForTestCaseWithSuiteMethod()
72 TestCase testCase = new OneTestTestCase(); in suite() local
73 testCase.setName("testOne"); in suite()
74 return testCase; in suite()
/frameworks/base/core/tests/coretests/src/android/util/
DOrientationUtil.java50 ActivityInstrumentationTestCase2 testCase) { in initializeAndStartActivityIfNotStarted() argument
51 Preconditions.checkNotNull(testCase); in initializeAndStartActivityIfNotStarted()
52 return new OrientationUtil(testCase.getActivity(), testCase.getInstrumentation()); in initializeAndStartActivityIfNotStarted()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestSuiteBuilder.java86 for (TestCase testCase : (List<TestCase>) TestCaseUtil.getTests(testSuite, true)) { in addTestSuite()
87 this.testCases.add(testCase); in addTestSuite()
186 for (TestCase testCase : testCases) { in build()
187 if (satisfiesAllPredicates(new TestMethod(testCase))) { in build()
188 addTest(testCase); in build()
DTestMethod.java46 public TestMethod(TestCase testCase) { in TestMethod() argument
47 this(testCase.getName(), testCase.getClass()); in TestMethod()
DTestGrouping.java72 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests()
73 for (Method testMethod : getTestMethods(testCase)) { in getTests()
74 testMethods.add(new TestMethod(testMethod, testCase)); in getTests()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DTestCaseCollector.java110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod() local
111 testCase.setName(method); in addSingleTestMethod()
112 mTestCases.add(testCase); in addSingleTestMethod()
DUiAutomatorTestRunner.java158 for (TestCase testCase : testCases) { in start()
159 prepareTestCase(testCase); in start()
160 testCase.run(testRunResult); in start()
426 protected void prepareTestCase(TestCase testCase) { in prepareTestCase() argument
427 ((UiAutomatorTestCase)testCase).setAutomationSupport(mAutomationSupport); in prepareTestCase()
428 ((UiAutomatorTestCase)testCase).setUiDevice(mUiDevice); in prepareTestCase()
429 ((UiAutomatorTestCase)testCase).setParams(mParams); in prepareTestCase()
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DUnitTestSuiteBuilderTest.java105 TestCase testCase = (TestCase) test; in testName() local
106 return testCase.getClass().getSimpleName() + "." + testCase.getName(); in testName()
DInstrumentationTestSuiteBuilderTest.java112 TestCase testCase = (TestCase) test; in testName() local
113 return testCase.getClass().getSimpleName() + "." + testCase.getName(); in testName()
DTestSuiteBuilderTest.java214 TestCase testCase = (TestCase) test;
215 return testCase.getClass().getSimpleName() + "." + testCase.getName();
/frameworks/base/libs/hwui/tests/unit/
DBakedOpStateTests.cpp159 for (auto&& testCase : sStrokeTestCases) { in TEST()
163 strokedPaint.setStrokeWidth(testCase.strokeWidth); in TEST()
170 snapshotMatrix.loadScale(testCase.scale, testCase.scale, 1); in TEST()
174 testCase.validator(state); in TEST()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DPropertyNodesVerifier.java34 public PropertyNodesVerifier(AndroidTestCase testCase) { in PropertyNodesVerifier() argument
37 mAndroidTestCase = testCase; in PropertyNodesVerifier()