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.java100 private AccountsTestHelper mAccountHelper; field in SimImportActivityTest
112 mAccountHelper = new AccountsTestHelper(); in setUp()
113 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity1_")); in setUp()
114 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity2_")); in setUp()
115 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity3_")); in setUp()
121 mAccountHelper.cleanup(); in tearDown()
224 final AccountWithDataSet targetAccount = mAccountHelper.addTestAccount( in selectionsAreImportedAndDisabledOnSubsequentImports()
225 mAccountHelper.generateAccountName("SimImportActivity0_targetAccount_")); in selectionsAreImportedAndDisabledOnSubsequentImports()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DEmergencyBroadcastPreferenceControllerTest.java50 private AccountRestrictionHelper mAccountHelper; field in EmergencyBroadcastPreferenceControllerTest
66 new EmergencyBroadcastPreferenceController(mContext, mAccountHelper, PREF_TEST_KEY); in setUp()
88 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_notAdminUser_shouldReturnFalse()
100 when(mAccountHelper.hasBaseUserRestriction( in isAvailable_hasConfigCellBroadcastRestriction_shouldReturnFalse()
113 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastAppLinkDisabled_shouldReturnFalse()
125 when(mAccountHelper.hasBaseUserRestriction(anyString(), anyInt())).thenReturn(false); in isAvailable_cellBroadcastReceiverDisabled_shouldReturnFalse()
DAdjustVolumeRestrictedPreferenceControllerTest.java50 private AccountRestrictionHelper mAccountHelper; field in AdjustVolumeRestrictedPreferenceControllerTest
60 new AdjustVolumeRestrictedPreferenceControllerTestable(mContext, mAccountHelper, KEY); in setUp()
66 when(mAccountHelper.hasBaseUserRestriction( in updateState_hasBaseRestriction_shouldDisable()
79 when(mAccountHelper.hasBaseUserRestriction( in updateState_NoBaseRestriction_shouldCheckRestriction()
81 doCallRealMethod().when(mAccountHelper).enforceRestrictionOnPreference( in updateState_NoBaseRestriction_shouldCheckRestriction()
/packages/apps/Contacts/tests/src/com/android/contacts/database/
DSimContactDaoTests.java288 private AccountsTestHelper mAccountHelper; field in SimContactDaoTests.FindAccountsIntegrationTests
316 mAccountHelper = new AccountsTestHelper(InstrumentationRegistry.getContext()); in setUp()
326 mAccountHelper.removeTestAccount(account); in tearDown()
332 mAccounts.add(mAccountHelper.addTestAccount()); in returnsEmptyMapWhenNoMatchingContactsExist()
353 final AccountWithDataSet account = mAccountHelper.addTestAccount( in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
354 mAccountHelper.generateAccountName("primary_")); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
386 final AccountWithDataSet account1 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
387 mAccountHelper.generateAccountName("account1_")); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
389 final AccountWithDataSet account2 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
390 mAccountHelper.generateAccountName("account2_")); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java81 private AccountRestrictionHelper mAccountHelper; field in AccountPreferenceControllerTest
99 mController = new AccountPreferenceController(mContext, mFragment, null, mAccountHelper); in setUp()
213 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_oneProfile_shouldSetAccountTitleWithUserName()
231 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_noPreferenceScreen_shouldNotCrash()
307 when(mAccountHelper.hasBaseUserRestriction( in updateRawDataToIndex_DisallowRemove_shouldAddTwo()
323 when(mAccountHelper.hasBaseUserRestriction( in updateRawDataToIndex_DisallowModify_shouldAddTwo()
356 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
401 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
434 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_noAccountChange_shouldNotAddAccountPreference()
469 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_oneNewAccount_shouldAddOneAccountPreference()
[all …]
/packages/apps/TV/src/com/android/tv/
DMainActivity.java309 @Inject AccountHelper mAccountHelper; field in MainActivity
524 mAccountHelper.init(); in onCreate()