Home
last modified time | relevance | path

Searched refs:AccountSyncHelper (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountDetailsWithSyncStatusPreferenceControllerTest.java108 mSession = ExtendedMockito.mockitoSession().mockStatic(AccountSyncHelper.class, in setUp()
110 when(AccountSyncHelper.getVisibleSyncAdaptersForAccount(mContext, mAccount, mUserHandle)) in setUp()
112 when(AccountSyncHelper.getSyncableSyncAdaptersForAccount(mAccount, mUserHandle)) in setUp()
135 when(AccountSyncHelper.getSyncState(any(), anyBoolean(), anyBoolean())) in onCreate_syncIsFailing_summaryShouldBeSet()
136 .thenReturn(AccountSyncHelper.SyncState.FAILED); in onCreate_syncIsFailing_summaryShouldBeSet()
152 when(AccountSyncHelper.getSyncState(any(), anyBoolean(), anyBoolean())) in onSyncStatusChanged_summaryShouldUpdated()
153 .thenReturn(AccountSyncHelper.SyncState.FAILED); in onSyncStatusChanged_summaryShouldUpdated()
163 when(AccountSyncHelper.syncIsAllowed(eq(mAccount), anyString(), eq(USER_ID))).thenReturn( in onButtonClicked_doesNotHaveActiveSyncs_shouldSyncSyncableAdapters()
165 when(AccountSyncHelper.requestSyncIfAllowed(any(), anyString(), in onButtonClicked_doesNotHaveActiveSyncs_shouldSyncSyncableAdapters()
179 when(AccountSyncHelper.syncIsAllowed(mAccount, AUTHORITY, USER_ID)).thenReturn(true); in onButtonClicked_doesNotHaveActiveSyncs_syncNotAllowed_shouldNotSyncAdapter()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsWithSyncStatusPreferenceController.java95 Set<SyncAdapterType> syncAdapters = AccountSyncHelper.getVisibleSyncAdaptersForAccount( in isSyncFailing()
104 boolean activelySyncing = AccountSyncHelper.isSyncing(getAccount(), currentSyncs, in isSyncFailing()
107 AccountSyncHelper.SyncState syncState = AccountSyncHelper.getSyncState(status, in isSyncFailing()
111 if (syncState == AccountSyncHelper.SyncState.FAILED && !activelySyncing in isSyncFailing()
137 Set<SyncAdapterType> adapters = AccountSyncHelper.getSyncableSyncAdaptersForAccount( in requestSyncForEnabledProviders()
147 Set<SyncAdapterType> adapters = AccountSyncHelper.getSyncableSyncAdaptersForAccount( in cancelSyncForEnabledProviders()
161 AccountSyncHelper.requestSyncIfAllowed(getAccount(), authority, userId); in requestSync()
DAccountSyncDetailsPreferenceController.java216 AccountSyncHelper.requestSyncIfAllowed(mAccount, authority, mUserHandle.getIdentifier()); in requestSync()
309 Set<SyncAdapterType> syncAdapters = AccountSyncHelper.getVisibleSyncAdaptersForAccount( in getSyncPreferences()
333 CharSequence title = AccountSyncHelper.getTitle(getContext(), authority, mUserHandle); in getSyncPreferences()
344 boolean activelySyncing = AccountSyncHelper.isSyncing(mAccount, currentSyncs, in getSyncPreferences()
355 AccountSyncHelper.SyncState syncState = AccountSyncHelper.getSyncState(status, in getSyncPreferences()
DSyncPreference.java37 private AccountSyncHelper.SyncState mSyncState = AccountSyncHelper.SyncState.NONE;
90 public void setSyncState(AccountSyncHelper.SyncState state) { in setSyncState()
DAccountSyncHelper.java40 class AccountSyncHelper { class
41 private static final Logger LOG = new Logger(AccountSyncHelper.class);
43 private AccountSyncHelper() { in AccountSyncHelper() method in AccountSyncHelper