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

/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.java27 * Displays checked/unchecked states as a button
68 public void setChecked(boolean checked) { argument
69 super.setChecked(checked);
75 boolean checked = isChecked();
76 if (checked && mTextOn != null) {
78 } else if (!checked && mTextOff != null) {
84 * Returns the text for when the button is in the checked state.
93 * Sets the text for when the button is in the checked state.
102 * Returns the text for when the button is not in the checked state.
111 * Sets the text for when the button is not in the checked stat
[all...]
H A DCompoundButton.java34 * A button with two states, checked and unchecked. When the button is pressed
78 boolean checked = a
80 setChecked(checked);
108 * <p>Changes the checked state of this button.</p>
110 * @param checked true to check the button, false to uncheck it
112 public void setChecked(boolean checked) { argument
113 if (mChecked != checked) {
114 mChecked = checked;
135 * Register a callback to be invoked when the checked state of this button
138 * @param listener the callback to call on checked stat
283 boolean checked; field in class:CompoundButton.SavedState
[all...]
H A DCheckedTextView.java68 boolean checked = a.getBoolean(R.styleable.CheckedTextView_checked, false);
69 setChecked(checked);
84 * <p>Changes the checked state of this text view.</p>
86 * @param checked true to check the text, false to uncheck it
88 public void setChecked(boolean checked) { argument
89 if (mChecked != checked) {
90 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...]
/frameworks/base/core/java/android/preference/
H A DCheckBoxPreference.java86 // because clicking a preference does not immediately change the checked state
147 * Sets the checked state and saves it to the {@link SharedPreferences}.
149 * @param checked The checked state.
151 public void setChecked(boolean checked) { argument
152 if (mChecked != checked) {
153 mChecked = checked;
154 persistBoolean(checked);
161 * Returns the checked state.
163 * @return The checked stat
290 boolean checked; field in class:CheckBoxPreference.SavedState
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuView.java90 * checked, for that use {@link #setChecked}.
98 * @param checked Whether the checkbox should be checked
100 public void setChecked(boolean checked); argument
H A DMenuItemImpl.java518 public MenuItem setChecked(boolean checked) { argument
524 setCheckedInt(checked);
530 void setCheckedInt(boolean checked) { argument
532 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
536 mItemViews[i].get().setChecked(checked);
H A DListMenuItemView.java155 public void setChecked(boolean checked) { argument
170 compoundButton.setChecked(checked);
H A DIconMenuItemView.java288 public void setChecked(boolean checked) { argument
/frameworks/base/core/java/android/view/
H A DMenuItem.java293 * @param checked Set to true to display a check mark, false to hide
297 public MenuItem setChecked(boolean checked); argument
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
H A DImportTestProvider.java157 boolean checked = false;
167 checked = true;
171 if (!checked) {

Completed in 173 milliseconds