Home
last modified time | relevance | path

Searched refs:roleManager (Results 1 – 11 of 11) sorted by relevance

/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DRoleLiveData.java63 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onActive() local
64 roleManager.addOnRoleHoldersChangedListenerAsUser(mContext.getMainExecutor(), this, mUser); in onActive()
69 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onInactive() local
70 roleManager.removeOnRoleHoldersChangedListenerAsUser(this, mUser); in onInactive()
81 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in loadValueInBackground() local
82 List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(mRole.getName(), mUser); in loadValueInBackground()
DRoleListLiveData.java63 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onActive() local
64 roleManager.addOnRoleHoldersChangedListenerAsUser(mContext.getMainExecutor(), this, in onActive()
70 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in onInactive() local
71 roleManager.removeOnRoleHoldersChangedListenerAsUser(this, mUser); in onInactive()
86 RoleManager roleManager = mContext.getSystemService(RoleManager.class); in loadValueInBackground() local
108 List<String> holderPackageNames = roleManager.getRoleHoldersAsUser(role.getName(), in loadValueInBackground()
DManageRoleHolderStateLiveData.java83 RoleManager roleManager = context.getSystemService(RoleManager.class); in setRoleHolderAsUser() local
102 roleManager.addRoleHolderAsUser(roleName, packageName, flags, user, executor, callback); in setRoleHolderAsUser()
104 roleManager.removeRoleHolderAsUser(roleName, packageName, flags, user, executor, in setRoleHolderAsUser()
133 RoleManager roleManager = context.getSystemService(RoleManager.class); in clearRoleHoldersAsUser() local
148 roleManager.clearRoleHoldersAsUser(roleName, flags, user, executor, callback); in clearRoleHoldersAsUser()
DRequestRoleActivity.java144 RoleManager roleManager = getSystemService(RoleManager.class); in onCreate() local
145 List<String> currentPackageNames = roleManager.getRoleHolders(mRoleName); in onCreate()
213 RoleManager roleManager = getSystemService(RoleManager.class); in handleChangeDefaultDialerDialogCompatibility() local
214 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleChangeDefaultDialerDialogCompatibility()
265 RoleManager roleManager = getSystemService(RoleManager.class); in handleSmsDefaultDialogCompatibility() local
266 String holderPackageName = CollectionUtils.firstOrNull(roleManager.getRoleHolders( in handleSmsDefaultDialogCompatibility()
DRequestRoleFragment.java124 RoleManager roleManager = context.getSystemService(RoleManager.class); in onCreateDialog() local
125 List<String> currentPackageNames = roleManager.getRoleHolders(mRoleName); in onCreateDialog()
/packages/services/Telecomm/src/com/android/server/telecom/
DRoleManagerAdapterImpl.java47 public RoleManagerAdapterImpl(Context context, RoleManager roleManager) { in RoleManagerAdapterImpl() argument
49 mRoleManager = roleManager; in RoleManagerAdapterImpl()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DHomeRoleBehavior.java105 RoleManager roleManager = context.getSystemService(RoleManager.class); in preparePreferenceAsUser() local
106 String packageName = CollectionUtils.firstOrNull(roleManager.getRoleHoldersAsUser( in preparePreferenceAsUser()
DAssistantRoleBehavior.java67 RoleManager roleManager = context.getSystemService(RoleManager.class); in onRoleAdded() local
68 List<String> packageNames = roleManager.getRoleHolders(role.getName()); in onRoleAdded()
DRole.java619 RoleManager roleManager = context.getSystemService(RoleManager.class); in revoke() local
620 List<String> otherRoleNames = roleManager.getHeldRolesFromController(packageName); in revoke()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DSelfManagedCallingActivity.java245 RoleManager roleManager = (RoleManager) getSystemService(ROLE_SERVICE); in requestCallScreeningRole() local
246 Intent intent = roleManager.createRequestRoleIntent(RoleManager.ROLE_CALL_SCREENING); in requestCallScreeningRole()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java91 RoleManager roleManager, PackageInfo app) { in loadAppRow() argument
93 recordCanBeBlocked(context, pm, roleManager, app, row); in loadAppRow()