Searched refs:accountsPref (Results 1 – 2 of 2) sorted by relevance
237 final Preference accountsPref = mock(Preference.class); in testUpdateAccountPrefInfo_hasOneAccount() local238 doReturn(accountsPref).when(mMainFragment) in testUpdateAccountPrefInfo_hasOneAccount()240 doReturn(true).when(accountsPref).isVisible(); in testUpdateAccountPrefInfo_hasOneAccount()246 verify(accountsPref, atLeastOnce()).setIcon(R.drawable.ic_accounts_and_sign_in); in testUpdateAccountPrefInfo_hasOneAccount()247 verify(accountsPref, atLeastOnce()).setSummary("test"); in testUpdateAccountPrefInfo_hasOneAccount()253 final Preference accountsPref = mock(Preference.class); in testUpdateAccountPrefInfo_hasNoAccount() local254 doReturn(accountsPref).when(mMainFragment) in testUpdateAccountPrefInfo_hasNoAccount()256 doReturn(true).when(accountsPref).isVisible(); in testUpdateAccountPrefInfo_hasNoAccount()260 verify(accountsPref, atLeastOnce()).setIcon(R.drawable.ic_add_an_account); in testUpdateAccountPrefInfo_hasNoAccount()261 verify(accountsPref, atLeastOnce()) in testUpdateAccountPrefInfo_hasNoAccount()[all …]
287 Preference accountsPref = findPreference(KEY_ACCOUNTS_AND_SIGN_IN); in onCreatePreferences() local288 if (accountsPref != null) { in onCreatePreferences()289 accountsPref.setVisible(false); in onCreatePreferences()599 Preference accountsPref = findPreference(KEY_ACCOUNTS_AND_SIGN_IN); in updateAccountPref() local606 accountsPref.setVisible(true); in updateAccountPref()607 accountsPref.setFragment(null); in updateAccountPref()608 accountsPref.setIntent(intent); in updateAccountPref()617 accountsPref.setVisible(false); in updateAccountPref()620 accountsPref.setVisible(true); in updateAccountPref()628 Preference accountsPref = findPreference(KEY_ACCOUNTS_AND_SIGN_IN); in updateAccountPrefInfo() local[all …]