/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothEnablerTest.java | 136 verify(mSwitchController, never()).setChecked(anyBoolean()); in maybeEnforceRestrictions_noRestrictions() 155 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowBluetoothRestrictionSet() 174 verify(mSwitchController).setChecked(false); in maybeEnforceRestrictions_disallowConfigBluetoothRestrictionSet() 193 verify(mSwitchController, never()).setChecked(anyBoolean()); in startWithBluetoothOff_switchIsOff() 195 verify(mSwitchController, never()).setChecked(true); in startWithBluetoothOff_switchIsOff() 201 verify(mSwitchController, never()).setChecked(anyBoolean()); in startWithBluetoothOn_switchIsOn() 203 verify(mSwitchController, never()).setChecked(false); in startWithBluetoothOn_switchIsOn() 204 verify(mSwitchController).setChecked(true); in startWithBluetoothOn_switchIsOn() 213 verify(mSwitchController, never()).setChecked(anyBoolean()); in bluetoothTurnsOff_switchTurnsOff() 215 verify(mSwitchController, never()).setChecked(false); in bluetoothTurnsOff_switchTurnsOff() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | CaptionFragment.java | 134 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 …]
|
D | InputOptionsFragment.java | 100 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/ |
D | TogglePreferenceControllerTest.java | 49 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/ |
D | WirelessDebuggingEnablerTest.java | 95 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()
|
D | WaitForDebuggerPreferenceControllerTest.java | 108 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()
|
D | NotificationChannelWarningsPreferenceControllerTest.java | 90 verify(mPreference).setChecked(true); in updateState_settingEnabled_preferenceShouldBeChecked() 101 verify(mPreference).setChecked(false); in updateState_settingDisabled_preferenceShouldNotBeChecked() 113 verify(mPreference).setChecked(true); in updateState_settingUndefinedDebuggingEnabled_preferenceShouldBeChecked() 125 verify(mPreference).setChecked(false); in updateState_settingUndefinedDebuggingDisabled_preferenceShouldNotBeChecked() 136 verify(mPreference).setChecked(false); in onDeveloperOptionsSwitchDisabled_preferenceShouldBeDisabled()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothEnabler.java | 139 setChecked(true); in handleStateChanged() 146 setChecked(false); in handleStateChanged() 150 setChecked(false); in handleStateChanged() 155 private void setChecked(boolean isChecked) { in setChecked() method in BluetoothEnabler 162 mSwitchController.setChecked(isChecked); in setChecked() 181 mSwitchController.setChecked(false); in onSwitchToggled() 194 mSwitchController.setChecked(false); in onSwitchToggled() 224 mSwitchController.setChecked(false); in maybeEnforceRestrictions()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/network/ |
D | MobileDataTogglePreferenceControllerTest.java | 168 mPreference.setChecked(true); in handlePreferenceChanged_setFalse_isMultiSim_disablesData() 178 mPreference.setChecked(true); in handlePreferenceChanged_setFalse_isMultiSim_setsUnchecked() 188 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isSingleSim_enablesData() 198 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isSingleSim_setsChecked() 208 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_enablesData() 220 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isMultiSim_noOtherSimActive_setsChecked() 233 mPreference.setChecked(false); in handlePreferenceChanged_setTrue_isMultiSim_otherSimActive_opensDialog() 247 mPreference.setChecked(true); in disableSingleSimDialog_onConfirm_disablesData() 268 mPreference.setChecked(true); in disableSingleSimDialog_onConfirm_setsUnchecked() 290 mPreference.setChecked(false); in enableMutliSimDialog_onConfirm_enablesData() [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | CheckableRelativeLayout.java | 65 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()
|
D | PrimaryCheckBoxPreference.java | 73 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()
|
D | SettingsMainSwitchPreference.java | 92 setChecked(isChecked()); in onBindViewHolder() 121 public void setChecked(boolean checked) { in setChecked() method in SettingsMainSwitchPreference 122 super.setChecked(checked); in setChecked() 124 mMainSwitchBar.setChecked(checked); in setChecked() 145 super.setChecked(isChecked); in onSwitchChanged() 182 super.setChecked(checked); in setCheckedInternal()
|
D | PrimarySwitchPreference.java | 79 setChecked(!mChecked); in onBindViewHolder() 81 setChecked(!mChecked); in onBindViewHolder() 97 mSwitch.setChecked(mChecked); in onBindViewHolder() 121 public void setChecked(boolean checked) { in setChecked() method in PrimarySwitchPreference 128 mSwitch.setChecked(checked); in setChecked()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
D | HvacTestFragment.java | 100 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/Settings/src/com/android/settings/security/ |
D | ConfirmSimDeletionPreferenceController.java | 67 public boolean setChecked(boolean isChecked) { in setChecked() method in ConfirmSimDeletionPreferenceController 82 setChecked(true); in onPreferenceChange() 90 setChecked(false); in onPreferenceChange() 92 ((TwoStatePreference) preference).setChecked(false); in onPreferenceChange() 104 ((TwoStatePreference) preference).setChecked(false); in updateState() 110 ((TwoStatePreference) preference).setChecked(getGlobalState()); in updateState()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/rotary/ |
D | RotaryFragment.java | 124 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() 177 mRotaryServiceToggle.setChecked(isRotaryServiceEnabled(getContext())); in refreshUi() 178 mRotaryImeToggle.setChecked( in refreshUi() 180 mRotaryPlaygroundToggle.setChecked( in refreshUi()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastSettings.java | 388 mAlertReminder.setChecked(false); in initPreferences() 390 mAlertReminder.setChecked(true); in initPreferences() 455 mSevereCheckBox.setChecked(false); in onCreatePreferences() 532 mOverrideDndCheckBox.setChecked(res.getBoolean(R.bool.override_dnd_default)); in onCreatePreferences() 569 mEnableVibrateCheckBox.setChecked(true); in updateVibrationPreference() 747 mSevereCheckBox.setChecked(alertsEnabled); in setAlertsEnabled() 751 mExtremeCheckBox.setChecked(alertsEnabled); in setAlertsEnabled() 755 mAmberCheckBox.setChecked(alertsEnabled); in setAlertsEnabled() 759 mAreaUpdateInfoCheckBox.setChecked(alertsEnabled); in setAlertsEnabled() 764 mEmergencyAlertsCheckBox.setChecked(alertsEnabled); in setAlertsEnabled() [all …]
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | TogglePreferenceController.java | 51 public abstract boolean setChecked(boolean isChecked); in setChecked() method in TogglePreferenceController 56 ((TwoStatePreference) preference).setChecked(isChecked()); in updateState() 58 ((PrimarySwitchPreference) preference).setChecked(isChecked()); in updateState() 60 ((TwoStateButtonPreference) preference).setChecked(isChecked()); in updateState() 74 return setChecked((boolean) newValue); in onPreferenceChange()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | CollapsibleCheckboxPreferenceGroup.java | 70 ((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/Settings/src/com/android/settings/wifi/tether/ |
D | WifiTetherSwitchBarController.java | 61 mSwitchBar.setChecked(false); 78 mSwitchBar.setChecked(mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED); in WifiTetherSwitchBarController() 134 mSwitch.setChecked(true); in handleWifiApStateChanged() 140 mSwitch.setChecked(false); in handleWifiApStateChanged() 145 mSwitch.setChecked(false); in handleWifiApStateChanged() 149 mSwitch.setChecked(false); in handleWifiApStateChanged()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | GeneralPreferences.java | 303 mHideDeclined.setChecked((Boolean) newValue); in onPreferenceChange() 315 mVibrate.setChecked((Boolean) newValue); in onPreferenceChange() 343 mVibrate.setChecked(Utils.getDefaultVibrate(getActivity(), prefs)); in migrateOldPreferences() 349 mAlert.setChecked(false); in migrateOldPreferences() 350 mPopup.setChecked(false); in migrateOldPreferences() 353 mAlert.setChecked(true); in migrateOldPreferences() 354 mPopup.setChecked(false); in migrateOldPreferences() 357 mAlert.setChecked(true); in migrateOldPreferences() 358 mPopup.setChecked(true); in migrateOldPreferences()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/ui/ |
D | MtpFullscreenView.java | 66 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/Settings/tests/robotests/src/com/android/settings/privacy/ |
D | SensorToggleControllerTest.java | 193 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/apps/Dialer/java/com/android/incallui/rtt/impl/ |
D | AudioSelectMenu.java | 72 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/Dialer/java/com/android/incallui/incall/impl/ |
D | ButtonController.java | 46 void setChecked(boolean isChecked); in setChecked() method 113 public void setChecked(boolean isChecked) { in setChecked() method in ButtonController.CheckableButtonController 116 button.setChecked(isChecked); in setChecked() 135 button.setChecked(isChecked); in setButton() 231 public void setChecked(boolean isChecked) { in setChecked() method in ButtonController.NonCheckableButtonController 250 button.setChecked(false); in setButton() 351 public void setChecked(boolean isChecked) { in setChecked() method in ButtonController.SpeakerButtonController 354 button.setChecked(isChecked); in setChecked() 369 button.setChecked(isChecked); in setButton()
|