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 …]
84 private AccountRestrictionHelper mAccountHelper; field in AccountPreferenceControllerTest102 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 …]
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()
128 private AccountHelper mAccountHelper; field in TvApplication426 if (mAccountHelper == null) { in getAccountHelper()427 mAccountHelper = new AccountHelper(getApplicationContext()); in getAccountHelper()429 return mAccountHelper; in getAccountHelper()