Searched refs:usageInfos (Results 1 – 2 of 2) sorted by relevance
134 public void onPermissionUsageResult(@NonNull List<RuntimePermissionUsageInfo> usageInfos) { in onPermissionUsageResult() argument135 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() argument175 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()
131 public void onPermissionUsageResult(@NonNull List<RuntimePermissionUsageInfo> usageInfos) { in onPermissionUsageResult() argument132 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() argument172 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()