Home
last modified time | relevance | path

Searched refs:mHelper (Results 1 – 25 of 81) sorted by relevance

1234

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountTypesHelperTest.java53 private AccountTypesHelper mHelper; field in AccountTypesHelperTest
67 mHelper = new AccountTypesHelper(application); in setUp()
68 mHelper.setOnChangeListener(() -> mOnChangeListenerInvocations++); in setUp()
78 mHelper.forceUpdate(); in forceUpdate_authorizedAccountTypesShouldBeSet()
80 assertThat(mHelper.getAuthorizedAccountTypes()).containsExactly( in forceUpdate_authorizedAccountTypesShouldBeSet()
90 mHelper.setAccountTypesFilter(accountTypesFilter); in forceUpdate_hasAccountTypeFilter_shouldFilterAccounts()
92 mHelper.forceUpdate(); in forceUpdate_hasAccountTypeFilter_shouldFilterAccounts()
94 assertThat(mHelper.getAuthorizedAccountTypes()).containsExactly(ACCOUNT_TYPE_1); in forceUpdate_hasAccountTypeFilter_shouldFilterAccounts()
103 mHelper.setAccountTypesExclusionFilter(accountExclusionTypesFilter); in forceUpdate_hasAccountExclusionFilter_shouldFilterAccounts()
105 mHelper.forceUpdate(); in forceUpdate_hasAccountExclusionFilter_shouldFilterAccounts()
[all …]
DAccountAutoSyncPreferenceControllerTest.java54 private PreferenceControllerTestHelper<AccountAutoSyncPreferenceController> mHelper; field in AccountAutoSyncPreferenceControllerTest
65 mHelper = new PreferenceControllerTestHelper<>(application, in setUp()
67 mController = mHelper.getController(); in setUp()
73 when(mHelper.getMockFragmentController().findDialogByTag( in testOnCreate_hasPreviousDialog_dialogListenerSet()
75 mHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in testOnCreate_hasPreviousDialog_dialogListenerSet()
82 mHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in refreshUi_masterSyncOn_preferenceShouldBeChecked()
93 mHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in refreshUi_masterSyncOff_preferenceShouldNotBeChecked()
104 verify(mHelper.getMockFragmentController()).showDialog( in onPreferenceClicked_shouldOpenDialog()
111 mHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in onConfirm_shouldTogglePreference()
DAccountDetailsSettingControllerTest.java77 PreferenceControllerTestHelper<AccountDetailsSettingController> mHelper; field in AccountDetailsSettingControllerTest
84 mHelper = new PreferenceControllerTestHelper<>(application, in setUp()
87 mAccountDetailsSettingController = mHelper.getController(); in setUp()
94 mHelper.setPreference(mPreference); in setUp()
116 mHelper.markState(Lifecycle.State.STARTED); in addExtraSettings_preferenceEmpty_shouldNotAddAnyPreferences()
125 mHelper.markState(Lifecycle.State.STARTED); in addExtraSettings_preferenceEmpty_isNotVisible()
134 mHelper.markState(Lifecycle.State.STARTED); in addExtraSettings_accountTypeNotEqual_shouldNotAddAnyPreferences()
148 mHelper.markState(Lifecycle.State.STARTED); in addExtraSettings_accountTypeNotEqual_isNotVisible()
169 mHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in addExtraSettings_accountTypeEqual_shouldAddPreferences()
183 mHelper.sendLifecycleEvent(Lifecycle.Event.ON_CREATE); in addExtraSettings_accountTypeEqual_isVisible()
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/
DEmbeddedSlicePreference.java30 private final EmbeddedSlicePreferenceHelper mHelper; field in EmbeddedSlicePreference
36 mHelper = new EmbeddedSlicePreferenceHelper(this, getUri()); in EmbeddedSlicePreference()
41 mHelper = new EmbeddedSlicePreferenceHelper(this, getUri()); in EmbeddedSlicePreference()
47 mHelper.onAttached(); in onAttached()
53 mHelper.onDetached(); in onDetached()
57 mHelper.mListener = listener; in addListener()
61 mHelper.mListener = null; in removeListener()
65 setEnabled(mHelper.mNewPref.isEnabled()); in update()
66 setTitle(mHelper.mNewPref.getTitle()); in update()
67 setSummary(mHelper.mNewPref.getSummary()); in update()
[all …]
DEmbeddedSliceSwitchPreference.java40 private final EmbeddedSlicePreferenceHelper mHelper; field in EmbeddedSliceSwitchPreference
46 mHelper.onAttached(); in onAttached()
52 mHelper.onDetached(); in onDetached()
58 mHelper = new EmbeddedSlicePreferenceHelper(this, mUri); in EmbeddedSliceSwitchPreference()
64 mHelper = new EmbeddedSlicePreferenceHelper(this, mUri); in EmbeddedSliceSwitchPreference()
86 mHelper.mListener = listener; in addListener()
90 mHelper.mListener = null; in removeListener()
94 setTitle(mHelper.mNewPref.getTitle()); in update()
95 setSummary(mHelper.mNewPref.getSummary()); in update()
96 setIcon(mHelper.mNewPref.getIcon()); in update()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DRestrictedAppPreference.java38 private RestrictedPreferenceHelper mHelper; field in RestrictedAppPreference
57 mHelper = new RestrictedPreferenceHelper(getContext(), this, attrs); in initialize()
64 mHelper.onBindViewHolder(holder); in onBindViewHolder()
69 if (!mHelper.performClick()) { in performClick()
78 mHelper.setDisabledByAdmin(null); in setEnabled()
82 mHelper.setDisabledByEcm(null); in setEnabled()
91 if (mHelper.setDisabledByAdmin(admin)) { in setDisabledByAdmin()
97 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
101 return mHelper.isDisabledByEcm(); in isDisabledByEcm()
105 mHelper.useAdminDisabledSummary(useSummary); in useAdminDisabledSummary()
[all …]
DRestrictedHomepagePreference.java30 private final HomepagePreferenceLayoutHelper mHelper; field in RestrictedHomepagePreference
35 mHelper = new HomepagePreferenceLayoutHelper(this); in RestrictedHomepagePreference()
40 mHelper = new HomepagePreferenceLayoutHelper(this); in RestrictedHomepagePreference()
45 mHelper = new HomepagePreferenceLayoutHelper(this); in RestrictedHomepagePreference()
50 mHelper = new HomepagePreferenceLayoutHelper(this); in RestrictedHomepagePreference()
56 mHelper.onBindViewHolder(holder); in onBindViewHolder()
61 return mHelper; in getHelper()
DHomepagePreference.java29 private final HomepagePreferenceLayoutHelper mHelper; field in HomepagePreference
34 mHelper = new HomepagePreferenceLayoutHelper(this); in HomepagePreference()
39 mHelper = new HomepagePreferenceLayoutHelper(this); in HomepagePreference()
44 mHelper = new HomepagePreferenceLayoutHelper(this); in HomepagePreference()
49 mHelper = new HomepagePreferenceLayoutHelper(this); in HomepagePreference()
55 mHelper.onBindViewHolder(holder); in onBindViewHolder()
60 return mHelper; in getHelper()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/autofill/
DAutofillResetOptionsPreferenceControllerTest.java47 private AutofillTestingHelper mHelper; field in AutofillResetOptionsPreferenceControllerTest
53 mHelper = new AutofillTestingHelper(mContext); in setup()
64 mHelper.setLoggingLevel(4); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotReset()
65 mHelper.setMaxPartitionsSize(8); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotReset()
66 mHelper.setMaxVisibleDatasets(15); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotReset()
70 assertThat(mHelper.getLoggingLevel()).isEqualTo(4); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotReset()
71 assertThat(mHelper.getMaxPartitionsSize()).isEqualTo(8); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotReset()
72 assertThat(mHelper.getMaxVisibleDatasets()).isEqualTo(15); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotReset()
79 mHelper.setMaxPartitionsSize(16); in handlePreferenceTreeClick_correctPreferenceKey_shouldReset()
80 mHelper.setMaxVisibleDatasets(23); in handlePreferenceTreeClick_correctPreferenceKey_shouldReset()
[all …]
DAutofillLoggingLevelPreferenceControllerTest.java65 private AutofillTestingHelper mHelper; field in AutofillLoggingLevelPreferenceControllerTest
79 mHelper = new AutofillTestingHelper(mContext); in setup()
99 mHelper.setLoggingLevel(108); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotTrigger()
103 assertThat(mHelper.getLoggingLevel()).isEqualTo(108); in handlePreferenceTreeClick_differentPreferenceKey_shouldNotTrigger()
108 mHelper.setLoggingLevel(108); in onPreferenceChange_off()
112 assertThat(mHelper.getLoggingLevel()).isEqualTo(AutofillManager.NO_LOGGING); in onPreferenceChange_off()
117 mHelper.setLoggingLevel(108); in onPreferenceChange_debug()
121 assertThat(mHelper.getLoggingLevel()) in onPreferenceChange_debug()
127 mHelper.setLoggingLevel(108); in onPreferenceChange_verbose()
131 assertThat(mHelper.getLoggingLevel()) in onPreferenceChange_verbose()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/
DFinalizationInsideSuwControllerTest.java89 @Mock private UserProvisioningStateHelper mHelper; field in FinalizationInsideSuwControllerTest
129 mActivity, mUtils, mSettingsFacade, mHelper, in setUp()
139 mUtils, mSettingsFacade, mHelper, mNotificationHelper, mDeferredMetricsReader, in setUp()
151 when(mHelper.isStateUnmanagedOrFinalized()).thenReturn(true); in testFinalized_alreadyCalled()
160 verify(mHelper, never()).markUserProvisioningStateInitiallyDone(params); in testFinalized_alreadyCalled()
161 verify(mHelper, never()).markUserProvisioningStateFinalized(params); in testFinalized_alreadyCalled()
168 when(mHelper.isStateUnmanagedOrFinalized()).thenReturn(false); in testFinalized_noParamsStored()
175 verify(mHelper, never()) in testFinalized_noParamsStored()
177 verify(mHelper, never()).markUserProvisioningStateFinalized(any(ProvisioningParams.class)); in testFinalized_noParamsStored()
187 when(mHelper.isStateUnmanagedOrFinalized()).thenReturn(true); in testManagedProfileFinalizationDuringSuw()
[all …]
DUserProvisioningStateHelperTest.java63 private UserProvisioningStateHelper mHelper; field in UserProvisioningStateHelperTest
72 mHelper = new UserProvisioningStateHelper( in setUp()
88 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_ProfileAfterSuw()
103 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_ProfileDuringSuw()
117 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_DeviceAfterSuw()
131 mHelper.markUserProvisioningStateInitiallyDone(params); in testInitiallyDone_DeviceAfterSuw_allowedByParams()
144 mHelper.markUserProvisioningStateFinalized(params); in testFinalized_ManagedProfile()
158 mHelper.markUserProvisioningStateFinalized(params); in testFinalized_DeviceOwner()
174 mHelper.markUserProvisioningStateFinalized(params); in testFinalized_DeviceOwner_HeadlessSystemUser()
202 return mHelper.isStateUnmanagedOrFinalized(); in isStateUnmanagedOrFinalizedWithCurrentState()
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
DSoundSettingsTest.java44 private SettingsHelper mHelper; field in SoundSettingsTest
102 mHelper = new SettingsHelper(); in setUp()
116 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testCallVibrate()
118 assertTrue(mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testCallVibrate()
125 assertTrue("Dial pad tones not toggled", mHelper.verifyToggleSetting( in testOtherSoundsDialPadTones()
134 mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testOtherSoundsScreenLocking()
142 mHelper.verifyToggleSetting(SettingsType.GLOBAL, PAGE, in testOtherSoundsCharging()
150 mHelper.verifyToggleSetting(SettingsType.SYSTEM, PAGE, in testOtherSoundsTouch()
156 mHelper.scrollVert(false); in loadOtherSoundsPage()
162 mHelper.scrollVert(false); in launchSoundSettings()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageCacheHelperTest.java48 private StorageCacheHelper mHelper; field in StorageCacheHelperTest
53 mHelper = new StorageCacheHelper(mContext, UserHandle.myUserId()); in setUp()
58 assertThat(mHelper.hasCachedSizeInfo()).isFalse(); in hasCachedSizeInfo_noCacheData_shouldReturnFalse()
63 mHelper.cacheSizeInfo(getFakeStorageCache()); in hasCachedSizeInfo_hasCacheData_shouldReturnTrue()
65 assertThat(mHelper.hasCachedSizeInfo()).isTrue(); in hasCachedSizeInfo_hasCacheData_shouldReturnTrue()
70 mHelper.cacheSizeInfo(getFakeStorageCache()); in cacheSizeInfo_shouldSaveToSharedPreference()
72 StorageCacheHelper.StorageCache storageCache = mHelper.retrieveCachedSize(); in cacheSizeInfo_shouldSaveToSharedPreference()
83 mHelper.cacheTotalSizeAndTotalUsedSize(FAKE_TOTAL_SIZE, FAKE_TOTAL_USED_SIZE); in cacheTotalSizeAndUsedSize_shouldSaveToSharedPreference()
85 StorageCacheHelper.StorageCache storageCache = mHelper.retrieveCachedSize(); in cacheTotalSizeAndUsedSize_shouldSaveToSharedPreference()
93 mHelper.cacheUsedSize(FAKE_USED_SIZE); in cacheUsedSize_shouldSaveToSharedPreference()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java74 private ActionDisabledByAdminDialogHelper mHelper; field in ActionDisabledByAdminDialogHelperTest
82 mHelper = new ActionDisabledByAdminDialogHelper(mActivity); in setUp()
91 mHelper.setAdminSupportTitle(view, UserManager.DISALLOW_ADJUST_VOLUME); in testSetAdminSupportTitle()
95 mHelper.setAdminSupportTitle(view, UserManager.DISALLOW_OUTGOING_CALLS); in testSetAdminSupportTitle()
99 mHelper.setAdminSupportTitle(view, UserManager.DISALLOW_SMS); in testSetAdminSupportTitle()
103 mHelper.setAdminSupportTitle(view, DevicePolicyManager.POLICY_DISABLE_CAMERA); in testSetAdminSupportTitle()
107 mHelper.setAdminSupportTitle(view, DevicePolicyManager.POLICY_DISABLE_SCREEN_CAPTURE); in testSetAdminSupportTitle()
111 mHelper.setAdminSupportTitle(view, DevicePolicyManager.POLICY_SUSPEND_PACKAGES); in testSetAdminSupportTitle()
115 mHelper.setAdminSupportTitle(view, "another restriction"); in testSetAdminSupportTitle()
119 mHelper.setAdminSupportTitle(view, null); in testSetAdminSupportTitle()
[all …]
/packages/modules/Permission/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java157 private final WearableDialogHelper mHelper; field in WearableDialogHelper.DialogBuilder
161 mHelper = new WearableDialogHelper(context.getResources(), context.getTheme()); in DialogBuilder()
166 mHelper = new WearableDialogHelper(context.getResources(), context.getTheme()); in DialogBuilder()
170 return mHelper; in getHelper()
174 mHelper.setPositiveIcon(iconId); in setPositiveIcon()
179 mHelper.setPositiveIcon(icon); in setPositiveIcon()
184 mHelper.setNegativeIcon(iconId); in setNegativeIcon()
189 mHelper.setNegativeIcon(icon); in setNegativeIcon()
194 mHelper.setNeutralIcon(iconId); in setNeutralIcon()
199 mHelper.setNeutralIcon(icon); in setNeutralIcon()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/enterprise/
DCrossProfileCalendarHelperTest.java31 private CrossProfileCalendarHelper mHelper; field in CrossProfileCalendarHelperTest
35 mHelper = new CrossProfileCalendarHelper(mContext); in setUp()
44 mHelper.getCalibratedProjection(projection, Calendars.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForCalendars()
57 mHelper.getCalibratedProjection(projection, Events.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForEvents()
70 mHelper.getCalibratedProjection(projection, Instances.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForInstances()
78 final String[] projection = mHelper.getCalibratedProjection(null, Calendars.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForCalendars()
85 final String[] projection = mHelper.getCalibratedProjection(null, Events.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForEvents()
91 final String[] projection = mHelper.getCalibratedProjection(null, Instances.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForInstances()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DAdminIntegratedFlowPrepareManager.java56 private final ProvisioningManagerHelper mHelper; field in AdminIntegratedFlowPrepareManager
97 mHelper = requireNonNull(helper); in AdminIntegratedFlowPrepareManager()
110 mHelper.startNewProvisioningLocked(mController); in maybeStartProvisioning()
126 mHelper.registerListener(callback); in registerListener()
131 mHelper.unregisterListener(callback); in unregisterListener()
136 final boolean prepareCancelled = mHelper.cancelProvisioning(mController); in cancelProvisioning()
152 mHelper.notifyPreFinalizationCompleted(); in preFinalizationCompleted()
170 mHelper.error(titleId, messageId, factoryResetRequired); in error()
175 mHelper.error(titleId, message, factoryResetRequired); in error()
190 mHelper.clearResourcesLocked(); in clearControllerLocked()
DProvisioningManager.java65 private final ProvisioningManagerHelper mHelper; field in ProvisioningManager
101 mHelper = new ProvisioningManagerHelper(); in ProvisioningManager()
134 mHelper.startNewProvisioningLocked(mController); in maybeStartProvisioning()
144 mHelper.registerListener(callback); in registerListener()
149 mHelper.unregisterListener(callback); in unregisterListener()
155 final boolean provisioningCanceled = mHelper.cancelProvisioning(mController); in cancelProvisioning()
174 mHelper.notifyPreFinalizationCompleted(); in preFinalizationCompleted()
190 mHelper.error(titleId, messageId, factoryResetRequired); in error()
195 mHelper.error(titleId, errorMessage, factoryResetRequired); in error()
212 mHelper.clearResourcesLocked(); in clearControllerLocked()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyDatabaseHelperTest.java61 private TelephonyProvider.DatabaseHelper mHelper; // the actual class being tested field in TelephonyDatabaseHelperTest
68 mHelper = new TelephonyProviderTestable().new DatabaseHelper(mContext); in setUp()
78 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasApnSetIdField()
93 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasCarrierIdField()
106 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasCountryIsoField()
119 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasProfileClassField()
132 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasPortIndexField()
146 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasSkip464XlatField()
160 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_columnsMatchNewlyCreatedDb()
196 mHelper.onUpgrade(db, (4 << 16), TelephonyProvider.getVersion(mContext)); in databaseHelperOnUpgrade_hasSubscriptionTypeField()
[all …]
/packages/services/Car/service/src/com/android/car/oem/
DCarOemProxyService.java89 private final CarOemProxyServiceHelper mHelper; field in CarOemProxyService
143 mHelper.crashCarService("Service Disconnected");
194 mHelper = null; in CarOemProxyService()
219 mHelper = helper == null ? new CarOemProxyServiceHelper(mContext) : helper; in CarOemProxyService()
332 writer.printf(mHelper.doBinderTimedCallWithTimeout(CALL_TAG, in dump()
339 if (mHelper != null) { in dump()
340 mHelper.dump(writer); in dump()
377 IOemCarAudioFocusService oemAudioFocusService = mHelper.doBinderTimedCallWithDefaultValue( in getCarOemAudioFocusService()
390 new CarOemAudioFocusProxyService(mHelper, oemAudioFocusService); in getCarOemAudioFocusService()
422 IOemCarAudioVolumeService oemAudioVolumeService = mHelper.doBinderTimedCallWithDefaultValue( in getCarOemAudioVolumeService()
[all …]
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/
DResultCallbackHelperTest.java92 private ResultCallbackHelper mHelper; field in ResultCallbackHelperTest
99 mHelper = Mockito.spy(new ResultCallbackHelper(context)); in setUp()
100 doNothing().when(mHelper).unbindFromResultHandlingService(); in setUp()
106 .when(mHelper) in testHandleResult_success()
110 mHelper.callHandleResult(TASK_NAME, TRAINING_TASK, mComputationResult).get(); in testHandleResult_success()
118 .when(mHelper) in testHandleResult_remoteException()
122 mHelper.callHandleResult(TASK_NAME, TRAINING_TASK, mComputationResult).get(); in testHandleResult_remoteException()
130 .when(mHelper) in testHandleResult_interruptedException()
134 mHelper.callHandleResult(TASK_NAME, TRAINING_TASK, mComputationResult).get(); in testHandleResult_interruptedException()
142 .when(mHelper) in testHandleResult_failed()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DHearingAidHelperTest.java78 private HearingAidHelper mHelper; field in HearingAidHelperTest
94 mHelper = new HearingAidHelper(mContext); in setUp()
102 assertThat(mHelper.isHearingAidSupported()).isTrue(); in isHearingAidSupported_ashaSupported_returnTrue()
110 assertThat(mHelper.isHearingAidSupported()).isTrue(); in isHearingAidSupported_hapSupported_returnTrue()
117 assertThat(mHelper.isHearingAidSupported()).isFalse(); in isHearingAidSupported_unsupported_returnFalse()
125 assertThat(mHelper.isAllHearingAidRelatedProfilesReady()).isTrue(); in isAllHearingAidRelatedProfilesReady_allReady_returnTrue()
133 assertThat(mHelper.isAllHearingAidRelatedProfilesReady()).isFalse(); in isAllHearingAidRelatedProfilesReady_notFullReady_returnFalse()
144 assertThat(mHelper.getConnectedHearingAidDeviceList().size()).isEqualTo(1); in getConnectedHearingAidDeviceList_oneDeviceAdded_getOneDevice()
157 assertThat(mHelper.getConnectedHearingAidDeviceList().size()).isEqualTo(0); in getConnectedHearingAidDeviceList_oneSubDeviceAdded_getZeroDevice()
168 assertThat(mHelper.getConnectedHearingAidDevice()).isEqualTo(mCachedBluetoothDevice); in getConnectedHearingAidDevice_getExpectedCachedBluetoothDevice()
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenModePrioritySendersPreferenceController.java54 private ZenPrioritySendersHelper mHelper; field in ZenModePrioritySendersPreferenceController
61 mHelper = new ZenPrioritySendersHelper( in ZenModePrioritySendersPreferenceController()
68 mHelper.displayPreference(mPreferenceCategory); in displayPreference()
86 mHelper.updateState(currContactsSetting, currConversationsSetting); in updateState()
95 mHelper.updateSummaries(); in onResume()
103 mHelper.updateChannelCounts(); in updateChannelCounts()
139 final int[] settingsToSave = mHelper.settingsToSaveOnClick(preference,
/packages/apps/Settings/src/com/android/settings/datausage/
DUnrestrictedDataAccessPreference.java48 private final RestrictedPreferenceHelper mHelper; field in UnrestrictedDataAccessPreference
55 mHelper = new RestrictedPreferenceHelper(context, this, null); in UnrestrictedDataAccessPreference()
64 mHelper.checkEcmRestrictionAndSetDisabled(ECM_SETTING_IDENTIFIER, entry.info.packageName); in UnrestrictedDataAccessPreference()
110 if (!mHelper.performClick()) { in performClick()
137 mHelper.onBindViewHolder(holder); in onBindViewHolder()
170 return mHelper.isDisabledByAdmin(); in isDisabledByAdmin()
175 return mHelper.isDisabledByEcm(); in isDisabledByEcm()
179 mHelper.setDisabledByAdmin(admin); in setDisabledByAdmin()
188 mHelper.checkEcmRestrictionAndSetDisabled(ECM_SETTING_IDENTIFIER, packageName); in checkEcmRestrictionAndSetDisabled()

1234