Home | History | Annotate | Download | only in content

Lines Matching refs:account1

70         final Account account1 = new Account("a@example.com", "example.type");
80 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
81 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
82 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
90 removePeriodicSyncs(engine, account1, 0, authority);
92 removePeriodicSyncs(engine, account1, 1, authority);
94 // this should add two distinct periodic syncs for account1 and one for account2
102 List<PeriodicSync> syncs = engine.getPeriodicSyncs(account1, 0, authority);
111 syncs = engine.getPeriodicSyncs(account1, 0, authority);
136 final Account account1 = new Account("a@example.com", "example.type");
149 extras2.putParcelable("g", account1);
153 PeriodicSync sync1 = new PeriodicSync(account1, authority1, extras1, period1);
154 PeriodicSync sync2 = new PeriodicSync(account1, authority1, extras2, period1);
155 PeriodicSync sync3 = new PeriodicSync(account1, authority2, extras1, period1);
156 PeriodicSync sync4 = new PeriodicSync(account1, authority2, extras2, period2);
164 removePeriodicSyncs(engine, account1, 0, authority1);
166 removePeriodicSyncs(engine, account1, 0, authority2);
171 engine.setIsSyncable(account1, 0, authority1, 1);
172 engine.setSyncAutomatically(account1, 0, authority1, true);
177 engine.setIsSyncable(account1, 0, authority2, 1);
178 engine.setSyncAutomatically(account1, 0, authority2, false);
192 List<PeriodicSync> syncs = engine.getPeriodicSyncs(account1, 0, authority1);
197 syncs = engine.getPeriodicSyncs(account1, 0, authority2);
206 assertEquals(true, engine.getSyncAutomatically(account1, 0, authority1));
208 assertEquals(false, engine.getSyncAutomatically(account1, 0, authority2));
211 assertEquals(1, engine.getIsSyncable(account1, 0, authority1));
213 assertEquals(1, engine.getIsSyncable(account1, 0, authority2));
219 final Account account = new Account("account1", "type1");
237 + "<authority id=\"0\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
238 + "<authority id=\"1\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth2\" />\n"
239 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\" />\n"
240 + "<authority id=\"3\" user=\"1\" account=\"account1\" type=\"type1\" authority=\"auth3\" />\n"
270 + "<authority id=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
271 + "<authority id=\"1\" account=\"account1\" type=\"type1\" authority=\"auth2\" />\n"
272 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\" />\n"
293 + "<authority id=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\">\n"
296 + "<authority id=\"1\" account=\"account1\" type=\"type1\" authority=\"auth2\">\n"
299 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\">\n"
330 + "<authority id=\"0\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
331 + "<authority id=\"1\" user=\"1\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
354 final Account account1 = new Account("acc1", "type1");
389 assertEquals(false, engine.getSyncAutomatically(account1, 0, authorityContacts));
390 assertEquals(false, engine.getSyncAutomatically(account1, 0, authorityCalendar));
391 assertEquals(true, engine.getSyncAutomatically(account1, 0, authorityOther));
392 assertEquals(true, engine.getSyncAutomatically(account1, 0, authorityContactsNew));
393 assertEquals(true, engine.getSyncAutomatically(account1, 0, authorityCalendarNew));