Home
last modified time | relevance | path

Searched refs:Switch (Results 1 – 25 of 60) sorted by relevance

123

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
H A DPrimarySwitchPreferenceTest.java27 import android.widget.Switch;
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()
/aosp14/frameworks/base/core/java/android/preference/
H A DSwitchPreference.java28 import android.widget.Switch;
137 if (checkableView instanceof Switch) { in onBindView()
138 final Switch switchView = (Switch) checkableView; in onBindView()
144 if (checkableView instanceof Switch) { in onBindView()
145 final Switch switchView = (Switch) checkableView; in onBindView()
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/ui/
H A DSwitch.kt19 import androidx.compose.material3.Switch
32 Switch(
38 Switch(
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
H A DMainSwitchBarTest.java26 import android.widget.Switch;
70 final Switch switchObj = mBar.getSwitch(); in setTitle_switchShouldNotHasContentDescription()
76 final Switch switchObj = mBar.getSwitch(); in getSwitch_shouldNotNull()
83 final Switch switchObj = mBar.getSwitch(); in getSwitch_shouldNotFocusableAndClickable()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DPrimarySwitchPreference.java22 import android.widget.Switch;
38 private Switch mSwitch;
68 mSwitch = (Switch) holder.findViewById(R.id.switchWidget); in onBindViewHolder()
150 public Switch getSwitch() { in getSwitch()
/aosp14/frameworks/base/packages/SettingsLib/MainSwitchPreference/src/com/android/settingslib/widget/
H A DOnMainSwitchChangeListener.java19 import android.widget.Switch;
29 void onSwitchChanged(Switch switchView, boolean isChecked); in onSwitchChanged()
H A DMainSwitchBar.java29 import android.widget.Switch;
54 protected Switch mSwitch;
91 mSwitch = (Switch) findViewById(android.R.id.switch_widget); in MainSwitchBar()
150 public final Switch getSwitch() { in getSwitch()
H A DMainSwitchPreference.java22 import android.widget.Switch;
121 public void onSwitchChanged(Switch switchView, boolean isChecked) { in onSwitchChanged()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DPowerNotificationControlsFragment.java25 import android.widget.Switch;
51 final Switch switchWidget = (Switch) switchBar.findViewById(android.R.id.switch_widget); in onViewCreated()
/aosp14/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java23 import android.widget.Switch;
114 Switch button = new Switch(this); in createSwitch()
/aosp14/frameworks/base/core/java/android/widget/
H A DSwitch.java101 public class Switch extends CompoundButton { class
200 public Switch(Context context) { in Switch() method in Switch
211 public Switch(Context context, AttributeSet attrs) { in Switch() method in Switch
225 public Switch(Context context, AttributeSet attrs, int defStyleAttr) { in Switch() method in Switch
246 public Switch(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in Switch() method in Switch
256 attrs, com.android.internal.R.styleable.Switch, defStyleAttr, defStyleRes); in Switch()
257 saveAttributeDataForStyleable(context, com.android.internal.R.styleable.Switch, in Switch()
1588 return Switch.class.getName(); in getAccessibilityClassName()
1611 private static final FloatProperty<Switch> THUMB_POS = new FloatProperty<Switch>("thumbPos") {
1613 public Float get(Switch object) {
[all …]
/aosp14/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/
H A DSurfaceControlViewHostSyncTest.java38 import android.widget.Switch;
79 Switch enableSyncButton = new Switch(this); in onCreate()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DScreenRecordPermissionDialog.kt33 import android.widget.Switch
59 private lateinit var tapsSwitch: Switch
61 private lateinit var audioSwitch: Switch
H A DScreenRecordDialog.java42 import android.widget.Switch;
77 private Switch mTapsSwitch;
78 private Switch mAudioSwitch;
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DChannelEditorListView.kt36 import android.widget.Switch
143 lateinit var switch: Switch
159 private lateinit var switch: Switch
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DReduceBrightColorsTile.java27 import android.widget.Switch;
114 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DOneHandedModeTile.java25 import android.widget.Switch;
139 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DWorkModeTile.java28 import android.widget.Switch;
142 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DColorCorrectionTile.java26 import android.widget.Switch;
130 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DColorInversionTile.java26 import android.widget.Switch;
131 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DSensorPrivacyToggleTile.java28 import android.widget.Switch;
126 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DFlashlightTile.java26 import android.widget.Switch;
144 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DBatterySaverTile.java25 import android.widget.Switch;
157 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
H A DLocationTile.java26 import android.widget.Switch;
133 state.expandedAccessibilityClassName = Switch.class.getName(); in handleUpdateState()
/aosp14/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/
H A DSurfaceViewSyncActivity.java37 import android.widget.Switch;
53 private Switch mEnableSyncSwitch;

123