Home
last modified time | relevance | path

Searched refs:permissionName (Results 1 – 22 of 22) sorted by relevance

/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/permission/service/
DRuntimePermissionsUpgradeControllerTest.kt150 val permissionName = it.arguments[0] as String in <lambda>() constant
154 ?.find { it.name == permissionName }?.flags ?: 0 in <lambda>()
186 val permissionName = it.arguments[0] as String in <lambda>() constant
189 .getPermissionInfo(permissionName, 0) in <lambda>()
221 for (permissionName in permissionNames) { in <lambda>() method
223 packageName, permissionName, FLAG_PERMISSION_WHITELIST_UPGRADE) in <lambda>()
228 for (permissionName in permissionNames) { in <lambda>() method
230 eq(permissionName), anyInt()) in <lambda>()
234 private fun verifyGranted(packageName: String, permissionName: String) { in <lambda>()
236 eq(permissionName), any()) in <lambda>()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/feature/
DPermissionFeature.java28 private final String permissionName; field in PermissionFeature
30 private PermissionFeature(String permissionName) { in PermissionFeature() argument
31 this.permissionName = permissionName; in PermissionFeature()
36 return context.checkSelfPermission(permissionName) == PackageManager.PERMISSION_GRANTED; in isEnabled()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DLightPermInfoLiveData.kt36 private val permissionName: String constant in com.android.permissioncontroller.permission.data.LightPermInfoLiveData
69 LightPermInfo(app.packageManager.getPermissionInfo(permissionName, 0)) in loadDataAndPostValue()
71 Log.w(LOG_TAG, "Permission \"$permissionName\" not found") in loadDataAndPostValue()
72 invalidateSingle(permissionName) in loadDataAndPostValue()
95 return isRuntimePlatformPermission(permissionName) in isImmutable()
DPermStateLiveData.kt83 for ((index, permissionName) in packageInfo.requestedPermissions.withIndex()) { in <lambda>() constant
85 permissionGroup.permissionInfos[permissionName]?.let { permInfo -> in <lambda>()
95 permissionStates[permissionName] = PermState(permFlags, granted) in <lambda>()
DAppPermGroupUiInfoLiveData.kt199 for (permissionName in permissionState.keys) { in <lambda>() method
200 val flags = permissionState[permissionName]?.permFlags ?: return true in <lambda>()
201 val granted = permissionState[permissionName]?.granted ?: return true in <lambda>()
DPermGroupsPackagesLiveData.kt97 for (permissionName in packageInfo.requestedPermissions) { in <lambda>() constant
98 if (permissionInfos.containsKey(permissionName)) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DManagePermissionsActivity.java141 String permissionName; in onCreate() local
200 permissionName = getIntent().getStringExtra(Intent.EXTRA_PERMISSION_NAME); in onCreate()
205 Bundle args = AppPermissionFragment.createArgs(packageName, permissionName, in onCreate()
278 permissionName = getIntent().getStringExtra(Intent.EXTRA_PERMISSION_NAME); in onCreate()
285 permissionName, 0); in onCreate()
288 Log.i(LOG_TAG, "Permission " + permissionName + " does not exist"); in onCreate()
292 if (permissionName == null && permissionGroupName == null) { in onCreate()
299 androidXFragment = AutoPermissionAppsFragment.newInstance(permissionName); in onCreate()
302 .PermissionAppsFragment.newInstance(permissionName); in onCreate()
306 args.putString(Intent.EXTRA_PERMISSION_NAME, permissionName); in onCreate()
DAutoGrantPermissionsNotifier.java199 public void onPermissionAutoGranted(@NonNull String permissionName) { in onPermissionAutoGranted() argument
200 if (PERMISSIONS_TO_NOTIFY_FOR.contains(permissionName)) { in onPermissionAutoGranted()
201 mGrantedPermissions.add(permissionName); in onPermissionAutoGranted()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/legacy/
DAppPermissionActivity.java94 String permissionName = getIntent().getStringExtra(Intent.EXTRA_PERMISSION_NAME); in onCreate() local
96 if (permissionName == null && groupName == null) { in onCreate()
103 groupName = Utils.getGroupOfPlatformPermission(permissionName); in onCreate()
106 permission = getPackageManager().getPermissionInfo(permissionName, 0); in onCreate()
149 androidXFragment = AutoAppPermissionFragment.newInstance(packageName, permissionName, in onCreate()
158 packageName, permissionName, groupName, userHandle, null, 0, null)); in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
DAppPicker.java52 final String permissionName = getIntent().getStringExtra(EXTRA_REQUESTIING_PERMISSION); in onCreate() local
56 AppPickerFragment.newInstance(permissionName, debuggableOnly), in onCreate()
66 public static AppPickerFragment newInstance(String permissionName, boolean debuggableOnly) { in newInstance() argument
69 b.putString(EXTRA_REQUESTIING_PERMISSION, permissionName); in newInstance()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoPermissionAppsFragment.java58 public static AutoPermissionAppsFragment newInstance(String permissionName) { in newInstance() argument
59 return setPermissionName(new AutoPermissionAppsFragment(), permissionName); in newInstance()
62 private static <T extends Fragment> T setPermissionName(T fragment, String permissionName) { in setPermissionName() argument
64 arguments.putString(Intent.EXTRA_PERMISSION_NAME, permissionName); in setPermissionName()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSoftRestrictedPermissionPolicy.java72 public static boolean shouldShow(@NonNull LightPackageInfo pkg, @NonNull String permissionName, in shouldShow() argument
74 switch (permissionName) { in shouldShow()
DAndroidUtils.kt65 permissionName: String, in PackageManager()
72 updatePermissionFlags(permissionName, packageName, mask, value, user) in PackageManager()
DUtils.java1135 for (String permissionName : permissions) { in hasOneTimePermissions()
1136 if ((pm.getPermissionFlags(permissionName, packageName, Process.myUserHandle()) in hasOneTimePermissions()
1138 && pm.checkPermission(permissionName, packageName) in hasOneTimePermissions()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java451 @NonNull String permissionName, @NonNull Runnable callback) { in onRevokeRuntimePermission() argument
453 onRevokeRuntimePermission(packageName, permissionName); in onRevokeRuntimePermission()
459 @NonNull String permissionName) { in onRevokeRuntimePermission() argument
467 permissionName); in onRevokeRuntimePermission()
715 public void onGetGroupOfPlatformPermission(@NonNull String permissionName, in onGetGroupOfPlatformPermission() argument
717 callback.accept(Utils.getGroupOfPlatformPermission(permissionName)); in onGetGroupOfPlatformPermission()
DBackupHelper.java385 private BackupPermissionState(@NonNull String permissionName, boolean isGranted, in BackupPermissionState() argument
387 mPermissionName = permissionName; in BackupPermissionState()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DPermissionAppsFragment.java55 public static PermissionAppsFragment newInstance(String permissionName) { in newInstance() argument
56 return setPermissionName(new PermissionAppsFragment(), permissionName); in newInstance()
60 T fragment, String permissionName) { in setPermissionName() argument
62 arguments.putString(Intent.EXTRA_PERMISSION_NAME, permissionName); in setPermissionName()
/packages/services/Car/service/src/com/android/car/cluster/
DClusterHomeService.java346 private void enforcePermission(String permissionName) { in enforcePermission() argument
347 if (mContext.checkCallingOrSelfPermission(permissionName) in enforcePermission()
349 throw new SecurityException("requires permission " + permissionName); in enforcePermission()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissionGroup.java155 String permissionName, boolean delayChanges) { in create() argument
158 permissionInfo = context.getPackageManager().getPermissionInfo(permissionName, 0); in create()
714 public @Nullable Permission getPermission(@NonNull String permissionName) {
715 return mPermissions.get(permissionName);
1126 for (String permissionName : filterPermissions) {
1127 Permission permission = mPermissions.get(permissionName);
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowPermissionControllerManager.java46 protected void revokeRuntimePermission(String packageName, String permissionName) { in revokeRuntimePermission() argument
/packages/services/Car/service/src/com/android/car/
DCarOccupantZoneService.java1220 private void enforcePermission(String permissionName) { in enforcePermission() argument
1221 if (mContext.checkCallingOrSelfPermission(permissionName) in enforcePermission()
1223 throw new SecurityException("requires permission " + permissionName); in enforcePermission()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java1261 private void enforcePermission(String permissionName) { in enforcePermission() argument
1262 if (mContext.checkCallingOrSelfPermission(permissionName) in enforcePermission()
1264 throw new SecurityException("requires permission " + permissionName); in enforcePermission()