Searched refs:switchWidget (Results 1 – 4 of 4) sorted by relevance
64 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState()76 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState()88 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()99 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldToggleButton()113 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldNotToggleButtonIfDisabled()124 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldNotifyPreferenceChanged()141 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setDisabledByAdmin_hasEnforcedAdmin_shouldDisableButton()151 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setDisabledByAdmin_noEnforcedAdmin_shouldEnableButton()161 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in onBindViewHolder_toggleButtonShouldHaveContentDescription()
51 final Switch switchWidget = (Switch) switchBar.findViewById(android.R.id.switch_widget); in onViewCreated() local53 switchWidget.setChecked(isEnabled()); in onViewCreated()58 switchWidget.setOnClickListener(new View.OnClickListener() { in onViewCreated()66 switchWidget.setChecked(newState); in onViewCreated()
141 final Switch switchWidget = getSwitch(); in onBindViewHolder() local142 if (switchWidget != null) { in onBindViewHolder()144 switchWidget.setOnClickListener(v -> { in onBindViewHolder()145 if (!switchWidget.isEnabled()) { in onBindViewHolder()150 switchWidget.setChecked(isChecked()); in onBindViewHolder()
68 mSwitch = (Switch) holder.findViewById(R.id.switchWidget); in onBindViewHolder()