Home
last modified time | relevance | path

Searched refs:setChecked (Results 1 – 25 of 894) sorted by relevance

12345678910>>...36

/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothEnablerTest.java137 verify(mSwitchController, never()).setChecked(anyBoolean()); in maybeEnforceRestrictions_noRestrictions()
156 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet()
175 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet()
194 verify(mSwitchController, never()).setChecked(anyBoolean()); in startWithBluetoothOff_switchIsOff()
196 verify(mSwitchController, never()).setChecked(true); in startWithBluetoothOff_switchIsOff()
202 verify(mSwitchController, never()).setChecked(anyBoolean()); in startWithBluetoothOn_switchIsOn()
204 verify(mSwitchController, never()).setChecked(false); in startWithBluetoothOn_switchIsOn()
205 verify(mSwitchController).setChecked(true); in startWithBluetoothOn_switchIsOn()
215 verify(mSwitchController, never()).setChecked(anyBoolean()); in bluetoothTurnsOff_switchTurnsOff()
217 verify(mSwitchController, never()).setChecked(false); in bluetoothTurnsOff_switchTurnsOff()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DCaptionFragment.java134 mCaptionsStyle0Pref.setChecked(true); in onPreferenceTreeClick()
140 mCaptionsStyle1Pref.setChecked(true); in onPreferenceTreeClick()
146 mCaptionsStyle2Pref.setChecked(true); in onPreferenceTreeClick()
152 mCaptionsStyle3Pref.setChecked(true); in onPreferenceTreeClick()
158 mCaptionsStyleCustomPref.setChecked(true); in onPreferenceTreeClick()
186 mCaptionsDisplayPref.setChecked(getCaptionsEnabled()); in refresh()
192 mCaptionsStyle0Pref.setChecked(true); in refresh()
196 mCaptionsStyle1Pref.setChecked(true); in refresh()
200 mCaptionsStyle2Pref.setChecked(true); in refresh()
204 mCaptionsStyle3Pref.setChecked(true); in refresh()
[all …]
DInputOptionsFragment.java100 mShowPref.setChecked(!mHiddenIds.contains(mInputInfo.getId())); in refresh()
114 namePref.setChecked(nameMatch); in refresh()
121 mNameDefaultPref.setChecked(nameIsDefault); in refresh()
127 mNameCustomPref.setChecked(true); in refresh()
130 mNameCustomPref.setChecked(false); in refresh()
143 radioPreference.setChecked(true); in onPreferenceTreeClick()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/
DTogglePreferenceControllerTest.java49 mToggleController.setChecked(true); in testSetsPreferenceValue_setsChecked()
50 mPreference.setChecked(false); in testSetsPreferenceValue_setsChecked()
59 mToggleController.setChecked(false); in testSetsPreferenceValue_setsNotChecked()
60 mPreference.setChecked(true); in testSetsPreferenceValue_setsNotChecked()
70 mToggleController.setChecked(!newValue); in testUpdatesPreferenceOnChange_turnsOn()
80 mToggleController.setChecked(!newValue); in testUpdatesPreferenceOnChange_turnsOff()
117 public boolean setChecked(boolean isChecked) { in setChecked() method in TogglePreferenceControllerTest.FakeToggle
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DWirelessDebuggingEnablerTest.java95 verify(mSwitchBar).setChecked(false); in adbWifiEnabled_switchBarShouldBeChecked()
104 verify(mSwitchBar).setChecked(true); in adbWifiEnabled_switchBarShouldBeChecked()
115 verify(mSwitchBar).setChecked(true); in adbWifiEnabled_switchBarShouldNotBeChecked()
124 verify(mSwitchBar).setChecked(false); in adbWifiEnabled_switchBarShouldNotBeChecked()
136 verify(mSwitchBar).setChecked(false); in onSwitchToggled_true_wifiConnected_shouldSetAdbWifiEnabledTrue()
152 verify(mSwitchBar).setChecked(false); in onSwitchToggled_true_wifiNotConnected_shouldSetAdbWifiEnabledFalse()
168 verify(mSwitchBar).setChecked(true); in onSwitchToggled_false_wifiConnected_shouldSetAdbWifiEnabledFalse()
184 verify(mSwitchBar).setChecked(true); in onSwitchToggled_false_wifiNotConnected_shouldSetAdbWifiEnabledFalse()
DWaitForDebuggerPreferenceControllerTest.java108 verify(mPreference).setChecked(true); in updateState_settingEnabledNullDebugApp_preferenceShouldBeCheckedAndDisabled()
120 verify(mPreference).setChecked(true); in updateState_settingEnabledFoobarApp_preferenceShouldBeCheckedAndDisabled()
132 verify(mPreference).setChecked(false); in updateState_settingDisabledNullDebugApp_preferenceShouldNotBeCheckedAndDisabled()
144 verify(mPreference).setChecked(false); in updateState_settingDisableFoobarApp_preferenceShouldNotBeCheckedAndEnabled()
157 verify(mPreference).setChecked(true); in onActivityResult_requestCodeAndSettingEnabled_waitForDebuggerShouldBeChecked()
169 verify(mPreference).setChecked(false); in onActivityResult_requestCodeAndSettingDisabled_waitForDebuggerShouldNotBeChecked()
186 verify(mPreference).setChecked(false); in onDeveloperOptionsSwitchDisabled_shouldDisablePreference()
DEnableVerboseVendorLoggingPreferenceControllerTest.java131 verify(mPreference).setChecked(false); in updateState_settingDisabledByHidl_preferenceShouldNotBeChecked()
142 verify(mPreference).setChecked(false); in updateState_settingDisabledByAidl_preferenceShouldNotBeChecked()
153 verify(mPreference).setChecked(true); in updateState_settingEnabledByHidl_preferenceShouldBeChecked()
164 verify(mPreference).setChecked(true); in updateState_settingEnabledByAidl_preferenceShouldBeChecked()
176 verify(mPreference).setChecked(false); in onDeveloperOptionDisabled_byHidl_shouldDisablePreference()
189 verify(mPreference).setChecked(false); in onDeveloperOptionDisabled_byAidl_shouldDisablePreference()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java140 setChecked(true); in handleStateChanged()
147 setChecked(false); in handleStateChanged()
151 setChecked(false); in handleStateChanged()
156 private void setChecked(boolean isChecked) { in setChecked() method in BluetoothEnabler
163 mSwitchController.setChecked(isChecked); in setChecked()
182 mSwitchController.setChecked(false); in onSwitchToggled()
195 mSwitchController.setChecked(false); in onSwitchToggled()
225 mSwitchController.setChecked(false); in maybeEnforceRestrictions()
/packages/apps/Settings/src/com/android/settings/widget/
DCheckableRelativeLayout.java65 mCheckable.setChecked(isChecked()); in onFinishInflate()
87 public void setChecked(boolean checked) { in setChecked() method in CheckableRelativeLayout
91 mCheckable.setChecked(checked); in setChecked()
113 setChecked(!mChecked); in toggle()
119 event.setChecked(mChecked); in onInitializeAccessibilityEvent()
125 info.setChecked(mChecked); in onInitializeAccessibilityNodeInfo()
DPrimaryCheckBoxPreference.java73 setChecked(!mChecked); in onBindViewHolder()
75 setChecked(!mChecked); in onBindViewHolder()
86 mCheckBox.setChecked(mChecked); in onBindViewHolder()
105 public void setChecked(boolean checked) { in setChecked() method in PrimaryCheckBoxPreference
108 mCheckBox.setChecked(checked); in setChecked()
DSettingsMainSwitchPreference.java93 setChecked(isChecked()); in onBindViewHolder()
122 public void setChecked(boolean checked) { in setChecked() method in SettingsMainSwitchPreference
123 super.setChecked(checked); in setChecked()
125 mMainSwitchBar.setChecked(checked); in setChecked()
146 super.setChecked(isChecked); in onSwitchChanged()
184 super.setChecked(checked); in setCheckedInternal()
/packages/apps/Settings/src/com/android/settings/security/
DConfirmSimDeletionPreferenceController.java69 public boolean setChecked(boolean isChecked) { in setChecked() method in ConfirmSimDeletionPreferenceController
84 setChecked(true); in onPreferenceChange()
92 setChecked(false); in onPreferenceChange()
94 ((TwoStatePreference) preference).setChecked(false); in onPreferenceChange()
106 ((TwoStatePreference) preference).setChecked(false); in updateState()
112 ((TwoStatePreference) preference).setChecked(getGlobalState()); in updateState()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/rotary/
DRotaryFragment.java124 mRotaryServiceToggle.setChecked(true); in onViewCreated()
127 mRotaryImeToggle.setChecked(true); in onViewCreated()
130 mRotaryPlaygroundToggle.setChecked(true); in onViewCreated()
136 mRotaryServiceToggle.setChecked(false); in onViewCreated()
139 mRotaryImeToggle.setChecked(false); in onViewCreated()
142 mRotaryPlaygroundToggle.setChecked(false); in onViewCreated()
178 mRotaryServiceToggle.setChecked(isRotaryServiceEnabled(getContext())); in refreshUi()
179 mRotaryImeToggle.setChecked( in refreshUi()
181 mRotaryPlaygroundToggle.setChecked( in refreshUi()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java100 mTbDual.setChecked((boolean) value.getValue());
103 mTbAc.setChecked((boolean) value.getValue());
106 mTbAuto.setChecked((boolean) value.getValue());
111 mRbFanPositionFace.setChecked(true);
114 mRbFanPositionFloor.setChecked(true);
118 mRbFanPositionFaceAndFloor.setChecked(true);
121 mRbFanPositionDefrost.setChecked(true);
125 mRbFanPositionDefrostAndFloor.setChecked(true);
135 mTbMaxAc.setChecked((boolean) value.getValue());
138 mTbRecirc.setChecked((boolean) value.getValue());
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/network/
DMobileDataTogglePreferenceControllerTest.java196 mPreference.setChecked(true); in handlePreferenceChanged_setFalse_isMultiSim_disablesData()
206 mPreference.setChecked(true); in handlePreferenceChanged_setFalse_isMultiSim_setsUnchecked()
220 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isSingleSim_enablesData()
228 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isSingleSim_setsChecked()
240 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_enablesData()
249 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_setsChecked()
263 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isMultiSim_otherSimActive_opensDialog()
276 mPreference.setChecked(true); in disableSingleSimDialog_onConfirm_disablesData()
298 mPreference.setChecked(true); in disableSingleSimDialog_onConfirm_setsUnchecked()
325 mPreference.setChecked(false); in enableMutliSimDialog_onConfirm_enablesData()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DGeneralPreferences.kt211 mHideDeclined?.setChecked(newValue as Boolean) in onPreferenceChange()
223 mVibrate?.setChecked(newValue as Boolean) in onPreferenceChange()
248 mVibrate?.setChecked(Utils.getDefaultVibrate(getActivity(), prefs)) in migrateOldPreferences()
254 mAlert?.setChecked(false) in migrateOldPreferences()
255 mPopup?.setChecked(false) in migrateOldPreferences()
258 mAlert?.setChecked(true) in migrateOldPreferences()
259 mPopup?.setChecked(false) in migrateOldPreferences()
262 mAlert?.setChecked(true) in migrateOldPreferences()
263 mPopup?.setChecked(true) in migrateOldPreferences()
/packages/apps/Settings/src/com/android/settings/core/
DTogglePreferenceController.java54 public abstract boolean setChecked(boolean isChecked); in setChecked() method in TogglePreferenceController
69 ((TwoStatePreference) preference).setChecked(isChecked()); in updateState()
71 ((PrimarySwitchPreference) preference).setChecked(isChecked()); in updateState()
73 ((TwoStateButtonPreference) preference).setChecked(isChecked()); in updateState()
87 return setChecked((boolean) newValue); in onPreferenceChange()
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DCollapsibleCheckboxPreferenceGroup.java70 ((Checkable) checkbox).setChecked(mChecked); in onBindViewHolder()
107 setChecked(!isChecked()); in onClick()
115 checkable.setChecked(mChecked); in onClick()
138 public void setChecked(boolean checked) { in setChecked() method in CollapsibleCheckboxPreferenceGroup
152 info.setChecked(isChecked()); in onInitializeAccessibilityNodeInfo()
175 setChecked(myState.checked); in onRestoreInstanceState()
234 setChecked(false); in switchSpinnerToCheckboxOrDisablePreference()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/
DMtpFullscreenView.java66 public void setChecked(boolean checked) { in setChecked() method in MtpFullscreenView
67 mCheckbox.setChecked(checked); in setChecked()
96 setChecked(mBroker.isItemChecked(position)); in setPositionAndBroker()
111 setChecked(isChecked); in onCheckedChanged()
118 setChecked(mBroker.isItemChecked(mPosition)); in onBulkCheckedChanged()
/packages/apps/Dialer/java/com/android/incallui/rtt/impl/
DAudioSelectMenu.java72 item.setChecked(true); in initItem()
81 bluetoothButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_BLUETOOTH); in setAudioState()
82 speakerButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_SPEAKER); in setAudioState()
83 headsetButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_WIRED_HEADSET); in setAudioState()
84 earpieceButton.setChecked(audioState.getRoute() == CallAudioState.ROUTE_EARPIECE); in setAudioState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/privacy/
DSensorToggleControllerTest.java193 micToggleController.setChecked(false); in isMicrophoneSensorPrivacyEnabled_uncheckMicToggle_returnTrue()
201 micToggleController.setChecked(true); in isMicrophoneSensorPrivacyEnabled_checkMicToggle_returnFalse()
209 micToggleController.setChecked(false); in isMicrophoneSensorPrivacyEnabledForProfileUser_uncheckMicToggle_returnTrue()
217 micToggleController.setChecked(true); in isMicrophoneSensorPrivacyEnabledProfileUser_checkMicToggle_returnFalse()
260 camToggleController.setChecked(false); in isCameraSensorPrivacyEnabled_uncheckCanToggle_returnTrue()
269 camToggleController.setChecked(true); in isCameraSensorPrivacyEnabled_checkCamToggle_returnFalse()
278 camToggleController.setChecked(false); in isCameraSensorPrivacyEnabledForProfileUser_uncheckCamToggle_returnTrue()
287 camToggleController.setChecked(true); in isCameraSensorPrivacyEnabledProfileUser_checkCamToggle_returnFalse()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/television/
DRadioButtonPreference.java44 rb.setChecked(mIsChecked); in onBindViewHolder()
51 setChecked(true); in onClick()
54 public void setChecked(boolean isChecked) { in setChecked() method in RadioButtonPreference
58 .setChecked(mIsChecked); in setChecked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityQuickSettingsPrimarySwitchPreferenceControllerTest.java127 mController.setChecked(true); in setChecked_showTooltipView()
136 mController.setChecked(true); in setChecked_notCallDisplayPreference_notShowTooltipView()
144 mController.setChecked(true); in setChecked_tooltipViewShown_notShowTooltipView()
146 mController.setChecked(false); in setChecked_tooltipViewShown_notShowTooltipView()
148 mController.setChecked(true); in setChecked_tooltipViewShown_notShowTooltipView()
157 mController.setChecked(true); in restoreValueFromSavedInstanceState_showTooltipView()
/packages/apps/Settings/src/com/android/settings/users/
DRemoveGuestOnExitPreferenceController.java69 restrictedSwitchPreference.setChecked(isChecked()); in updateState()
101 private static boolean setChecked(Context context, boolean isChecked) { in setChecked() method in RemoveGuestOnExitPreferenceController
115 return setChecked(mContext, enable); in onPreferenceChange()
122 return setChecked(mContext, enable); in onPreferenceChange()
234 if (setChecked(getContext(), mEnabling)) { in onClick()
235 mPreference.setChecked(mEnabling); in onClick()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DOptimizedPreferenceController.java52 ((SelectorWithWidgetPreference) preference).setChecked(true); in updateState()
58 ((SelectorWithWidgetPreference) preference).setChecked(false); in updateState()
63 ((SelectorWithWidgetPreference) preference).setChecked(true); in updateState()
65 ((SelectorWithWidgetPreference) preference).setChecked(false); in updateState()

12345678910>>...36