Home
last modified time | relevance | path

Searched refs:syncAdapter (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncHelper.java51 (SyncAdapterType syncAdapter) -> !isVisible(context, syncAdapter, userHandle)); in getVisibleSyncAdaptersForAccount()
64 SyncAdapterType syncAdapter = syncAdapters[i]; in getSyncableSyncAdaptersForAccount() local
65 String authority = syncAdapter.authority; in getSyncableSyncAdaptersForAccount()
68 if (!syncAdapter.accountType.equals(account.type)) { in getSyncableSyncAdaptersForAccount()
79 adapters.add(syncAdapter); in getSyncableSyncAdaptersForAccount()
152 private static boolean isVisible(Context context, SyncAdapterType syncAdapter, in isVisible() argument
154 String authority = syncAdapter.authority; in isVisible()
156 if (!syncAdapter.isUserVisible()) { in isVisible()
162 context.getPackageManager().getPackageUidAsUser(syncAdapter.getPackageName(), in isVisible()
165 LOG.e("No uid for package" + syncAdapter.getPackageName(), e); in isVisible()
DAccountSyncDetailsPreferenceController.java314 for (SyncAdapterType syncAdapter : syncAdapters) { in getSyncPreferences()
315 String authority = syncAdapter.authority; in getSyncPreferences()
319 uid = packageManager.getPackageUidAsUser(syncAdapter.getPackageName(), userId); in getSyncPreferences()
321 LOG.e("No uid for package" + syncAdapter.getPackageName(), e); in getSyncPreferences()
332 pref.setPackageName(syncAdapter.getPackageName()); in getSyncPreferences()
DAccountDetailsWithSyncStatusPreferenceController.java99 for (SyncAdapterType syncAdapter : syncAdapters) { in isSyncFailing()
100 String authority = syncAdapter.authority; in isSyncFailing()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java359 for (SyncAdapterType syncAdapter : mInvisibleAdapters) { in requestOrCancelSyncForEnabledProviders()
360 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders()
522 final SyncAdapterType syncAdapter = authorities.get(j); in updateAccountSwitches() local
524 int syncState = ContentResolver.getIsSyncableAsUser(mAccount, syncAdapter.authority, in updateAccountSwitches()
527 Log.d(TAG, " found authority " + syncAdapter.authority + " " + syncState); in updateAccountSwitches()
533 syncAdapter.getPackageName(), mUserHandle.getIdentifier()); in updateAccountSwitches()
534 addSyncStateSwitch(mAccount, syncAdapter.authority, in updateAccountSwitches()
535 syncAdapter.getPackageName(), uid); in updateAccountSwitches()
537 Log.e(TAG, "No uid for package" + syncAdapter.getPackageName(), e); in updateAccountSwitches()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountSyncSettings.java359 for (SyncAdapterType syncAdapter : mInvisibleAdapters) { in requestOrCancelSyncForEnabledProviders()
360 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders()
522 final SyncAdapterType syncAdapter = authorities.get(j); in updateAccountSwitches() local
524 int syncState = ContentResolver.getIsSyncableAsUser(mAccount, syncAdapter.authority, in updateAccountSwitches()
527 Log.d(TAG, " found authority " + syncAdapter.authority + " " + syncState); in updateAccountSwitches()
533 syncAdapter.getPackageName(), mUserHandle.getIdentifier()); in updateAccountSwitches()
534 addSyncStateSwitch(mAccount, syncAdapter.authority, in updateAccountSwitches()
535 syncAdapter.getPackageName(), uid); in updateAccountSwitches()
537 Log.e(TAG, "No uid for package" + syncAdapter.getPackageName(), e); in updateAccountSwitches()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarProvider2Test.java2358 private Uri updatedUri(Uri uri, boolean syncAdapter, String account, String accountType) { in updatedUri() argument
2359 if (syncAdapter) { in updatedUri()
2370 private void internalTestDirty(boolean syncAdapter) throws Exception { in internalTestDirty() argument
2398 updatedUri(CalendarContract.Attendees.CONTENT_URI, syncAdapter, DEFAULT_ACCOUNT, in internalTestDirty()
2401 testAndClearDirty(eventId, syncAdapter ? 0 : 1); in internalTestDirty()
2410 updatedUri(CalendarContract.Reminders.CONTENT_URI, syncAdapter, DEFAULT_ACCOUNT, in internalTestDirty()
2412 testAndClearDirty(eventId, syncAdapter ? 0 : 1); in internalTestDirty()
2430 updatedUri(CalendarContract.CalendarAlerts.CONTENT_URI, syncAdapter, in internalTestDirty()
2442 if (syncAdapter) { in internalTestDirty()
2445 updatedUri(CalendarContract.ExtendedProperties.CONTENT_URI, syncAdapter, in internalTestDirty()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java222 for (SyncAdapterType syncAdapter : mInvisibleAdapters) { in requestOrCancelSyncForEnabledProviders()
223 requestOrCancelSync(mAccount, syncAdapter.authority, startSync); in requestOrCancelSyncForEnabledProviders()