Home
last modified time | relevance | path

Searched refs:permissionGroupName (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v34/
DPermissionRationaleViewModel.kt66 private val permissionGroupName: String, in <lambda>() constant in com.android.permissioncontroller.permission.ui.model.v34.PermissionRationaleViewModel
132 permissionGroupName in <lambda>()
139 permissionGroupName, in <lambda>()
245 permissionGroupName, in <lambda>()
256 permissionGroupName, in <lambda>()
276 private val permissionGroupName: String, constant in com.android.permissioncontroller.permission.ui.model.v34.PermissionRationaleViewModelFactory
285 permissionGroupName, in create()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/model/
DSafetyCenterQsViewModel.kt83 val permissionGroupName = permGroupUsage.permissionGroupName in <lambda>() constant
88 permissionGroupName, in <lambda>()
93 Triple(packageName, permissionGroupName, userHandle)] in <lambda>()
116 usage.permissionGroupName, in shouldAllowRevoke()
132 usage.permissionGroupName, in revokePermission()
266 intent.putExtra(Intent.EXTRA_PERMISSION_GROUP_NAME, usage.permissionGroupName) in getStartViewPermissionUsageIntent()
300 val permissionGroupName: String, constant in com.android.permissioncontroller.safetycenter.ui.model.LightAppPermissionGroupUsageKey
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DManagePermissionsActivity.java409 String permissionGroupName = getIntent().getStringExtra( in onCreate() local
412 if (permissionGroupName == null) { in onCreate()
416 permissionGroupName = PermissionMapping.getGroupOfPermission(permInfo); in onCreate()
422 if (permissionGroupName == null) { in onCreate()
423 permissionGroupName = permissionName; in onCreate()
426 if (permissionName == null && permissionGroupName == null) { in onCreate()
434 if (permissionGroupName.equals(Manifest.permission_group.NOTIFICATIONS)) { in onCreate()
440 if (Utils.isHealthPermissionUiEnabled() && permissionGroupName in onCreate()
449 AutoPermissionAppsFragment.newInstance(permissionGroupName, sessionId); in onCreate()
452 .PermissionAppsFragment.newInstance(permissionGroupName); in onCreate()
[all …]
DGrantPermissionsActivity.java1145 private void logGrantPermissionActivityButtons(String permissionGroupName,
1214 mViewModel.logClickedButtons(permissionGroupName, selectedPrecision, clickedButton,
1277 private int getPermissionRationaleMessageResIdForPermissionGroup(String permissionGroupName) {
1278 Preconditions.checkArgument(LOCATION.equals(permissionGroupName),
1279 "Permission Rationale does not support %s", permissionGroupName);
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/v34/
DPermissionRationaleActivity.java428 private int getTitleResIdForPermissionGroup(String permissionGroupName) { in getTitleResIdForPermissionGroup() argument
429 if (LOCATION.equals(permissionGroupName)) { in getTitleResIdForPermissionGroup()
434 String.format("Permission Rationale does not support %s", permissionGroupName); in getTitleResIdForPermissionGroup()
439 private int getPurposeTitleResIdForPermissionGroup(String permissionGroupName) { in getPurposeTitleResIdForPermissionGroup() argument
440 if (LOCATION.equals(permissionGroupName)) { in getPurposeTitleResIdForPermissionGroup()
445 String.format("Permission Rationale does not support %s", permissionGroupName); in getPurposeTitleResIdForPermissionGroup()
458 private int getSettingsMessageResIdForPermissionGroup(String permissionGroupName) { in getSettingsMessageResIdForPermissionGroup() argument
459 Preconditions.checkArgument(LOCATION.equals(permissionGroupName), in getSettingsMessageResIdForPermissionGroup()
460 "Permission Rationale does not support %s", permissionGroupName); in getSettingsMessageResIdForPermissionGroup() local
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DPermissionMapping.kt392 fun getDataCategoriesForPermissionGroup(permissionGroupName: String): List<String> { in getDataCategoriesForPermissionGroup()
393 return if (isSafetyLabelAwarePermissionGroup(permissionGroupName)) { in getDataCategoriesForPermissionGroup()
394 PERMISSION_GROUPS_TO_DATA_CATEGORIES[permissionGroupName] ?: emptyList() in getDataCategoriesForPermissionGroup()
406 fun isSafetyLabelAwarePermissionGroup(permissionGroupName: String): Boolean { in isSafetyLabelAwarePermissionGroup()
411 return PERMISSION_GROUPS_TO_DATA_CATEGORIES.containsKey(permissionGroupName) in isSafetyLabelAwarePermissionGroup()
DUtils.java1462 public static boolean isStatusBarIndicatorPermission(@NonNull String permissionGroupName) { in isStatusBarIndicatorPermission() argument
1463 return CAMERA.equals(permissionGroupName) || MICROPHONE.equals(permissionGroupName); in isStatusBarIndicatorPermission()
1514 public static boolean shouldDisplayCardIfBlocked(@NonNull String permissionGroupName) { in shouldDisplayCardIfBlocked() argument
1515 return CAMERA.equals(permissionGroupName) || MICROPHONE.equals(permissionGroupName) in shouldDisplayCardIfBlocked()
1516 || LOCATION.equals(permissionGroupName); in shouldDisplayCardIfBlocked()
1523 public static int getSensorCode(@NonNull String permissionGroupName) { in getSensorCode() argument
1524 return PERM_SENSOR_CODES.getOrDefault(permissionGroupName, -1); in getSensorCode()
1530 public static int getBlockedIcon(@NonNull String permissionGroupName) { in getBlockedIcon() argument
1531 return PERM_BLOCKED_ICON.getOrDefault(permissionGroupName, -1); in getBlockedIcon()
1537 public static int getBlockedTitle(@NonNull String permissionGroupName) { in getBlockedTitle() argument
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v33/
DReviewPermissionDecisionsViewModel.kt96 grantedGroups.contains(recentDecision.permissionGroupName) in loadDataAndPostValue()
128 KotlinUtils.getPermGroupLabel(app, permissionDecision.permissionGroupName).toString() in createPreferenceTitle()
147 putExtra(Intent.EXTRA_PERMISSION_NAME, permissionDecision.permissionGroupName) in createManageAppPermissionIntent()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DPlatformPermissionGroupMappingTest.kt42 val permissionGroupName = future.get(TIMEOUT_MILLIS, TimeUnit.MILLISECONDS) in platformPermissionHasPermissionGroup() constant
43 assertThat(permissionGroupName).isEqualTo(android.Manifest.permission_group.CALENDAR) in platformPermissionHasPermissionGroup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DManageCustomPermissionsFragment.java72 public void showPermissionApps(String permissionGroupName) { in showPermissionApps() argument
74 permissionGroupName, getArguments().getLong(EXTRA_SESSION_ID))); in showPermissionApps()
DManageStandardPermissionsFragment.java198 public void showPermissionApps(String permissionGroupName) { in showPermissionApps() argument
201 mViewModel.getUiDataLiveData().setFirstLoadGroup(permissionGroupName); in showPermissionApps()
203 permissionGroupName, getArguments().getLong(EXTRA_SESSION_ID))); in showPermissionApps()
DAppPermissionGroupsFragment.java355 CharSequence permissionGroupName = KotlinUtils.INSTANCE.getPermGroupLabel(context, in updatePreferences() local
358 preference.setTitle(permissionGroupName); in updatePreferences()
364 permissionGroupName, deviceName)); in updatePreferences()
598 long sessionId, long viewId, String permissionGroupName, int category) { in logAppPermissionsFragmentViewEntry() argument
606 permissionGroupName, uid, mPackageName, category); in logAppPermissionsFragmentViewEntry()
608 + viewId + " permissionGroupName=" + permissionGroupName + " uid=" in logAppPermissionsFragmentViewEntry()
DManagePermissionsFragment.java79 abstract void showPermissionApps(String permissionGroupName); in showPermissionApps() argument
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/v33/
DPermissionDecisionStorageImpl.kt122 out.attribute(ns, ATTR_PERMISSION_GROUP, decision.permissionGroupName) in serialize()
206 first.permissionGroupName == second.permissionGroupName in hasTheSamePrimaryKey()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoReviewPermissionDecisionsFragment.kt202 recentDecision.permissionGroupName in <lambda>()
264 private fun logPermissionDecisionClicked(packageName: String, permissionGroupName: String) { in <lambda>()
271 permissionGroupName in <lambda>()
DAutoPermissionAppsFragment.java73 public static AutoPermissionAppsFragment newInstance(String permissionGroupName, in newInstance() argument
75 return setPermissionGroupName(new AutoPermissionAppsFragment(), permissionGroupName, in newInstance()
80 T fragment, String permissionGroupName, long sessionId) { in setPermissionGroupName() argument
82 arguments.putString(Intent.EXTRA_PERMISSION_GROUP_NAME, permissionGroupName); in setPermissionGroupName()
DAutoAppPermissionsFragment.java395 long sessionId, long viewId, String permissionGroupName, int category) { in logAppPermissionsFragmentViewEntry() argument
402 permissionGroupName, uid, mPackageName, category); in logAppPermissionsFragmentViewEntry()
404 + " viewId=" + viewId + " permissionGroupName=" + permissionGroupName + " uid=" in logAppPermissionsFragmentViewEntry()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DInteractionLogger.kt430 fromPermissionGroupName(usage?.permissionGroupName) in fromUserId()
433 fun fromPermissionGroupName(permissionGroupName: String?) = in fromUserId()
434 when (permissionGroupName) { in fromUserId()
DSafetyCenterQsFragment.java357 boolean canHandleIntent, boolean shouldAllowRevoke, String permissionGroupName) { in getPrimaryActionButtonLabel() argument
364 return getRemovePermissionText(permissionGroupName); in getPrimaryActionButtonLabel()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DPermissionAppsFragment.java59 public static PermissionAppsFragment newInstance(String permissionGroupName) { in newInstance() argument
60 return setPermissionGroupName(new PermissionAppsFragment(), permissionGroupName); in newInstance()
64 T fragment, String permissionGroupName) { in setPermissionGroupName() argument
66 arguments.putString(Intent.EXTRA_PERMISSION_GROUP_NAME, permissionGroupName); in setPermissionGroupName()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/v33/
DPermissionDecision.kt33 val permissionGroupName: String, constant in com.android.permissioncontroller.permission.data.v33.PermissionDecision
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/
DUtilsTest.kt174 for (permissionGroupName in permissionGroupNames) { in getPermissionGroupDescriptionString_validPermissionGroup() constant
175 assertThat(Utils.getPermissionGroupDescriptionString(context, permissionGroupName, "")) in getPermissionGroupDescriptionString_validPermissionGroup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DGrantPermissionsViewModel.kt454 permissionGroupName: String? in <lambda>()
456 if (safetyLabel == null || permissionGroupName == null) { in <lambda>()
461 SafetyLabelUtils.getSafetyLabelSharingPurposesForGroup(safetyLabel, permissionGroupName) in <lambda>()
DAppPermissionViewModel.kt746 private fun isForegroundGroupSpecialCase(permissionGroupName: String): Boolean { in <lambda>()
747 return permissionGroupName.equals(Manifest.permission_group.CAMERA) || in <lambda>()
748 permissionGroupName.equals(Manifest.permission_group.MICROPHONE) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java781 public void onGetPlatformPermissionsForGroup(@NonNull String permissionGroupName, in onGetPlatformPermissionsForGroup() argument
783 callback.accept(PermissionMapping.getPlatformPermissionNamesOfGroup(permissionGroupName)); in onGetPlatformPermissionsForGroup()

12