Home
last modified time | relevance | path

Searched refs:mUiAutomation (Results 1 – 25 of 84) sorted by relevance

1234

/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java99 private UiAutomation mUiAutomation; field in UiAutomationTest
117 if (mUiAutomation != null) { in tearDown()
118 mUiAutomation.destroy(); in tearDown()
133 mUiAutomation = getInstrumentation().getUiAutomation(); in testAdoptAllShellPermissions()
146 mUiAutomation.adoptShellPermissionIdentity(); in testAdoptAllShellPermissions()
156 mUiAutomation.dropShellPermissionIdentity(); in testAdoptAllShellPermissions()
173 mUiAutomation = getInstrumentation().getUiAutomation(); in testAdoptSomeShellPermissions()
182 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.BATTERY_STATS); in testAdoptSomeShellPermissions()
190 mUiAutomation.adoptShellPermissionIdentity(); in testAdoptSomeShellPermissions()
198 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.PACKAGE_USAGE_STATS); in testAdoptSomeShellPermissions()
[all …]
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/diagnostic/
DCarDiagnosticManagerPermissionTest.java43 private final UiAutomation mUiAutomation = field in CarDiagnosticManagerPermissionTest
62 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_READ_ALL); in testRegisterUnregisterListenerWithCorrectPermission()
70 mUiAutomation.dropShellPermissionIdentity(); in testRegisterUnregisterListenerWithCorrectPermission()
75 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_CLEAR); in testRegisterListenerWithWrongPermission()
85 mUiAutomation.dropShellPermissionIdentity(); in testRegisterListenerWithWrongPermission()
90 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_CLEAR); in testClearFreezeFrameWithCorrectPermission()
95 mUiAutomation.dropShellPermissionIdentity(); in testClearFreezeFrameWithCorrectPermission()
100 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_READ_ALL); in testClearFreezeFrameWithWrongPermission()
105 mUiAutomation.dropShellPermissionIdentity(); in testClearFreezeFrameWithWrongPermission()
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/hardware/property/
DCarVendorPropertyCustomPermissionTest.java67 private final UiAutomation mUiAutomation = field in CarVendorPropertyCustomPermissionTest
79 mUiAutomation.adoptShellPermissionIdentity(permission); in assumePropertyIsSupported()
83 mUiAutomation.dropShellPermissionIdentity(); in assumePropertyIsSupported()
93 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_GET_CAR_VENDOR_CATEGORY_INFO); in testGetMixedTypePropertyForTest()
98 mUiAutomation.dropShellPermissionIdentity(); in testGetMixedTypePropertyForTest()
114 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_SET_CAR_VENDOR_CATEGORY_INFO); in testSetMixedTypePropertyForTest()
119 mUiAutomation.dropShellPermissionIdentity(); in testSetMixedTypePropertyForTest()
135 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_GET_CAR_VENDOR_CATEGORY_SEAT); in testGetVendorExtensionIntProperty()
142 mUiAutomation.dropShellPermissionIdentity(); in testGetVendorExtensionIntProperty()
171 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_VENDOR_EXTENSION); in testGetVendorExtensionFloatProperty()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DBlockedNumberBackupRestoreTest.java44 private UiAutomation mUiAutomation; field in BlockedNumberBackupRestoreTest
56 mUiAutomation = getInstrumentation().getUiAutomation(); in setUp()
62 ProviderTestUtils.setDefaultSmsApp(true, mContext.getPackageName(), mUiAutomation); in setUp()
65 LOCAL_BACKUP_COMPONENT, mUiAutomation); in setUp()
66 mOldBackupEnabled = ProviderTestUtils.setBackupEnabled(true, mUiAutomation); in setUp()
77 ProviderTestUtils.setBackupEnabled(mOldBackupEnabled, mUiAutomation); in tearDown()
78 ProviderTestUtils.setBackupTransport(mOldTransport, mUiAutomation); in tearDown()
79 ProviderTestUtils.setDefaultSmsApp(false, mContext.getPackageName(), mUiAutomation); in tearDown()
137 return ProviderTestUtils.hasBackupTransport(LOCAL_BACKUP_COMPONENT, mUiAutomation) in isFeatureSupported()
170 ProviderTestUtils.runBackup(BLOCKED_NUMBERS_PROVIDER_PACKAGE, mUiAutomation); in runBackup()
[all …]
DSmsBackupRestoreTest.java69 private UiAutomation mUiAutomation; field in SmsBackupRestoreTest
81 mUiAutomation = getInstrumentation().getUiAutomation(); in setUp()
84 ProviderTestUtils.setDefaultSmsApp(true, mContext.getPackageName(), mUiAutomation); in setUp()
86 ProviderTestUtils.setBackupTransport(LOCAL_BACKUP_COMPONENT, mUiAutomation); in setUp()
87 mOldBackupEnabled = ProviderTestUtils.setBackupEnabled(true, mUiAutomation); in setUp()
98 ProviderTestUtils.setBackupEnabled(mOldBackupEnabled, mUiAutomation); in tearDown()
99 ProviderTestUtils.setBackupTransport(mOldTransport, mUiAutomation); in tearDown()
100 ProviderTestUtils.setDefaultSmsApp(false, mContext.getPackageName(), mUiAutomation); in tearDown()
107 return (ProviderTestUtils.hasBackupTransport(LOCAL_BACKUP_COMPONENT, mUiAutomation) in isFeatureSupported()
156 ProviderTestUtils.runBackup(TELEPHONY_PROVIDER_PACKAGE, mUiAutomation); in testSmsBackupRestore()
[all …]
/cts/tests/tests/usb/src/android/usb/cts/
DUsbPortApiTest.java69 private UiAutomation mUiAutomation = field in UsbPortApiTest
94 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForResetUsbPort()
110 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForResetUsbPort()
127 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForEnableUsbDataWhileDocked()
137 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForEnableUsbDataWhileDocked()
156 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForEnableUsbData()
166 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForEnableUsbData()
185 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForEnableLimitPowerTransfer()
195 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForEnableLimitPowerTransfer()
214 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForGetStatus()
[all …]
DUsbManagerApiTest.java66 private UiAutomation mUiAutomation = field in UsbManagerApiTest
92 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiSetGetCurrentFunctionsSys()
100 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiSetGetCurrentFunctionsSys()
123 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForUsbGadgetHal()
137 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForUsbGadgetHal()
153 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForUsbHal()
167 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForUsbHal()
183 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeRegisterSecurity()
198 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForDisplayPortAltModeRegisterSecurity()
211 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeUnregisterSecurity()
[all …]
DUsbPortStatusApiTest.java86 private UiAutomation mUiAutomation = field in UsbPortStatusApiTest
119 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForGetComplianceWarnings()
132 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForGetComplianceWarnings()
177 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForGetPlugState()
190 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForGetPlugState()
200 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltMode()
221 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForDisplayPortAltMode()
231 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeLinkTrainingStatus()
245 mUiAutomation.dropShellPermissionIdentity(); in test_UsbApiForDisplayPortAltModeLinkTrainingStatus()
255 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeHotPlugDetect()
[all …]
/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/helper_a/
DContactsIndexerDeviceTest.java39 private UiAutomation mUiAutomation; field in ContactsIndexerDeviceTest
43 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
48 mUiAutomation.adoptShellPermissionIdentity(); in testFullUpdateJobIsScheduled()
55 mUiAutomation.dropShellPermissionIdentity(); in testFullUpdateJobIsScheduled()
61 mUiAutomation.adoptShellPermissionIdentity(); in testFullUpdateJobIsNotScheduled()
68 mUiAutomation.dropShellPermissionIdentity(); in testFullUpdateJobIsNotScheduled()
74 return SystemUtil.runShellCommand(mUiAutomation, in getJobState()
DAppSearchDeviceTest.java88 private UiAutomation mUiAutomation; field in AppSearchDeviceTest
94 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
114 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.INTERACT_ACROSS_USERS_FULL); in testPutDocumentsAsAnotherUser()
137 mUiAutomation.dropShellPermissionIdentity(); in testPutDocumentsAsAnotherUser()
149 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.INTERACT_ACROSS_USERS_FULL); in testGetDocumentsAsAnotherUser_exist()
163 mUiAutomation.dropShellPermissionIdentity(); in testGetDocumentsAsAnotherUser_exist()
193 mUiAutomation.adoptShellPermissionIdentity(Manifest.permission.INTERACT_ACROSS_USERS_FULL); in createSessionInStoppedUser()
203 mUiAutomation.dropShellPermissionIdentity(); in createSessionInStoppedUser()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DUserManagerTest.java35 private UiAutomation mUiAutomation; field in UserManagerTest
41 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
46 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
57 mUiAutomation.adoptShellPermissionIdentity("android.permission.CREATE_USERS"); in testCreateProfile_managedProfile()
71 mUiAutomation.adoptShellPermissionIdentity("android.permission.INTERACT_ACROSS_USERS"); in testIsProfileReturnsTrue_runAsProfile()
79 mUiAutomation.adoptShellPermissionIdentity("android.permission.INTERACT_ACROSS_USERS"); in testIsProfileReturnsFalse_runAsPrimary()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothDeviceTest.java78 private UiAutomation mUiAutomation;; field in BluetoothDeviceTest
102 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
103 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp()
113 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
198 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getConnectionHandle()
218 mUiAutomation.dropShellPermissionIdentity(); in getBatteryLevel()
220 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in getBatteryLevel()
233 mUiAutomation.dropShellPermissionIdentity(); in isBondingInitiatedLocally()
235 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in isBondingInitiatedLocally()
259 mUiAutomation.dropShellPermissionIdentity(); in setPin()
[all …]
DBluetoothServerSocketTest.java38 private UiAutomation mUiAutomation; field in BluetoothServerSocketTest
47 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
48 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp()
59 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in tearDown()
65 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
DBluetoothA2dpTest.java73 private UiAutomation mUiAutomation; field in BluetoothA2dpTest
90 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
91 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp()
118 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
207 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getSupportedCodecTypes()
227 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getCodecStatus()
260 mUiAutomation.dropShellPermissionIdentity(); in setOptionalCodecsEnabled()
267 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setOptionalCodecsEnabled()
273 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getConnectionPolicy()
293 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setConnectionPolicy()
[all …]
DBluetoothSapTest.java61 private UiAutomation mUiAutomation; field in BluetoothSapTest
82 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
83 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp()
105 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
133 mUiAutomation.dropShellPermissionIdentity(); in getConnectedDevices()
149 mUiAutomation.dropShellPermissionIdentity(); in getDevicesMatchingConnectionStates()
167 mUiAutomation.dropShellPermissionIdentity(); in getConnectionState()
183 mUiAutomation.dropShellPermissionIdentity(); in setgetConnectionPolicy()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DAdoptShellPermissionsRule.java38 private final UiAutomation mUiAutomation; field in AdoptShellPermissionsRule
52 mUiAutomation = uiAutomation; in AdoptShellPermissionsRule()
63 mUiAutomation.adoptShellPermissionIdentity(mPermissions); in apply()
65 mUiAutomation.adoptShellPermissionIdentity(); in apply()
70 mUiAutomation.dropShellPermissionIdentity(); in apply()
DFreezeRotationRule.java28 private final UiAutomation mUiAutomation = InstrumentationRegistry.getInstrumentation() field in FreezeRotationRule
43 mUiAutomation.setRotation(mRotation); in onBefore()
48 mUiAutomation.setRotation(UiAutomation.ROTATION_UNFREEZE); in onAfter()
/cts/tests/app/src/android/app/cts/
DStatusBarManagerTest.java49 private UiAutomation mUiAutomation; field in StatusBarManagerTest
60 mUiAutomation = getInstrumentation().getUiAutomation(); in setUp()
61 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_STATUS_BAR); in setUp()
69 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_STATUS_BAR); in tearDown()
82 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
143 mUiAutomation.dropShellPermissionIdentity(); in testCollapsePanels_withoutStatusBarPermission_throws()
160 mUiAutomation.dropShellPermissionIdentity(); in testTogglePanel_withoutStatusBarPermission_throws()
177 mUiAutomation.dropShellPermissionIdentity(); in testHandleSystemKey_withoutStatusBarPermission_throws()
/cts/tests/accessibility/common/src/android/accessibility/cts/common/
DShellCommandBuilder.java41 private final UiAutomation mUiAutomation; field in ShellCommandBuilder
60 mUiAutomation = uiAutomation; in ShellCommandBuilder()
81 mUiAutomation.grantRuntimePermission(packageName, permission); in grantPermission()
88 execShellCommand(mUiAutomation, command); in addCommand()
95 execShellCommandAndPrintOnLogcat(mUiAutomation, command); in addCommandPrintOnLogCat()
/cts/tests/camera/utils/src/android/hardware/cts/helpers/
DCameraParameterizedTestCase.java41 protected UiAutomation mUiAutomation; field in CameraParameterizedTestCase
69 mUiAutomation = InstrumentationRegistry.getInstrumentation().getUiAutomation(); in setUp()
72 mUiAutomation.adoptShellPermissionIdentity(); in setUp()
79 mUiAutomation.dropShellPermissionIdentity(); in tearDown()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityDisplayProxyTest.java231 private UiAutomation mUiAutomation; field in AccessibilityDisplayProxyTest
321 mUiAutomation = in setUp()
323 final AccessibilityServiceInfo info = mUiAutomation.getServiceInfo(); in setUp()
325 mUiAutomation.setServiceInfo(info); in setUp()
341 mUiAutomation.adoptShellPermissionIdentity(); in setUp()
345 mUiAutomation.dropShellPermissionIdentity(); in setUp()
358 if (mUiAutomation != null) { in tearDown()
359 mUiAutomation.adoptShellPermissionIdentity( in tearDown()
393 runWithShellPermissionIdentity(mUiAutomation, in testRegisterDisplayProxy_withPermission_successfullyRegisters()
401 runWithShellPermissionIdentity(mUiAutomation, in testRegisterDisplayProxy_withStreamingRole_successfullyRegisters()
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DSelfManagedConnectionTest.java133 private UiAutomation mUiAutomation; field in SelfManagedConnectionTest
179 mUiAutomation = getInstrumentation().getUiAutomation(); in setUp()
231 mUiAutomation.adoptShellPermissionIdentity("android.permission.CONTROL_INCALL_EXPERIENCE"); in testBindToSupportNonUiInCallService()
237 mUiAutomation.dropShellPermissionIdentity(); in testBindToSupportNonUiInCallService()
264 mUiAutomation.dropShellPermissionIdentity(); in testBindToSupportDefaultDialerNoCarMode()
309 mUiAutomation.adoptShellPermissionIdentity( in testEnterCarMode()
315 mUiAutomation.dropShellPermissionIdentity(); in testEnterCarMode()
428 mUiAutomation.adoptShellPermissionIdentity( in testIncomingVideoCallWithNoVideoSupportInCarMode()
483 mUiAutomation.dropShellPermissionIdentity(); in testIncomingVideoCallWithNoVideoSupportInCarMode()
545 mUiAutomation.adoptShellPermissionIdentity( in testSwapInCallServicesForSelfManagedCSCall()
[all …]
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/watchdog/
DCarWatchdogManagerPermissionTest.java52 private final UiAutomation mUiAutomation = field in CarWatchdogManagerPermissionTest
79 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_USE_CAR_WATCHDOG); in testUnregisterClient()
82 mUiAutomation.dropShellPermissionIdentity(); in testUnregisterClient()
108 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_USE_CAR_WATCHDOG); in testTellClientAlive()
111 mUiAutomation.dropShellPermissionIdentity(); in testTellClientAlive()
159 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_COLLECT_CAR_WATCHDOG_METRICS); in testRemoveResourceOveruseListenerForSystem()
162 mUiAutomation.dropShellPermissionIdentity(); in testRemoveResourceOveruseListenerForSystem()
/cts/tests/tests/time/shell_utils/device/android/app/time/cts/shell/device/
DInstrumentationShellCommandExecutor.java37 private final UiAutomation mUiAutomation; field in InstrumentationShellCommandExecutor
40 mUiAutomation = Objects.requireNonNull(uiAutomation); in InstrumentationShellCommandExecutor()
46 mUiAutomation.executeShellCommandRwe(command); in executeToBytesInternal()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/power/
DPowerManagerHelperTest.java45 private UiAutomation mUiAutomation; field in PowerManagerHelperTest
51 mUiAutomation = instrumentation.getUiAutomation(); in setUp()
52 mUiAutomation.adoptShellPermissionIdentity(android.Manifest.permission.DEVICE_POWER); in setUp()
57 mUiAutomation.dropShellPermissionIdentity(); in tearDown()

1234