Home
last modified time | relevance | path

Searched refs:usageInfos (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/privacy/
DPermissionBarChartPreferenceController.java134 public void onPermissionUsageResult(@NonNull List<RuntimePermissionUsageInfo> usageInfos) { in onPermissionUsageResult() argument
135 usageInfos.sort((x, y) -> { in onPermissionUsageResult()
159 if (!areSamePermissionGroups(usageInfos)) { in onPermissionUsageResult()
160 mBarChartPreference.setBarViewInfos(createBarViews(usageInfos)); in onPermissionUsageResult()
161 mOldUsageInfos = usageInfos; in onPermissionUsageResult()
174 private BarViewInfo[] createBarViews(List<RuntimePermissionUsageInfo> usageInfos) { in createBarViews() argument
175 if (usageInfos.isEmpty()) { in createBarViews()
180 usageInfos.removeIf(usage -> usage.getName().equals("android.permission-group.STORAGE")); in createBarViews()
183 Math.min(BarChartPreference.MAXIMUM_BAR_VIEWS, usageInfos.size())]; in createBarViews()
186 final RuntimePermissionUsageInfo permissionGroupInfo = usageInfos.get(index); in createBarViews()
/packages/apps/Settings/src/com/android/settings/privacy/
DPermissionBarChartPreferenceController.java131 public void onPermissionUsageResult(@NonNull List<RuntimePermissionUsageInfo> usageInfos) { in onPermissionUsageResult() argument
132 usageInfos.sort((x, y) -> { in onPermissionUsageResult()
156 if (!areSamePermissionGroups(usageInfos)) { in onPermissionUsageResult()
157 mBarChartPreference.setBarViewInfos(createBarViews(usageInfos)); in onPermissionUsageResult()
158 mOldUsageInfos = usageInfos; in onPermissionUsageResult()
171 private BarViewInfo[] createBarViews(List<RuntimePermissionUsageInfo> usageInfos) { in createBarViews() argument
172 if (usageInfos.isEmpty()) { in createBarViews()
177 Math.min(BarChartPreference.MAXIMUM_BAR_VIEWS, usageInfos.size())]; in createBarViews()
180 final RuntimePermissionUsageInfo permissionGroupInfo = usageInfos.get(index); in createBarViews()