Searched refs:mUiAutomation (Results 1 – 8 of 8) sorted by relevance
41 private final UiAutomation mUiAutomation; field in UiAutomatorBridge48 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()104 return mUiAutomation.executeAndWaitForEvent(command, in executeCommandAndWaitForAccessibilityEvent()109 Bitmap screenshot = mUiAutomation.takeScreenshot(); in takeScreenshot()[all …]
57 private UiAutomation mUiAutomation; field in PlatformCompatPermissionsTest66 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()171 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG); in isChangeEnabledByPackageName_noLogompatConfigPermission_throwsSecurityException()198 mUiAutomation.adoptShellPermissionIdentity(READ_COMPAT_CHANGE_CONFIG); in isChangeEnabledByUid_noLogCompatChangePermission_throwsSecurityException()265 mUiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_USERS_FULL); in clearOverrides_noOverridesPermission_throwsSecurityException()[all …]
41 private UiAutomation mUiAutomation = field in PermissionCheckerTest52 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 …]
22 private UiAutomation mUiAutomation; field in UiAutomationShellWrapper29 mUiAutomation = new UiAutomation(mHandlerThread.getLooper(), in connect()31 mUiAutomation.connect(); in connect()65 mUiAutomation.disconnect(); in disconnect()70 return mUiAutomation; in getUiAutomation()74 AccessibilityServiceInfo info = mUiAutomation.getServiceInfo(); in setCompressedLayoutHierarchy()79 mUiAutomation.setServiceInfo(info); in setCompressedLayoutHierarchy()
124 private UiAutomation mUiAutomation; field in Instrumentation271 if ((mUiAutomation != null) && !mUiAutomation.isDestroyed()) { in finish()272 mUiAutomation.disconnect(); in finish()273 mUiAutomation = null; in finish()2350 boolean mustCreateNewAutomation = (mUiAutomation == null) || (mUiAutomation.isDestroyed()); in getUiAutomation()2354 return mUiAutomation; in getUiAutomation()2359 mUiAutomation.disconnect(); in getUiAutomation()2363 return mUiAutomation; in getUiAutomation()2368 return mUiAutomation; in getUiAutomation()2372 mUiAutomation.destroy(); in getUiAutomation()[all …]
38 private final UiAutomation mUiAutomation; field in GestureHelper61 mUiAutomation = instrumentation.getUiAutomation(); in GestureHelper()304 return mUiAutomation.injectInputEvent(event, true); in injectEventSync()
95 private UiAutomation mUiAutomation; field in MediaRouter2ManagerTest119 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()120 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.MEDIA_CONTENT_CONTROL, in setUp()169 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
6747 Landroid/app/Instrumentation;->mUiAutomation:Landroid/app/UiAutomation;