Home
last modified time | relevance | path

Searched refs:mAccountHelper (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Contacts/tests/src/com/android/contacts/activities/
DSimImportActivityTest.java97 private AccountsTestHelper mAccountHelper; field in SimImportActivityTest
109 mAccountHelper = new AccountsTestHelper(); in setUp()
110 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity1_")); in setUp()
111 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity2_")); in setUp()
112 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity3_")); in setUp()
118 mAccountHelper.cleanup(); in tearDown()
221 final AccountWithDataSet targetAccount = mAccountHelper.addTestAccount( in selectionsAreImportedAndDisabledOnSubsequentImports()
222 mAccountHelper.generateAccountName("SimImportActivity0_targetAccount_")); in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java287 private AccountsTestHelper mAccountHelper; field in SimContactDaoTests.FindAccountsIntegrationTests
315 mAccountHelper = new AccountsTestHelper(InstrumentationRegistry.getContext()); in setUp()
325 mAccountHelper.removeTestAccount(account); in tearDown()
331 mAccounts.add(mAccountHelper.addTestAccount()); in returnsEmptyMapWhenNoMatchingContactsExist()
352 final AccountWithDataSet account = mAccountHelper.addTestAccount( in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
353 mAccountHelper.generateAccountName("primary_")); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
385 final AccountWithDataSet account1 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
386 mAccountHelper.generateAccountName("account1_")); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
388 final AccountWithDataSet account2 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
389 mAccountHelper.generateAccountName("account2_")); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java79 private AccountRestrictionHelper mAccountHelper; field in AccountPreferenceControllerTest
97 mController = new AccountPreferenceController(mContext, mFragment, null, mAccountHelper); in setUp()
213 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_oneProfile_shouldSetAccountTitleWithUserName()
233 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_noPreferenceScreen_shouldNotCrash()
310 when(mAccountHelper.hasBaseUserRestriction( in updateRawDataToIndex_DisallowRemove_shouldAddTwo()
326 when(mAccountHelper.hasBaseUserRestriction( in updateRawDataToIndex_DisallowModify_shouldAddTwo()
359 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
404 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
438 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_noAccountChange_shouldNotAddAccountPreference()
473 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_oneNewAccount_shouldAddOneAccountPreference()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceControllerTest.java52 private AccountRestrictionHelper mAccountHelper; field in EmergencyBroadcastPreferenceControllerTest
67 mController = new EmergencyBroadcastPreferenceController(mContext, mAccountHelper, in setUp()
90 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_notAdminUser_shouldReturnFalse()
102 when(mAccountHelper.hasBaseUserRestriction( in isAvailable_hasConfigCellBroadcastRestriction_shouldReturnFalse()
115 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastAppLinkDisabled_shouldReturnFalse()
127 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastReceiverDisabled_shouldReturnFalse()
DAdjustVolumeRestrictedPreferenceControllerTest.java50 private AccountRestrictionHelper mAccountHelper; field in AdjustVolumeRestrictedPreferenceControllerTest
61 new AdjustVolumeRestrictedPreferenceControllerTestable(mContext, mAccountHelper); in setUp()
67 when(mAccountHelper.hasBaseUserRestriction( in updateState_hasBaseRestriction_shouldDisable()
80 when(mAccountHelper.hasBaseUserRestriction( in updateState_NoBaseRestriction_shouldCheckRestriction()
82 doCallRealMethod().when(mAccountHelper).enforceRestrictionOnPreference( in updateState_NoBaseRestriction_shouldCheckRestriction()
/packages/apps/TV/src/com/android/tv/
DTvApplication.java103 private AccountHelper mAccountHelper; field in TvApplication
333 if (mAccountHelper == null) { in getAccountHelper()
334 mAccountHelper = new AccountHelper(getApplicationContext()); in getAccountHelper()
336 return mAccountHelper; in getAccountHelper()