/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ShellIdentityUtils.java | 111 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissions() 130 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 160 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 182 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 204 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissions() 225 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissions() 245 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeMethodWithShellPermissionsNoReturn() 265 uiAutomation.adoptShellPermissionIdentity(); in invokeThrowableMethodWithShellPermissionsNoReturn() 286 uiAutomation.adoptShellPermissionIdentity(permissions); in invokeThrowableMethodWithShellPermissionsNoReturn() 306 uiAutomation.adoptShellPermissionIdentity(); in invokeMethodWithShellPermissionsNoReturn() [all …]
|
D | AdoptShellPermissionsRule.java | 63 mUiAutomation.adoptShellPermissionIdentity(mPermissions); in apply() 65 mUiAutomation.adoptShellPermissionIdentity(); in apply()
|
/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_samePackage_withAcrossUsersPermission_bindsService() 245 uiAutomation.adoptShellPermissionIdentity(INTERACT_ACROSS_USERS_PERMISSION); in testBindServiceAsUser_differentProfileGroup_differentPackage_withAcrossUsersPermission_throwsException() [all …]
|
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/ |
D | BluetoothDeviceTest.java | 103 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 198 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getConnectionHandle() 220 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in getBatteryLevel() 235 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in isBondingInitiatedLocally() 261 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setPin() 284 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in cancelBondProcess() 297 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in createBond() 317 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in createBondOutOfBand() 328 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in getUuids() 344 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in isEncrypted() [all …]
|
D | BluetoothA2dpTest.java | 91 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 207 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getSupportedCodecTypes() 227 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getCodecStatus() 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() 315 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getDynamicBufferSupport() 332 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getBufferConstraints() 345 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setBufferLengthMillis() 360 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in optionalCodecs() [all …]
|
D | BluetoothHeadsetTest.java | 84 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 311 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in getAudioState() 330 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in connectAudio() 346 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in disconnectAudio() 362 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in startScoUsingVirtualVoiceCall() 372 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in stopScoUsingVirtualVoiceCall() 382 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in isInbandRingingEnabled() 393 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT, BLUETOOTH_PRIVILEGED); in setGetAudioRouteAllowed()
|
D | BluetoothServerSocketTest.java | 48 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in setUp() 59 mUiAutomation.adoptShellPermissionIdentity(BLUETOOTH_CONNECT); in tearDown()
|
D | BluetoothLeScanTest.java | 92 .adoptShellPermissionIdentity(android.Manifest.permission.BLUETOOTH_CONNECT); in setUp() 125 .adoptShellPermissionIdentity(android.Manifest.permission.BLUETOOTH_SCAN); in basicBleScan() 143 .adoptShellPermissionIdentity( in scanFilter() 172 .adoptShellPermissionIdentity( in scanFromSourceWithoutFilters() 194 .adoptShellPermissionIdentity( in scanFromSourceWithFilters() 305 .adoptShellPermissionIdentity( in batchScan() 340 .adoptShellPermissionIdentity( in startScanPendingIntent_nullnull() 364 .adoptShellPermissionIdentity( in startScanPendingIntent()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/ |
D | ActivityCaptureCallbackTests.java | 69 .adoptShellPermissionIdentity(Manifest.permission.STATUS_BAR_SERVICE); in testScreencaptureInvokeCallback() 85 .adoptShellPermissionIdentity(Manifest.permission.STATUS_BAR_SERVICE); in testScreencaptureInvokeCallbackOnAllVisibleActivities() 103 .adoptShellPermissionIdentity(Manifest.permission.STATUS_BAR_SERVICE); in testScreencaptureInvokeCallbackOnOneDisplay() 120 .adoptShellPermissionIdentity(Manifest.permission.STATUS_BAR_SERVICE); in testScreencaptureInvokeCallbackOnRegisteredVisibleActivities() 134 .adoptShellPermissionIdentity(Manifest.permission.STATUS_BAR_SERVICE); in testScreencaptureInvokeCallbackOnVisibleOnly() 145 .adoptShellPermissionIdentity(Manifest.permission.STATUS_BAR_SERVICE); in testScreencaptureUnregisterCallback()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/hardware/property/ |
D | CarVendorPropertyCustomPermissionTest.java | 79 mUiAutomation.adoptShellPermissionIdentity(permission); in assumePropertyIsSupported() 93 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_GET_CAR_VENDOR_CATEGORY_INFO); in testGetMixedTypePropertyForTest() 114 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_SET_CAR_VENDOR_CATEGORY_INFO); in testSetMixedTypePropertyForTest() 135 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_GET_CAR_VENDOR_CATEGORY_SEAT); in testGetVendorExtensionIntProperty() 171 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_VENDOR_EXTENSION); in testGetVendorExtensionFloatProperty() 191 mUiAutomation.adoptShellPermissionIdentity(PERMISSION_VENDOR_EXTENSION); in testSetVendorExtensionFloatProperty()
|
/cts/tests/tests/car_permission_tests/src/android/car/cts/permissiontest/diagnostic/ |
D | CarDiagnosticManagerPermissionTest.java | 62 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_READ_ALL); in testRegisterUnregisterListenerWithCorrectPermission() 75 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_CLEAR); in testRegisterListenerWithWrongPermission() 90 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_CLEAR); in testClearFreezeFrameWithCorrectPermission() 100 mUiAutomation.adoptShellPermissionIdentity(Car.PERMISSION_CAR_DIAGNOSTIC_READ_ALL); in testClearFreezeFrameWithWrongPermission()
|
/cts/tests/tests/usb/src/android/usb/cts/ |
D | UsbPortApiTest.java | 94 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForResetUsbPort() 127 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForEnableUsbDataWhileDocked() 156 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForEnableUsbData() 185 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForEnableLimitPowerTransfer() 214 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForGetStatus() 243 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForSupportsComplianceWarnings()
|
D | UsbManagerApiTest.java | 92 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiSetGetCurrentFunctionsSys() 123 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForUsbGadgetHal() 153 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForUsbHal() 183 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeRegisterSecurity() 211 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeUnregisterSecurity() 238 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeRegisterFunctionality() 270 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeRegisterMultiListenerFunctionality()
|
D | UsbPortStatusApiTest.java | 119 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForGetComplianceWarnings() 177 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForGetPlugState() 200 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltMode() 231 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeLinkTrainingStatus() 255 mUiAutomation.adoptShellPermissionIdentity(MANAGE_USB); in test_UsbApiForDisplayPortAltModeHotPlugDetect()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | UserManagerTest.java | 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/nfc/src/android/nfc/cts/ |
D | WalletRoleTestUtils.java | 132 .getUiAutomation().adoptShellPermissionIdentity(MANAGE_DEFAULT_APPLICATIONS); in getDefaultWalletRoleHolder() 161 .getUiAutomation().adoptShellPermissionIdentity(OBSERVE_ROLE_HOLDERS); in runWithRole() 165 .getUiAutomation().adoptShellPermissionIdentity(MANAGE_DEFAULT_APPLICATIONS); in runWithRole() 169 .getUiAutomation().adoptShellPermissionIdentity(OBSERVE_ROLE_HOLDERS); in runWithRole() 186 .getUiAutomation().adoptShellPermissionIdentity(MANAGE_DEFAULT_APPLICATIONS); in canAssignRoleToPackage() 216 .getUiAutomation().adoptShellPermissionIdentity(OBSERVE_ROLE_HOLDERS); in runWithRoleNone() 220 .getUiAutomation().adoptShellPermissionIdentity(MANAGE_ROLE_HOLDERS); in runWithRoleNone() 228 .getUiAutomation().adoptShellPermissionIdentity(OBSERVE_ROLE_HOLDERS); in runWithRoleNone() 243 .getUiAutomation().adoptShellPermissionIdentity(MANAGE_ROLE_HOLDERS); in clearRoleHolders()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | PermissionHelper.java | 29 mInstrumentation.getUiAutomation().adoptShellPermissionIdentity(permissions); in PermissionHelper() 37 public static PermissionHelper adoptShellPermissionIdentity( in adoptShellPermissionIdentity() method in PermissionHelper
|
/cts/tests/wearable/src/android/wearable/cts/ |
D | WearableSensingManagerTest.java | 242 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in registerDataRequestObserver_defaultWssImpl_receivesUnsupportedOperationStatus() 266 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in registerDataRequestObserver_withPermission_success() 293 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in registerDataRequestObserver_withPermission_registersListenerToWearableSensingService() 307 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in registerDataRequestObserver_withPermission_canRegisterTwoObservers() 334 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in registerDataRequestObserver_withPermission_sendsPackageNameToWearableSensingService() 352 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in unregisterDataRequestObserver_defaultWssImpl_receivesUnsupportedOperationStatus() 378 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in unregisterDataRequestObserver_withPermission_unregistersObserverFromWSS() 401 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in unregisterDataRequestObserver_withPermission_receivesSuccessStatus() 431 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in unregisterDataRequestObserver_withPermission_notPreviouslyRegistered_doesNotCallWSS() 451 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_WEARABLE_SENSING_SERVICE); in stopHotwordRecognition_defaultWssImpl_receivesUnsupportedOperationStatus() [all …]
|
/cts/tests/tests/batteryhealth/src/android/os/cts/batteryhealth/ |
D | BatteryHealthTest.java | 77 mAutomation.adoptShellPermissionIdentity(android.Manifest.permission.BATTERY_STATS); in testManufacturingDate_dataInRange() 93 mAutomation.adoptShellPermissionIdentity(android.Manifest.permission.BATTERY_STATS); in testFirstUsageDate_dataInRange() 109 mAutomation.adoptShellPermissionIdentity(android.Manifest.permission.BATTERY_STATS); in testChargingPolicy_dataInRange() 125 mAutomation.adoptShellPermissionIdentity(android.Manifest.permission.BATTERY_STATS); in testBatteryStateOfHealth_dataInRange() 146 mAutomation.adoptShellPermissionIdentity(android.Manifest.permission.BATTERY_STATS); in testBatterySerialNumber_dataValid() 163 mAutomation.adoptShellPermissionIdentity(android.Manifest.permission.BATTERY_STATS); in testBatteryPartStatus_dataInRange()
|
/cts/hostsidetests/media/app/ProxyMediaRouterMediaRoutingControl/src/android/media/router/cts/proxyroutingapp/ |
D | MediaRouter2DeviceTest.java | 112 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in getInstance_withMediaRoutingControl_flagDisabled_throwsSecurityException() 128 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in getInstance_withMediaRoutingControl_flagEnabled_doesNotThrow() 155 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in getInstance_withinUser_withMediaRoutingControl_flagEnabled_returnsInstance() 196 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in requestScan_withScreenOff_triggersScanning() 242 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in cancelScanRequest_screenOffScanning_unbindsSelfScanProvider() 288 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in cancelScanRequest_multipleTypes_unbindsSelfScanProvider() 339 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in transferToSelectedSystemRoute_updatesTransferReason() 422 .adoptShellPermissionIdentity(Manifest.permission.MEDIA_ROUTING_CONTROL); in getTransferReason_afterAppRestart_returnsPreviouslySelectedTransferReason() 438 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_APP_OPS_MODES); in revokingMediaRoutingControl_onAppOpsManager_revokesProxyRouterAccess() 477 .adoptShellPermissionIdentity(Manifest.permission.MANAGE_APP_OPS_MODES); in revokeMediaRoutingControl_callsAllOnInstanceInvalidatedListeners() [all …]
|
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/ |
D | SensitiveNotificationAppHidingTest.kt | 209 uiAutomation.adoptShellPermissionIdentity() in <lambda>() 227 uiAutomation.adoptShellPermissionIdentity() in <lambda>() 249 uiAutomation.adoptShellPermissionIdentity() in <lambda>() 267 uiAutomation.adoptShellPermissionIdentity() in <lambda>() 291 uiAutomation.adoptShellPermissionIdentity() in <lambda>() 316 uiAutomation.adoptShellPermissionIdentity() in <lambda>() 344 uiAutomation.adoptShellPermissionIdentity() in <lambda>() 364 uiAutomation.adoptShellPermissionIdentity() in <lambda>()
|
/cts/tests/tests/soundtrigger/src/android/soundtrigger/cts/ |
D | SoundTriggerManagerTest.java | 100 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in setup() 109 getInstrumentation().getUiAutomation().adoptShellPermissionIdentity(); in tearDown() 197 .adoptShellPermissionIdentity( in getSoundTriggerPermissions() 207 .adoptShellPermissionIdentity(CAPTURE_AUDIO_HOTWORD, MANAGE_SOUND_TRIGGER); in testStartRecognitionFails_whenMissingRecordPermission() 218 .adoptShellPermissionIdentity(RECORD_AUDIO, MANAGE_SOUND_TRIGGER); in testStartRecognitionFails_whenMissingHotwordPermission() 300 .adoptShellPermissionIdentity(CAPTURE_AUDIO_HOTWORD, MANAGE_SOUND_TRIGGER); in testAttachThrows_whenMissingRecordPermission() 310 .adoptShellPermissionIdentity(RECORD_AUDIO, MANAGE_SOUND_TRIGGER); in testAttachThrows_whenMissingCaptureHotwordPermission()
|
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/ |
D | Permissions.java | 93 adoptShellPermissionIdentity(); in ignoringPermissions() 641 adoptShellPermissionIdentity(CommonPermissions.MANAGE_APP_OPS_MODES); 651 adoptShellPermissionIdentity(previousAdoptedShellPermissions); 690 adoptShellPermissionIdentity(); 727 adoptShellPermissionIdentity(adoptedShellPermissions); 763 private static void adoptShellPermissionIdentity(Collection<String> permissions) { 764 adoptShellPermissionIdentity(permissions.toArray(new String[0])); 767 private static void adoptShellPermissionIdentity(String... permissions) { 775 ShellCommandUtils.uiAutomation().adoptShellPermissionIdentity(permissions); 778 private static void adoptShellPermissionIdentity() { [all …]
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | OnDeviceIntelligenceManagerTest.java | 344 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in resultPopulatedWhenAttemptingGetFeature() 368 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in resultPopulatedWhenAttemptingGetFeatureDetails() 399 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in resultPopulatedWhenAttemptingGetVersion() 415 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in resultPopulatedWhenAttemptingRequestFeatureDownload() 475 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in resultPopulatedWhenRequestTokenInfo() 515 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in resultPopulatedWhenAttemptingProcessRequest() 540 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in resultPopulatedWhenAttemptingProcessRequestStreaming() 575 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in exceptionPopulatedWhenAttemptingProcessRequest() 646 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in cancellationPropagatedWhenInvokedDuringRequest() 684 .adoptShellPermissionIdentity(Manifest.permission.USE_ON_DEVICE_INTELLIGENCE); in cancellationPropagatedWhenInvokedBeforeMakingRequest() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsServiceTest.java | 982 .adoptShellPermissionIdentity("android.permission.MODIFY_PHONE_STATE"); in testMmTelSendMemoryAvailabilityNotification() 1169 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 1207 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallbackS() 1401 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() 1440 automan.adoptShellPermissionIdentity(); in testMmTelManagerRegistrationCallback() 1520 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1547 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1564 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1616 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() 1625 automan.adoptShellPermissionIdentity(); in testRcsDeviceCapabilitiesPublish() [all …]
|