Home
last modified time | relevance | path

Searched refs:adoptShellPermissionIdentity (Results 1 – 25 of 56) sorted by relevance

123

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DShellIdentityUtils.java99 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissions()
118 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions()
139 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissions()
159 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissionsNoReturn()
179 uiAutomation.adoptShellPermissionIdentity(); in invokeThrowableMethodWithShellPermissionsNoReturn()
200 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissionsNoReturn()
220 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissionsNoReturn()
251 uiAutomation.adoptShellPermissionIdentity(); in invokeStaticMethodWithShellPermissions()
DAdoptShellPermissionsRule.java63 mUiAutomation.adoptShellPermissionIdentity(mPermissions); in apply()
65 mUiAutomation.adoptShellPermissionIdentity(); in apply()
DSystemUtil.java197 automan.adoptShellPermissionIdentity(permissions); in runWithShellPermissionIdentity()
213 automan.adoptShellPermissionIdentity(); in callWithShellPermissionIdentity()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DShellIdentityUtils.java69 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissions()
88 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissionsNoReturn()
119 uiAutomation.adoptShellPermissionIdentity(); in invokeStaticMethodWithShellPermissions()
DAdoptShellPermissionsRule.java64 mUiAutomation.adoptShellPermissionIdentity(mPermissions); in apply()
66 mUiAutomation.adoptShellPermissionIdentity(); in apply()
DSystemUtil.java183 automan.adoptShellPermissionIdentity(permissions); in runWithShellPermissionIdentity()
199 automan.adoptShellPermissionIdentity(); in callWithShellPermissionIdentity()
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiPermissionTests.java104 .adoptShellPermissionIdentity(WRITE_DEVICE_CONFIG_PERMISSION); in testUseDeviceConfigWithWritePermission()
144 .adoptShellPermissionIdentity(READ_DEVICE_CONFIG_PERMISSION); in testDeviceConfigWithReadPermission()
184 .adoptShellPermissionIdentity( in testDeviceConfigWithAllPermissions()
236 .adoptShellPermissionIdentity(WRITE_DEVICE_CONFIG_PERMISSION); in testDeviceConfigPublicNamespacesWithoutReadPermission()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsServiceTest.java751 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback()
790 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback()
860 automan.adoptShellPermissionIdentity(); in testRcsManagerRegistrationCallback()
887 automan.adoptShellPermissionIdentity(); in testRcsManagerRegistrationCallback()
1095 automan.adoptShellPermissionIdentity(); in testCapabilityStatusCallback()
1118 automan.adoptShellPermissionIdentity(); in testCapabilityStatusCallback()
1145 automan.adoptShellPermissionIdentity(); in testCapabilityStatusCallback()
1200 automan.adoptShellPermissionIdentity(); in testCapabilityStatusWithIsAvailableDuringCallback()
1217 automan.adoptShellPermissionIdentity(); in testCapabilityStatusWithIsAvailableDuringCallback()
1233 automan.adoptShellPermissionIdentity(); in testCapabilityStatusWithIsAvailableDuringCallback()
[all …]
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DNotificationAssistantServiceTest.java106 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testOnNotificationEnqueued()
142 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_userSentimentKey()
176 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_importanceKey()
209 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_smartActionKey()
260 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_smartReplyKey()
305 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_importanceKey_notAllowed()
359 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testGetAllowedAssistantCapabilities()
508 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE", in toggleAssistantAccess()
/cts/tests/tests/telecom/src/android/telecom/cts/
DConnectionServiceTest.java61 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testAddExistingConnection()
261 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testCallDirectionIncoming()
290 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testCallDirectionOutgoing()
324 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testGetAllConnections()
DNonUiInCallServiceTest.java45 .adoptShellPermissionIdentity( in testMidCallComponentEnablement()
89 .adoptShellPermissionIdentity( in testNullBinding()
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTest.java110 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in testAdoptAllShellPermissions()
159 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testAdoptSomeShellPermissions()
168 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in testAdoptSomeShellPermissions()
176 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in testAdoptSomeShellPermissions()
/cts/libs/install/src/com/android/cts/install/lib/
DInstallUtils.java51 public static void adoptShellPermissionIdentity(String... permissions) { in adoptShellPermissionIdentity() method in InstallUtils
55 .adoptShellPermissionIdentity(permissions); in adoptShellPermissionIdentity()
/cts/tests/tests/os/src/android/os/image/cts/
DDynamicSystemClientTest.java50 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(); in setUp()
/cts/hostsidetests/appcompat/compatchanges/app/src/com/android/cts/appcompat/
DCompatChangesTest.java50 .adoptShellPermissionIdentity(Manifest.permission.LOG_COMPAT_CHANGE, in setUp()
/cts/tests/app/src/android/app/cts/
DStatusBarManagerTest.java55 .adoptShellPermissionIdentity("android.permission.STATUS_BAR"); in setUp()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsUtils.kt106 uiAutomation.adoptShellPermissionIdentity() in runWithShellPermissionIdentity()
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java56 .adoptShellPermissionIdentity( in setup()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java126 mUiAutomation.adoptShellPermissionIdentity("android.permission.INTERACT_ACROSS_USERS"); in getSettingsPackageName()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DApexShimValidationTest.java58 .adoptShellPermissionIdentity( in adoptShellPermissions()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java125 mUiAutomation.adoptShellPermissionIdentity("android.permission.INTERACT_ACROSS_USERS"); in getSettingsPackageName()
/cts/tests/tests/hardware/src/android/hardware/lights/cts/
DLightsManagerTest.java56 .adoptShellPermissionIdentity( in setUp()
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/
DContentSuggestionsManagerTest.java81 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in setup()
/cts/hostsidetests/backup/RestoreSessionTest/src/android/cts/backup/restoresessionapp/
DRestoreSessionTest.java142 mUiAutomation.adoptShellPermissionIdentity(); in setUp()
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java189 uiAutomation.adoptShellPermissionIdentity(); in ungrantAcrossUsersPermission()

123