Home
last modified time | relevance | path

Searched refs:permissionGroups (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DPermissionGroupPreferenceUtils.java40 List<PermGroupPackagesUiInfo> permissionGroups) { in updateGroupOfPermissionPreferences() argument
41 if (!(permissionGroups instanceof ArrayList)) { in updateGroupOfPermissionPreferences()
42 permissionGroups = new ArrayList<>(permissionGroups); in updateGroupOfPermissionPreferences()
44 if (!hasPermissionsListChanged(preferenceGroup, permissionGroups)) { in updateGroupOfPermissionPreferences()
46 updatePreferenceSummaries(preferenceGroup, permissionGroups); in updateGroupOfPermissionPreferences()
57 for (int i = 0; i < permissionGroups.size(); i++) { in updateGroupOfPermissionPreferences()
58 final PermGroupPackagesUiInfo info = permissionGroups.get(i); in updateGroupOfPermissionPreferences()
77 List<PermGroupPackagesUiInfo> permissionGroups) { in hasPermissionsListChanged() argument
78 if (preferenceGroup.getPreferenceCount() != permissionGroups.size()) { in hasPermissionsListChanged()
82 for (int i = 0, size = permissionGroups.size(); i < size; i++) { in hasPermissionsListChanged()
[all …]
DReviewPermissionsViewModel.kt56 val permissionGroups = mutableMapOf<String, LightAppPermGroupLiveData>() in <lambda>() constant in com.android.permissioncontroller.permission.ui.model.ReviewPermissionsViewModel
69 setSourcesToDifference(filteredGroups, permissionGroups, getPermGroupLiveData) in <lambda>()
71 permissionGroups.values.all { it.isInitialized } && in <lambda>()
72 permissionGroups.values.all { !it.isStale } in <lambda>()
75 permissionGroups.values.map { it.value } in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoManageOtherPermissionsFragment.java97 private void onUnusedPermissionGroupsChanged(List<PermGroupPackagesUiInfo> permissionGroups) { in onUnusedPermissionGroupsChanged() argument
98 updateCategory(mUnusedCategory, permissionGroups); in onUnusedPermissionGroupsChanged()
102 List<PermGroupPackagesUiInfo> permissionGroups) { in onAdditionalPermissionGroupsChanged() argument
103 updateCategory(mAdditionalCategory, permissionGroups); in onAdditionalPermissionGroupsChanged()
114 List<PermGroupPackagesUiInfo> permissionGroups) { in updateCategory() argument
121 permissionGroups); in updateCategory()
123 category.setVisible(!permissionGroups.isEmpty()); in updateCategory()
DAutoManageStandardPermissionsFragment.java87 private void onPermissionGroupsChanged(List<PermGroupPackagesUiInfo> permissionGroups) { in onPermissionGroupsChanged() argument
117 permissionGroups); in onPermissionGroupsChanged()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DManagePermissionsOtherFragment.java102 private void onUnusedPermissionGroupsChanged(List<PermGroupPackagesUiInfo> permissionGroups) { in onUnusedPermissionGroupsChanged() argument
103 updateCategory(mUnusedCategory, permissionGroups); in onUnusedPermissionGroupsChanged()
107 List<PermGroupPackagesUiInfo> permissionGroups) { in onAdditionalPermissionGroupsChanged() argument
108 updateCategory(mAdditionalCategory, permissionGroups); in onAdditionalPermissionGroupsChanged()
122 List<PermGroupPackagesUiInfo> permissionGroups) { in updateCategory() argument
129 permissionGroups); in updateCategory()
131 category.setVisible(!permissionGroups.isEmpty()); in updateCategory()
DManagePermissionsFragment.java84 private void onPermissionGroupsChanged(List<PermGroupPackagesUiInfo> permissionGroups) { in onPermissionGroupsChanged() argument
113 ArrayList<PermGroupPackagesUiInfo> filteredGroups = new ArrayList<>(permissionGroups); in onPermissionGroupsChanged()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/dashboard/
DAutoPermissionUsageFragment.kt62 private var permissionGroups: List<PermGroupPackagesUiInfo> = listOf() variable in com.android.permissioncontroller.permission.ui.auto.dashboard.AutoPermissionUsageFragment
110 private fun onPermissionGroupsChanged(permissionGroups: List<PermGroupPackagesUiInfo>) { in onPermissionGroupsChanged()
111 this.permissionGroups = permissionGroups in onPermissionGroupsChanged()
167 if (permissionGroups.isEmpty() || appPermissionUsages.isEmpty()) { in updateUI()
205 permissionGroups in addUIContent()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearManageStandardPermissionScreen.kt46 val permissionGroups = viewModel.uiDataLiveData.observeAsState(emptyMap()) in <lambda>() constant
53 getPermGroupChipParams(permissionGroups.value), in <lambda>()
61 if (isLoading && permissionGroups.value.isNotEmpty()) { in <lambda>()
68 permissionGroups: Map<String, PermGroupPackagesUiInfo?> in getPermGroupChipParams()
78 return permissionGroups in getPermGroupChipParams()
DWearManageCustomPermissionScreen.kt36 val permissionGroups = viewModel.uiDataLiveData.observeAsState(emptyMap()) in WearManageCustomPermissionScreen() constant
41 getPermGroupChipParams(permissionGroups.value), in WearManageCustomPermissionScreen()
45 if (isLoading && permissionGroups.value.isNotEmpty()) { in WearManageCustomPermissionScreen()
DWearAppPermissionGroupsHelper.kt77 val groups: List<AppPermissionGroup> = appPermissions.permissionGroups in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DManageCustomPermissionsFragment.java61 mViewModel.getUiDataLiveData().observe(this, permissionGroups -> { in onCreate()
62 if (permissionGroups == null) { in onCreate()
65 mPermissionGroups = permissionGroups; in onCreate()
DManageStandardPermissionsFragment.java71 mViewModel.getUiDataLiveData().observe(this, permissionGroups -> { in onCreate()
75 if (permissionGroups != null) { in onCreate()
76 mPermissionGroups = permissionGroups; in onCreate()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/appops/data/repository/v31/
DAppOpRepository.kt189 val permissionGroups = permissionRepository.getPermissionGroupsForPrivacyDashboard() in getPrivacyDashboardAppOpNames() constant
191 for (permissionGroup in permissionGroups) { in getPrivacyDashboardAppOpNames()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DAutoRevokePermissions.kt157 val permissionGroups = in <lambda>() constant
162 for (permissionGroup in permissionGroups) { in <lambda>()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DPermissionPolicyTest.java355 ArraySet<String> permissionGroups = new ArraySet<>(); in loadExpectedPermissionGroupNames() local
368 permissionGroups.add(parser.getAttributeValue(null, ATTR_NAME)); in loadExpectedPermissionGroupNames()
374 return permissionGroups; in loadExpectedPermissionGroupNames()