Home
last modified time | relevance | path

Searched refs:syncIsAllowed (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/
DAccountDetailsWithSyncStatusPreferenceControllerTest.java163 when(AccountSyncHelper.syncIsAllowed(eq(mAccount), anyString(), eq(USER_ID))).thenReturn( in onButtonClicked_doesNotHaveActiveSyncs_shouldSyncSyncableAdapters()
179 when(AccountSyncHelper.syncIsAllowed(mAccount, AUTHORITY, USER_ID)).thenReturn(true); in onButtonClicked_doesNotHaveActiveSyncs_syncNotAllowed_shouldNotSyncAdapter()
180 when(AccountSyncHelper.syncIsAllowed(mAccount, AUTHORITY_2, USER_ID)).thenReturn(false); in onButtonClicked_doesNotHaveActiveSyncs_syncNotAllowed_shouldNotSyncAdapter()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncHelper.java96 if (!syncIsAllowed(account, authority, userId)) { in requestSyncIfAllowed()
151 static boolean syncIsAllowed(Account account, String authority, int userId) { in syncIsAllowed() method in AccountSyncHelper