/packages/apps/PermissionController/src/com/android/packageinstaller/role/service/ |
D | RoleControllerServiceImpl.java | 80 String roleName = role.getName(); in onGrantDefaultRoles() local 81 roleNames.add(roleName); in onGrantDefaultRoles() 82 if (!mRoleManager.isRoleAvailable(roleName)) { in onGrantDefaultRoles() 83 addedRoleNames.add(roleName); in onGrantDefaultRoles() 94 String roleName = addedRoleNames.valueAt(i); in onGrantDefaultRoles() local 96 Role role = roleMap.get(roleName); in onGrantDefaultRoles() 105 String roleName = role.getName(); in onGrantDefaultRoles() local 109 List<String> currentPackageNames = mRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles() 123 + " package: " + packageName + ", role: " + roleName); in onGrantDefaultRoles() 130 currentPackageNames = mRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles() [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/ |
D | UserDeniedManager.java | 70 public boolean isDeniedOnce(@NonNull String roleName, @NonNull String packageName) { in isDeniedOnce() argument 71 return isDenied(roleName, packageName, false); in isDeniedOnce() 80 public void setDeniedOnce(@NonNull String roleName, @NonNull String packageName) { in setDeniedOnce() argument 81 setDenied(roleName, packageName, false, true); in setDeniedOnce() 92 public boolean isDeniedAlways(@NonNull String roleName, @NonNull String packageName) { in isDeniedAlways() argument 93 return isDenied(roleName, packageName, true); in isDeniedAlways() 102 public void setDeniedAlways(@NonNull String roleName, @NonNull String packageName) { in setDeniedAlways() argument 103 setDenied(roleName, packageName, true, true); in setDeniedAlways() 112 public void clearDenied(@NonNull String roleName, @NonNull String packageName) { in clearDenied() argument 113 setDenied(roleName, packageName, false, false); in clearDenied() [all …]
|
D | Role.java | 627 String roleName = otherRoleNames.get(i); in revoke() local 628 Role role = roles.get(roleName); in revoke() 636 String roleName = otherRoleNames.get(i); in revoke() local 637 Role role = roles.get(roleName); in revoke()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/ |
D | ManageRoleHolderStateLiveData.java | 66 public void setRoleHolderAsUser(@NonNull String roleName, @NonNull String packageName, in setRoleHolderAsUser() argument 69 Log.e(LOG_TAG, "Already (tried) managing role holders, requested role: " + roleName in setRoleHolderAsUser() 75 + roleName + ", package: " + packageName); in setRoleHolderAsUser() 89 + " as role holder, role: " + roleName + ", package: " + packageName); in setRoleHolderAsUser() 95 + " package as role holder, role: " + roleName + ", package: " in setRoleHolderAsUser() 102 roleManager.addRoleHolderAsUser(roleName, packageName, flags, user, executor, callback); in setRoleHolderAsUser() 104 roleManager.removeRoleHolderAsUser(roleName, packageName, flags, user, executor, in setRoleHolderAsUser() 118 public void clearRoleHoldersAsUser(@NonNull String roleName, int flags, in clearRoleHoldersAsUser() argument 121 Log.e(LOG_TAG, "Already (tried) managing role holders, requested role: " + roleName); in clearRoleHoldersAsUser() 125 Log.i(LOG_TAG, "Clearing role holders, role: " + roleName); in clearRoleHoldersAsUser() [all …]
|
D | SpecialAppAccessActivity.java | 52 public static Intent createIntent(@NonNull String roleName, @NonNull Context context) { in createIntent() argument 54 .putExtra(Intent.EXTRA_ROLE_NAME, roleName); in createIntent() 69 String roleName = getIntent().getStringExtra(Intent.EXTRA_ROLE_NAME); in onCreate() local 71 Role role = Roles.get(this).get(roleName); in onCreate() 73 Log.e(LOG_TAG, "Unknown role: " + roleName); in onCreate() 78 Log.e(LOG_TAG, "Role is unavailable: " + roleName); in onCreate() 83 Log.e(LOG_TAG, "Role is invisible: " + roleName); in onCreate() 91 fragment = AutoSpecialAppAccessFragment.newInstance(roleName); in onCreate() 93 fragment = HandheldSpecialAppAccessFragment.newInstance(roleName); in onCreate()
|
D | DefaultAppActivity.java | 56 public static Intent createIntent(@NonNull String roleName, @NonNull UserHandle user, in createIntent() argument 59 .putExtra(Intent.EXTRA_ROLE_NAME, roleName) in createIntent() 76 String roleName = intent.getStringExtra(Intent.EXTRA_ROLE_NAME); in onCreate() local 83 Role role = Roles.get(this).get(roleName); in onCreate() 85 Log.e(LOG_TAG, "Unknown role: " + roleName); in onCreate() 90 Log.e(LOG_TAG, "Role is unavailable: " + roleName); in onCreate() 95 Log.e(LOG_TAG, "Role is invisible: " + roleName); in onCreate() 103 fragment = AutoDefaultAppFragment.newInstance(roleName, user); in onCreate() 105 fragment = HandheldDefaultAppFragment.newInstance(roleName, user); in onCreate()
|
D | MergeRoleListLiveData.java | 60 String roleName = roleItem.getRole().getName(); in onRoleListChanged() local 61 RoleItem mergedRoleItem = mergedRoleItemMap.get(roleName); in onRoleListChanged() 65 mergedRoleItemMap.put(roleName, mergedRoleItem); in onRoleListChanged()
|
D | SpecialAppAccessListChildFragment.java | 120 String roleName = preference.getKey(); in onPreferenceClick() local 122 Role role = Roles.get(context).get(roleName); in onPreferenceClick() 126 intent = SpecialAppAccessActivity.createIntent(roleName, context); in onPreferenceClick()
|
D | RequestRoleFragment.java | 97 public static RequestRoleFragment newInstance(@NonNull String roleName, in newInstance() argument 101 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance() 452 String roleName, int qualifyingCount, int currentUid, String currentPackageName, in reportRequestResult() argument 457 + " roleName=" + roleName in reportRequestResult() 466 requestingPackageName, roleName, qualifyingCount, currentUid, currentPackageName, in reportRequestResult()
|
D | DefaultAppListChildFragment.java | 194 String roleName = preference.getKey(); in onPreferenceClick() local 196 Role role = Roles.get(context).get(roleName); in onPreferenceClick() 200 intent = DefaultAppActivity.createIntent(roleName, user, context); in onPreferenceClick()
|
D | SpecialAppAccessChildFragment.java | 74 public static SpecialAppAccessChildFragment newInstance(@NonNull String roleName) { in newInstance() argument 77 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
D | DefaultAppChildFragment.java | 82 public static DefaultAppChildFragment newInstance(@NonNull String roleName, in newInstance() argument 86 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
D | RoleLiveData.java | 74 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
|
D | RoleListLiveData.java | 75 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceController.java | 69 private CharSequence getDefaultAppLabel(String roleName) { in getDefaultAppLabel() argument 70 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | DefaultAppsPreferenceController.java | 69 private CharSequence getDefaultAppLabel(String roleName) { in getDefaultAppLabel() argument 70 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/handheld/ |
D | HandheldSpecialAppAccessFragment.java | 48 public static HandheldSpecialAppAccessFragment newInstance(@NonNull String roleName) { in newInstance() argument 51 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
D | HandheldDefaultAppFragment.java | 52 public static HandheldDefaultAppFragment newInstance(@NonNull String roleName, in newInstance() argument 56 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/auto/ |
D | AutoSpecialAppAccessFragment.java | 44 public static AutoSpecialAppAccessFragment newInstance(@NonNull String roleName) { in newInstance() argument 47 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
D | AutoDefaultAppFragment.java | 50 public static AutoDefaultAppFragment newInstance(@NonNull String roleName, in newInstance() argument 54 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
/packages/apps/Settings/src/com/android/settings/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 53 String roleName, String packageName) { in DefaultAppShortcutPreferenceControllerBase() argument 56 mRoleName = roleName; in DefaultAppShortcutPreferenceControllerBase()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/ |
D | DefaultAppShortcutPreferenceControllerBase.java | 53 String roleName, String packageName) { in DefaultAppShortcutPreferenceControllerBase() argument 56 mRoleName = roleName; in DefaultAppShortcutPreferenceControllerBase()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | RoleManagerAdapterImpl.java | 88 mRoleManager.addOnRoleHoldersChangedListenerAsUser(executor, (roleName, user) -> in observeDefaultDialerApp()
|