Home
last modified time | relevance | path

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

12

/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityWindowReportingTest.java102 private static Instrumentation sInstrumentation; field in AccessibilityWindowReportingTest
120 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
121 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
135 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
136 mActivityTitle = getActivityTitle(sInstrumentation, mActivity); in setUp()
140 return sInstrumentation.getTargetContext().getResources() in perDisplayFocusEnabled()
150 () -> sInstrumentation.runOnMainSync(() -> mActivity.setTitle(updatedTitle)), in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle()
168 sInstrumentation, mActivity, TOP_WINDOW_TITLE); in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
173 WindowCreationUtils.addWindowAndWaitForEvent(sUiAutomation, sInstrumentation, mActivity, in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
177 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree()
[all …]
DAccessibilityPaneTest.java62 private static Instrumentation sInstrumentation; field in AccessibilityPaneTest
88 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
89 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
95 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
96 sInstrumentation.runOnMainSync(() -> { in setUp()
103 String paneTitle = sInstrumentation.getContext().getString(R.string.paneTitle); in paneTitleFromXml_reportedToAccessibility()
113 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
123 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
132 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility()
162 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility()
[all …]
DAccessibilityImeTest.java78 private static Instrumentation sInstrumentation; field in AccessibilityImeTest
102 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
103 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
104 sInstrumentation in oneTimeSetup()
120 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
148 sInstrumentation.runOnMainSync(() -> mEditText.setPrivateImeOptions(markerValue)); in testDefaultImplementation()
156 RunOnMainUtils.getOnMain(sInstrumentation, () -> { in testDefaultImplementation()
162 assertTrue(RunOnMainUtils.getOnMain(sInstrumentation, in testDefaultImplementation()
173 () -> RunOnMainUtils.getOnMain(sInstrumentation, in testDefaultImplementation()
194 sInstrumentation.runOnMainSync(() -> { in testOnUpdateSelectionForInProcessA11yIme()
[all …]
DAccessibilityGlobalActionsTest.java55 private static Instrumentation sInstrumentation; field in AccessibilityGlobalActionsTest
65 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
66 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
67 sUiDevice = UiDevice.getInstance(sInstrumentation); in oneTimeSetup()
72 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in oneTimeSetup()
DFullScreenMagnificationControllerTest.java71 private static Instrumentation sInstrumentation; field in FullScreenMagnificationControllerTest
93 sInstrumentation = androidx.test.platform.app.InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
94 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
108 isAutomotive(sInstrumentation.getTargetContext())); in setUp()
116 launchActivityAndWaitForItToBeOnscreen(sInstrumentation, sUiAutomation, mActivityRule); in testActivityTransitions_fullscreenMagnifierMagnifying_zoomOut()
120 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in testActivityTransitions_fullscreenMagnifierMagnifying_zoomOut()
DAccessibilityGestureDetectorTest.java87 private static Instrumentation sInstrumentation; field in AccessibilityGestureDetectorTest
122 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
123 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup()
137 PackageManager pm = sInstrumentation.getContext().getPackageManager(); in setUp()
146 WindowManager windowManager = (WindowManager) sInstrumentation.getContext() in setUp()
153 ViewConfiguration.get(sInstrumentation.getContext()).getScaledTouchSlop(); in setUp()
184 assumeTrue(sInstrumentation.getContext().getPackageManager() in testRecognizeGesturePathOnVirtualDisplay()
193 sInstrumentation.getTargetContext(), false).getDisplayId(); in testRecognizeGesturePathOnVirtualDisplay()
196 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testRecognizeGesturePathOnVirtualDisplay()
203 sInstrumentation.runOnMainSync(() -> { in testRecognizeGesturePathOnVirtualDisplay()
[all …]
DAccessibilityViewTreeReportingTest.java66 private static Instrumentation sInstrumentation; field in AccessibilityViewTreeReportingTest
84 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
85 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
96 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
166 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.firstLinearLayout) in testDrawingOrderInImportantParentFollowsXmlOrder()
198 sInstrumentation.runOnMainSync(() -> {
215 sInstrumentation.runOnMainSync(() -> {
247 sInstrumentation.runOnMainSync(
278 sInstrumentation.runOnMainSync(() -> {
291 sInstrumentation.runOnMainSync(() -> {
[all …]
DAccessibilityEmbeddedHierarchyTest.java72 private static Instrumentation sInstrumentation; field in AccessibilityEmbeddedHierarchyTest
96 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
97 sInstrumentation.setInTouchMode(false); in oneTimeSetup()
98 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
99 sUiDevice = UiDevice.getInstance(sInstrumentation); in oneTimeSetup()
110 sInstrumentation.resetInTouchMode(); in postTestTearDown()
257 final DisplayManager dm = sInstrumentation.getContext().getSystemService( in getScreenSize()
316 () -> sInstrumentation.runOnMainSync(() -> { in moveSurfaceViewLayoutPosition()
DAccessibilityInputConnectionTest.java76 private static Instrumentation sInstrumentation; field in AccessibilityInputConnectionTest
96 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
97 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
98 sInstrumentation in oneTimeSetup()
120 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
123 sInstrumentation.runOnMainSync(() -> { in setUp()
149 sInstrumentation, in getInputConnection()
DAccessibilityTakeScreenshotTest.java98 private static Instrumentation sInstrumentation; field in AccessibilityTakeScreenshotTest
123 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
124 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
179 assumeTrue(supportsMultiDisplay(sInstrumentation.getContext())); in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult()
186 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult()
195 sInstrumentation.runOnMainSync(() -> { in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult()
217 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap()
235 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap()
254 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOfWindow_GetScreenshotResult()
283 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOfWindow_ErrorForSecureWindow()
[all …]
DAccessibilityEndToEndTest.java182 private static Instrumentation sInstrumentation; field in AccessibilityEndToEndTest
210 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
211 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
223 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
528 PackageManager pm = sInstrumentation.getTargetContext().getPackageManager(); in testTypeNotificationStateChangedAccessibilityEvent()
535 isAutomotive(sInstrumentation.getTargetContext())); in testTypeNotificationStateChangedAccessibilityEvent()
608 sInstrumentation in testInterrupt_notifiesService()
655 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFaked()
675 sInstrumentation.runOnMainSync(() -> { in testPackageNameCannotBeFakedAppWidget()
688 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFakedAppWidget()
[all …]
DAccessibilityTextActionTest.java94 private static Instrumentation sInstrumentation; field in AccessibilityTextActionTest
114 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
115 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
121 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
147 sInstrumentation.waitForIdleSync(); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction()
156 sInstrumentation.runOnMainSync(new Runnable() { in testEditableTextView_shouldExposeAndRespondToSetTextAction()
180 sInstrumentation.waitForIdleSync(); in testEditableTextView_shouldExposeAndRespondToSetTextAction()
206 sInstrumentation.waitForIdleSync(); in testEditText_shouldExposeAndRespondToSetTextAction()
281 sInstrumentation.runOnMainSync(() -> textView.setAllCaps(true)); in testTextLocations_textViewShouldProvideWhenRequested()
332 sInstrumentation.runOnMainSync(() -> { in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull()
[all …]
DAccessibilityWindowQueryTest.java132 private static Instrumentation sInstrumentation; field in AccessibilityWindowQueryTest
151 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
152 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup()
167 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
175 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.added_content) in testFindByText()
354 sInstrumentation.runOnMainSync(() -> { in testSingleAccessibilityFocusAcrossWindows()
356 sInstrumentation.getContext().getSystemService(WindowManager.class); in testSingleAccessibilityFocusAcrossWindows()
586 if (!sInstrumentation.getContext().getPackageManager() in testFindPictureInPictureWindow()
590 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testFindPictureInPictureWindow()
628 assumeTrue(supportsMultiDisplay(sInstrumentation.getContext())); in testGetWindowsOnAllDisplays_resultIsSortedByLayerDescending()
[all …]
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibActivityTest.java53 private static final Instrumentation sInstrumentation = field in EventLibActivityTest
96 Activity activity = sInstrumentation.startActivitySync(intent); in startEventLibActivity_logsActivityStartedEvent()
99 sInstrumentation.callActivityOnStart(activity); in startEventLibActivity_logsActivityStartedEvent()
113 Activity activity = sInstrumentation.startActivitySync(intent); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName()
116 sInstrumentation.callActivityOnStart(activity); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName()
130 Activity activity = sInstrumentation.startActivitySync(intent); in stopEventLibActivity_logsActivityStoppedEvent()
133 sInstrumentation.callActivityOnStop(activity); in stopEventLibActivity_logsActivityStoppedEvent()
147 Activity activity = sInstrumentation.startActivitySync(intent); in stopEventLibActivity_withGeneratedActivityClass_logsActivityStoppedEventWithCorrectClassName()
150 sInstrumentation.callActivityOnStop(activity); in stopEventLibActivity_withGeneratedActivityClass_logsActivityStoppedEventWithCorrectClassName()
164 Activity activity = sInstrumentation.startActivitySync(intent); in destroyEventLibActivity_logsActivityDestroyedEvent()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPhotoPickerBaseTest.java43 private static final Instrumentation sInstrumentation = field in PhotoPickerBaseTest
46 sInstrumentation.getTargetContext().getPackageName();
47 protected static final UiDevice sDevice = UiDevice.getInstance(sInstrumentation);
66 mContext = sInstrumentation.getContext(); in setUp()
74 mActivity = (GetResultActivity) sInstrumentation.startActivitySync(intent); in setUp()
76 sInstrumentation.waitForIdleSync(); in setUp()
84 PackageManager pm = sInstrumentation.getContext().getPackageManager(); in isHardwareSupported()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DDeviceTestUtils.java34 private static final Instrumentation sInstrumentation = field in DeviceTestUtils
39 InputStream in = sInstrumentation.getContext() in createContentFromResource()
52 PackageManager pm = sInstrumentation.getContext().getPackageManager(); in checkUISupported()
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityEventTest.java81 private static Instrumentation sInstrumentation; field in AccessibilityEventTest
100 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
101 sUiAutomation = sInstrumentation.getUiAutomation(); in setUp()
103 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
147 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testScrollEvent()
154 () -> sInstrumentation.runOnMainSync( in testScrollEventBurstCombined()
169 sInstrumentation.runOnMainSync(() -> { in testScrollEventsDeliveredInCorrectInterval()
175 sInstrumentation.runOnMainSync(() -> { in testScrollEventsDeliveredInCorrectInterval()
180 sInstrumentation.runOnMainSync(() -> { in testScrollEventsDeliveredInCorrectInterval()
210 () -> sInstrumentation.runOnMainSync( in testScrollEventsClearedOnDetach()
[all …]
DAccessibilityEventAndCacheTest.java62 private static Instrumentation sInstrumentation; field in AccessibilityEventAndCacheTest
84 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in setUp()
85 sUiAutomation = sInstrumentation.getUiAutomation(); in setUp()
87 sInstrumentation, sUiAutomation, mActivityRule); in setUp()
109 () -> sInstrumentation.runOnMainSync(() -> { in testSimultaneousChangesUpdatesAllChildNodes()
DAccessibilityShortcutTest.java68 private static Instrumentation sInstrumentation; field in AccessibilityShortcutTest
102 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
103 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup()
113 final Context context = sInstrumentation.getTargetContext(); in setUp()
124 sInstrumentation.addMonitor(mActivityMonitor); in setUp()
130 sInstrumentation.removeMonitor(mActivityMonitor); in tearDown()
133 sInstrumentation.runOnMainSync(() -> mShortcutTargetActivity.finish()); in tearDown()
/cts/tests/tests/nfc/src/android/nfc/cts/interactive/
DTagVerifierTest.java57 private static final Instrumentation sInstrumentation = field in TagVerifierTest
67 Activity activity = sInstrumentation.startActivitySync(intent); in setUp()
68 sInstrumentation.runOnMainSync( in setUp()
69 () -> sInstrumentation.callActivityOnResume(activity)); in setUp()
/cts/tests/app/src/android/app/cts/
DActivityManagerApi29Test.java92 private static final Instrumentation sInstrumentation = field in ActivityManagerApi29Test
94 private static final Context sContext = sInstrumentation.getContext();
95 private static final Context sTargetContext = sInstrumentation.getTargetContext();
115 CtsAppTestUtils.turnScreenOn(sInstrumentation, sContext); in setUp()
116 CtsAppTestUtils.makeUidIdle(sInstrumentation, PACKAGE_NAME); in setUp()
131 mUidWatcher = new WatchUidRunner(sInstrumentation, sUid, WAITFOR_MSEC); in setUp()
134 UiDevice.getInstance(sInstrumentation).pressHome(); in setUp()
139 CtsAppTestUtils.makeUidIdle(sInstrumentation, PACKAGE_NAME); in tearDown()
253 WaitForBroadcast waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps()
260 waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps()
/cts/tests/tests/virtualdevice/core/src/android/virtualdevice/cts/core/
DVirtualDeviceKeyguardTest.java53 private static final Instrumentation sInstrumentation = getInstrumentation(); field in VirtualDeviceKeyguardTest
55 private final Context mContext = sInstrumentation.getContext();
73 try (LockScreenSession session = new LockScreenSession(sInstrumentation, mWmState)) { in deviceIsNotSecure()
88 try (LockScreenSession session = new LockScreenSession(sInstrumentation, mWmState)) { in deviceIsSecureAndLocked()
103 try (LockScreenSession session = new LockScreenSession(sInstrumentation, mWmState)) { in deviceIsSecureNotLocked()
/cts/tests/tests/view/src/android/view/cts/util/
DBitmapDumper.java40 private static Instrumentation sInstrumentation; field in BitmapDumper
47 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in initializeIfNeeded()
48 sDumpDirectory = sInstrumentation.getContext().getExternalCacheDir(); in initializeIfNeeded()
112 sInstrumentation.sendStatus(INST_STATUS_IN_PROGRESS, report); in dumpBitmap()
/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
DGbaServiceTest.java66 private static Instrumentation sInstrumentation; field in GbaServiceTest
79 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in init()
80 sTm = sInstrumentation.getContext().getSystemService(TelephonyManager.class); in init()
82 sInstrumentation, COMMAND_GET_PACKAGE); in init()
84 sInstrumentation, COMMAND_GET_RELEASE)); in init()
245 String result = TelephonyUtils.executeShellCommand(sInstrumentation, in setService()
251 String result = TelephonyUtils.executeShellCommand(sInstrumentation, in setReleaseTime()
/cts/tests/accessibilityservice/testsdk29/src/android/accessibilityservice/cts/
DAccessibilityButtonSdk29Test.java56 private static Instrumentation sInstrumentation; field in AccessibilityButtonSdk29Test
78 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup()
79 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup()
89 mAccessibilityManager = (AccessibilityManager) sInstrumentation.getContext() in setUp()

12