/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | CtsRoleManagerAdapter.java | 46 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() 67 if (mRoleManager != null) { in setRoleHolder() 75 if (mRoleManager != null) { in setByPassRoleQualification() 77 () -> mRoleManager.setBypassingRoleQualification(bypass)); in setByPassRoleQualification() 88 if (mRoleManager != null) { in removeRoleHolder() 98 List<String> previousHolders = mRoleManager.getRoleHolders(roleName); in getRoleHolder() 111 mRoleManager.addRoleHolderAsUser(roleName, packageName, in addRoleHolder() 131 mRoleManager.removeRoleHolderAsUser(roleName, packageName, 0, user, executor, in removeRoleHolderInternal()
|
D | NullBindingCallScreeningServiceTest.java | 40 private RoleManager mRoleManager; field in NullBindingCallScreeningServiceTest 49 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp() 120 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 139 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
|
D | MissedCallTest.java | 34 private RoleManager mRoleManager; field in MissedCallTest 45 mRoleManager = mContext.getSystemService(RoleManager.class); in setUp() 91 if (mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)) { in testMissedCall_NotifyDialer()
|
D | SelfManagedConnectionTest.java | 131 private RoleManager mRoleManager; field in SelfManagedConnectionTest 181 mRoleManager = mContext.getSystemService(RoleManager.class); in setUp() 184 if(mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)) { in setUp() 207 if (mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)) { in tearDown() 249 if (!mShouldTestTelecom || !mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)) { in testBindToSupportDefaultDialerNoCarMode() 276 if (!mShouldTestTelecom || !mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)) { in testNoBindToUnsupportDefaultDialerNoCarMode() 683 mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_DIALER, packageName, 0, in setDefaultDialer() 697 String result = mRoleManager.getRoleHolders(RoleManager.ROLE_DIALER).get(0); in getDefaultDialer()
|
D | CallRedirectionServiceTest.java | 77 private RoleManager mRoleManager; field in CallRedirectionServiceTest 93 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp() 307 List<String> callRedirectionApps = mRoleManager.getRoleHolders(ROLE_CALL_REDIRECTION); in rememberPreviousCallRedirectionApp() 322 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 341 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
|
D | ThirdPartyCallScreeningServiceTest.java | 68 private RoleManager mRoleManager; field in ThirdPartyCallScreeningServiceTest 80 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp() 571 List<String> callScreeningApps = mRoleManager.getRoleHolders(ROLE_CALL_SCREENING); in rememberPreviousCallScreeningApp() 586 runWithShellPermissionIdentity(() -> mRoleManager.addRoleHolderAsUser(roleName, in addRoleHolder() 605 runWithShellPermissionIdentity(() -> mRoleManager.removeRoleHolderAsUser(roleName, in removeRoleHolder()
|
D | BackgroundCallAudioTest.java | 39 private RoleManager mRoleManager; field in BackgroundCallAudioTest 54 mRoleManager = (RoleManager) mContext.getSystemService(Context.ROLE_SERVICE); in setUp() 672 runWithShellPermissionIdentity(() -> mRoleManager.clearRoleHoldersAsUser(roleName, in clearRoleHoldersAsUser()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DefaultDialerApplicationTest.java | 77 private RoleManager mRoleManager; field in DefaultDialerApplicationTest 85 mRoleManager = sContext.getSystemService(RoleManager.class); in setUp() 94 || (mRoleManager != null && mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER))); in setDefaultDialerApplication_works() 110 || (mRoleManager != null && mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER))); in setDefaultDialerApplication_unchanged() 128 || (mRoleManager != null && mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER))); in setDefaultDialerApplication_dialerPackageDoesNotExist_unchanged() 147 && (mRoleManager == null in setDefaultDialerApplication_notVoiceCapable_unchanged() 148 || !mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER))); in setDefaultDialerApplication_notVoiceCapable_unchanged()
|
D | DefaultSmsApplicationTest.java | 83 private RoleManager mRoleManager; field in DefaultSmsApplicationTest 91 mRoleManager = sContext.getSystemService(RoleManager.class); in setUp() 258 || (mRoleManager != null && mRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in isSmsCapable()
|
/cts/tests/tests/virtualdevice/common/src/android/virtualdevice/cts/common/ |
D | FakeAssociationRule.java | 67 private final RoleManager mRoleManager = mContext.getSystemService(RoleManager.class); field in FakeAssociationRule 136 mRoleManager.setBypassingRoleQualification(true); in before() 137 mRoleManager.addRoleHolderAsUser( in before() 155 mRoleManager.removeRoleHolderAsUser( in after() 160 mRoleManager.setBypassingRoleQualification(false); in after()
|
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/ |
D | BroadcastResponseStatsTest.java | 146 private RoleManager mRoleManager; field in BroadcastResponseStatsTest 172 mRoleManager = sContext.getSystemService(RoleManager.class); in setUp() 2195 mRoleManager.addOnRoleHoldersChangedListenerAsUser(sContext.getMainExecutor(), in addAssistRoleHolder() 2201 mRoleManager.removeOnRoleHoldersChangedListenerAsUser(listener, UserHandle.of(userId)); in addAssistRoleHolder() 2209 mRoleManager.addRoleHolderAsUser(roleName, pkgName, 0, in addRoleHolderAsUser() 2230 mRoleManager.addOnRoleHoldersChangedListenerAsUser(sContext.getMainExecutor(), in removeAssistRoleHolder() 2236 mRoleManager.removeOnRoleHoldersChangedListenerAsUser(listener, UserHandle.of(userId)); in removeAssistRoleHolder() 2244 mRoleManager.removeRoleHolderAsUser(roleName, pkgName, 0, in removeRoleHolderAsUser() 2250 final List<String> roleHolders = mRoleManager.getRoleHoldersAsUser( in isAssistantRoleHolder()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | BaseNotificationManagerTest.java | 104 protected RoleManager mRoleManager; field in BaseNotificationManagerTest 128 mRoleManager = mContext.getSystemService(RoleManager.class); in baseSetUp()
|
D | NotificationManagerTest.java | 455 () -> mRoleManager.getRoleHoldersAsUser(RoleManager.ROLE_BROWSER, user)); in setDefaultBrowser() 458 () -> mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_BROWSER, packageName, 0, in setDefaultBrowser() 470 mRoleManager.clearRoleHoldersAsUser(RoleManager.ROLE_BROWSER, 0, user, executor, in restoreDefaultBrowser() 473 mRoleManager.addRoleHolderAsUser(RoleManager.ROLE_BROWSER, packageName, in restoreDefaultBrowser()
|