Lines Matching refs:position
129 * Find a position that can be selected (i.e., is not a separator).
131 * @param position The starting position to look at.
133 * @return The next selectable position starting at position and then searching either up or
136 public int lookForSelectablePosition(int position, boolean lookDown) {
145 position = Math.max(0, position);
146 while (position < count && !adapter.isEnabled(position)) {
147 position++;
150 position = Math.min(position, count - 1);
151 while (position >= 0 && !adapter.isEnabled(position)) {
152 position--;
156 if (position < 0 || position >= count) {
159 return position;
161 if (position < 0 || position >= count) {
164 return position;
168 protected void positionSelectorLikeTouchCompat(int position, View sel, float x, float y) {
169 positionSelectorLikeFocusCompat(position, sel);
172 if (selector != null && position != INVALID_POSITION) {
177 protected void positionSelectorLikeFocusCompat(int position, View sel) {
178 // If we're changing position, update the visibility since the selector
181 final boolean manageState = selector != null && position != INVALID_POSITION;
186 positionSelectorCompat(position, sel);
197 protected void positionSelectorCompat(int position, View sel) {
213 if (position != INVALID_POSITION) {
229 * @param startPosition The position of the first child to be shown.
230 * @param endPosition The (inclusive) position of the last child to be
238 * the first inclusive position at which partial
305 // maxHeight, then the i'th position did not fit completely.