Home
last modified time | relevance | path

Searched refs:switchWidget (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/src/com/android/settings/accessibility/
DShortcutPreference.java86 Switch switchWidget = holder.itemView.findViewById(R.id.switchWidget); in onBindViewHolder() local
87 if (switchWidget != null) { in onBindViewHolder()
89 switchWidget.setOnTouchListener((v, event) -> { in onBindViewHolder()
92 switchWidget.setContentDescription( in onBindViewHolder()
94 switchWidget.setChecked(mChecked); in onBindViewHolder()
95 switchWidget.setOnClickListener(view -> callOnToggleClicked()); in onBindViewHolder()
96 switchWidget.setClickable(mSettingsEditable); in onBindViewHolder()
97 switchWidget.setFocusable(mSettingsEditable); in onBindViewHolder()
98 switchWidget.setBackgroundResource( in onBindViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DPrimarySwitchPreferenceTest.java68 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setChecked_shouldUpdateButtonCheckedState()
80 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState()
92 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setSwitchEnabled_shouldUpdateButtonEnabledState_beforeViewBound()
103 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldToggleButton()
117 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldNotToggleButtonIfDisabled()
128 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in clickWidgetView_shouldNotifyPreferenceChanged()
145 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setDisabledByAdmin_hasEnforcedAdmin_shouldDisableButton()
155 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in setDisabledByAdmin_noEnforcedAdmin_shouldEnableButton()
165 final Switch toggle = (Switch) mHolder.findViewById(R.id.switchWidget); in onBindViewHolder_toggleButtonShouldHaveContentDescription()
/packages/apps/Settings/src/com/android/settings/widget/
DPrimarySwitchPreference.java70 final View switchWidget = holder.findViewById(R.id.switchWidget); in onBindViewHolder() local
71 if (switchWidget != null) { in onBindViewHolder()
72 switchWidget.setVisibility(isDisabledByAdmin() ? View.GONE : View.VISIBLE); in onBindViewHolder()
73 switchWidget.setOnClickListener(new OnClickListener() { in onBindViewHolder()
89 switchWidget.setOnTouchListener((v, event) -> { in onBindViewHolder()
94 mSwitch = (Switch) holder.findViewById(R.id.switchWidget); in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEnabler.java75 public WifiEnabler(Context context, SwitchWidgetController switchWidget, in WifiEnabler() argument
77 this(context, switchWidget, metricsFeatureProvider, in WifiEnabler()
82 WifiEnabler(Context context, SwitchWidgetController switchWidget, in WifiEnabler() argument
86 mSwitchWidget = switchWidget; in WifiEnabler()
/packages/apps/Settings/src/com/android/settings/development/
DWirelessDebuggingEnabler.java51 public WirelessDebuggingEnabler(Context context, SwitchWidgetController switchWidget, in WirelessDebuggingEnabler() argument
54 mSwitchWidget = switchWidget; in WirelessDebuggingEnabler()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DApplicationViewHolder.java60 mSwitch = itemView.findViewById(R.id.switchWidget); in ApplicationViewHolder()