/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/ |
D | EventLibActivityTest.java | 53 private static final Instrumentation sInstrumentation = field in EventLibActivityTest 97 Activity activity = sInstrumentation.startActivitySync(intent); in startEventLibActivity_logsActivityStartedEvent() 100 sInstrumentation.callActivityOnStart(activity); in startEventLibActivity_logsActivityStartedEvent() 114 Activity activity = sInstrumentation.startActivitySync(intent); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName() 117 sInstrumentation.callActivityOnStart(activity); in startEventLibActivity_withGeneratedActivityClass_logsActivityStartedEventWithCorrectClassName() 131 Activity activity = sInstrumentation.startActivitySync(intent); in stopEventLibActivity_logsActivityStoppedEvent() 134 sInstrumentation.callActivityOnStop(activity); in stopEventLibActivity_logsActivityStoppedEvent() 148 Activity activity = sInstrumentation.startActivitySync(intent); in stopEventLibActivity_withGeneratedActivityClass_logsActivityStoppedEventWithCorrectClassName() 151 sInstrumentation.callActivityOnStop(activity); in stopEventLibActivity_withGeneratedActivityClass_logsActivityStoppedEventWithCorrectClassName() 165 Activity activity = sInstrumentation.startActivitySync(intent); in destroyEventLibActivity_logsActivityDestroyedEvent() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityWindowReportingTest.java | 92 private static Instrumentation sInstrumentation; field in AccessibilityWindowReportingTest 110 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 111 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 125 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 126 mActivityTitle = getActivityTitle(sInstrumentation, mActivity); in setUp() 130 return sInstrumentation.getTargetContext().getResources() in perDisplayFocusEnabled() 138 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testUpdatedWindowTitle_generatesEventAndIsReturnedByGetTitle() 157 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() 163 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() 168 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testWindowAddedMovedAndRemoved_generatesEventsForAllThree() [all …]
|
D | AccessibilityPaneTest.java | 57 private static Instrumentation sInstrumentation; field in AccessibilityPaneTest 76 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 77 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 83 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 84 sInstrumentation.runOnMainSync(() -> { in setUp() 91 String paneTitle = sInstrumentation.getContext().getString(R.string.paneTitle); in paneTitleFromXml_reportedToAccessibility() 101 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync(() -> { in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 138 return () -> sInstrumentation.runOnMainSync( in setPaneViewVisibility() 143 return () -> sInstrumentation.runOnMainSync( in setPaneViewParentVisibility()
|
D | AccessibilityGlobalActionsTest.java | 66 private static Instrumentation sInstrumentation; field in AccessibilityGlobalActionsTest 75 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 76 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 91 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in setUp() 97 homeScreenOrBust(sInstrumentation.getContext(), sUiAutomation); in tearDown()
|
D | AccessibilityEndToEndTest.java | 133 private static Instrumentation sInstrumentation; field in AccessibilityEndToEndTest 151 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 152 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 163 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 430 PackageManager pm = sInstrumentation.getTargetContext().getPackageManager(); in testTypeNotificationStateChangedAccessibilityEvent() 514 sInstrumentation in testInterrupt_notifiesService() 560 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFaked() 580 sInstrumentation.runOnMainSync(() -> { in testPackageNameCannotBeFakedAppWidget() 593 sInstrumentation.runOnMainSync(() -> in testPackageNameCannotBeFakedAppWidget() 604 final AppWidgetHost host = new AppWidgetHost(sInstrumentation.getTargetContext(), 0); in testPackageNameCannotBeFakedAppWidget() [all …]
|
D | AccessibilityGestureDetectorTest.java | 81 private static Instrumentation sInstrumentation; field in AccessibilityGestureDetectorTest 108 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 109 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup() 122 PackageManager pm = sInstrumentation.getContext().getPackageManager(); in setUp() 131 WindowManager windowManager = (WindowManager) sInstrumentation.getContext() in setUp() 164 assumeTrue(sInstrumentation.getContext().getPackageManager() in testRecognizeGesturePathOnVirtualDisplay() 173 sInstrumentation.getTargetContext(), false).getDisplayId(); in testRecognizeGesturePathOnVirtualDisplay() 176 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testRecognizeGesturePathOnVirtualDisplay() 183 sInstrumentation.runOnMainSync(() -> { in testRecognizeGesturePathOnVirtualDisplay() 186 sInstrumentation.waitForIdleSync(); in testRecognizeGesturePathOnVirtualDisplay() [all …]
|
D | AccessibilityViewTreeReportingTest.java | 60 private static Instrumentation sInstrumentation; field in AccessibilityViewTreeReportingTest 78 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 79 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 90 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 160 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.firstLinearLayout) in testDrawingOrderInImportantParentFollowsXmlOrder() 192 sInstrumentation.runOnMainSync(() -> { 209 sInstrumentation.runOnMainSync(() -> { 241 sInstrumentation.runOnMainSync( 272 sInstrumentation.runOnMainSync(() -> { 285 sInstrumentation.runOnMainSync(() -> { [all …]
|
D | AccessibilityTakeScreenshotTest.java | 82 private static Instrumentation sInstrumentation; field in AccessibilityTakeScreenshotTest 107 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 108 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 163 assumeTrue(supportsMultiDisplay(sInstrumentation.getContext())); in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult() 170 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult() 179 sInstrumentation.runOnMainSync(() -> { in testTakeScreenshotOnVirtualDisplay_GetScreenshotResult() 201 sInstrumentation, sUiAutomation, AccessibilityWindowQueryActivity.class, in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap() 219 sUiAutomation.executeAndWaitForEvent(() -> sInstrumentation.runOnMainSync( in testTakeScreenshotWithSecureWindow_GetScreenshotAndVerifyBitmap()
|
D | AccessibilityEmbeddedHierarchyTest.java | 66 private static Instrumentation sInstrumentation; field in AccessibilityEmbeddedHierarchyTest 89 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 90 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 103 mActivity = launchActivityAndWaitForItToBeOnscreen(sInstrumentation, sUiAutomation, in setUp() 203 final DisplayManager dm = sInstrumentation.getContext().getSystemService( in getScreenSize() 267 () -> sInstrumentation.runOnMainSync(() -> { in requestNewLayoutForTest()
|
D | AccessibilityTextActionTest.java | 86 private static Instrumentation sInstrumentation; field in AccessibilityTextActionTest 106 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 107 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 113 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 139 sInstrumentation.waitForIdleSync(); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 148 sInstrumentation.runOnMainSync(new Runnable() { in testEditableTextView_shouldExposeAndRespondToSetTextAction() 172 sInstrumentation.waitForIdleSync(); in testEditableTextView_shouldExposeAndRespondToSetTextAction() 198 sInstrumentation.waitForIdleSync(); in testEditText_shouldExposeAndRespondToSetTextAction() 273 sInstrumentation.runOnMainSync(() -> textView.setAllCaps(true)); in testTextLocations_textViewShouldProvideWhenRequested() 323 sInstrumentation.runOnMainSync(() -> { in testTextLocations_textOutsideOfViewBounds_locationsShouldBeNull() [all …]
|
D | AccessibilityWindowQueryTest.java | 123 private static Instrumentation sInstrumentation; field in AccessibilityWindowQueryTest 142 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 143 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 158 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 166 sInstrumentation.runOnMainSync(() -> mActivity.findViewById(R.id.added_content) in testFindByText() 341 sInstrumentation.runOnMainSync(() -> { in testSingleAccessibilityFocusAcrossWindows() 343 sInstrumentation.getContext().getSystemService(WindowManager.class); in testSingleAccessibilityFocusAcrossWindows() 618 if (!sInstrumentation.getContext().getPackageManager() in testFindPictureInPictureWindow() 623 sInstrumentation.runOnMainSync(() -> { in testFindPictureInPictureWindow() 627 sInstrumentation.waitForIdleSync(); in testFindPictureInPictureWindow() [all …]
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 84 private static Instrumentation sInstrumentation; field in AccessibilityFocusAndInputFocusSyncTest 114 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 115 sUiAutomation = sInstrumentation.getUiAutomation( in oneTimeSetup() 118 sContext = sInstrumentation.getContext(); in oneTimeSetup() 138 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 145 sInstrumentation.runOnMainSync(() -> { in testFindAccessibilityFocus() 306 sInstrumentation.runOnMainSync(() -> { in testScreenReaderFocusableAttribute_reportedToAccessibility()
|
D | AccessibilitySystemActionTest.java | 63 private static Instrumentation sInstrumentation; field in AccessibilitySystemActionTest 85 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 86 sUiAutomation = sInstrumentation.getUiAutomation(FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES); in oneTimeSetup()
|
D | AccessibilityGestureDispatchTest.java | 102 private static Instrumentation sInstrumentation; field in AccessibilityGestureDispatchTest 136 sInstrumentation = getInstrumentation(); in oneTimeSetup() 137 sUiAutomation = sInstrumentation.getUiAutomation( in oneTimeSetup() 148 PackageManager pm = sInstrumentation.getContext().getPackageManager(); in setUp() 155 mActivity = launchActivityAndWaitForItToBeOnscreen(sInstrumentation, in setUp() 164 sInstrumentation.runOnMainSync(() -> { in setUp()
|
D | AccessibilityTextTraversalTest.java | 63 private static Instrumentation sInstrumentation; field in AccessibilityTextTraversalTest 81 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in oneTimeSetup() 82 sUiAutomation = sInstrumentation.getUiAutomation(); in oneTimeSetup() 93 sInstrumentation, sUiAutomation, mActivityRule); in setUp() 102 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 318 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityWordOverContentDescription() 534 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverText() 784 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 1030 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityCharacterOverTextExtend() 1275 sInstrumentation.runOnMainSync(new Runnable() { in testActionNextAndPreviousAtGranularityWordOverText() [all …]
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityShortcutTest.java | 68 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()
|
D | AccessibilityManagerTest.java | 88 private static final Instrumentation sInstrumentation = field in AccessibilityManagerTest 115 sInstrumentation.getContext().getSystemService(Service.ACCESSIBILITY_SERVICE); in setUp() 116 mTargetContext = sInstrumentation.getTargetContext(); in setUp() 119 sInstrumentation.getUiAutomation().destroy(); in setUp() 414 UiAutomation automan = sInstrumentation.getUiAutomation( in testGetRecommendedTimeoutMillis()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerApi29Test.java | 86 private static final Instrumentation sInstrumentation = field in ActivityManagerApi29Test 88 private static final Context sContext = sInstrumentation.getContext(); 89 private static final Context sTargetContext = sInstrumentation.getTargetContext(); 110 CtsAppTestUtils.turnScreenOn(sInstrumentation, sContext); in setUp() 111 CtsAppTestUtils.makeUidIdle(sInstrumentation, PACKAGE_NAME); in setUp() 130 mUidWatcher = new WatchUidRunner(sInstrumentation, sUid, WAITFOR_MSEC); in setUp() 135 CtsAppTestUtils.makeUidIdle(sInstrumentation, PACKAGE_NAME); in tearDown() 252 WaitForBroadcast waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps() 259 waiter = new WaitForBroadcast(sInstrumentation.getTargetContext()); in testAppOpsHistoricalOps()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | BitmapDumper.java | 40 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/accessibilityservice/testsdk29/src/android/accessibilityservice/cts/ |
D | AccessibilityButtonSdk29Test.java | 56 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()
|
/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/ |
D | GbaServiceTest.java | 67 private static Instrumentation sInstrumentation; field in GbaServiceTest 80 sInstrumentation = InstrumentationRegistry.getInstrumentation(); in init() 81 sTm = sInstrumentation.getContext().getSystemService(TelephonyManager.class); in init() 83 sInstrumentation, COMMAND_GET_PACKAGE); in init() 85 sInstrumentation, COMMAND_GET_RELEASE)); in init() 315 String result = TelephonyUtils.executeShellCommand(sInstrumentation, in setService() 321 String result = TelephonyUtils.executeShellCommand(sInstrumentation, in setReleaseTime()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/ |
D | BitmapDumper.java | 41 private static Instrumentation sInstrumentation; field in BitmapDumper 46 sInstrumentation = instrumentation; in initialize() 133 sInstrumentation.sendStatus(INST_STATUS_IN_PROGRESS, report); in dumpBitmaps() 148 sInstrumentation.sendStatus(INST_STATUS_IN_PROGRESS, report); in dumpBitmaps() 160 sInstrumentation.sendStatus(INST_STATUS_IN_PROGRESS, report); in dumpBitmap()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | HotwordDetectionServiceBasicTest.java | 81 private static Instrumentation sInstrumentation = InstrumentationRegistry.getInstrumentation(); field in HotwordDetectionServiceBasicTest 82 private static UiDevice sUiDevice = UiDevice.getInstance(sInstrumentation); 83 private static PackageManager sPkgMgr = sInstrumentation.getContext().getPackageManager();
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | UiDumpUtils.java | 133 private static Instrumentation sInstrumentation = InstrumentationRegistry.getInstrumentation(); field in UiDumpUtils 134 private static UiAutomation sUiAutomation = sInstrumentation.getUiAutomation(); 139 sInstrumentation.getContext()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 117 private static final Instrumentation sInstrumentation = field in RoleManagerTest 171 runShellCommand(sInstrumentation, "input keyevent KEYCODE_WAKEUP"); in wakeUpScreen()
|