Home | History | Annotate | Download | only in editor

Lines Matching refs:mTarget

40     private ContactEditorUtils mTarget;
67 mTarget = new ContactEditorUtils(getContext(), mAccountTypes);
70 mTarget.cleanupForTest();
87 types = mTarget.getWritableAccountTypeStrings();
93 types = mTarget.getWritableAccountTypeStrings();
99 types = mTarget.getWritableAccountTypeStrings();
106 types = mTarget.getWritableAccountTypeStrings();
123 assertEquals(0, mTarget.getSavedAccounts().size());
127 mTarget.saveDefaultAndAllAccounts(null);
128 assertNull(mTarget.getDefaultAccount());
131 toSet(mTarget.getSavedAccounts()));
135 mTarget.saveDefaultAndAllAccounts(ACCOUNT_1_A);
136 assertEquals(ACCOUNT_1_A, mTarget.getDefaultAccount());
139 toSet(mTarget.getSavedAccounts()));
143 mTarget.saveDefaultAndAllAccounts(ACCOUNT_1_B);
144 assertEquals(ACCOUNT_1_B, mTarget.getDefaultAccount());
147 toSet(mTarget.getSavedAccounts()));
151 mTarget.saveDefaultAndAllAccounts(null);
152 assertNull(mTarget.getDefaultAccount());
153 assertEquals(0, mTarget.getSavedAccounts().size());
162 assertFalse(mTarget.isValidAccount(ACCOUNT_1_A));
163 assertTrue(mTarget.isValidAccount(null)); // null is always valid
167 assertTrue(mTarget.isValidAccount(ACCOUNT_1_A));
168 assertTrue(mTarget.isValidAccount(ACCOUNT_2_A));
169 assertFalse(mTarget.isValidAccount(ACCOUNT_2EX_A));
170 assertTrue(mTarget.isValidAccount(null)); // null is always valid
182 assertTrue(mTarget.shouldShowAccountChangedNotification());
190 mTarget.saveDefaultAndAllAccounts(ACCOUNT_1_A);
193 assertFalse(mTarget.shouldShowAccountChangedNotification());
199 assertTrue(mTarget.shouldShowAccountChangedNotification());
202 mTarget.saveDefaultAndAllAccounts(ACCOUNT_1_B);
205 assertFalse(mTarget.shouldShowAccountChangedNotification());
215 assertTrue(mTarget.shouldShowAccountChangedNotification());
218 mTarget.saveDefaultAndAllAccounts(ACCOUNT_2_A);
221 assertFalse(mTarget.shouldShowAccountChangedNotification());
228 assertFalse(mTarget.shouldShowAccountChangedNotification());
235 assertTrue(mTarget.shouldShowAccountChangedNotification());
247 assertTrue(mTarget.shouldShowAccountChangedNotification());
250 mTarget.saveDefaultAndAllAccounts(ACCOUNT_1_A);
253 assertFalse(mTarget.shouldShowAccountChangedNotification());
267 assertTrue(mTarget.shouldShowAccountChangedNotification());
270 mTarget.saveDefaultAndAllAccounts(null);
275 assertFalse(mTarget.shouldShowAccountChangedNotification());
283 mTarget.saveDefaultAndAllAccounts(ACCOUNT_1_A);
286 assertFalse(mTarget.shouldShowAccountChangedNotification());
289 mTarget.removeDefaultAccountForTest();
290 assertTrue(mTarget.shouldShowAccountChangedNotification());