Home
last modified time | relevance | path

Searched refs:AppPermissionGroup (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/
DAppPermissions.java41 private final ArrayList<AppPermissionGroup> mGroups = new ArrayList<>();
44 private final ArrayMap<String, AppPermissionGroup> mGroupNameToGroup = new ArrayMap<>();
47 private final ArrayMap<String, AppPermissionGroup> mPermissionNameToGroup = new ArrayMap<>();
91 public AppPermissionGroup getPermissionGroup(String name) { in getPermissionGroup()
95 public List<AppPermissionGroup> getPermissionGroups() { in getPermissionGroups()
102 AppPermissionGroup group = mGroups.get(i); in isReviewRequired()
129 private void addAllPermissions(AppPermissionGroup group) { in addAllPermissions()
146 AppPermissionGroup group = AppPermissionGroup.create(mContext, mPackageInfo, in loadPermissionGroups()
157 AppPermissionGroup backgroundGroup = group.getBackgroundPermissions(); in loadPermissionGroups()
179 public AppPermissionGroup getGroupForPermission(String permission) { in getGroupForPermission()
[all …]
DAppPermissionUsage.java66 @NonNull List<AppPermissionGroup> groups, @Nullable PackageOps lastUsage, in AppPermissionUsage()
72 final AppPermissionGroup group = groups.get(i); in AppPermissionUsage()
141 private final @NonNull AppPermissionGroup mGroup;
145 public GroupUsage(@NonNull AppPermissionGroup group, @Nullable PackageOps lastUsage, in GroupUsage()
322 private static Set<String> getAllOps(AppPermissionGroup appPermissionGroup) { in getAllOps()
346 public @NonNull AppPermissionGroup getGroup() { in getGroup()
431 private final AppPermissionGroup mAppPermissionGroup;
436 AppPermissionGroup appPermissionGroup, in AttributionLabelledGroupUsage()
466 public AppPermissionGroup getGroup() { in getGroup()
472 private final AppPermissionGroup mAppPermissionGroup;
[all …]
DAppPermissionGroup.java72 public final class AppPermissionGroup implements Comparable<AppPermissionGroup> { class
73 private static final String LOG_TAG = AppPermissionGroup.class.getSimpleName();
123 private AppPermissionGroup mBackgroundPermissions;
154 public static AppPermissionGroup create(Context context, PackageInfo packageInfo, in create()
204 public static AppPermissionGroup create(Application app, String packageName, in create()
236 public static AppPermissionGroup create(Context context, PackageInfo packageInfo, in create()
259 public static AppPermissionGroup create(Context context, PackageInfo packageInfo, in create()
276 AppPermissionGroup group = new AppPermissionGroup(context, packageInfo, groupInfo.name, in create()
389 group.mBackgroundPermissions = new AppPermissionGroup(group.mContext, in create()
433 private AppPermissionGroup(Context context, PackageInfo packageInfo, String name, in AppPermissionGroup() method in AppPermissionGroup
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DSafetyNetLogger.java24 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
56 List<AppPermissionGroup> groups) { in logPermissionsRequested()
84 public static void logPermissionsToggled(ArraySet<AppPermissionGroup> groups) { in logPermissionsToggled()
85 ArrayMap<String, ArrayList<AppPermissionGroup>> groupsByPackage = new ArrayMap<>(); in logPermissionsToggled()
89 AppPermissionGroup group = groups.valueAt(i); in logPermissionsToggled()
91 ArrayList<AppPermissionGroup> groupsForThisPackage = groupsByPackage.get( in logPermissionsToggled()
117 public static void logPermissionToggled(AppPermissionGroup group) { in logPermissionToggled()
118 ArraySet groups = new ArraySet<AppPermissionGroup>(1); in logPermissionToggled()
170 private static void buildChangedPermissionForGroup(AppPermissionGroup group, in buildChangedPermissionForGroup()
198 List<AppPermissionGroup> groups) { in buildChangedPermissionForPackageMessage()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DAppPermissionsFragmentWear.java40 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
70 private ArraySet<AppPermissionGroup> mToggledGroups;
144 for (final AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in onResume()
163 List<AppPermissionGroup> groups = mAppPermissions.getPermissionGroups(); in initializePermissionGroupList()
170 for (final AppPermissionGroup group : groups) { in initializePermissionGroupList()
207 private SwitchPreference createSwitchPreferenceForPermission(AppPermissionGroup group, in createSwitchPreferenceForPermission()
284 private static Permission getPermissionFromGroup(AppPermissionGroup group, String permName) { in getPermissionFromGroup()
305 private void revokePermissionInGroup(AppPermissionGroup group, String permName) { in revokePermissionInGroup()
318 private SwitchPreference createSwitchPreferenceForGroup(AppPermissionGroup group) { in createSwitchPreferenceForGroup()
364 private void setPermission(AppPermissionGroup group, SwitchPreference pref, boolean grant) { in setPermission()
[all …]
DReviewPermissionsWearFragment.java42 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
98 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in onCreatePreferences()
138 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in loadPreferences()
198 List<AppPermissionGroup> groups = mAppPermissions.getPermissionGroups(); in isPackageUpdated()
201 AppPermissionGroup group = groups.get(i); in isPackageUpdated()
251 AppPermissionGroup group = mAppPermissions.getPermissionGroup(groupName); in confirmPermissionsReview()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DReviewPermissionsFragment.java50 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
115 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in onCreate()
174 private void grantReviewedPermission(AppPermissionGroup group) { in grantReviewedPermission()
213 AppPermissionGroup group = permPreference.getGroup(); in confirmPermissionsReview()
221 AppPermissionGroup backgroundGroup = group.getBackgroundPermissions(); in confirmPermissionsReview()
251 private void logReviewPermissionsFragmentResult(long changeId, AppPermissionGroup group) { in logReviewPermissionsFragmentResult()
343 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in loadPreferences()
389 List<AppPermissionGroup> groups = mAppPermissions.getPermissionGroups(); in isPackageUpdated()
392 AppPermissionGroup group = groups.get(i); in isPackageUpdated()
469 private final AppPermissionGroup mGroup;
[all …]
DPermissionControlPreference.java47 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
74 @NonNull AppPermissionGroup group, @NonNull String caller) { in PermissionControlPreference()
79 @NonNull AppPermissionGroup group, @NonNull String caller, long sessionId) { in PermissionControlPreference()
152 public void setGroupSummary(@NonNull AppPermissionGroup group) { in setGroupSummary()
154 AppPermissionGroup backgroundGroup = group.getBackgroundPermissions(); in setGroupSummary()
DPermissionPreference.java40 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
61 private final AppPermissionGroup mGroup;
120 PermissionPreference(PreferenceFragmentCompat fragment, AppPermissionGroup group, in PermissionPreference()
319 AppPermissionGroup backgroundGroup = mGroup.getBackgroundPermissions(); in updateSummaryForPermissionGroupWithBackgroundPermission()
341 AppPermissionGroup backgroundGroup = mGroup.getBackgroundPermissions(); in updateSummaryForFixedByPolicyPermissionGroup()
638 AppPermissionGroup backgroundGroup = mGroup.getBackgroundPermissions(); in onBackgroundAccessChosen()
DAllAppPermissionsFragment.java44 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
249 AppPermissionGroup appPermGroup = AppPermissionGroup.create( in getPreference()
274 AppPermissionGroup appPermissionGroup) { in MyMultiTargetSwitchPreference()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/service/
DPermissionControllerServiceImpl.java54 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
196 private @NonNull ArrayList<AppPermissionGroup> getRevocableGroupsForPermissions( in getRevocableGroupsForPermissions()
198 ArrayList<AppPermissionGroup> groupsToRevoke = new ArrayList<>(); in getRevocableGroupsForPermissions()
201 AppPermissionGroup group = appPerms.getPermissionGroups().get(groupNum); in getRevocableGroupsForPermissions()
217 AppPermissionGroup bgPerms = group.getBackgroundPermissions(); in getRevocableGroupsForPermissions()
222 AppPermissionGroup bgPerms = group.getBackgroundPermissions(); in getRevocableGroupsForPermissions()
241 @NonNull ArrayList<AppPermissionGroup> groupsToRevoke) { in revokePermissionGroups()
247 AppPermissionGroup group = groupsToRevoke.get(groupsToRevokeNum); in revokePermissionGroups()
340 ArrayList<AppPermissionGroup> groupsToRevoke = getRevocableGroupsForPermissions( in onRevokeRuntimePermissions()
466 final AppPermissionGroup appPermissionGroup = appPermissions.getGroupForPermission( in onRevokeRuntimePermission()
[all …]
DBackupHelper.java48 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
505 @NonNull AppPermissionGroup group) { in fromPermissionGroup()
561 AppPermissionGroup group = appPerms.getGroupForPermission(mPermissionName); in restore()
676 List<AppPermissionGroup> groups = appPerms.getPermissionGroups(); in fromAppPermissions()
680 AppPermissionGroup group = groups.get(groupNum); in fromAppPermissions()
741 AppPermissionGroup group = appPerms.getPermissionGroups().get(i); in restore()
748 AppPermissionGroup bgGroup = group.getBackgroundPermissions(); in restore()
DLocationAccessCheck.java106 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
455 AppPermissionGroup bgLocationGroup = userPkg.getBackgroundLocationGroup(); in getLocationUsersWithNoNotificationYetLocked()
679 AppPermissionGroup bgLocationGroup = userPkg.getBackgroundLocationGroup(); in resetAlreadyNotifiedPackagesWithoutPermissionLocked()
986 @Nullable AppPermissionGroup getLocationGroup() { in getLocationGroup()
988 return AppPermissionGroup.create(mContext, getPackageInfo(), ACCESS_FINE_LOCATION, in getLocationGroup()
1002 @Nullable AppPermissionGroup getBackgroundLocationGroup() { in getBackgroundLocationGroup()
1003 AppPermissionGroup locationGroup = getLocationGroup(); in getBackgroundLocationGroup()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoAllAppPermissionsFragment.java46 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
61 private List<AppPermissionGroup> mGroups;
275 private AppPermissionGroup getPermissionForegroundGroup(PackageInfo packageInfo, in getPermissionForegroundGroup()
277 AppPermissionGroup appPermissionGroup = null; in getPermissionForegroundGroup()
281 AppPermissionGroup currentPermissionGroup = mGroups.get(i); in getPermissionForegroundGroup()
295 appPermissionGroup = AppPermissionGroup.create( in getPermissionForegroundGroup()
310 AppPermissionGroup appPermissionGroup) { in MyMultiTargetSwitchPreference()
DAutoAppPermissionsFragment.java42 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
193 ArrayList<AppPermissionGroup> groups = new ArrayList<>( in updatePreferences()
200 AppPermissionGroup group = groups.get(i); in updatePreferences()
265 private Preference createPermissionPreference(Context context, AppPermissionGroup group) { in createPermissionPreference()
285 private String getPreferenceSummary(AppPermissionGroup group) { in getPreferenceSummary()
289 private String getGroupSummary(AppPermissionGroup group) { in getGroupSummary()
291 AppPermissionGroup backgroundGroup = group.getBackgroundPermissions(); in getGroupSummary()
DAutoAppPermissionFragment.java53 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
80 private AppPermissionGroup mGroup;
156 private AppPermissionGroup getAppPermissionGroup() { in getAppPermissionGroup()
182 AppPermissionGroup group = AppPermissionGroup.create(context, packageInfo, groupInfo, in getAppPermissionGroup()
502 AppPermissionGroup backgroundGroup = mGroup.getBackgroundPermissions(); in updateDetailForFixedByPolicyPermissionGroup()
655 AppPermissionGroup bgPerm = mGroup.getBackgroundPermissions(); in requestChange()
DAutoPermissionAppsFragment.java34 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
221 AppPermissionGroup group = app.getPermissionGroup(); in onPermissionsLoaded()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/dashboard/
DPermissionUsages.java48 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
167 @NonNull Context context, @NonNull AppPermissionGroup group) { in loadLastGroupUsage()
249 final AppPermissionGroup appPermGroup = permissionApp.getPermissionGroup(); in loadInBackground()
285 AppPermissionGroup micGroup = AppPermissionGroup.create(getContext(), in loadInBackground()
287 AppPermissionGroup camGroup = AppPermissionGroup.create(getContext(), in loadInBackground()
DPermissionDetailsFragment.java59 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
552 private @Nullable AppPermissionGroup getGroup(@NonNull String groupName) { in getGroup()
553 List<AppPermissionGroup> groups = getOSPermissionGroups(); in getGroup()
570 private @NonNull List<AppPermissionGroup> getOSPermissionGroups() { in getOSPermissionGroups()
571 final List<AppPermissionGroup> groups = new ArrayList<>(); in getOSPermissionGroups()
DPermissionUsageV2Fragment.java52 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
322 List<AppPermissionGroup> permissionGroups = getOSPermissionGroups(); in updateUI()
536 private @NonNull List<AppPermissionGroup> getOSPermissionGroups() { in getOSPermissionGroups()
537 final List<AppPermissionGroup> groups = new ArrayList<>(); in getOSPermissionGroups()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DAppPermissionsFragment.java52 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
74 private ArraySet<AppPermissionGroup> mToggledGroups;
221 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in loadPreferences()
307 final AppPermissionGroup group = mAppPermissions.getPermissionGroup(groupName); in onPreferenceClick()
347 private void addToggledGroup(AppPermissionGroup group) { in addToggledGroup()
376 AppPermissionGroup group = mAppPermissions.getPermissionGroup(preference.getKey()); in setPreferencesCheckedState()
380 AppPermissionGroup backgroundGroup = group.getBackgroundPermissions(); in setPreferencesCheckedState()
DPermissionAppsFragment.java37 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
71 private ArraySet<AppPermissionGroup> mToggledGroups;
401 private void addToggledGroup(String packageName, AppPermissionGroup group) { in addToggledGroup()
DAllAppPermissionsFragment.java47 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
239 final AppPermissionGroup permGroup = mAppPermissions.getPermissionGroup(group.name); in getMutablePreference()
DAppPermissionFragment.java66 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
213 AppPermissionGroup group = appPermissions.getPermissionGroup(mPermGroupName); in createPreferences()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionApps.java41 import com.android.permissioncontroller.permission.model.AppPermissionGroup;
265 AppPermissionGroup group = AppPermissionGroup.create(mContext, in loadPermissionApps()
354 private final AppPermissionGroup mAppPermissionGroup;
359 public PermissionApp(String packageName, AppPermissionGroup appPermissionGroup, in PermissionApp()
420 public AppPermissionGroup getPermissionGroup() { in getPermissionGroup()

12