/frameworks/minikin/tests/unittest/ |
D | LayoutSplitterTest.cpp | 144 for (const auto& testCase : testCases) { in TEST() local 145 auto[text, range] = parseTestString(testCase.testStr); in TEST() 148 ASSERT_NE(expectationIndex, testCase.expects.size()); in TEST() 149 const std::string expectString = testCase.expects[expectationIndex++]; in TEST() 156 EXPECT_EQ(expectationIndex, testCase.expects.size()) << "Expectations Remains"; in TEST() 206 for (const auto& testCase : testCases) { in TEST() local 207 auto[text, range] = parseTestString(testCase.testStr); in TEST() 210 ASSERT_NE(expectationIndex, testCase.expects.size()); in TEST() 211 const std::string expectString = testCase.expects[expectationIndex++]; in TEST() 218 EXPECT_EQ(expectationIndex, testCase.expects.size()) << "Expectations Remains"; in TEST() [all …]
|
D | FontFamilyTest.cpp | 254 for (const auto& testCase : testCases) { in TEST() local 256 HB_TAG(testCase.requestedScript[0], testCase.requestedScript[1], in TEST() 257 testCase.requestedScript[2], testCase.requestedScript[3])); in TEST() 258 if (testCase.isSupported) { in TEST() 259 EXPECT_TRUE(createLocale(testCase.baseScript).supportsHbScript(script)) in TEST() 260 << testCase.baseScript << " should support " << testCase.requestedScript; in TEST() 262 EXPECT_FALSE(createLocale(testCase.baseScript).supportsHbScript(script)) in TEST() 263 << testCase.baseScript << " shouldn't support " << testCase.requestedScript; in TEST() 559 for (const auto& testCase : testCases) { in TEST_F() local 560 SCOPED_TRACE(testCase.hasVSTable ? "Font " + testCase.fontPath + in TEST_F() [all …]
|
D | FontCollectionItemizeTest.cpp | 912 for (auto testCase : testCases) { in TEST() local 914 for (size_t i = 0; i < testCase.fontLocales.size(); ++i) { in TEST() 918 fontLocaleStr += "\"" + testCase.fontLocales[i] + "\""; in TEST() 921 SCOPED_TRACE("Test of user preferred locale: \"" + testCase.userPreferredLocale + in TEST() 941 for (size_t i = 0; i < testCase.fontLocales.size(); ++i) { in TEST() 946 auto family = std::make_shared<FontFamily>(registerLocaleList(testCase.fontLocales[i]), in TEST() 954 auto runs = itemize(collection, "U+9AA8", testCase.userPreferredLocale); in TEST() 964 EXPECT_EQ(testCase.selectedFontIndex, usedLocaleIndex); in TEST() 1266 for (const auto& testCase : testCases) { in TEST() local 1267 SCOPED_TRACE("Test for \"" + testCase.testString + "\" with locales " + in TEST() [all …]
|
D | CmapCoverageTest.cpp | 351 for (const auto& testCase : TEST_CASES) { in TEST() local 352 SCOPED_TRACE(testCase.testTitle.c_str()); in TEST() 354 testCase.platformId, testCase.encodingId, std::vector<uint16_t>({'a', 'a'})); in TEST() 375 for (const auto& testCase : TEST_CASES) { in TEST() local 376 SCOPED_TRACE(testCase.testTitle.c_str()); in TEST() 378 testCase.platformId, testCase.encodingId, std::vector<uint32_t>({'a', 'a'})); in TEST() 442 for (const auto& testCase : TEST_CASES) { in TEST() local 443 SCOPED_TRACE(testCase.testTitle.c_str()); in TEST() 446 testCase.platformId, testCase.encodingId, std::vector<uint16_t>({'a', 'a'})); in TEST()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorStrategyImplTest.java | 134 SuggestionTestCase testCase = newTestCase(MATCH_TYPE_NETWORK_COUNTRY_ONLY, in testTelephonySuggestionsWhenTimeZoneUninitialized() local 146 testCase.createSuggestion(SLOT_INDEX1, "America/New_York"); in testTelephonySuggestionsWhenTimeZoneUninitialized() 154 lowQualitySuggestion, testCase.expectedScore); in testTelephonySuggestionsWhenTimeZoneUninitialized() 181 testCase.createSuggestion(SLOT_INDEX1, "America/Los_Angeles"); in testTelephonySuggestionsWhenTimeZoneUninitialized() 188 lowQualitySuggestion2, testCase.expectedScore); in testTelephonySuggestionsWhenTimeZoneUninitialized() 204 for (SuggestionTestCase testCase : TEST_CASES) { in testTogglingAutoTimeZoneDetection() 210 testCase.createSuggestion(SLOT_INDEX1, "Europe/London"); in testTogglingAutoTimeZoneDetection() 219 new QualifiedTelephonyTimeZoneSuggestion(suggestion, testCase.expectedScore); in testTogglingAutoTimeZoneDetection() 230 if (testCase.expectedScore >= TELEPHONY_SCORE_USAGE_THRESHOLD) { in testTogglingAutoTimeZoneDetection() 260 for (SuggestionTestCase testCase : TEST_CASES) { in testTelephonySuggestionsSingleSlotId() [all …]
|
/frameworks/base/test-runner/src/junit/textui/ |
D | TestRunner.java | 153 String testCase= ""; in start() local 161 testCase= extractClassName(args[++i]); in start() 165 testCase= arg.substring(0, lastIndex); in start() 170 testCase= args[i]; in start() 173 if (testCase.equals("")) in start() 178 return runSingleMethod(testCase, method, wait); in start() 179 Test suite= getTest(testCase); in start() 186 …protected TestResult runSingleMethod(String testCase, String method, boolean wait) throws Exceptio… in runSingleMethod() argument 187 Class<? extends TestCase> testClass= loadSuiteClass(testCase).asSubclass(TestCase.class); in runSingleMethod()
|
/frameworks/base/test-runner/tests/src/android/test/ |
D | AndroidTestRunnerTest.java | 107 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInSuite() 108 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext()); in testRunTestWithAndroidTestCaseInSuite() 123 for (TestCase testCase : testCases) { in testRunTestWithAndroidTestCaseInNestedSuite() 124 assertSame(mStubContext, ((AndroidTestCase) testCase).getContext()); in testRunTestWithAndroidTestCaseInNestedSuite() 143 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuiteProvider() 144 testNames.add(testCase.getName()); in testSetTestClassWithTestSuiteProvider() 155 for (TestCase testCase : testCases) { in testSetTestClassWithTestSuite() 156 testNames.add(testCase.getName()); in testSetTestClassWithTestSuite() 166 for (TestCase testCase : testCases) { in testRunSingleTestMethod() 167 testNames.add(testCase.getName()); in testRunSingleTestMethod()
|
D | TestCaseUtilTest.java | 48 TestCase testCase = new OneTestTestCaseWithSuite(); in testGetTests_ForTestCaseWithSuiteMethod() local 50 List<String> testCaseNames = getTestCaseNames(testCase); in testGetTests_ForTestCaseWithSuiteMethod() 84 TestCase testCase = new OneTestTestCase(); in suite() local 85 testCase.setName("testOne"); in suite() 86 return testCase; in suite()
|
/frameworks/base/test-runner/src/android/test/ |
D | AndroidTestRunner.java | 57 TestCase testCase = buildSingleTestMethod(testClass, testMethodName); in setTestClassName() local 59 mTestCases.add(testCase); in setTestClassName() 118 TestCase testCase = (TestCase) constructor.newInstance(args); in newSingleTestMethod() local 119 testCase.setName(testMethodName); in newSingleTestMethod() 120 return testCase; in newSingleTestMethod() 192 for (TestCase testCase : mTestCases) { in runTest() 193 setContextIfAndroidTestCase(testCase, mContext, testContext); in runTest() 194 setInstrumentationIfInstrumentationTestCase(testCase, mInstrumentation); in runTest() 195 testCase.run(mTestResult); in runTest()
|
D | TestCaseUtil.java | 115 TestCase testCase = (TestCase) test; in getTestName() local 116 return testCase.getName(); in getTestName()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | PaintTest.java | 85 HintingTestCase testCase = HINTING_TESTCASES[i]; in testHintingWidth() local 87 paint.setTextSize(testCase.mTextSize); in testHintingWidth() 89 float[] widths = new float[testCase.mText.length()]; in testHintingWidth() 92 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() 93 assertEquals("Text width of '" + testCase.mText + "' without hinting is not expected.", in testHintingWidth() 94 testCase.mWidthWithoutHinting, widths); in testHintingWidth() 97 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() 98 assertEquals("Text width of '" + testCase.mText + "' with hinting is not expected.", in testHintingWidth() 99 testCase.mWidthWithHinting, widths); in testHintingWidth() 142 for (HasGlyphTestCase testCase : HAS_GLYPH_TEST_CASES) { in testHasGlyph_variationSelectors() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | OrientationUtil.java | 49 ActivityInstrumentationTestCase2 testCase) { in initializeAndStartActivityIfNotStarted() argument 50 Preconditions.checkNotNull(testCase); in initializeAndStartActivityIfNotStarted() 51 return new OrientationUtil(testCase.getActivity(), testCase.getInstrumentation()); in initializeAndStartActivityIfNotStarted()
|
/frameworks/base/test-runner/src/android/test/suitebuilder/ |
D | TestSuiteBuilder.java | 88 for (TestCase testCase : (List<TestCase>) TestCaseUtil.getTests(testSuite, true)) { in addTestSuite() 89 this.testCases.add(testCase); in addTestSuite() 189 for (TestCase testCase : testCases) { in build() 190 if (satisfiesAllPredicates(new TestMethod(testCase))) { in build() 191 addTest(testCase); in build()
|
D | TestMethod.java | 50 public TestMethod(TestCase testCase) { in TestMethod() argument 51 this(testCase.getName(), testCase.getClass()); in TestMethod()
|
D | TestGrouping.java | 70 for (Class<? extends TestCase> testCase : testCaseClasses) { in getTests() 71 for (Method testMethod : getTestMethods(testCase)) { in getTests() 72 testMethods.add(new TestMethod(testMethod, testCase)); in getTests()
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | TestCaseCollector.java | 110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod() local 111 testCase.setName(method); in addSingleTestMethod() 112 mTestCases.add(testCase); in addSingleTestMethod()
|
D | UiAutomatorTestRunner.java | 158 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/av/camera/ndk/ndk_vendor/tests/ |
D | AImageReaderVendorTest.cpp | 576 ImageReaderTestCase testCase( in takePictures() local 579 ret = testCase.initImageReader(); in takePictures() 587 cameraHelper.initCamera(testCase.getNativeWindow(), {}/*physicalImageReaders*/, in takePictures() 613 if (testCase.getAcquiredImageCount() == pictureCount) { in takePictures() 619 return testCase.getAcquiredImageCount() == pictureCount && in takePictures() 746 ImageReaderTestCase* testCase = new ImageReaderTestCase( in testLogicalCameraPhysicalStream() local 749 ASSERT_EQ(testCase->initImageReader(), 0); in testLogicalCameraPhysicalStream() 750 testCases.push_back(testCase); in testLogicalCameraPhysicalStream() 788 for(auto &testCase : testCases) { in testLogicalCameraPhysicalStream() local 789 auto it = configuredWindowsp->find(testCase->getNativeWindow()); in testLogicalCameraPhysicalStream() [all …]
|
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
D | UnitTestSuiteBuilderTest.java | 105 TestCase testCase = (TestCase) test; in testName() local 106 return testCase.getClass().getSimpleName() + "." + testCase.getName(); in testName()
|
D | TestSuiteBuilderTest.java | 227 TestCase testCase = (TestCase) test; 228 return testCase.getClass().getSimpleName() + "." + testCase.getName();
|
/frameworks/ml/nn/runtime/test/android_fuzzing/ |
D | GenerateCorpus.cpp | 155 void createCorpusEntry(const std::pair<std::string, const TestModel*>& testCase, in createCorpusEntry() argument 157 const auto& [testName, testModel] = testCase; in createCorpusEntry() 183 [&genDir](const auto& testCase) { createCorpusEntry(testCase, genDir); }); in main() argument
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | PropertyNodesVerifier.java | 34 public PropertyNodesVerifier(AndroidTestCase testCase) { in PropertyNodesVerifier() argument 37 mAndroidTestCase = testCase; in PropertyNodesVerifier()
|