/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiAutomatorBridge.java | 41 private final UiAutomation mUiAutomation; field in UiAutomatorBridge 48 mUiAutomation = uiAutomation; in UiAutomatorBridge() 62 mUiAutomation.setOnAccessibilityEventListener(listener); in setOnAccessibilityEventListener() 66 return mUiAutomation.getRootInActiveWindow(); in getRootInActiveWindow() 70 return mUiAutomation.injectInputEvent(event, sync); in injectInputEvent() 74 return mUiAutomation.setRotation(rotation); in setRotation() 78 AccessibilityServiceInfo info = mUiAutomation.getServiceInfo(); in setCompressedLayoutHierarchy() 83 mUiAutomation.setServiceInfo(info); in setCompressedLayoutHierarchy() 96 mUiAutomation.waitForIdle(QUIET_TIME_TO_BE_CONSIDERD_IDLE_STATE, timeout); in waitForIdle() 104 return mUiAutomation.executeAndWaitForEvent(command, in executeCommandAndWaitForAccessibilityEvent() [all …]
|
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/ |
D | PlatformCompatPermissionsTest.java | 57 private UiAutomation mUiAutomation; field in PlatformCompatPermissionsTest 66 mUiAutomation = instrumentation.getUiAutomation(); in setUp() 75 mUiAutomation.dropShellPermissionIdentity(); in tearDown() 90 mUiAutomation.adoptShellPermissionIdentity(LOG_COMPAT_CHANGE); in reportChange_logCompatChangePermission_noThrow() 108 mUiAutomation.adoptShellPermissionIdentity(LOG_COMPAT_CHANGE); in reportChangeByPackageName_logCompatChangePermission_noThrow() 125 mUiAutomation.adoptShellPermissionIdentity(LOG_COMPAT_CHANGE); in reportChangeByUid_logCompatChangePermission_noThrow() 143 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG); in isChangeEnabled_noLogCompatChangeConfigPermission_throwsSecurityException() 152 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG, LOG_COMPAT_CHANGE); in isChangeEnabled_readAndLogCompatChangeConfigPermission_noThrow() 171 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG); in isChangeEnabledByPackageName_noLogompatConfigPermission_throwsSecurityException() 180 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG, LOG_COMPAT_CHANGE); in isChangeEnabledByPackageName_readAndLogCompatChangeConfigPermission_noThrow() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | PermissionCheckerTest.java | 41 private UiAutomation mUiAutomation = field in PermissionCheckerTest 52 mUiAutomation.adoptShellPermissionIdentity( in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted() 65 mUiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied() 77 mUiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted() 89 mUiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testCheckPermissionForPreflight_appOpPermission_packageNameIsNull_returnsGranted() 101 mUiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied() 113 mUiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testCheckPermissionForPreflight_appOpPermission_modeErrored_returnsHardDenied() 125 mUiAutomation.adoptShellPermissionIdentity( in testCheckPermissionForDataDelivery_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted() 138 mUiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testCheckPermissionForDataDelivery_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied() 150 mUiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testCheckPermissionForDataDelivery_appOpPermission_modeAllowed_returnsGranted() [all …]
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
D | UiAutomationShellWrapper.java | 23 private UiAutomation mUiAutomation; field in UiAutomationShellWrapper 34 mUiAutomation = new UiAutomation(mHandlerThread.getLooper(), in connect() 36 mUiAutomation.connect(); in connect() 70 mUiAutomation.disconnect(); in disconnect() 75 return mUiAutomation; in getUiAutomation() 79 AccessibilityServiceInfo info = mUiAutomation.getServiceInfo(); in setCompressedLayoutHierarchy() 84 mUiAutomation.setServiceInfo(info); in setCompressedLayoutHierarchy()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityRecordInputSinkTests.java | 72 private UiAutomation mUiAutomation; field in ActivityRecordInputSinkTests 76 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp() 84 mUiAutomation.adoptShellPermissionIdentity(); in tearDown() 88 mUiAutomation.dropShellPermissionIdentity(); in tearDown() 146 mUiAutomation.adoptShellPermissionIdentity(); in startOverlayApp() 148 mUiAutomation.executeShellCommand(launchCommand); in startOverlayApp() 150 mUiAutomation.dropShellPermissionIdentity(); in startOverlayApp() 184 mUiAutomation.injectInputEvent(down, true); in injectTapOnButton() 190 mUiAutomation.injectInputEvent(up, true); in injectTapOnButton()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/media/ |
D | InfoMediaManagerIntegTest.java | 46 private UiAutomation mUiAutomation; field in InfoMediaManagerIntegTest 54 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp() 55 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.MEDIA_CONTENT_CONTROL); in setUp() 60 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
|
/frameworks/base/apct-tests/perftests/permission/src/android/perftests/permission/ |
D | PermissionServicePerfTest.kt | 49 val mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation() in <lambda>() constant 54 mUiAutomation.executeShellCommand(COMMAND_TRACE_START) in <lambda>() 71 mUiAutomation.executeShellCommand(COMMAND_TRACE_END) in <lambda>() 103 mUiAutomation.executeShellCommand(COMMAND_TRACE_DUMP) in <lambda>()
|
/frameworks/base/core/java/android/app/ |
D | Instrumentation.java | 134 private UiAutomation mUiAutomation; field in Instrumentation 284 if ((mUiAutomation != null) && !mUiAutomation.isDestroyed()) { in finish() 285 mUiAutomation.disconnect(); in finish() 286 mUiAutomation = null; in finish() 2541 boolean mustCreateNewAutomation = (mUiAutomation == null) || (mUiAutomation.isDestroyed()); in getUiAutomation() 2544 if (!mustCreateNewAutomation && (mUiAutomation.getFlags() == flags)) { in getUiAutomation() 2545 return mUiAutomation; in getUiAutomation() 2548 mUiAutomation = new UiAutomation(getTargetContext(), mUiAutomationConnection); in getUiAutomation() 2550 mUiAutomation.disconnect(); in getUiAutomation() 2553 mUiAutomation.connect(flags); in getUiAutomation() [all …]
|
/frameworks/base/tests/FlickerTests/test-apps/app-helpers/src/com/android/server/wm/flicker/helpers/ |
D | GestureHelper.java | 38 private final UiAutomation mUiAutomation; field in GestureHelper 61 mUiAutomation = instrumentation.getUiAutomation(); in GestureHelper() 304 return mUiAutomation.injectInputEvent(event, true); in injectEventSync()
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | MediaRouter2ManagerTest.java | 96 private UiAutomation mUiAutomation; field in MediaRouter2ManagerTest 120 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp() 121 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.MEDIA_CONTENT_CONTROL, in setUp() 170 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 6747 Landroid/app/Instrumentation;->mUiAutomation:Landroid/app/UiAutomation;
|