Searched refs:checked (Results 1 - 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/widget/
H A DCheckable.java26 * Change the checked state of the view
28 * @param checked The new checked state
30 void setChecked(boolean checked); argument
33 * @return The current checked state of the view
38 * Change the checked state of the view to the inverse of its current state
H A DToggleButton.java30 * Displays checked/unchecked states as a button
71 public void setChecked(boolean checked) { argument
72 super.setChecked(checked);
78 boolean checked = isChecked();
79 if (checked && mTextOn != null) {
81 } else if (!checked && mTextOff != null) {
87 * Returns the text for when the button is in the checked state.
96 * Sets the text for when the button is in the checked state.
105 * Returns the text for when the button is not in the checked state.
114 * Sets the text for when the button is not in the checked stat
[all...]
H A DCompoundButton.java35 * A button with two states, checked and unchecked. When the button is pressed
79 boolean checked = a
81 setChecked(checked);
109 * <p>Changes the checked state of this button.</p>
111 * @param checked true to check the button, false to uncheck it
113 public void setChecked(boolean checked) { argument
114 if (mChecked != checked) {
115 mChecked = checked;
136 * Register a callback to be invoked when the checked state of this button
139 * @param listener the callback to call on checked stat
284 boolean checked; field in class:CompoundButton.SavedState
[all...]
H A DCheckedTextView.java70 boolean checked = a.getBoolean(R.styleable.CheckedTextView_checked, false);
71 setChecked(checked);
86 * <p>Changes the checked state of this text view.</p>
88 * @param checked true to check the text, false to uncheck it
90 public void setChecked(boolean checked) { argument
91 if (mChecked != checked) {
92 mChecked = checked;
H A DRadioGroup.java31 * any previously checked radio button within the same group.</p>
35 * remove the checked state.</p>
53 // holds the checked id; the selection is empty by default
55 // tracks children radio buttons checked state
176 private void setCheckedStateForView(int viewId, boolean checked) { argument
179 ((RadioButton) checkedView).setChecked(checked);
209 * <p>Register a callback to be invoked when the checked radio button
212 * @param listener the callback to call on checked state change
314 * <p>Interface definition for a callback to be invoked when the checked
319 * <p>Called when the checked radi
[all...]
H A DSwitch.java276 * Returns the text displayed when the button is in the checked state.
283 * Sets the text displayed when the button is in the checked state.
291 * Returns the text displayed when the button is not in the checked state.
298 * Sets the text displayed when the button is not in the checked state.
516 public void setChecked(boolean checked) { argument
517 super.setChecked(checked);
518 mThumbPosition = checked ? getThumbScrollRange() : 0;
636 // Drawable may be null when checked state is set from XML, from super constructor
/frameworks/base/core/java/android/preference/
H A DTwoStatePreference.java72 * Sets the checked state and saves it to the {@link SharedPreferences}.
74 * @param checked The checked state.
76 public void setChecked(boolean checked) { argument
77 if (mChecked != checked) {
78 mChecked = checked;
79 persistBoolean(checked);
86 * Returns the checked state.
88 * @return The checked state.
101 * Sets the summary to be shown when checked
266 boolean checked; field in class:TwoStatePreference.SavedState
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DAirplaneModeController.java57 public void onCheckedChanged(CompoundButton view, boolean checked) { argument
58 if (checked != mAirplaneMode) {
59 mAirplaneMode = checked;
60 unsafe(checked);
H A DAutoRotateController.java49 public void onCheckedChanged(CompoundButton view, boolean checked) { argument
50 if (checked != mAutoRotation) {
51 setAutoRotation(checked);
H A DToggleSlider.java39 public void onChanged(ToggleSlider v, boolean tracking, boolean checked, int value); argument
78 public void onCheckedChanged(CompoundButton toggle, boolean checked) { argument
82 if (checked) {
97 mListener.onChanged(this, mTracking, checked, mSlider.getProgress());
126 public void setChecked(boolean checked) { argument
127 mToggle.setChecked(checked);
H A DDoNotDisturbController.java54 public void onCheckedChanged(CompoundButton view, boolean checked) { argument
55 //Slog.d(TAG, "onCheckedChanged checked=" + checked + " mDoNotDisturb=" + mDoNotDisturb);
56 final boolean value = !checked;
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuView.java80 * checked, for that use {@link #setChecked}.
88 * @param checked Whether the checkbox should be checked
90 public void setChecked(boolean checked); argument
H A DActionMenuItem.java148 public MenuItem setChecked(boolean checked) { argument
149 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
H A DMenuItemImpl.java435 public MenuItem setChecked(boolean checked) { argument
441 setCheckedInt(checked);
447 void setCheckedInt(boolean checked) { argument
449 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
H A DListMenuItemView.java166 public void setChecked(boolean checked) { argument
181 compoundButton.setChecked(checked);
H A DActionMenuItemView.java124 public void setChecked(boolean checked) { argument
H A DIconMenuItemView.java294 public void setChecked(boolean checked) { argument
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DConfirmDialog.java99 public void onCheckedChanged(CompoundButton button, boolean checked) { argument
100 mButton.setEnabled(checked);
/frameworks/base/core/java/android/view/
H A DMenuItem.java354 * @param checked Set to true to display a check mark, false to hide
358 public MenuItem setChecked(boolean checked); argument
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DImportTestProvider.java121 boolean checked = false;
131 checked = true;
135 if (!checked) {
/frameworks/base/core/java/android/accounts/
H A DChooseTypeAndAccountActivity.java423 private final boolean checked; field in class:ChooseTypeAndAccountActivity.AccountInfo
425 AccountInfo(Account account, Drawable drawable, boolean checked) { argument
428 this.checked = checked;
468 mInfos.get(position).checked ? View.VISIBLE : View.INVISIBLE;
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompat.java55 public void setChecked(Object info, boolean checked); argument
208 public void setChecked(Object info, boolean checked) { argument
430 public void setChecked(Object info, boolean checked) { argument
431 AccessibilityNodeInfoCompatIcs.setChecked(info, checked);
820 * Gets whether this node is checked.
822 * @return True if the node is checked.
829 * Sets whether this node is checked.
836 * @param checked True if the node is checked.
839 public void setChecked(boolean checked) { argument
[all...]
/frameworks/support/v4/ics/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompatIcs.java156 public static void setChecked(Object info, boolean checked) { argument
157 ((AccessibilityNodeInfo) info).setChecked(checked);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
H A DInputMethodsPanel.java179 final boolean checked = mHardKeyboardSwitch.isChecked();
180 if (mHardKeyboardEnabled != checked) {
181 mHardKeyboardEnabled = checked;
183 mHardKeyboardEnabledChangeListener.onHardKeyboardEnabledChange(checked);
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityNodeInfo.java402 * Gets whether this node is checked.
404 * @return True if the node is checked.
411 * Sets whether this node is checked.
418 * @param checked True if the node is checked.
422 public void setChecked(boolean checked) { argument
423 setBooleanProperty(PROPERTY_CHECKED, checked);
1107 builder.append("; checked: ").append(isChecked());

Completed in 418 milliseconds

12