Home
last modified time | relevance | path

Searched refs:PermissionMapping (Results 1 – 25 of 51) sorted by relevance

123

/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/util/
DPermissionMappingTest.kt23 import com.android.permissioncontroller.permission.utils.PermissionMapping
33 PermissionMapping.getPlatformPermissionGroupForOp( in testGetPlatformPermissionGroupForOp_healthPermissionGroup()
43 PermissionMapping.getPlatformPermissionGroupForOp( in testGetPlatformPermissionGroupForOp_microphone()
53 PermissionMapping.getPlatformPermissionGroupForOp( in testGetPlatformPermissionGroupForOp_camera()
63 assertThat(PermissionMapping.getPlatformPermissionGroupForOp("invalid_opName")) in testGetPlatformPermissionGroupForOp_InvalidOpName()
73 PermissionMapping.getPlatformPermissionGroupForOp(AppOpsManager.OPSTR_READ_CONTACTS) in testGetPlatformPermissionGroupForOp_readContacts()
76 PermissionMapping.getGroupOfPlatformPermission(Manifest.permission.READ_CONTACTS) in testGetPlatformPermissionGroupForOp_readContacts()
/packages/modules/Permission/PermissionController/tests/inprocess/src/com/android/permissioncontroller/permission/
DGetPermissionGroupInfoTest.kt23 import com.android.permissioncontroller.permission.utils.PermissionMapping
37 val groups = PermissionMapping.getPlatformPermissionGroups() in assertAllPlatformPermGroupPermListsMatch()
47 .isEqualTo(PermissionMapping.getPlatformPermissionNamesOfGroup(group)) in assertAllPlatformPermGroupPermListsMatch()
53 val groups = PermissionMapping.getPlatformPermissionGroups() in assertAllPlatformPermGroupsMatch()
55 val perms = PermissionMapping.getPlatformPermissionNamesOfGroup(group) in assertAllPlatformPermGroupsMatch()
65 .isEqualTo(PermissionMapping.getGroupOfPlatformPermission(permName)) in assertAllPlatformPermGroupsMatch()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/data/repository/
DFakePermissionRepository.kt23 import com.android.permissioncontroller.permission.utils.PermissionMapping
44 PermissionMapping.getPlatformPermissionGroups().filter { in getPermissionGroupsForPrivacyDashboard()
48 PermissionMapping.getPlatformPermissionGroups() in getPermissionGroupsForPrivacyDashboard()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DSplitPermissionIndex.kt20 import com.android.permissioncontroller.permission.utils.PermissionMapping
41 PermissionMapping.getGroupOfPlatformPermission(splitPermission)
42 val newPermGroup = PermissionMapping.getGroupOfPlatformPermission(newPerm)
DPermissionSearchIndexablesProvider.java34 import com.android.permissioncontroller.permission.utils.PermissionMapping;
52 List<String> permissionGroupNames = PermissionMapping.getPlatformPermissionGroups(); in queryRawData()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
DPackagePermissionsLiveData.kt25 import com.android.permissioncontroller.permission.utils.PermissionMapping
59 var groupName = PermissionMapping.getGroupOfPlatformPermission(permName) in loadDataAndPostValue()
101 groupName = PermissionMapping.getGroupOfPermission(permInfo) ?: permName in loadDataAndPostValue()
DStandardPermGroupNamesLiveData.kt20 import com.android.permissioncontroller.permission.utils.PermissionMapping
26 postValue(PermissionMapping.getPlatformPermissionGroups())
DForegroundPermNamesLiveData.kt21 import com.android.permissioncontroller.permission.utils.PermissionMapping
39 val systemGroups = PermissionMapping.getPlatformPermissionGroups() in loadDataAndPostValue()
DCustomPermGroupNamesLiveData.kt22 import com.android.permissioncontroller.permission.utils.PermissionMapping
38 val platformGroupNames = PermissionMapping.getPlatformPermissionGroups() in onUpdate()
DSinglePermGroupPackagesUiInfoLiveData.kt23 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
39 !PermissionMapping.getPlatformPermissionGroups().contains(permGroupName) in <lambda>()
DAutoRevokedPackagesLiveData.kt25 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
66 PermissionMapping.getGroupOfPlatformPermission(requestedPerm) ?: continue in <lambda>()
DUserSensitivityLiveData.kt29 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
101 val runtimePerms = PermissionMapping.getRuntimePlatformPermissionNames() in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/repository/v31/
DPermissionRepository.kt26 import com.android.permissioncontroller.permission.utils.PermissionMapping
129 PermissionMapping.getPlatformPermissionGroups().filter { in getPermissionGroupsForPrivacyDashboard()
133 PermissionMapping.getPlatformPermissionGroups() in getPermissionGroupsForPrivacyDashboard()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/ecm/
DEnhancedConfirmationDialogActivity.kt46 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
121 PermissionMapping.getGroupOfPlatformPermission(settingIdentifier)!! in <lambda>()
168 PermissionMapping.isRuntimePlatformPermission(settingIdentifier) && in <lambda>()
169 PermissionMapping.getGroupOfPlatformPermission(settingIdentifier) != null -> in <lambda>()
171 PermissionMapping.isPlatformPermissionGroup(settingIdentifier) -> in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/domain/usecase/v31/
DGetPermissionGroupUsageUseCase.kt32 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
94 PermissionMapping.getPlatformPermissionGroupForOp(it.appOpName) in <lambda>()
130 PermissionMapping.getGroupOfPlatformPermission(permission) in <lambda>()
179 if (PermissionMapping.getGroupOfPlatformPermission(permissionName) == permissionGroup) { in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DAllAppPermissionsFragment.java51 import com.android.permissioncontroller.permission.utils.PermissionMapping;
174 getGroup(PermissionMapping.getGroupOfPermission(perm), pm); in updateUi()
205 } else if (PermissionMapping.isPlatformPermissionGroup(lKey) in updateUi()
206 != PermissionMapping.isPlatformPermissionGroup(rKey)) { in updateUi()
207 return PermissionMapping.isPlatformPermissionGroup(lKey) ? -1 : 1; in updateUi()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAllAppPermissionsFragment.java51 import com.android.permissioncontroller.permission.utils.PermissionMapping;
163 getGroup(PermissionMapping.getGroupOfPermission(perm), pm); in updateUi()
197 } else if (PermissionMapping.isPlatformPermissionGroup(lKey) in updateUi()
198 != PermissionMapping.isPlatformPermissionGroup(rKey)) { in updateUi()
199 return PermissionMapping.isPlatformPermissionGroup(lKey) ? -1 : 1; in updateUi()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v34/
DSafetyLabelUtils.kt28 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
43 PermissionMapping.getDataCategoriesForPermissionGroup(groupName) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DAllAppPermissionsFragment.java50 import com.android.permissioncontroller.permission.utils.PermissionMapping;
219 if (PermissionMapping.isPlatformPermissionGroup(lKey) in comparePreferences()
220 != PermissionMapping.isPlatformPermissionGroup(rKey)) { in comparePreferences()
221 return PermissionMapping.isPlatformPermissionGroup(lKey) ? -1 : 1; in comparePreferences()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/v35/
DPackagePermissionsExternalDeviceLiveData.kt32 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
79 PermissionMapping.getGroupOfPlatformPermission(permissionName)?.let { groupName -> in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/v31/
DAdminRestrictedPermissionsUtils.java28 import com.android.permissioncontroller.permission.utils.PermissionMapping;
92 && PermissionMapping.getPlatformPermissionNamesOfGroup(permissionGroup).stream() in mayAdminGrantPermission()
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/permission/ui/model/
DPermissionUsageViewModelTest.kt34 import com.android.permissioncontroller.permission.utils.PermissionMapping
81 PermissionMapping.addHealthPermissionsToPlatform(setOf("health1")) in setup()
124 val expectedPermissions = PermissionMapping.getPlatformPermissionGroups().toMutableSet() in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/grantPermissions/
DBackgroundGrantBehavior.kt26 import com.android.permissioncontroller.permission.utils.PermissionMapping in <lambda>()
59 val isOneTimeGroup = PermissionMapping.supportsOneTimeGrant(group.permGroupName) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionGroups.java42 import com.android.permissioncontroller.permission.utils.PermissionMapping;
191 && !PermissionMapping.isPlatformPermissionGroup(groupInfo.name)) { in getPermissionGroups()
269 if (!getNonPlatformPermissions && !PermissionMapping.isPlatformPermissionGroup( in getPermissionGroups()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/v33/
DReviewPermissionDecisionsViewModel.kt39 import com.android.permissioncontroller.permission.utils.PermissionMapping
91 PermissionMapping.getGroupOfPermission( in loadDataAndPostValue()

123