Searched refs:mRoleManager (Results 1 – 6 of 6) sorted by relevance
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsRoleManagerAdapter.java | 49 private RoleManager mRoleManager; field in CtsRoleManagerAdapter 56 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in CtsRoleManagerAdapter() 61 return mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER); in isDialerRoleAvailable() 66 if (mRoleManager != null) { in setDialerRoleHolder() 76 List<String> previousHolders = mRoleManager.getRoleHolders(roleName); in getRoleHolder() 89 mRoleManager.addRoleHolderAsUser(roleName, packageName, in addRoleHolder() 109 mRoleManager.removeRoleHolderAsUser(roleName, packageName, 0, user, executor, in removeRoleHolder()
|
D | CallRedirectionServiceTest.java | 75 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()
|
D | SelfManagedConnectionTest.java | 81 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()
|
D | ThirdPartyCallScreeningServiceTest.java | 67 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()
|
D | BackgroundCallAudioTest.java | 38 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/ |
D | NotificationManagerTest.java | 214 private RoleManager mRoleManager; field in NotificationManagerTest 249 mRoleManager = mContext.getSystemService(RoleManager.class); in setUp() 958 () -> mRoleManager.getRoleHoldersAsUser(RoleManager.ROLE_BROWSER, user)); in setDefaultBrowser() 961 () -> mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_BROWSER, packageName, 0, in setDefaultBrowser() 973 mRoleManager.clearRoleHoldersAsUser(RoleManager.ROLE_BROWSER, 0, user, executor, in restoreDefaultBrowser() 976 mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_BROWSER, packageName, in restoreDefaultBrowser()
|