Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/policy/role/
DLegacyRoleResolutionPolicy.java21 import android.app.role.RoleManager;
66 case RoleManager.ROLE_ASSISTANT: { in getRoleHolders()
87 case RoleManager.ROLE_BROWSER: { in getRoleHolders()
94 case RoleManager.ROLE_DIALER: { in getRoleHolders()
111 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/role/
DRoleManagerService.java31 import android.app.role.RoleManager;
226 migrateRoleIfNecessary(RoleManager.ROLE_ASSISTANT, userId); in performInitialGrantsIfNecessaryAsync()
227 migrateRoleIfNecessary(RoleManager.ROLE_BROWSER, userId); in performInitialGrantsIfNecessaryAsync()
228 migrateRoleIfNecessary(RoleManager.ROLE_DIALER, userId); in performInitialGrantsIfNecessaryAsync()
229 migrateRoleIfNecessary(RoleManager.ROLE_SMS, userId); in performInitialGrantsIfNecessaryAsync()
230 migrateRoleIfNecessary(RoleManager.ROLE_EMERGENCY, userId); in performInitialGrantsIfNecessaryAsync()
403 if (RoleManager.ROLE_SMS.equals(roleName)) { in notifyRoleHoldersChanged()
476 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in addRoleHolderAsUser()
496 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in removeRoleHolderAsUser()
516 @RoleManager.ManageHoldersFlags int flags, @UserIdInt int userId, in clearRoleHoldersAsUser()
[all …]
/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/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();
180 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;
95 private RoleManager mRoleManager;
/frameworks/base/telephony/common/com/android/internal/telephony/
DSmsApplication.java22 import android.app.role.RoleManager;
473 RoleManager roleManager = (RoleManager) context.getSystemService(Context.ROLE_SERVICE); in getApplication()
477 RoleManager.ROLE_SMS))) { in getApplication()
533 return context.getSystemService(RoleManager.class).getDefaultSmsPackage(userId); in getDefaultSmsPackage()
600 RoleManager roleManager = (RoleManager) context.getSystemService(Context.ROLE_SERVICE); in setDefaultApplicationAsUser()
604 RoleManager.ROLE_SMS))) { in setDefaultApplicationAsUser()
663 context.getSystemService(RoleManager.class).addRoleHolderAsUser( in setDefaultApplicationInternal()
664 RoleManager.ROLE_SMS, applicationData.mPackageName, 0, UserHandle.of(userId), in setDefaultApplicationInternal()
/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/tests/TelephonyCommonTests/src/com/android/internal/telephony/tests/
DSmsApplicationTest.java34 import android.app.role.RoleManager;
104 @Mock private RoleManager mRoleManager;
114 when(mContext.getSystemService(RoleManager.class)).thenReturn(mRoleManager); in setUp()
132 when(mRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)).thenReturn(true); in setUp()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerService.java28 import android.app.role.RoleManager;
1303 private RoleManager mRm = mContext.getSystemService(RoleManager.class);
1308 if (mRm.isRoleAvailable(RoleManager.ROLE_ASSISTANT)) { in RoleObserver()
1311 onRoleHoldersChanged(RoleManager.ROLE_ASSISTANT, currentUser); in RoleObserver()
1338 if (!roleName.equals(RoleManager.ROLE_ASSISTANT)) { in onRoleHoldersChanged()
1471 context.getSystemService(RoleManager.class).clearRoleHoldersAsUser(
1472 RoleManager.ROLE_ASSISTANT, 0, UserHandle.of(userHandle),
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java30 import android.app.role.RoleManager;
1327 registerService(Context.ROLE_SERVICE, RoleManager.class, in registerService()
1328 new CachedServiceFetcher<RoleManager>() { in registerService()
1330 public RoleManager createService(ContextImpl ctx) in registerService()
1332 return new RoleManager(ctx.getOuterContext()); in registerService()
/frameworks/base/api/
Dtest-lint-baseline.txt2605 SamShouldBeLast: android.app.role.RoleManager#addOnRoleHoldersChangedListenerAsUser(java.util.concu…
2607 SamShouldBeLast: android.app.role.RoleManager#removeOnRoleHoldersChangedListenerAsUser(android.app.…
2697 UserHandle: android.app.role.RoleManager#addOnRoleHoldersChangedListenerAsUser(java.util.concurrent…
2699 UserHandle: android.app.role.RoleManager#addRoleHolderAsUser(String, String, int, android.os.UserHa…
2701 UserHandle: android.app.role.RoleManager#clearRoleHoldersAsUser(String, int, android.os.UserHandle,…
2703 UserHandle: android.app.role.RoleManager#getRoleHoldersAsUser(String, android.os.UserHandle):
2705 UserHandle: android.app.role.RoleManager#removeOnRoleHoldersChangedListenerAsUser(android.app.role.…
2707 UserHandle: android.app.role.RoleManager#removeRoleHolderAsUser(String, String, int, android.os.Use…
Dtest-current.txt567 public final class RoleManager {
Dsystem-current.txt1179 public final class RoleManager {
Dcurrent.txt7460 public final class RoleManager {
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java40 import android.app.role.RoleManager;
912 private RoleManager mRm;
920 mRm = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in register()
929 if (RoleManager.ROLE_ASSISTANT.equals(roleName)) { in onRoleHoldersChanged()
937 List<String> assistants = mRm.getRoleHolders(RoleManager.ROLE_ASSISTANT); in getAssistantRoleHolder()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java128 import android.app.role.RoleManager;
328 RoleManager.ROLE_DIALER,
329 RoleManager.ROLE_EMERGENCY
1962 mRoleObserver = new RoleObserver(getContext().getSystemService(RoleManager.class),
8518 private final RoleManager mRm;
8522 RoleObserver(@NonNull RoleManager roleManager,
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerShellCommand.java29 import android.app.role.RoleManager;
2726 roleManager.addRoleHolderAsUser(RoleManager.ROLE_HOME, pkgName, in runSetHomeActivity()
/frameworks/base/config/
Dpreloaded-classes578 android.app.role.RoleManager
Dboot-image-profile.txt2197 …/SystemServiceRegistry$113;->createService(Landroid/app/ContextImpl;)Landroid/app/role/RoleManager;
2839 HSPLandroid/app/role/RoleManager$OnRoleHoldersChangedListenerDelegate;->onRoleHoldersChanged(Ljava/…
2840 HSPLandroid/app/role/RoleManager;->addOnRoleHoldersChangedListenerAsUser(Ljava/util/concurrent/Exec…
2841 HSPLandroid/app/role/RoleManager;->getDefaultSmsPackage(I)Ljava/lang/String;
2842 HSPLandroid/app/role/RoleManager;->getRoleHoldersAsUser(Ljava/lang/String;Landroid/os/UserHandle;)L…
32647 Landroid/app/role/RoleManager$OnRoleHoldersChangedListenerDelegate;
32648 Landroid/app/role/RoleManager;
/frameworks/base/non-updatable-api/
Dsystem-current.txt1179 public final class RoleManager {
Dcurrent.txt7460 public final class RoleManager {