Home
last modified time | relevance | path

Searched refs:mRoleManager (Results 1 – 13 of 13) 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()
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()
DNullBindingCallScreeningServiceTest.java40 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()
DMissedCallTest.java34 private RoleManager mRoleManager; field in MissedCallTest
45 mRoleManager = mContext.getSystemService(RoleManager.class); in setUp()
91 if (mRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)) { in testMissedCall_NotifyDialer()
DSelfManagedConnectionTest.java131 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()
DCallRedirectionServiceTest.java77 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()
DThirdPartyCallScreeningServiceTest.java68 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()
DBackgroundCallAudioTest.java39 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/
DDefaultDialerApplicationTest.java77 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()
DDefaultSmsApplicationTest.java83 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/
DFakeAssociationRule.java67 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/
DBroadcastResponseStatsTest.java146 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/
DBaseNotificationManagerTest.java104 protected RoleManager mRoleManager; field in BaseNotificationManagerTest
128 mRoleManager = mContext.getSystemService(RoleManager.class); in baseSetUp()
DNotificationManagerTest.java455 () -> 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()