Searched refs:mSwitch (Results 1 – 5 of 5) sorted by relevance
39 private Switch mSwitch; field in BluetoothEnabler56 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 …]
41 private Switch mSwitch; field in WifiEnabler70 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 …]
60 private Switch mSwitch; field in LocationSettings74 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 …]
33 private Switch mSwitch; field in InLineSettingSwitch48 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()
66 private Switch mSwitch; field in DreamSettings89 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);