Home
last modified time | relevance | path

Searched refs:mRoleManager (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsRoleManagerAdapter.java46 private RoleManager mRoleManager; field in CtsRoleManagerAdapter
53 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in CtsRoleManagerAdapter()
58 return mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER); in isDialerRoleAvailable()
63 if (mRoleManager != null) { in setDialerRoleHolder()
71 if (mRoleManager != null) { in removeDialerRoleHolder()
81 List<String> previousHolders = mRoleManager.getRoleHolders(roleName); in getRoleHolder()
94 mRoleManager.addRoleHolderAsUser(roleName, packageName, in addRoleHolder()
114 mRoleManager.removeRoleHolderAsUser(roleName, packageName, 0, user, executor, in removeRoleHolder()
DCallRedirectionServiceTest.java75 private RoleManager mRoleManager; field in CallRedirectionServiceTest
91 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp()
241 List<String> callRedirectionApps = mRoleManager.getRoleHolders(ROLE_CALL_REDIRECTION); in rememberPreviousCallRedirectionApp()
256 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder()
275 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
DSelfManagedConnectionTest.java81 private RoleManager mRoleManager; field in SelfManagedConnectionTest
129 mRoleManager = mContext.getSystemService(RoleManager.class); in setUp()
332 mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_DIALER, packageName, 0, in setDefaultDialer()
346 String result = mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER).get(0); in getDefaultDialer()
DThirdPartyCallScreeningServiceTest.java67 private RoleManager mRoleManager; field in ThirdPartyCallScreeningServiceTest
79 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp()
548 List<String> callScreeningApps = mRoleManager.getRoleHolders(ROLE_CALL_SCREENING); in rememberPreviousCallScreeningApp()
563 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder()
582 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
DBackgroundCallAudioTest.java38 private RoleManager mRoleManager; field in BackgroundCallAudioTest
53 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp()
668 runWithShellPermissionIdentity(() -> mRoleManager.clearRoleHoldersAsUser(roleName, in clearRoleHoldersAsUser()
/cts/tests/app/src/android/app/cts/
DNotificationManagerTest.java215 private RoleManager mRoleManager; field in NotificationManagerTest
250 mRoleManager = mContext.getSystemService(RoleManager.class); in setUp()
959 () -> mRoleManager.getRoleHoldersAsUser(RoleManager.ROLE_BROWSER, user)); in setDefaultBrowser()
962 () -> mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_BROWSER, packageName, 0, in setDefaultBrowser()
974 mRoleManager.clearRoleHoldersAsUser(RoleManager.ROLE_BROWSER, 0, user, executor, in restoreDefaultBrowser()
977 mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_BROWSER, packageName, in restoreDefaultBrowser()