Home
last modified time | relevance | path

Searched refs:RoleManager (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java21 import android.app.role.RoleManager;
69 case RoleManager.ROLE_ASSISTANT: { in getRoleHolders()
79 case RoleManager.ROLE_BROWSER: { in getRoleHolders()
86 case RoleManager.ROLE_DIALER: { in getRoleHolders()
94 case RoleManager.ROLE_SMS: { in getRoleHolders()
126 case RoleManager.ROLE_HOME: { in getRoleHolders()
133 case RoleManager.ROLE_EMERGENCY: { in getRoleHolders()
/frameworks/base/services/core/java/com/android/server/appbinding/finders/
DCarrierMessagingClientServiceFinder.java21 import android.app.role.RoleManager;
46 private final RoleManager mRoleManager;
53 mRoleManager = context.getSystemService(RoleManager.class); in CarrierMessagingClientServiceFinder()
90 RoleManager.ROLE_SMS, UserHandle.of(userId))); in getTargetPackage()
122 if (RoleManager.ROLE_SMS.equals(role)) {
/frameworks/base/services/core/java/com/android/server/role/
DRoleManagerService.java31 import android.app.role.RoleManager;
228 migrateRoleIfNecessary(RoleManager.ROLE_SMS, userId); in performInitialGrantsIfNecessaryAsync()
229 migrateRoleIfNecessary(RoleManager.ROLE_ASSISTANT, userId); in performInitialGrantsIfNecessaryAsync()
230 migrateRoleIfNecessary(RoleManager.ROLE_DIALER, userId); in performInitialGrantsIfNecessaryAsync()
231 migrateRoleIfNecessary(RoleManager.ROLE_EMERGENCY, userId); in performInitialGrantsIfNecessaryAsync()
404 if (RoleManager.ROLE_SMS.equals(roleName)) { in notifyRoleHoldersChanged()
477 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in addRoleHolderAsUser()
497 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in removeRoleHolderAsUser()
517 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in clearRoleHoldersAsUser()
574 RoleManager.PERMISSION_MANAGE_ROLES_FROM_CONTROLLER, in setRoleNamesFromController()
[all …]
/frameworks/base/core/java/android/app/role/
DRoleControllerService.java174 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) {
180 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) {
186 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) {
220 @RoleManager.ManageHoldersFlags int flags);
236 @NonNull String packageName, @RoleManager.ManageHoldersFlags int flags);
250 @RoleManager.ManageHoldersFlags int flags);
DRoleControllerManager.java131 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) { in onAddRoleHolder()
140 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) { in onRemoveRoleHolder()
149 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) { in onClearRoleHolders()
296 @RoleManager.ManageHoldersFlags
305 @NonNull String packageName, @RoleManager.ManageHoldersFlags int flags, in OnAddRoleHolderRequest()
351 @RoleManager.ManageHoldersFlags
360 @NonNull String packageName, @RoleManager.ManageHoldersFlags int flags, in OnRemoveRoleHolderRequest()
404 @RoleManager.ManageHoldersFlags
413 @RoleManager.ManageHoldersFlags int flags, @NonNull RemoteCallback callback) { in OnClearRoleHoldersRequest()
DRoleManager.java70 public final class RoleManager { class
72 private static final String LOG_TAG = RoleManager.class.getSimpleName();
181 public RoleManager(@NonNull Context context) throws ServiceManager.ServiceNotFoundException { in RoleManager() method in RoleManager
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java18 import android.app.role.RoleManager;
87 context.getSystemService(RoleManager.class).addRoleHolderAsUser( in setDefaultDialerApplication()
88 RoleManager.ROLE_DIALER, packageName, 0, UserHandle.of(user), in setDefaultDialerApplication()
133 return CollectionUtils.firstOrNull(context.getSystemService(RoleManager.class) in getDefaultDialerApplication()
134 .getRoleHoldersAsUser(RoleManager.ROLE_DIALER, UserHandle.of(user))); in getDefaultDialerApplication()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DRoleObserverTest.java19 import static android.app.role.RoleManager.ROLE_DIALER;
20 import static android.app.role.RoleManager.ROLE_EMERGENCY;
21 import static android.app.role.RoleManager.ROLE_SMS;
40 import android.app.role.RoleManager;
94 private RoleManager mRoleManager;
/frameworks/base/services/core/java/com/android/server/telecom/
DTelecomLoaderService.java19 import android.app.role.RoleManager;
220 final RoleManager roleManager = mContext.getSystemService(RoleManager.class); in registerDefaultAppNotifier()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsApplication.java22 import android.app.role.RoleManager;
469 RoleManager roleManager = (RoleManager) context.getSystemService(Context.ROLE_SERVICE); in getApplication()
473 RoleManager.ROLE_SMS))) { in getApplication()
529 return context.getSystemService(RoleManager.class).getDefaultSmsPackage(userId); in getDefaultSmsPackage()
592 RoleManager roleManager = (RoleManager) context.getSystemService(Context.ROLE_SERVICE); in setDefaultApplicationAsUser()
596 RoleManager.ROLE_SMS))) { in setDefaultApplicationAsUser()
655 context.getSystemService(RoleManager.class).addRoleHolderAsUser( in setDefaultApplicationInternal()
656 RoleManager.ROLE_SMS, applicationData.mPackageName, 0, UserHandle.of(userId), in setDefaultApplicationInternal()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java27 import android.app.role.RoleManager;
1280 private RoleManager mRm = mContext.getSystemService(RoleManager.class);
1286 onRoleHoldersChanged(RoleManager.ROLE_ASSISTANT, currentUser); in RoleObserver()
1312 if (!roleName.equals(RoleManager.ROLE_ASSISTANT)) { in onRoleHoldersChanged()
1445 context.getSystemService(RoleManager.class).clearRoleHoldersAsUser(
1446 RoleManager.ROLE_ASSISTANT, 0, UserHandle.of(userHandle),
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java30 import android.app.role.RoleManager;
1255 registerService(Context.ROLE_SERVICE, RoleManager.class, in registerService()
1256 new CachedServiceFetcher<RoleManager>() { in registerService()
1258 public RoleManager createService(ContextImpl ctx) in registerService()
1260 return new RoleManager(ctx.getOuterContext()); in registerService()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java40 import android.app.role.RoleManager;
908 private RoleManager mRm;
916 mRm = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in register()
925 if (RoleManager.ROLE_ASSISTANT.equals(roleName)) { in onRoleHoldersChanged()
933 List<String> assistants = mRm.getRoleHolders(RoleManager.ROLE_ASSISTANT); in getAssistantRoleHolder()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java127 import android.app.role.RoleManager;
323 RoleManager.ROLE_DIALER,
324 RoleManager.ROLE_EMERGENCY
1889 mRoleObserver = new RoleObserver(getContext().getSystemService(RoleManager.class),
8256 private final RoleManager mRm;
8260 RoleObserver(@NonNull RoleManager roleManager,
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java29 import android.app.role.RoleManager;
2542 roleManager.addRoleHolderAsUser(RoleManager.ROLE_HOME, pkgName, in runSetHomeActivity()
/frameworks/base/api/
Dtest-current.txt558 public final class RoleManager {
Dsystem-current.txt1144 public final class RoleManager {
/frameworks/base/config/
Dpreloaded-classes578 android.app.role.RoleManager