Home
last modified time | relevance | path

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

/packages/apps/PermissionController/src/com/android/permissioncontroller/role/service/
DRoleControllerServiceImpl.java78 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/
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.java742 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/
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 …]
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()
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()
DDefaultAppChildFragment.java82 public static DefaultAppChildFragment newInstance(@NonNull String roleName, in newInstance() argument
86 arguments.putString(Intent.EXTRA_ROLE_NAME, roleName); in newInstance()
DSpecialAppAccessActivity.java36 public static Intent createIntent(@NonNull String roleName, @NonNull Context context) { in createIntent() argument
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/PermissionController/src/com/android/permissioncontroller/role/ui/specialappaccess/
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()
DMergeRoleListLiveData.java63 String roleName = roleItem.getRole().getName(); in onRoleListChanged() local
64 RoleItem mergedRoleItem = mergedRoleItemMap.get(roleName); in onRoleListChanged()
68 mergedRoleItemMap.put(roleName, mergedRoleItem); in onRoleListChanged()
DSpecialAppAccessListChildFragment.java122 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()
DSpecialAppAccessChildFragment.java75 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/
DDefaultAppsPreferenceController.java69 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/
DDefaultAppsPreferenceController.java71 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/
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/PermissionController/src/com/android/permissioncontroller/role/ui/handheld/
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/permissioncontroller/role/ui/specialappaccess/handheld/
DHandheldSpecialAppAccessFragment.java50 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/
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()