/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ShellIdentityUtils.java | 102 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissions() 121 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 151 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 173 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 195 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 216 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissions() 236 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissionsNoReturn() 256 uiAutomation.adoptShellPermissionIdentity(); in invokeThrowableMethodWithShellPermissionsNoReturn() 277 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissionsNoReturn() 297 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissionsNoReturn() [all …]
|
D | AdoptShellPermissionsRule.java | 63 mUiAutomation.adoptShellPermissionIdentity(mPermissions); in apply() 65 mUiAutomation.adoptShellPermissionIdentity(); in apply()
|
D | SystemUtil.java | 284 automan.adoptShellPermissionIdentity(permissions); in runWithShellPermissionIdentity() 300 automan.adoptShellPermissionIdentity(); in callWithShellPermissionIdentity() 317 automan.adoptShellPermissionIdentity(permissions); in callWithShellPermissionIdentity()
|
/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/ |
D | ContextCrossProfileDeviceTest.java | 90 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_USERS_PERMISSION); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser() 110 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_USERS_PERMISSION); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService() 126 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_USERS_PERMISSION); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService() 141 uiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesPermission_bindsService() 147 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_PROFILES_PERMISSION); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesPermission_bindsService() 163 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_PROFILES_PERMISSION); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossProfilesPermission_throwsException() 183 uiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesAppOp_bindsService() 203 uiAutomation.adoptShellPermissionIdentity(MANAGE_APP_OPS_MODE); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossProfilesAppOp_throwsException() 229 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_USERS_PERMISSION); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossUsersPermission_throwsException() 250 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_PROFILES_PERMISSION); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesPermission_throwsException() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | UserManagerTest.java | 65 mUiAutomation.adoptShellPermissionIdentity("android.permission.CREATE_USERS"); in testCreateProfile_managedProfile() 79 mUiAutomation.adoptShellPermissionIdentity("android.permission.INTERACT_ACROSS_USERS"); in testIsProfileReturnsTrue_runAsProfile() 87 mUiAutomation.adoptShellPermissionIdentity("android.permission.INTERACT_ACROSS_USERS"); in testIsProfileReturnsFalse_runAsPrimary()
|
D | LauncherAppsTest.java | 91 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in shortcutIconDrawable_currentToOtherProfile_withUsersFullPermission_isNotNull() 107 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in shortcutIconDrawable_currentToOtherProfile_withoutUsersFullPermission_isNull() 117 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in shortcutIconDrawable_currentToOtherProfile_withoutUsersFullPermission_isNull()
|
/cts/tests/tests/usb/src/android/usb/cts/ |
D | UsbManagerApiTest.java | 64 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiSetGetCurrentFunctionsSys() 95 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForUsbGadgetHal() 123 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForUsbHal()
|
/cts/tests/uwb/src/android/uwb/cts/ |
D | UwbManagerTest.java | 82 uiAutomation.adoptShellPermissionIdentity(); in testGetSpecificationInfo() 109 uiAutomation.adoptShellPermissionIdentity(); in testElapsedRealtimeResolutionNanos() 175 uiAutomation.adoptShellPermissionIdentity(); in testOpenRangingSessionWithBadParams() 201 uiAutomation.adoptShellPermissionIdentity(UWB_RANGING); in testOpenRangingSessionWithoutUwbPrivileged() 223 uiAutomation.adoptShellPermissionIdentity(UWB_PRIVILEGED); in testOpenRangingSessionWithoutUwbRanging() 273 uiAutomation.adoptShellPermissionIdentity(); in testOpenRangingSessionWithoutUwbRangingInNextAttributeSource()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsServiceTest.java | 927 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 965 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 1036 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() 1075 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() 1139 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1159 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1176 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1216 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1246 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1296 automan.adoptShellPermissionIdentity(); in testPublishImsReg() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/cts/ |
D | EasyConnectStatusCallbackTest.java | 147 uiAutomation.adoptShellPermissionIdentity(); in testConfiguratorInitiatorOnFailure() 187 uiAutomation.adoptShellPermissionIdentity(); in testEnrolleeInitiatorOnFailure() 221 uiAutomation.adoptShellPermissionIdentity(); in testEnrolleeResponderUriGeneration() 258 uiAutomation.adoptShellPermissionIdentity(); in testStartEasyConnectAsEnrolleeResponderThrowsIllegalArgumentExceptionOnWrongDeviceInfo()
|
D | WifiManagerTest.java | 560 uiAutomation.adoptShellPermissionIdentity(); in testRestartWifiSubsystem() 995 uiAutomation.adoptShellPermissionIdentity(); in startLocalOnlyHotspot() 1207 uiAutomation.adoptShellPermissionIdentity(); in testAddNetworkPrivilegedBadInput() 1232 uiAutomation.adoptShellPermissionIdentity(); in testAddNetworkPrivilegedSuccess() 1346 uiAutomation.adoptShellPermissionIdentity(); in testAddNetworkPrivilegedMergingTypeSuccess() 1482 uiAutomation.adoptShellPermissionIdentity(); in testStartLocalOnlyHotspotWithConfigBssid() 1540 uiAutomation.adoptShellPermissionIdentity(); in testStartLocalOnlyHotspotWithNullBssidConfig() 1596 uiAutomation.adoptShellPermissionIdentity(); in testMacRandomizationSettingPasspoint() 2164 uiAutomation.adoptShellPermissionIdentity(); in testTetheredBridgedAp() 2221 uiAutomation.adoptShellPermissionIdentity(); in testTetheredBridgedApWifiForcedChannel() [all …]
|
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/ |
D | NotificationAssistantServiceTest.java | 113 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testOnNotificationEnqueued() 148 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_userSentimentKey() 179 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_importanceKey() 210 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotifications_rankingScoreKey() 256 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotifications_rankingScoreKey() 266 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_smartActionKey() 314 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_smartReplyKey() 356 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_importanceKey_notAllowed() 388 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); in testAdjustNotification_rankingScoreKey_notAllowed() 455 mUi.adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE"); [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/permissions/ |
D | Permissions.java | 91 .adoptShellPermissionIdentity(); in Permissions() 222 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(); in applyPermissions() 293 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity( in applyPermissions() 406 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(); in restoreExistingPermissions() 408 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity( in restoreExistingPermissions()
|
/cts/hostsidetests/appcompat/compatchanges/app/src/com/android/cts/appcompat/compatchanges/ |
D | CompatChangesTest.java | 58 .adoptShellPermissionIdentity(Manifest.permission.LOG_COMPAT_CHANGE, in setUp() 150 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in putPackageOverrides_securityExceptionForNotHoldingPermission() 197 InstrumentationRegistry.getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in removePackageOverrides_securityExceptionForNotHoldingPermission()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | ConnectionServiceTest.java | 64 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testAddExistingConnection() 268 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testCallDirectionIncoming() 315 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testCallFilteringCompleteSignalNotInContacts() 357 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testCallFilteringCompleteSignalInContacts() 419 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); 453 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE");
|
D | SelfManagedConnectionTest.java | 240 mUiAutomation.adoptShellPermissionIdentity( in testEnterCarMode() 266 mUiAutomation.adoptShellPermissionIdentity( in testChangeCarModeApp() 296 mUiAutomation.adoptShellPermissionIdentity( in testExitCarMode() 325 mUiAutomation.adoptShellPermissionIdentity(); in setDefaultDialer() 345 mUiAutomation.adoptShellPermissionIdentity(); in getDefaultDialer()
|
D | NonUiInCallServiceTest.java | 44 .adoptShellPermissionIdentity( in testMidCallComponentEnablement() 88 .adoptShellPermissionIdentity( in testNullBinding()
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiPermissionTests.java | 91 .adoptShellPermissionIdentity(WRITE_DEVICE_CONFIG_PERMISSION); in testDeviceConfigWithWritePermission() 118 .adoptShellPermissionIdentity(READ_DEVICE_CONFIG_PERMISSION); in testDeviceConfigWithReadPermission() 145 .adoptShellPermissionIdentity( in testDeviceConfigWithAllPermissions() 198 .adoptShellPermissionIdentity(WRITE_DEVICE_CONFIG_PERMISSION); in testDeviceConfigPublicNamespacesWithoutReadPermission()
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | BatteryStatsRadioPowerStateTest.java | 68 mUiAutomation.adoptShellPermissionIdentity(); in testReportMobileRadioPowerState() 97 mUiAutomation.adoptShellPermissionIdentity(); in testReportWifiRadioPowerState()
|
/cts/tests/app/src/android/app/cts/ |
D | StatusBarManagerTest.java | 64 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_STATUS_BAR); in setUp() 72 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_STATUS_BAR); in tearDown()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | NestedShellPermission.java | 58 automan.adoptShellPermissionIdentity(permissions); in run()
|
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/ |
D | ModifyInstallerCrossPackageTest.kt | 42 .adoptShellPermissionIdentity(Manifest.permission.INSTALL_PACKAGES) in adoptPermissions()
|
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/ |
D | OnDeviceRecognitionServiceTest.java | 40 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity( in setUp()
|
/cts/tests/MediaProviderTranscode/src/android/mediaprovidertranscode/cts/ |
D | TranscodeTestUtils.java | 236 uiAutomation.adoptShellPermissionIdentity("android.permission.GRANT_RUNTIME_PERMISSIONS"); in grantPermission() 290 uiAutomation.adoptShellPermissionIdentity( in installAppWithStoragePermissions() 312 uiAutomation.adoptShellPermissionIdentity(Manifest.permission.DELETE_PACKAGES); in uninstallApp() 391 uiAutomation.adoptShellPermissionIdentity(Manifest.permission.FORCE_STOP_PACKAGES); in forceStopApp() 458 uiAutomation.adoptShellPermissionIdentity("android.permission.WRITE_MEDIA_STORAGE"); in isAppIoBlocked()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | BasicVoiceInteractionService.java | 100 uiAutomation.adoptShellPermissionIdentity(RECORD_AUDIO, CAPTURE_AUDIO_HOTWORD); in onStartCommand() 119 uiAutomation.adoptShellPermissionIdentity(RECORD_AUDIO, CAPTURE_AUDIO_HOTWORD); in onStartCommand() 134 uiAutomation.adoptShellPermissionIdentity(RECORD_AUDIO, CAPTURE_AUDIO_HOTWORD); in onStartCommand()
|