Home
last modified time | relevance | path

Searched refs:sInstrumentation (Results 1 – 11 of 11) sorted by relevance

/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityManagerTest.java68 private static final Instrumentation sInstrumentation = field in AccessibilityManagerTest
95 sInstrumentation.getContext().getSystemService(Service.ACCESSIBILITY_SERVICE); in setUp()
96 mTargetContext = sInstrumentation.getTargetContext(); in setUp()
99 sInstrumentation.getUiAutomation().destroy(); in setUp()
100 InstrumentedAccessibilityService.disableAllServices(sInstrumentation); in setUp()
105 InstrumentedAccessibilityService.disableAllServices(sInstrumentation); in tearDown()
130 SpeakingAccessibilityService.enableSelf(sInstrumentation); in testIsTouchExplorationEnabled()
131 VibratingAccessibilityService.enableSelf(sInstrumentation); in testIsTouchExplorationEnabled()
166 SpeakingAccessibilityService.enableSelf(sInstrumentation); in testGetEnabledAccessibilityServiceList()
167 VibratingAccessibilityService.enableSelf(sInstrumentation); in testGetEnabledAccessibilityServiceList()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowReportingTest.java80 private static Instrumentation sInstrumentation; field in AccessibilityWindowReportingTest
91 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
92 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
106 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
107 mActivityTitle = getActivityTitle(sInstrumentation, mActivity); in setUp()
114 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
133 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
139 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
144 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
152 if (!sInstrumentation.getContext().getPackageManager() in putWindowInPictureInPicture_generatesEventAndReportsProperty()
[all …]
DAccessibilityPaneTest.java55 private static Instrumentation sInstrumentation; field in AccessibilityPaneTest
67 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
68 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
74 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
75 sInstrumentation.runOnMainSync(() -> { in setUp()
82 String paneTitle = sInstrumentation.getContext().getString(R.string.paneTitle); in paneTitleFromXml_reportedToAccessibility()
92 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
129 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility()
134 return () -> sInstrumentation.runOnMainSync( in setPaneViewParentVisibility()
DAccessibilityFocusAndInputFocusSyncTest.java63 private static Instrumentation sInstrumentation; field in AccessibilityFocusAndInputFocusSyncTest
74 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
75 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
90 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
97 sInstrumentation.runOnMainSync(() -> { in testFindAccessibilityFocus()
103 sInstrumentation.getContext().getString(R.string.firstEditText)).get(0); in testFindAccessibilityFocus()
140 sInstrumentation.getContext().getString(R.string.rootLinearLayout)).get(0); in testActionAccessibilityFocus()
164 sInstrumentation.getContext().getString(R.string.rootLinearLayout)).get(0); in testActionClearAccessibilityFocus()
199 sInstrumentation.getContext().getString(R.string.firstEditText)).get(0); in testOnlyOneNodeHasAccessibilityFocus()
213 sInstrumentation.getContext().getString(R.string.secondEditText)).get(0); in testOnlyOneNodeHasAccessibilityFocus()
[all …]
DAccessibilityEndToEndTest.java129 private static Instrumentation sInstrumentation; field in AccessibilityEndToEndTest
140 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
141 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
152 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
419 PackageManager pm = sInstrumentation.getTargetContext().getPackageManager(); in testTypeNotificationStateChangedAccessibilityEvent()
503 sInstrumentation in testInterrupt_notifiesService()
506 sInstrumentation, InstrumentedAccessibilityService.class); in testInterrupt_notifiesService()
548 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFaked()
568 sInstrumentation.runOnMainSync(() -> { in testPackageNameCannotBeFakedAppWidget()
581 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFakedAppWidget()
[all …]
DAccessibilityViewTreeReportingTest.java59 private static Instrumentation sInstrumentation; field in AccessibilityViewTreeReportingTest
70 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
71 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
82 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
152 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.firstLinearLayout) in testDrawingOrderInImportantParentFollowsXmlOrder()
184 sInstrumentation.runOnMainSync(() -> {
201 sInstrumentation.runOnMainSync(() -> {
233 sInstrumentation.runOnMainSync(
264 sInstrumentation.runOnMainSync(() -> {
277 sInstrumentation.runOnMainSync(() -> {
[all …]
DAccessibilityOverlayTest.java48 private static Instrumentation sInstrumentation; field in AccessibilityOverlayTest
54 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetUp()
55 sUiAutomation = sInstrumentation in oneTimeSetUp()
64 mService = StubAccessibilityButtonService.enableSelf(sInstrumentation); in setUp()
DAccessibilityTextActionTest.java75 private static Instrumentation sInstrumentation; field in AccessibilityTextActionTest
89 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
90 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
96 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
122 sInstrumentation.waitForIdleSync(); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction()
131 sInstrumentation.runOnMainSync(new Runnable() { in testEditableTextView_shouldExposeAndRespondToSetTextAction()
155 sInstrumentation.waitForIdleSync(); in testEditableTextView_shouldExposeAndRespondToSetTextAction()
181 sInstrumentation.waitForIdleSync(); in testEditText_shouldExposeAndRespondToSetTextAction()
237 sInstrumentation.runOnMainSync(() -> textView.setAllCaps(true)); in testTextLocations_textViewShouldProvideWhenRequested()
287 sInstrumentation.runOnMainSync(() -> { in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull()
[all …]
DAccessibilityWindowQueryTest.java107 private static Instrumentation sInstrumentation; field in AccessibilityWindowQueryTest
122 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
123 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
137 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
153 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.added_content) in testFindByText()
335 sInstrumentation.runOnMainSync(() -> { in testSingleAccessibilityFocusAcrossWindows()
337 sInstrumentation.getContext().getSystemService(WindowManager.class); in testSingleAccessibilityFocusAcrossWindows()
562 if (!ActivityTaskManager.supportsSplitScreenMultiWindow(sInstrumentation.getContext())) { in testWindowDockAndUndock_dividerWindowAppearsAndDisappears()
567 if (sInstrumentation.getContext().getPackageManager() in testWindowDockAndUndock_dividerWindowAppearsAndDisappears()
588 if (!sInstrumentation.getContext().getPackageManager() in testFindPictureInPictureWindow()
[all …]
DAccessibilityTextTraversalTest.java62 private static Instrumentation sInstrumentation; field in AccessibilityTextTraversalTest
73 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
74 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
85 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
94 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription()
310 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityWordOverContentDescription()
526 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverText()
776 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverTextExtend()
1022 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverTextExtend()
1042 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverTextExtend()
[all …]
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java98 private static final Instrumentation sInstrumentation = field in RoleManagerTest
103 private static final UiDevice sUiDevice = UiDevice.getInstance(sInstrumentation);
147 runShellCommand(sInstrumentation, "input keyevent KEYCODE_WAKEUP"); in wakeUpScreen()