/cts/tests/tests/widget/src/android/widget/cts/ |
SwitchTest.java | 57 private Switch mSwitch; 90 mSwitch = findSwitchById(R.id.switch1); 93 assertEquals(Color.WHITE, mSwitch.getThumbTintList().getDefaultColor()); 94 assertEquals(Mode.SRC_OVER, mSwitch.getThumbTintMode()); 97 mSwitch.setThumbTintList(colors); 98 mSwitch.setThumbTintMode(Mode.XOR); 100 assertSame(colors, mSwitch.getThumbTintList()); 101 assertEquals(Mode.XOR, mSwitch.getThumbTintMode()); 107 mSwitch = findSwitchById(R.id.switch1); 110 assertEquals(Color.BLACK, mSwitch.getTrackTintList().getDefaultColor()) [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
NotificationSwitchBarPreference.java | 29 private ToggleSwitch mSwitch; 40 mSwitch = (ToggleSwitch) holder.findViewById(android.R.id.switch_widget); 41 if (mSwitch != null) { 42 mSwitch.setOnClickListener(new View.OnClickListener() { 45 if (!mSwitch.isEnabled()) { 55 mSwitch.setChecked(mChecked); 56 mSwitch.setEnabled(mEnableSwitch); 61 return mSwitch != null && mSwitch.isEnabled() && mChecked; 66 if (mSwitch != null) [all...] |
/packages/apps/Settings/src/com/android/settings/widget/ |
MasterSwitchPreference.java | 37 private Switch mSwitch; 71 if (mSwitch != null && !mSwitch.isEnabled()) { 84 mSwitch = (Switch) holder.findViewById(R.id.switchWidget); 85 if (mSwitch != null) { 86 mSwitch.setContentDescription(getTitle()); 87 mSwitch.setChecked(mChecked); 88 mSwitch.setEnabled(mEnableSwitch); 93 return mSwitch != null && mSwitch.isEnabled() && mChecked [all...] |
SwitchBar.java | 62 private ToggleSwitch mSwitch; 111 mSwitch = (ToggleSwitch) findViewById(R.id.switch_widget); 114 mSwitch.setSaveEnabled(false); 115 mSwitch.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO); 116 lp = (MarginLayoutParams) mSwitch.getLayoutParams(); 166 mSwitch.setChecked(checked); 171 mSwitch.setCheckedInternal(checked); 175 return mSwitch.isChecked(); 185 mSwitch.setEnabled(enabled); 199 mSwitch.setEnabled(false) [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
InLineSettingSwitch.java | 33 private Switch mSwitch; 48 mSwitch = (Switch) findViewById(R.id.setting_switch); 49 mSwitch.setOnCheckedChangeListener(mCheckedChangeListener); 56 mSwitch.setContentDescription(getContext().getResources().getString( 62 mSwitch.setOnCheckedChangeListener(null); 64 mSwitch.setChecked(mIndex == 1); 67 mSwitch.setChecked(index == 1); 69 mSwitch.setOnCheckedChangeListener(mCheckedChangeListener);
|
/packages/apps/Settings/src/com/android/settings/nfc/ |
NfcEnabler.java | 41 private final SwitchPreference mSwitch; 61 mSwitch = switchPreference; 69 mSwitch.setEnabled(false); 86 mSwitch.setOnPreferenceChangeListener(this); 94 mSwitch.setOnPreferenceChangeListener(null); 101 mSwitch.setChecked(desiredState); 102 mSwitch.setEnabled(false); 116 mSwitch.setChecked(false); 117 mSwitch.setEnabled(true); 122 mSwitch.setChecked(true) [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiApEnabler.java | 41 private final SwitchPreference mSwitch; 83 mSwitch = switchPreference; 110 mSwitch.setEnabled(!mDataSaverBackend.isDataSaverEnabled()); 112 mSwitch.setSummary(mOriginalSummary); 113 mSwitch.setEnabled(false); 121 mSwitch.setSummary(mContext.getString(R.string.wifi_tether_enabled_subtext, 147 mSwitch.setSummary(R.string.wifi_error); 149 mSwitch.setSummary(R.string.wifi_hotspot_off_subtext); 156 mSwitch.setSummary(R.string.wifi_tether_starting); 157 mSwitch.setEnabled(false) [all...] |
/developers/build/prebuilts/gradle/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
AdvertiserFragment.java | 40 private Switch mSwitch; 64 mSwitch.setChecked(false); 101 mSwitch = (Switch) view.findViewById(R.id.advertise_switch); 102 mSwitch.setOnClickListener(this); 116 mSwitch.setChecked(true); 118 mSwitch.setChecked(false); 172 mSwitch.setChecked(false);
|
/developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
AdvertiserFragment.java | 40 private Switch mSwitch; 64 mSwitch.setChecked(false); 101 mSwitch = (Switch) view.findViewById(R.id.advertise_switch); 102 mSwitch.setOnClickListener(this); 116 mSwitch.setChecked(true); 118 mSwitch.setChecked(false); 172 mSwitch.setChecked(false);
|
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
AdvertiserFragment.java | 40 private Switch mSwitch; 64 mSwitch.setChecked(false); 101 mSwitch = (Switch) view.findViewById(R.id.advertise_switch); 102 mSwitch.setOnClickListener(this); 116 mSwitch.setChecked(true); 118 mSwitch.setChecked(false); 172 mSwitch.setChecked(false);
|
/frameworks/opt/setupwizard/library/gingerbread/test/robotest/src/com/android/setupwizardlib/items/ |
SwitchItemTest.java | 46 private SwitchCompat mSwitch; 59 assertTrue("Switch should be checked", mSwitch.isChecked()); 73 assertFalse("Switch should be unchecked", mSwitch.isChecked()); 90 assertTrue("Switch should be checked", mSwitch.isChecked()); 91 mSwitch.setChecked(false); 96 mSwitch.setChecked(true); 120 assertTrue("Switch should be checked", mSwitch.isChecked()); 123 mSwitch.setChecked(false); 128 mSwitch.setChecked(true); 149 assertTrue("Switch should be checked", mSwitch.isChecked()) [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/ |
PeopleOptionsItemView.java | 46 private SwitchCompat mSwitch; 59 mSwitch = (SwitchCompat) findViewById(R.id.switch_button); 84 mSwitch.setVisibility(VISIBLE); 85 mSwitch.setChecked(mData.getChecked()); 87 mSwitch.setVisibility(GONE); 94 mSwitch.setEnabled(enabled);
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
AutomaticStorageManagementSwitchPreferenceController.java | 44 private MasterSwitchPreference mSwitch; 59 mSwitch = (MasterSwitchPreference) screen.findPreference(KEY_TOGGLE_ASM); 79 mSwitch.setChecked(isStorageManagerEnabled); 81 if (mSwitch != null) { 82 mSwitchController = new MasterSwitchController(mSwitch);
|
/packages/apps/Messaging/src/com/android/messaging/ui/debug/ |
DebugMmsConfigItemView.java | 47 private Switch mSwitch; 61 mSwitch = (Switch) findViewById(R.id.switch_button); 63 mSwitch.setOnCheckedChangeListener(this); 75 mSwitch.setVisibility(View.VISIBLE); 77 mSwitch.setChecked(Boolean.valueOf(value)); 82 mSwitch.setVisibility(View.GONE); 87 mSwitch.setVisibility(View.GONE);
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothEnabler.java | 44 private final Switch mSwitch; 80 mSwitch = mSwitchWidget.getSwitch(); 186 mSwitch.setChecked(false); 198 mSwitch.setChecked(false); 199 mSwitch.setEnabled(true); 219 if (mSwitch != null) { 220 mSwitch.setEnabled(false); 221 mSwitch.setChecked(false);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
BluetoothEnablerTest.java | 78 Switch mSwitch; 89 mSwitch = new Switch(mContext); 100 when(holder.findViewById(R.id.switchWidget)).thenReturn(mSwitch); 200 assertThat(mSwitch.isChecked()).isFalse(); 220 assertThat(mSwitch.isChecked()).isFalse(); 226 assertThat(mSwitch.isChecked()).isFalse(); 245 assertThat(mSwitch.isChecked()).isTrue();
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatterySaverSettings.java | 58 private Switch mSwitch; 81 mSwitch = mSwitchBar.getSwitch(); 155 if (DEBUG) Log.d(TAG, "updateSwitch: isChecked=" + mSwitch.isChecked() + " mode=" + mode); 156 if (mode == mSwitch.isChecked()) return; 162 mSwitch.setChecked(mode);
|
/packages/apps/Settings/src/com/android/settings/ |
TrustedCredentialsSettings.java | 116 private final boolean mSwitch; 124 mSwitch = withSwitch; 480 holder.mSwitch = (Switch) convertView.findViewById( 482 holder.mSwitch.setOnClickListener(this); 488 if (mTab.mSwitch) { 489 holder.mSwitch.setChecked(!certHolder.mDeleted); 490 holder.mSwitch.setEnabled(!mUserManager.hasUserRestriction( 493 holder.mSwitch.setVisibility(View.VISIBLE); 494 holder.mSwitch.setTag(certHolder); 502 private Switch mSwitch; [all...] |
WifiCallingSettings.java | 70 private Switch mSwitch; 150 mSwitch = mSwitchBar.getSwitch(); 197 mSwitch.setChecked(false); 260 mSwitch.setChecked(wfcEnabled);
|
/packages/apps/Settings/src/com/android/settings/location/ |
LocationSettings.java | 97 private Switch mSwitch; 122 mSwitch = mSwitchBar.getSwitch(); 358 if (enabled != mSwitch.isChecked()) { 363 mSwitch.setChecked(enabled);
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/UefiVfrCompile/ |
VfrFormPkg.cpp | 519 mSwitch = FALSE;
568 if (mSwitch == FALSE) {
628 if (mSwitch == FALSE) {
|
VfrFormPkg.h | 156 bool mSwitch;
167 mSwitch = TRUE;
171 mSwitch = FALSE;
[all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/ |
VfrFormPkg.cpp | 982 mSwitch = TRUE;
1031 if (mSwitch == FALSE) {
1100 if (mSwitch == FALSE) {
1136 if (mSwitch == FALSE) {
[all...] |
VfrFormPkg.h | 185 bool mSwitch;
199 mSwitch = TRUE;
203 mSwitch = FALSE;
[all...] |