Searched defs:checked (Results 1 - 25 of 25) 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 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 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;
137 * Register a callback to be invoked when the checked state of this button
140 * @param listener the callback to call on checked stat
287 boolean checked; field in class:CompoundButton.SavedState
[all...]
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.
687 public void setChecked(boolean checked) { argument
688 super.setChecked(checked);
689 mThumbPosition = checked ? getThumbScrollRange() : 0;
807 // Drawable may be null when checked state is set from XML, from super constructor
H A DAbsListView.java238 * Running count of how many items are currently checked
243 * Running state of which positions are currently checked
248 * Running state of which IDs are currently checked.
249 * If there is a value for a given key, the checked state for that ID is true
491 * find a checked item with a stable ID that moved position across
874 * Returns the checked state of the specified position. The result is only
878 * @param position The item whose checked state to return
879 * @return The item's checked state or <code>false</code> if choice mode
893 * Returns the currently checked item. The result is only valid if the choice
896 * @return The position of the currently checked ite
6082 onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) argument
6124 onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DCheckableLinearLayout.java52 public void setChecked(boolean checked) { argument
53 mCheckBox.setChecked(checked);
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DConfirmDialog.java92 public void onCheckedChanged(CompoundButton button, boolean checked) { argument
93 mButton.setEnabled(checked);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
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;
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.java51 public void onCheckedChanged(CompoundButton view, boolean checked) { argument
52 if (checked != mAutoRotation) {
53 mAutoRotation = checked;
54 RotationPolicy.setRotationLock(mContext, !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);
/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 DActionMenuItemView.java115 public void setChecked(boolean checked) { argument
H A DIconMenuItemView.java294 public void setChecked(boolean checked) { argument
H A DListMenuItemView.java166 public void setChecked(boolean checked) { argument
181 compoundButton.setChecked(checked);
H A DActionMenuItem.java148 public MenuItem setChecked(boolean checked) { argument
149 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
H A DMenuItemImpl.java438 public MenuItem setChecked(boolean checked) { argument
444 setCheckedInt(checked);
450 void setCheckedInt(boolean checked) { argument
452 mFlags = (mFlags & ~CHECKED) | (checked ? CHECKED : 0);
/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/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/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/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiSelector.java26 * selected, enabled, checked etc. Additionally UiSelector allows targeting of UI
145 public UiSelector checked(boolean val) { method in class:UiSelector
/frameworks/support/v4/java/android/support/v4/view/accessibility/
H A DAccessibilityNodeInfoCompat.java65 public void setChecked(Object info, boolean checked); argument
289 public void setChecked(Object info, boolean checked) { argument
556 public void setChecked(Object info, boolean checked) { argument
557 AccessibilityNodeInfoCompatIcs.setChecked(info, checked);
1355 * Gets whether this node is checked.
1357 * @return True if the node is checked.
1364 * Sets whether this node is checked.
1371 * @param checked True if the node is checked.
1374 public void setChecked(boolean checked) { argument
[all...]
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityNodeInfo.java865 * Gets whether this node is checked.
867 * @return True if the node is checked.
874 * Sets whether this node is checked.
881 * @param checked True if the node is checked.
885 public void setChecked(boolean checked) { argument
886 setBooleanProperty(PROPERTY_CHECKED, checked);
1747 builder.append("; checked: ").append(isChecked());

Completed in 357 milliseconds