Home
last modified time | relevance | path

Searched refs:roleName (Results 1 – 23 of 23) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/role/service/
DRoleControllerServiceImpl.java80 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/
DUserDeniedManager.java70 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 …]
DRole.java627 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/
DManageRoleHolderStateLiveData.java66 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 …]
DSpecialAppAccessActivity.java52 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()
DDefaultAppActivity.java56 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()
DMergeRoleListLiveData.java60 String roleName = roleItem.getRole().getName(); in onRoleListChanged() local
61 RoleItem mergedRoleItem = mergedRoleItemMap.get(roleName); in onRoleListChanged()
65 mergedRoleItemMap.put(roleName, mergedRoleItem); in onRoleListChanged()
DSpecialAppAccessListChildFragment.java120 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()
DRequestRoleFragment.java97 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()
DDefaultAppListChildFragment.java194 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()
DSpecialAppAccessChildFragment.java74 public static SpecialAppAccessChildFragment newInstance(@NonNull String roleName) { in newInstance() argument
77 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
DDefaultAppChildFragment.java82 public static DefaultAppChildFragment newInstance(@NonNull String roleName, in newInstance() argument
86 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
DRoleLiveData.java74 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
DRoleListLiveData.java75 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
/packages/apps/Settings/src/com/android/settings/applications/
DDefaultAppsPreferenceController.java69 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/
DDefaultAppsPreferenceController.java69 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/
DHandheldSpecialAppAccessFragment.java48 public static HandheldSpecialAppAccessFragment newInstance(@NonNull String roleName) { in newInstance() argument
51 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
DHandheldDefaultAppFragment.java52 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/
DAutoSpecialAppAccessFragment.java44 public static AutoSpecialAppAccessFragment newInstance(@NonNull String roleName) { in newInstance() argument
47 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
DAutoDefaultAppFragment.java50 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/
DDefaultAppShortcutPreferenceControllerBase.java53 String roleName, String packageName) { in DefaultAppShortcutPreferenceControllerBase() argument
56 mRoleName = roleName; in DefaultAppShortcutPreferenceControllerBase()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DDefaultAppShortcutPreferenceControllerBase.java53 String roleName, String packageName) { in DefaultAppShortcutPreferenceControllerBase() argument
56 mRoleName = roleName; in DefaultAppShortcutPreferenceControllerBase()
/packages/services/Telecomm/src/com/android/server/telecom/
DRoleManagerAdapterImpl.java88 mRoleManager.addOnRoleHoldersChangedListenerAsUser(executor, (roleName, user) -> in observeDefaultDialerApp()