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.java84 private AccountRestrictionHelper mAccountHelper; field in AccountPreferenceControllerTest
102 mController = new AccountPreferenceController(mContext, mFragment, null, mAccountHelper); in setUp()
211 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_oneProfile_shouldSetAccountTitleWithUserName()
230 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_noPreferenceScreen_shouldNotCrash()
306 when(mAccountHelper.hasBaseUserRestriction( in updateRawDataToIndex_DisallowRemove_shouldAddTwo()
322 when(mAccountHelper.hasBaseUserRestriction( in updateRawDataToIndex_DisallowModify_shouldAddTwo()
354 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_twoAccountsOfSameType_shouldAddThreePreferences()
400 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_twoAccountsOfSameName_shouldAddFivePreferences()
433 when(mAccountHelper.createAccessiblePreferenceCategory(any(Context.class))).thenReturn( in onResume_noAccountChange_shouldNotAddAccountPreference()
468 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.java128 private AccountHelper mAccountHelper; field in TvApplication
426 if (mAccountHelper == null) { in getAccountHelper()
427 mAccountHelper = new AccountHelper(getApplicationContext()); in getAccountHelper()
429 return mAccountHelper; in getAccountHelper()