/packages/apps/PermissionController/src/com/android/permissioncontroller/role/service/ |
D | RoleControllerServiceImpl.java | 78 String roleName = role.getName(); in onGrantDefaultRoles() local 79 roleNames.add(roleName); in onGrantDefaultRoles() 80 if (!mRoleManager.isRoleAvailable(roleName)) { in onGrantDefaultRoles() 81 addedRoleNames.add(roleName); in onGrantDefaultRoles() 92 String roleName = addedRoleNames.valueAt(i); in onGrantDefaultRoles() local 94 Role role = roleMap.get(roleName); in onGrantDefaultRoles() 103 String roleName = role.getName(); in onGrantDefaultRoles() local 107 List<String> currentPackageNames = mRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles() 121 + " package: " + packageName + ", role: " + roleName); in onGrantDefaultRoles() 128 currentPackageNames = mRoleManager.getRoleHolders(roleName); in onGrantDefaultRoles() [all …]
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/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 | 742 String roleName = otherRoleNames.get(i); in revoke() local 743 Role role = roles.get(roleName); in revoke() 751 String roleName = otherRoleNames.get(i); in revoke() local 752 Role role = roles.get(roleName); in revoke() 763 String roleName = otherRoleNames.get(i); in revoke() local 764 Role role = roles.get(roleName); in revoke()
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/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 | 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 | 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 | DefaultAppChildFragment.java | 82 public static DefaultAppChildFragment newInstance(@NonNull String roleName, in newInstance() argument 86 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
D | SpecialAppAccessActivity.java | 36 public static Intent createIntent(@NonNull String roleName, @NonNull Context context) { in createIntent() argument
|
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/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/ |
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 | MergeRoleListLiveData.java | 63 String roleName = roleItem.getRole().getName(); in onRoleListChanged() local 64 RoleItem mergedRoleItem = mergedRoleItemMap.get(roleName); in onRoleListChanged() 68 mergedRoleItemMap.put(roleName, mergedRoleItem); in onRoleListChanged()
|
D | SpecialAppAccessListChildFragment.java | 122 String roleName = preference.getKey(); in onPreferenceClick() local 124 Role role = Roles.get(context).get(roleName); in onPreferenceClick() 128 intent = SpecialAppAccessActivity.createIntent(roleName, context); in onPreferenceClick()
|
D | SpecialAppAccessChildFragment.java | 75 public static SpecialAppAccessChildFragment newInstance(@NonNull String roleName) { in newInstance() argument 78 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
|
/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/Settings/src/com/android/settings/applications/ |
D | DefaultAppsPreferenceController.java | 71 private CharSequence getDefaultAppLabel(String roleName) { in getDefaultAppLabel() argument 72 final List<String> packageNames = mRoleManager.getRoleHolders(roleName); in getDefaultAppLabel()
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/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/PermissionController/src/com/android/permissioncontroller/role/ui/handheld/ |
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/permissioncontroller/role/ui/specialappaccess/handheld/ |
D | HandheldSpecialAppAccessFragment.java | 50 public static HandheldSpecialAppAccessFragment newInstance(@NonNull String roleName) { in newInstance() argument 53 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()
|