Lines Matching refs:authority

77         final String authority = "testprovider";
86 account, 0, SyncOperation.REASON_PERIODIC, authority, time0,
113 assertEquals(pop.authority, popRetrieved.authority);
128 final String authority = "testprovider";
136 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1);
137 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1);
138 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2);
139 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2);
143 removePeriodicSyncs(engine, account1, 0, authority);
144 removePeriodicSyncs(engine, account2, 0, authority);
145 removePeriodicSyncs(engine, account1, 1, authority);
155 List<PeriodicSync> syncs = engine.getPeriodicSyncs(account1, 0, authority);
164 syncs = engine.getPeriodicSyncs(account1, 0, authority);
168 syncs = engine.getPeriodicSyncs(account2, 0, authority);
172 syncs = engine.getPeriodicSyncs(sync2.account, 1, sync2.authority);
184 final String authority = "testprovider";
194 PeriodicSync sync1 = new PeriodicSync(account1, authority, extras1, period1, flex1);
195 PeriodicSync sync2 = new PeriodicSync(account1, authority, extras2, period1, flex1);
196 PeriodicSync sync3 = new PeriodicSync(account1, authority, extras2, period2, flex2);
197 PeriodicSync sync4 = new PeriodicSync(account2, authority, extras2, period2, flex2);
204 removePeriodicSyncs(engine, account1, 0, authority);
205 removePeriodicSyncs(engine, account2, 0, authority);
206 removePeriodicSyncs(engine, account1, 1, authority);
216 List<PeriodicSync> syncs = engine.getPeriodicSyncs(account1, 0, authority);
225 syncs = engine.getPeriodicSyncs(account1, 0, authority);
229 syncs = engine.getPeriodicSyncs(account2, 0, authority);
233 syncs = engine.getPeriodicSyncs(sync2.account, 1, sync2.authority);
238 private void removePeriodicSyncs(SyncStorageEngine engine, Account account, int userId, String authority) {
239 engine.setIsSyncable(account, userId, authority, engine.getIsSyncable(account, 0, authority));
240 List<PeriodicSync> syncs = engine.getPeriodicSyncs(account, userId, authority);
359 + "<authority id=\"0\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" >"
361 + "\n</authority>"
362 + "<authority id=\"1\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth2\" >"
364 + "\n</authority>"
366 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\" >"
368 + "\n</authority>"
369 + "<authority id=\"3\" user=\"1\" account=\"account1\" type=\"type1\" authority=\"auth3\" >"
371 + "\n</authority>"
402 + "<authority id=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
403 + "<authority id=\"1\" account=\"account1\" type=\"type1\" authority=\"auth2\" />\n"
404 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\" />\n"
425 + "<authority id=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\">\n"
427 + "</authority>"
428 + "<authority id=\"1\" account=\"account1\" type=\"type1\" authority=\"auth2\">\n"
430 + "</authority>"
431 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\">\n"
433 + "</authority>"
476 + "<authority id=\"0\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
477 + "<authority id=\"1\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth2\" />\n"
478 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\" />\n"
479 + "<authority id=\"3\" user=\"1\" account=\"account1\" type=\"type1\" authority=\"auth3\" />\n"
509 + "<authority id=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
510 + "<authority id=\"1\" account=\"account1\" type=\"type1\" authority=\"auth2\" />\n"
511 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\" />\n"
532 + "<authority id=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\">\n"
534 + "</authority>"
535 + "<authority id=\"1\" account=\"account1\" type=\"type1\" authority=\"auth2\">\n"
537 + "</authority>"
538 + "<authority id=\"2\" account=\"account1\" type=\"type1\" authority=\"auth3\">\n"
540 + "</authority>"
569 + "<authority id=\"0\" user=\"0\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
570 + "<authority id=\"1\" user=\"1\" account=\"account1\" type=\"type1\" authority=\"auth1\" />\n"
607 + "<authority id=\"0\" account=\"acc1\" type=\"type1\" authority=\"contacts\" />\n"
608 + "<authority id=\"1\" account=\"acc1\" type=\"type1\" authority=\"calendar\" />\n"
609 + "<authority id=\"2\" account=\"acc1\" type=\"type1\" authority=\"other\" />\n"
610 + "<authority id=\"3\" account=\"acc2\" type=\"type2\" authority=\"contacts\" />\n"
611 + "<authority id=\"4\" account=\"acc2\" type=\"type2\" authority=\"calendar\" />\n"
612 + "<authority id=\"5\" account=\"acc2\" type=\"type2\" authority=\"other\" />\n"
613 + "<authority id=\"6\" account=\"acc2\" type=\"type2\" enabled=\"false\""
614 + " authority=\"com.android.calendar\" />\n"
615 + "<authority id=\"7\" account=\"acc2\" type=\"type2\" enabled=\"false\""
616 + " authority=\"com.android.contacts\" />\n"
651 + "<authority id=\"0\" account=\"acc\" authority=\"other1\" />\n"
652 + "<authority id=\"1\" account=\"acc\" type=\"type\" authority=\"other2\" />\n"
653 + "<authority id=\"2\" account=\"acc\" type=\"type\" syncable=\"false\""
654 + " authority=\"other3\" />\n"
655 + "<authority id=\"3\" account=\"acc\" type=\"type\" syncable=\"true\""
656 + " authority=\"other4\" />\n"
676 * authority. The problem here is that
678 * an empty authority which causes a RTE in {@link SyncManager#scheduleReadyPeriodicSyncs()}.