Searched refs:accountsPref (Results 1 – 2 of 2) sorted by relevance
237 final Preference accountsPref = mock(Preference.class); in testUpdateAccountPref_hasOneAccount() local238 doReturn(accountsPref).when(mMainFragment) in testUpdateAccountPref_hasOneAccount()240 doReturn(true).when(accountsPref).isVisible(); in testUpdateAccountPref_hasOneAccount()246 verify(accountsPref, atLeastOnce()).setIcon(R.drawable.ic_accounts_and_sign_in); in testUpdateAccountPref_hasOneAccount()247 verify(accountsPref, atLeastOnce()).setSummary("test"); in testUpdateAccountPref_hasOneAccount()253 final Preference accountsPref = mock(Preference.class); in testUpdateAccountPref_hasNoAccount() local254 doReturn(accountsPref).when(mMainFragment) in testUpdateAccountPref_hasNoAccount()256 doReturn(true).when(accountsPref).isVisible(); in testUpdateAccountPref_hasNoAccount()260 verify(accountsPref, atLeastOnce()).setIcon(R.drawable.ic_add_an_account); in testUpdateAccountPref_hasNoAccount()261 verify(accountsPref, atLeastOnce()) in testUpdateAccountPref_hasNoAccount()[all …]
230 Preference accountsPref = findPreference(KEY_ACCOUNTS_AND_SIGN_IN); in onCreatePreferences() local231 if (accountsPref != null) { in onCreatePreferences()232 accountsPref.setVisible(false); in onCreatePreferences()426 final Preference accountsPref = findPreference(KEY_ACCOUNTS_AND_SIGN_IN); in updateAccountPref() local427 if (accountsPref != null && accountsPref.isVisible()) { in updateAccountPref()432 accountsPref.setIcon(R.drawable.ic_add_an_account); in updateAccountPref()433 accountsPref.setSummary(R.string.accounts_category_summary_no_account); in updateAccountPref()434 AccountsFragment.setUpAddAccountPrefIntent(accountsPref, getContext()); in updateAccountPref()437 accountsPref.setIcon(R.drawable.ic_accounts_and_sign_in); in updateAccountPref()439 accountsPref.setSummary(accounts[0].name); in updateAccountPref()[all …]