Home
last modified time | relevance | path

Searched refs:grantPermission (Results 1 – 10 of 10) sorted by relevance

/packages/services/Telephony/tests/src/com/android/phone/
DCarrierConfigLoaderTest.java157 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testUpdateConfigForPhoneId_invalidPhoneId()
175 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testUpdateConfigForPhoneId_simAbsent()
202 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testUpdateConfigForPhoneId_simLoaded_withCachedConfigInXml()
240 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testOverrideConfig_invalidSubId()
255 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testOverrideConfig_withNullBundle()
276 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testOverrideConfig_withNonNullBundle()
296 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testNotifyConfigChangedForSubId_invalidSubId()
334 mContext.grantPermission(STUB_PERMISSION_ENABLE_ALL); in testGetDefaultCarrierServicePackageName_withPermission()
376 mContext.grantPermission(android.Manifest.permission.DUMP); in testDump_withPermission()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/
DManageCustomPermissionsFragmentTest.kt20 import android.permission.cts.PermissionUtils.grantPermission
83 grantPermission(USER_PKG, PERM) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
98 grantPermission(USER_PKG, PERM) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
DManageStandardPermissionsFragmentTest.kt22 import android.permission.cts.PermissionUtils.grantPermission
134 grantPermission(LOCATION_USER_PKG, ACCESS_COARSE_LOCATION) in groupSummaryGetsUpdatedWhenPermissionGetsGranted()
146 grantPermission(LOCATION_USER_PKG, ACCESS_COARSE_LOCATION) in groupSummaryGetsUpdatedWhenPermissionGetsRevoked()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/
DTestAppUtils.kt19 import android.permission.cts.PermissionUtils.grantPermission
60 fun grantTestAppPermission(permission: String) = grantPermission(PERM_USER_PACKAGE, permission)
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsageV2FragmentTest.kt22 import android.permission.cts.PermissionUtils.grantPermission
65 grantPermission(APP, CAMERA) in getActivityIntent()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbUtil.java50 manager.grantPermission(device); in openConnection()
DUsbDeviceHandlerResolver.java168 mUsbManager.grantPermission(device, activityInfo.applicationInfo.uid); in dispatch()
/packages/services/Telephony/tests/src/com/android/
DTestContext.java217 public void grantPermission(String permission) { in grantPermission() method in TestContext
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java89 mManager.grantPermission(rawDevice); in openDevice()
/packages/providers/MediaProvider/tests/transcode/src/com/android/providers/media/transcode/
DTranscodeTest.java92 TranscodeTestUtils.grantPermission(getContext().getPackageName(), in setUp()