Home
last modified time | relevance | path

Searched refs:SyncInfo (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DPeriodicScanManager.java44 Map<IBinder, SyncInfo> mSyncs = Collections.synchronizedMap(new HashMap<>());
70 class SyncInfo { class in PeriodicScanManager
77 SyncInfo(Integer id, SyncDeathRecipient deathRecipient, in SyncInfo() method in PeriodicScanManager.SyncInfo
105 Map.Entry<IBinder, SyncInfo> findSync(int syncHandle) { in findSync()
106 Map.Entry<IBinder, SyncInfo> entry = null; in findSync()
107 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findSync()
124 Map.Entry<IBinder, SyncInfo> entry = findSync(regId); in onSyncStarted()
134 entry.setValue(new SyncInfo(syncHandle, entry.getValue().deathRecipient, callback)); in onSyncStarted()
151 Map.Entry<IBinder, SyncInfo> entry = findSync(syncHandle); in onSyncReport()
169 Map.Entry<IBinder, SyncInfo> entry = findSync(syncHandle); in onSyncLost()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsFragmentTest.java31 import android.content.SyncInfo;
96 SyncInfo syncInfo = mock(SyncInfo.class); in onInit_hasActiveSyncs_actionButtonShouldSayCancelSync()
97 List<SyncInfo> syncs = new ArrayList<>(); in onInit_hasActiveSyncs_actionButtonShouldSayCancelSync()
170 SyncInfo syncInfo = mock(SyncInfo.class); in onButtonClicked_doesHaveActiveSyncs_shouldCancelSyncForSyncableAdapters()
171 List<SyncInfo> syncs = new ArrayList<>(); in onButtonClicked_doesHaveActiveSyncs_shouldCancelSyncForSyncableAdapters()
DAccountSyncDetailsPreferenceControllerTest.java30 import android.content.SyncInfo;
287 SyncInfo syncInfo = new SyncInfo(/* authorityId= */ 0, mAccount, AUTHORITY, /* startTime= */ in refreshUi_syncEnabled_activelySyncing_summaryShouldBeSet()
289 List<SyncInfo> syncs = new ArrayList<>(); in refreshUi_syncEnabled_activelySyncing_summaryShouldBeSet()
325 SyncInfo syncInfo = new SyncInfo(/* authorityId= */ 0, mAccount, AUTHORITY, /* startTime= */ in refreshUi_activelySyncing_notInitialSync_shouldHaveActiveSyncIcon()
327 List<SyncInfo> syncs = new ArrayList<>(); in refreshUi_activelySyncing_notInitialSync_shouldHaveActiveSyncIcon()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowContentResolver.java23 import android.content.SyncInfo;
53 private static List<SyncInfo> sSyncs = new ArrayList<>();
79 protected static List<SyncInfo> getCurrentSyncsAsUser(@UserIdInt int userId) { in getCurrentSyncsAsUser()
109 public static void setCurrentSyncs(List<SyncInfo> syncs) { in setCurrentSyncs()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncHelper.java23 import android.content.SyncInfo;
118 static boolean isSyncing(Account account, List<SyncInfo> currentSyncs, String authority) { in isSyncing()
119 for (SyncInfo syncInfo : currentSyncs) { in isSyncing()
DAccountDetailsWithSyncStatusPreferenceController.java23 import android.content.SyncInfo;
94 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); in isSyncFailing()
DAccountSyncDetailsPreferenceController.java28 import android.content.SyncInfo;
306 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); in getSyncPreferences()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java26 import android.content.SyncInfo;
239 private boolean isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) { in isSyncing()
240 for (SyncInfo syncInfo : currentSyncs) { in isSyncing()
280 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); in onSyncStateUpdated()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountSyncSettings.java29 import android.content.SyncInfo;
376 private boolean isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) { in isSyncing()
377 for (SyncInfo syncInfo : currentSyncs) { in isSyncing()
399 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); in setFeedsState()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java29 import android.content.SyncInfo;
376 private boolean isSyncing(List<SyncInfo> currentSyncs, Account account, String authority) { in isSyncing()
377 for (SyncInfo syncInfo : currentSyncs) { in isSyncing()
399 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); in setFeedsState()