Home
last modified time | relevance | path

Searched refs:mSwitch (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java39 private Switch mSwitch; field in BluetoothEnabler
56 mSwitch = switch_; in BluetoothEnabler()
63 mSwitch.setEnabled(false); in BluetoothEnabler()
72 mSwitch.setEnabled(false); in resume()
80 mSwitch.setOnCheckedChangeListener(this); in resume()
90 mSwitch.setOnCheckedChangeListener(null); in pause()
95 if (mSwitch == switch_) return; in setSwitch()
96 mSwitch.setOnCheckedChangeListener(null); in setSwitch()
97 mSwitch = switch_; in setSwitch()
98 mSwitch.setOnCheckedChangeListener(mValidListener ? this : null); in setSwitch()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiEnabler.java41 private Switch mSwitch; field in WifiEnabler
70 mSwitch = switch_; in WifiEnabler()
82 mSwitch.setOnCheckedChangeListener(this); in resume()
87 mSwitch.setOnCheckedChangeListener(null); in pause()
91 if (mSwitch == switch_) return; in setSwitch()
92 mSwitch.setOnCheckedChangeListener(null); in setSwitch()
93 mSwitch = switch_; in setSwitch()
94 mSwitch.setOnCheckedChangeListener(this); in setSwitch()
99 mSwitch.setChecked(isEnabled); in setSwitch()
100 mSwitch.setEnabled(isEnabled || isDisabled); in setSwitch()
[all …]
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettings.java60 private Switch mSwitch; field in LocationSettings
74 mSwitch = new Switch(getActivity()); in onResume()
75 mSwitch.setOnCheckedChangeListener(this); in onResume()
89 mSwitch.setOnCheckedChangeListener(null); in onPause()
149 mSwitch.setPaddingRelative(0, 0, padding, 0); in createPreferenceHierarchy()
152 activity.getActionBar().setCustomView(mSwitch, new ActionBar.LayoutParams( in createPreferenceHierarchy()
231 mSwitch.setEnabled(!restricted); in onModeChanged()
235 if (enabled != mSwitch.isChecked()) { in onModeChanged()
238 mSwitch.setOnCheckedChangeListener(null); in onModeChanged()
240 mSwitch.setChecked(enabled); in onModeChanged()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DInLineSettingSwitch.java33 private Switch mSwitch; field in InLineSettingSwitch
48 mSwitch = (Switch) findViewById(R.id.setting_switch); in onFinishInflate()
49 mSwitch.setOnCheckedChangeListener(mCheckedChangeListener); in onFinishInflate()
56 mSwitch.setContentDescription(getContext().getResources().getString( in initialize()
62 mSwitch.setOnCheckedChangeListener(null); in updateView()
64 mSwitch.setChecked(mIndex == 1); in updateView()
67 mSwitch.setChecked(index == 1); in updateView()
69 mSwitch.setOnCheckedChangeListener(mCheckedChangeListener); in updateView()
/packages/apps/Settings/src/com/android/settings/
DDreamSettings.java66 private Switch mSwitch; field in DreamSettings
89 mSwitch = new Switch(activity); in onCreate()
90 mSwitch.setOnCheckedChangeListener(new OnCheckedChangeListener() { in onCreate()
102 mSwitch.setPaddingRelative(0, 0, padding, 0); in onCreate()
105 activity.getActionBar().setCustomView(mSwitch, new ActionBar.LayoutParams( in onCreate()
264 if (mSwitch.isChecked() != dreamsEnabled)
265 mSwitch.setChecked(dreamsEnabled);