Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/wifi/
DWifiApEnabler.java37 private final SwitchPreference mSwitch; field in WifiApEnabler
79 mSwitch = switchPreference; in WifiApEnabler()
106 mSwitch.setEnabled(!mDataSaverBackend.isDataSaverEnabled()); in enableWifiSwitch()
108 mSwitch.setSummary(mOriginalSummary); in enableWifiSwitch()
109 mSwitch.setEnabled(false); in enableWifiSwitch()
116 mSwitch.setEnabled(false); in setSoftapEnabled()
118 mSwitch.setSummary(R.string.wifi_error); in setSoftapEnabled()
126 mSwitch.setSummary(String.format( in updateConfigSummary()
152 mSwitch.setSummary(R.string.wifi_error); in updateTetherState()
159 mSwitch.setSummary(R.string.wifi_tether_starting); in handleWifiApStateChanged()
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DSwitchBar.java60 private ToggleSwitch mSwitch; field in SwitchBar
109 mSwitch = (ToggleSwitch) findViewById(R.id.switch_widget); in SwitchBar()
112 mSwitch.setSaveEnabled(false); in SwitchBar()
113 mSwitch.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); in SwitchBar()
114 lp = (MarginLayoutParams) mSwitch.getLayoutParams(); in SwitchBar()
117 mSwitch.setBackgroundColor(switchBarBackgroundColor); in SwitchBar()
163 mSwitch.setChecked(checked); in setChecked()
168 mSwitch.setCheckedInternal(checked); in setCheckedInternal()
172 return mSwitch.isChecked(); in isChecked()
182 mSwitch.setEnabled(enabled); in setEnabled()
[all …]
/packages/apps/Settings/src/com/android/settings/nfc/
DNfcEnabler.java41 private final SwitchPreference mSwitch; field in NfcEnabler
61 mSwitch = switchPreference; in NfcEnabler()
69 mSwitch.setEnabled(false); in NfcEnabler()
86 mSwitch.setOnPreferenceChangeListener(this); in resume()
94 mSwitch.setOnPreferenceChangeListener(null); in pause()
101 mSwitch.setEnabled(false); in onPreferenceChange()
115 mSwitch.setChecked(false); in handleNfcStateChanged()
116 mSwitch.setEnabled(true); in handleNfcStateChanged()
121 mSwitch.setChecked(true); in handleNfcStateChanged()
122 mSwitch.setEnabled(true); in handleNfcStateChanged()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEnabler.java47 private Switch mSwitch; field in BluetoothEnabler
82 mSwitch = switchBar.getSwitch(); in BluetoothEnabler()
89 mSwitch.setEnabled(false); in BluetoothEnabler()
106 mSwitch.setEnabled(false); in resume()
135 mSwitch.setEnabled(false); in handleStateChanged()
139 mSwitch.setEnabled(true); in handleStateChanged()
143 mSwitch.setEnabled(false); in handleStateChanged()
147 mSwitch.setEnabled(true); in handleStateChanged()
152 mSwitch.setEnabled(true); in handleStateChanged()
158 if (isChecked != mSwitch.isChecked()) { in setChecked()
[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/Messaging/src/com/android/messaging/ui/debug/
DDebugMmsConfigItemView.java47 private Switch mSwitch; field in DebugMmsConfigItemView
61 mSwitch = (Switch) findViewById(R.id.switch_button); in onFinishInflate()
63 mSwitch.setOnCheckedChangeListener(this); in onFinishInflate()
75 mSwitch.setVisibility(View.VISIBLE); in bind()
77 mSwitch.setChecked(Boolean.valueOf(value)); in bind()
82 mSwitch.setVisibility(View.GONE); in bind()
87 mSwitch.setVisibility(View.GONE); in bind()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleOptionsItemView.java46 private SwitchCompat mSwitch; field in PeopleOptionsItemView
59 mSwitch = (SwitchCompat) findViewById(R.id.switch_button); in onFinishInflate()
84 mSwitch.setVisibility(VISIBLE); in bind()
85 mSwitch.setChecked(mData.getChecked()); in bind()
87 mSwitch.setVisibility(GONE); in bind()
94 mSwitch.setEnabled(enabled); in bind()
/packages/apps/Settings/src/com/android/settings/
DAppListSwitchPreference.java18 private Checkable mSwitch; field in AppListSwitchPreference
27 mSwitch = (Checkable) view.findViewById(com.android.internal.R.id.switch_widget); in onBindViewHolder()
28 mSwitch.setChecked(getValue() != null); in onBindViewHolder()
54 if (mSwitch != null) { in setValue()
55 mSwitch.setChecked(value != null); in setValue()
DWifiCallingSettings.java59 private Switch mSwitch; field in WifiCallingSettings
100 mSwitch = mSwitchBar.getSwitch(); in onActivityCreated()
145 mSwitch.setChecked(false);
205 mSwitch.setChecked(wfcEnabled); in onResume()
DTrustedCredentialsSettings.java122 private final boolean mSwitch; field in TrustedCredentialsSettings.Tab
134 mSwitch = withSwitch; in Tab()
478 holder.mSwitch = (Switch) convertView.findViewById( in getViewForCertificate()
486 if (mTab.mSwitch) { in getViewForCertificate()
487 holder.mSwitch.setChecked(!certHolder.mDeleted); in getViewForCertificate()
488 holder.mSwitch.setEnabled(!mUserManager.hasUserRestriction( in getViewForCertificate()
491 holder.mSwitch.setVisibility(View.VISIBLE); in getViewForCertificate()
499 private Switch mSwitch; field in TrustedCredentialsSettings.GroupAdapter.ViewHolder
1002 if (mCertHolder.mTab.mSwitch) { in onPostExecute()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverSettings.java62 private Switch mSwitch; field in BatterySaverSettings
83 mSwitch = mSwitchBar.getSwitch(); in onActivityCreated()
155 if (DEBUG) Log.d(TAG, "updateSwitch: isChecked=" + mSwitch.isChecked() + " mode=" + mode); in updateSwitch()
156 if (mode == mSwitch.isChecked()) return; in updateSwitch()
162 mSwitch.setChecked(mode); in updateSwitch()
/packages/apps/Settings/src/com/android/settings/location/
DLocationSettings.java104 private Switch mSwitch; field in LocationSettings
129 mSwitch = mSwitchBar.getSwitch(); in onActivityCreated()
396 if (enabled != mSwitch.isChecked()) { in onModeChanged()
401 mSwitch.setChecked(enabled); in onModeChanged()