/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/listbuilder/ |
H A D | SemiStableSortTest.kt | 76 private fun testCase( regex 101 testCase("", "", "", true) 103 testCase("ABCDEFG", "", "", true) 105 testCase("ABCDEFG", "ABCDEFG", "ABCDEFG", true) 108 testCase("", "ABCDEFG", "ABCDEFG", true) 111 testCase("ABCDEFG", "AFBCDEG", "ABCDEFG", false) // No other changes 117 testCase("ABCDEFG", "ACDEFBG", "ABCDEFG", false) // No other changes 123 testCase("ABCDEFG", "AFCDEBG", "ABCDEFG", false) // No other changes 132 testCase("ABCDEFGHIJKL", "ACEGHI", "ACEGHI", true) 135 testCase("ABCDEFGHIJKL", "GCEHAI", "ACEGHI", false) [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/ |
H A D | PromptViewModelTest.kt | 144 val forceError = testCase.isCoex && testCase.authenticatedByFingerprint 153 testCase.authenticatedModality, 210 testCase.shouldStartAsImplicitFlow && 509 if (!testCase.isFaceOnly) { 525 if (testCase.isFaceOnly && expectConfirmation) { 547 if (!testCase.isFaceOnly) { 629 if (testCase.isCoex && testCase.authenticatedByFingerprint) { 656 val expectTryAgainButton = testCase.isFaceOnly 669 failedModality = testCase.authenticatedModality 732 fingerprint = testCase.fingerprint, [all …]
|
/aosp14/frameworks/base/test-runner/src/junit/textui/ |
H A 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()
|
/aosp14/frameworks/base/test-runner/tests/src/android/test/ |
H A 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()
|
H A 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()
|
/aosp14/frameworks/base/test-runner/src/android/test/ |
H A 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()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A 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() 94 testCase.mWidthWithoutHinting, widths); in testHintingWidth() 97 paint.getTextWidths(String.valueOf(testCase.mText), widths); in testHintingWidth() 99 testCase.mWidthWithHinting, widths); in testHintingWidth() 142 for (HasGlyphTestCase testCase : HAS_GLYPH_TEST_CASES) { in testHasGlyph_variationSelectors() 149 "hasGlyph(U+" + Integer.toHexString(testCase.mBaseCodepoint) + in testHasGlyph_variationSelectors() 152 codePointsToString(new int[] {testCase.mBaseCodepoint, vs}); in testHasGlyph_variationSelectors() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/util/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/udfps/ |
H A D | EllipseOverlapDetectorTest.kt | 31 class EllipseOverlapDetectorTest(val testCase: TestCase) : SysuiTestCase() { 41 x = testCase.x.toFloat(), 42 y = testCase.y.toFloat(), 43 minor = testCase.minor, 44 major = testCase.major 48 assertThat(actual).isEqualTo(testCase.expected)
|
H A D | NormalizedTouchDataTest.kt | 14 class NormalizedTouchDataTest(val testCase: TestCase) : SysuiTestCase() { 18 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) 21 assertThat(actual).isEqualTo(testCase.expected)
|
H A D | BoundingBoxOverlapDetectorTest.kt | 30 class BoundingBoxOverlapDetectorTest(val testCase: TestCase) : SysuiTestCase() { 35 val touchData = TOUCH_DATA.copy(x = testCase.x.toFloat(), y = testCase.y.toFloat()) 38 assertThat(actual).isEqualTo(testCase.expected)
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
H A D | OverlayActorEnforcerTests.kt | 59 fun parameters() = CASES.mapIndexed { caseIndex, testCase -> 61 val expectedState = testCase.state.takeUnless { type == Params.Type.ALLOWED } 64 val testName = makeTestName(testCase, caseName, type) 68 testCase.failures.map { param(it, Params.Type.FAILURE) } + 69 testCase.allowed.map { param(it, Params.Type.ALLOWED) } 83 val duplicateCaseNames = CASES.mapIndexed { caseIndex, testCase -> 84 testCase.failures.map { 85 makeTestName(testCase, it.first, Params.Type.FAILURE) 86 } + testCase.allowed.map { 87 makeTestName(testCase, it.first, Params.Type.ALLOWED) [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/ |
H A D | WifiViewModelIconParameterizedTest.kt | 64 internal class WifiViewModelIconParameterizedTest(private val testCase: TestCase) : 107 wifiRepository.setIsWifiEnabled(testCase.enabled) 108 wifiRepository.setIsWifiDefault(testCase.isDefault) 110 if (testCase.forceHidden) { 117 .thenReturn(testCase.alwaysShowIconWhenEnabled) 119 .thenReturn(testCase.hasDataCapabilities) 136 wifiRepository.setWifiNetwork(testCase.network) 141 when (testCase.expected) { 148 assertThat(actualIconVisible.icon.res).isEqualTo(testCase.expected.iconResource) 150 testCase.expected.contentDescription.invoke(context)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/ |
H A D | DemoMobileConnectionParameterizedTest.kt | 60 internal class DemoMobileConnectionParameterizedTest(private val testCase: TestCase) : 117 level = testCase.level, 118 dataType = testCase.dataType, 119 subId = testCase.subId, 120 carrierId = testCase.carrierId, 121 inflateStrength = testCase.inflateStrength, 122 activity = testCase.activity, 123 carrierNetworkChange = testCase.carrierNetworkChange, 124 roaming = testCase.roaming,
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
H A D | FloatingRotationButtonPositionCalculatorTest.kt | 17 private val testCase: TestCase, 22 val position = testCase.calculator.calculatePosition( 23 testCase.rotation, 24 testCase.taskbarVisible, 25 testCase.taskbarStashed 27 assertThat(position).isEqualTo(testCase.expectedPosition)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/kotlin/ |
H A D | PackageManagerExtComponentEnabledTest.kt | 37 internal class PackageManagerExtComponentEnabledTest(private val testCase: TestCase) : 50 .thenReturn(testCase.componentEnabledSetting) 53 whenever(isEnabled).thenReturn(testCase.componentIsEnabled) 58 .isEqualTo(testCase.expected)
|
/aosp14/frameworks/base/test-runner/src/android/test/suitebuilder/ |
H A 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()
|
H A D | TestMethod.java | 50 public TestMethod(TestCase testCase) { in TestMethod() argument 51 this(testCase.getName(), testCase.getClass()); in TestMethod()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/ |
H A D | TimeZoneDetectorStrategyImplTest.java | 523 for (TelephonyTestCase testCase : TELEPHONY_TEST_CASES) { in testTogglingAutoDetection_autoTelephony() 581 for (TelephonyTestCase testCase : TELEPHONY_TEST_CASES) { in testTelephonySuggestionsSingleSlotId() 582 makeSlotIndex1SuggestionAndCheckState(script, testCase); in testTelephonySuggestionsSingleSlotId() 595 for (TelephonyTestCase testCase : descendingCasesByScore) { in testTelephonySuggestionsSingleSlotId() 596 makeSlotIndex1SuggestionAndCheckState(script, testCase); in testTelephonySuggestionsSingleSlotId() 653 for (TelephonyTestCase testCase : TELEPHONY_TEST_CASES) { in testTelephonySuggestionMultipleSlotIndexSuggestionScoringAndSlotIndexBias() 655 testCase.createSuggestion(SLOT_INDEX1, zoneIds[0]); in testTelephonySuggestionMultipleSlotIndexSuggestionScoringAndSlotIndexBias() 657 testCase.createSuggestion(SLOT_INDEX2, zoneIds[1]); in testTelephonySuggestionMultipleSlotIndexSuggestionScoringAndSlotIndexBias() 660 testCase.expectedScore); in testTelephonySuggestionMultipleSlotIndexSuggestionScoringAndSlotIndexBias() 663 testCase.expectedScore); in testTelephonySuggestionMultipleSlotIndexSuggestionScoringAndSlotIndexBias() [all …]
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | BackNavigationControllerTests.java | 170 testCase.windowFront.mAttrs.windowAnimations = 0x10; in backTypeCrossActivityWithCustomizeExitAnimation() 181 .isEqualTo(testCase.windowFront.mAttrs.windowAnimations); in backTypeCrossActivityWithCustomizeExitAnimation() 204 testCase.recordFront.forAllWindows(w -> { in backTypeCrossActivityWhenBackToPreviousActivity() 214 doReturn(true).when(testCase.recordBack).canShowWhenLocked(); in backTypeCrossActivityWhenBackToPreviousActivity() 661 CrossActivityTestCase testCase = new CrossActivityTestCase(); 662 testCase.task = task; 663 testCase.recordBack = record1; 664 testCase.recordFront = record2; 665 testCase.windowBack = window1; 666 testCase.windowFront = window2; [all …]
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/model/ |
H A D | SignalIconModelParameterizedTest.kt | 31 internal class SignalIconModelParameterizedTest(private val testCase: TestCase) : SysuiTestCase() { 50 val model = testCase.toSignalIconModel() 51 assertThat(model.toSignalDrawableState()).isEqualTo(testCase.expected)
|
/aosp14/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
H A D | TestCaseCollector.java | 110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod() local 111 testCase.setName(method); in addSingleTestMethod() 112 mTestCases.add(testCase); in addSingleTestMethod()
|
H A 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()
|
/aosp14/frameworks/base/test-runner/tests/src/android/test/suitebuilder/ |
H A D | UnitTestSuiteBuilderTest.java | 105 TestCase testCase = (TestCase) test; in testName() local 106 return testCase.getClass().getSimpleName() + "." + testCase.getName(); in testName()
|
/aosp14/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
H A D | ScreenRecordTestBase.kt | 73 val testCase = object : ISurfaceValidatorTestCase { regex 81 return mActivity.runTest(testCase)
|