/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiApEnabler.java | 37 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/ |
D | SwitchBar.java | 60 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/ |
D | NfcEnabler.java | 41 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/ |
D | BluetoothEnabler.java | 47 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/ |
D | InLineSettingSwitch.java | 33 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/ |
D | DebugMmsConfigItemView.java | 47 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/ |
D | PeopleOptionsItemView.java | 46 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/ |
D | AppListSwitchPreference.java | 18 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()
|
D | WifiCallingSettings.java | 59 private Switch mSwitch; field in WifiCallingSettings 100 mSwitch = mSwitchBar.getSwitch(); in onActivityCreated() 145 mSwitch.setChecked(false); 205 mSwitch.setChecked(wfcEnabled); in onResume()
|
D | TrustedCredentialsSettings.java | 122 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/ |
D | BatterySaverSettings.java | 62 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/ |
D | LocationSettings.java | 104 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()
|