Searched refs:isRoleAvailable (Results 1 – 14 of 14) sorted by relevance
99 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(true); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()105 verify(mRoleManager).isRoleAvailable(mRoleNameCaptor.capture()); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()115 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(false); in testGetDefaultWalletRoleHolder_roleNotAvailable_returnsNull()146 when(mRoleManager.isRoleAvailable(eq(RoleManager.ROLE_WALLET))).thenReturn(true); in testOnUserSwitched_callsCallback()151 verify(mRoleManager).isRoleAvailable(mRoleNameCaptor.capture()); in testOnUserSwitched_callsCallback()
270 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in requestRoleThenBlockRequestRoleDialogByRestrictedSettingDialog()508 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetCurrentSdkAndChangeDefaultDialerThenDeniedAutomatically()522 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetCurrentSdkAndChangeDefaultSmsThenDeniedAutomatically()537 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetSdk28AndChangeDefaultDialerAndAllowThenIsDefaultDialer()558 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsAndAllowThenIsDefaultSms()576 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetSdk28AndChangeDefaultDialerForAnotherAppThenDeniedAutomatically()592 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsForAnotherAppThenDeniedAutomatically()609 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in targetSdk28AndChangeDefaultDialerForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultDialer()632 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_DIALER)); in testHoldDialerRoleRequirementWithInCallServiceAndSdk()655 assumeTrue(sRoleManager.isRoleAvailable(RoleManager.ROLE_SMS)); in targetSdk28AndChangeDefaultSmsForAnotherAppAsHolderAndAllowThenTheOtherAppIsDefaultSms()[all …]
114 when(mRoleManager.isRoleAvailable(anyString())).thenReturn(true); in handlePreferenceTreeClick_walletRoleEnabled_shouldReturnTrue()120 verify(mRoleManager).isRoleAvailable(roleTypeCaptor.capture()); in handlePreferenceTreeClick_walletRoleEnabled_shouldReturnTrue()
6 method public boolean isRoleAvailable(@NonNull String);
73 if (roleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in handlePreferenceTreeClick()
77 if (!mRoleManager.isRoleAvailable(RoleManager.ROLE_WALLET)) { in getDefaultWalletRoleHolder()
150 if (roleManager.isRoleAvailable(RoleManager.ROLE_HOME) in assignDefaultHomeRole()
149 (roleManager!!.isRoleAvailable(RoleManager.ROLE_HOME) && in <lambda>()
265 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() method in RoleUserState
476 return getOrCreateUserState(userId).isRoleAvailable(roleName); in isRoleAvailableAsUser()
110 if (rm == null || !rm.isRoleAvailable(RoleManager.ROLE_NOTES)) { in createOrUpdateDefaultNotesPreference()
99 if (!mUserRoleManager.isRoleAvailable(roleName)) { in onGrantDefaultRoles()
317 public boolean isRoleAvailable(@NonNull String roleName) { in isRoleAvailable() method in RoleManager
148 when(mRm.isRoleAvailable(RoleManager.ROLE_NOTES)).thenReturn(true); in setUp()