Searched refs:checked (Results 1 - 25 of 32) 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.java31 * Displays checked/unchecked states as a button
72 public void setChecked(boolean checked) { argument
73 super.setChecked(checked);
79 boolean checked = isChecked();
80 if (checked && mTextOn != null) {
82 } else if (!checked && mTextOff != null) {
88 * Returns the text for when the button is in the checked state.
97 * Sets the text for when the button is in the checked state.
106 * Returns the text for when the button is not in the checked state.
115 * 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;
138 * Register a callback to be invoked when the checked state of this button
141 * @param listener the callback to call on checked stat
322 boolean checked; field in class:CompoundButton.SavedState
[all...]
H A DCheckedTextView.java72 boolean checked = a.getBoolean(R.styleable.CheckedTextView_checked, false);
73 setChecked(checked);
88 * <p>Changes the checked state of this text view.</p>
90 * @param checked true to check the text, false to uncheck it
92 public void setChecked(boolean checked) { argument
93 if (mChecked != checked) {
94 mChecked = checked;
H A DRadioGroup.java33 * any previously checked radio button within the same group.</p>
37 * remove the checked state.</p>
55 // holds the checked id; the selection is empty by default
57 // tracks children radio buttons checked state
178 private void setCheckedStateForView(int viewId, boolean checked) { argument
181 ((RadioButton) checkedView).setChecked(checked);
213 * <p>Register a callback to be invoked when the checked radio button
216 * @param listener the callback to call on checked state change
330 * <p>Interface definition for a callback to be invoked when the checked
335 * <p>Called when the checked radi
[all...]
H A DSwitch.java444 * Returns the text displayed when the button is in the checked state.
453 * Sets the text displayed when the button is in the checked state.
463 * Returns the text displayed when the button is not in the checked state.
472 * Sets the text displayed when the button is not in the checked state.
656 private void setThumbPosition(boolean checked) { argument
658 mThumbPosition = checked ? 0 : getThumbScrollRange();
660 mThumbPosition = checked ? getThumbScrollRange() : 0;
665 public void setChecked(boolean checked) { argument
666 super.setChecked(checked);
810 // Drawable may be null when checked stat
[all...]
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorPickerSwatch.java30 * Creates a circular swatch of a specified color. Adds a checkmark if marked as checked.
49 public ColorPickerSwatch(Context context, int color, boolean checked, argument
59 setChecked(checked);
69 private void setChecked(boolean checked) { argument
70 if (checked) {
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DMenuView.java81 * checked, for that use {@link #setChecked}.
91 * @param checked Whether the checkbox should be checked
93 public void setChecked(boolean checked); argument
H A DActionMenuItem.java151 public MenuItem setChecked(boolean checked) { argument
152 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
H A DMenuItemImpl.java476 public MenuItem setChecked(boolean checked) { argument
482 setCheckedInt(checked);
488 void setCheckedInt(boolean checked) { argument
490 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
H A DListMenuItemView.java180 public void setChecked(boolean checked) { argument
195 compoundButton.setChecked(checked);
H A DMenuItemWrapperICS.java168 public MenuItem setChecked(boolean checked) { argument
169 mWrappedObject.setChecked(checked);
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
H A DToggleSlider.java38 public void onChanged(ToggleSlider v, boolean tracking, boolean checked, int value); argument
85 public void onCheckedChanged(CompoundButton toggle, boolean checked) { argument
89 if (checked) {
104 mListener.onChanged(this, mTracking, checked, mSlider.getProgress());
133 public void setChecked(boolean checked) { argument
134 mToggle.setChecked(checked);
/frameworks/base/core/java/android/preference/
H A DTwoStatePreference.java74 * Sets the checked state and saves it to the {@link SharedPreferences}.
76 * @param checked The checked state.
78 public void setChecked(boolean checked) { argument
80 final boolean changed = mChecked != checked;
82 mChecked = checked;
84 persistBoolean(checked);
93 * Returns the checked state.
95 * @return The checked state.
108 * Sets the summary to be shown when checked
273 boolean checked; field in class:TwoStatePreference.SavedState
[all...]
/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.java441 public MenuItem setChecked(boolean checked) { argument
447 setCheckedInt(checked);
453 void setCheckedInt(boolean checked) { argument
455 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
H A DListMenuItemView.java167 public void setChecked(boolean checked) { argument
182 compoundButton.setChecked(checked);
H A DActionMenuItemView.java131 public void setChecked(boolean checked) { argument
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DConfirmDialog.java93 public void onCheckedChanged(CompoundButton button, boolean checked) { argument
94 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/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/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompat.java68 public void setChecked(Object info, boolean checked); argument
296 public void setChecked(Object info, boolean checked) { argument
583 public void setChecked(Object info, boolean checked) { argument
584 AccessibilityNodeInfoCompatIcs.setChecked(info, checked);
1505 * Gets whether this node is checked.
1507 * @return True if the node is checked.
1514 * Sets whether this node is checked.
1521 * @param checked True if the node is checked.
1524 public void setChecked(boolean checked) { argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryFragment.java460 final SparseBooleanArray checked = mCurrentView.getCheckedItemPositions();
462 final int size = checked.size();
464 if (checked.valueAt(i)) {
465 final Cursor cursor = mAdapter.getItem(checked.keyAt(i));
499 ActionMode mode, int position, long id, boolean checked) {
500 if (checked) {
501 // Directories and footer items cannot be checked

Completed in 522 milliseconds

12