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.java102 private AccountsTestHelper mAccountHelper; field in SimImportActivityTest
114 mAccountHelper = new AccountsTestHelper(); in setUp()
115 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity1_")); in setUp()
116 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity2_")); in setUp()
117 mAccountHelper.addTestAccount(mAccountHelper.generateAccountName("SimImportActivity3_")); in setUp()
123 mAccountHelper.cleanup(); in tearDown()
226 final AccountWithDataSet targetAccount = mAccountHelper.addTestAccount( in selectionsAreImportedAndDisabledOnSubsequentImports()
227 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.java290 private AccountsTestHelper mAccountHelper; field in SimContactDaoTests.FindAccountsIntegrationTests
318 mAccountHelper = new AccountsTestHelper(InstrumentationRegistry.getContext()); in setUp()
328 mAccountHelper.removeTestAccount(account); in tearDown()
334 mAccounts.add(mAccountHelper.addTestAccount()); in returnsEmptyMapWhenNoMatchingContactsExist()
355 final AccountWithDataSet account = mAccountHelper.addTestAccount( in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
356 mAccountHelper.generateAccountName("primary_")); in hasAccountWithMatchingContactsWhenSingleMatchingContactExists()
388 final AccountWithDataSet account1 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
389 mAccountHelper.generateAccountName("account1_")); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
391 final AccountWithDataSet account2 = mAccountHelper.addTestAccount( in hasMultipleAccountsWhenMultipleMatchingContactsExist()
392 mAccountHelper.generateAccountName("account2_")); in hasMultipleAccountsWhenMultipleMatchingContactsExist()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountPreferenceControllerTest.java84 private AccountRestrictionHelper mAccountHelper; field in AccountPreferenceControllerTest
102 mController = new AccountPreferenceController(mContext, mFragment, null, mAccountHelper, in setUp()
217 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_oneProfile_shouldSetAccountTitleWithUserName()
235 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_noPreferenceScreen_shouldNotCrash()
311 when(mAccountHelper.hasBaseUserRestriction( in updateDynamicRawDataToIndex_disallowRemove_shouldAddOne()
327 when(mAccountHelper.hasBaseUserRestriction( in updateDynamicRawDataToIndex_disallowModify_shouldAddTwo()
360 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
405 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/TV/src/com/android/tv/
DMainActivity.java310 @Inject AccountHelper mAccountHelper; field in MainActivity
529 mAccountHelper.init(); in onCreate()