Searched refs:ROLE_SMS (Results 1 – 11 of 11) sorted by relevance
94 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_allAvailable_shouldReturnAll()106 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_browserAndDialerAvailable_shouldReturnBrowserAndDialer()117 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_browserAndSmsAvailable_shouldReturnBrowserAndSms()129 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_dialerAndSmsAvailable_shouldReturnDialerAndSms()141 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_browserAvailable_shouldReturnBrowser()152 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_dialerAvailable_shouldReturnDialer()163 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn( in getSummary_smsAvailable_shouldReturnSms()175 when(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)).thenReturn(Collections.emptyList()); in getSummary_noneAvailable_shouldReturnNull()
242 mRoleName = RoleManager.ROLE_SMS; in handleSmsDefaultDialogCompatibility()253 RoleManager.ROLE_SMS, Process.myUserHandle(), this) in handleSmsDefaultDialogCompatibility()267 RoleManager.ROLE_SMS)); in handleSmsDefaultDialogCompatibility()
26 super(context, KEY, RoleManager.ROLE_SMS, packageName); in DefaultSmsShortcutPreferenceController()
15 field public static final String ROLE_SMS = "android.app.role.SMS";
61 final CharSequence defaultSmsLabel = getDefaultAppLabel(RoleManager.ROLE_SMS); in getSummary()
277 when(mRoleManager.getRoleHolders(eq(RoleManager.ROLE_SMS))).thenReturn(dmas); in setUp()789 when(mRoleManager.getRoleHolders(eq(RoleManager.ROLE_SMS))).thenReturn(dmas); in updateDefaultMessageApplication()791 RoleManager.ROLE_SMS, UserHandle.ALL)); in updateDefaultMessageApplication()
130 if (RoleManager.ROLE_SMS.equals(role)) { in onRoleHoldersChanged()819 return CollectionUtils.firstOrNull(mRoleManager.getRoleHolders(RoleManager.ROLE_SMS)); in getDmaPackageName()
798 if (!RoleManager.ROLE_SMS.equals(roleName)) { in onRoleHoldersChanged()825 newSmsRolePackageName = mRoleManagerAdapter.getRoleHolders(RoleManager.ROLE_SMS) in updateRoleCache()
99 public static final String ROLE_SMS = "android.app.role.SMS"; field in RoleManager
130 doReturn(mSmsPackageName).when(mMockRoleManager).getRoleHolders(RoleManager.ROLE_SMS); in setUp()950 c.onRoleHoldersChanged(RoleManager.ROLE_SMS, UserHandle.SYSTEM); in setSmsRoleAndEvaluate()
715 return CollectionUtils.firstOrNull(getRoleHoldersAsUser(RoleManager.ROLE_SMS, in getSmsRoleHolder()