Searched refs:mAccountHelper (Results 1 – 6 of 6) sorted by relevance
97 private AccountsTestHelper mAccountHelper; field in SimImportActivityTest109 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()
287 private AccountsTestHelper mAccountHelper; field in SimContactDaoTests.FindAccountsIntegrationTests315 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 …]
79 private AccountRestrictionHelper mAccountHelper; field in AccountPreferenceControllerTest97 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 …]
52 private AccountRestrictionHelper mAccountHelper; field in EmergencyBroadcastPreferenceControllerTest67 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()
50 private AccountRestrictionHelper mAccountHelper; field in AdjustVolumeRestrictedPreferenceControllerTest61 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()
103 private AccountHelper mAccountHelper; field in TvApplication333 if (mAccountHelper == null) { in getAccountHelper()334 mAccountHelper = new AccountHelper(getApplicationContext()); in getAccountHelper()336 return mAccountHelper; in getAccountHelper()