Searched refs:position (Results 1 - 25 of 147) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListHeterogeneous.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
41 switch (position % 3) {
44 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
47 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
50 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
57 public View convertView(int position, View convertView, ViewGroup parent) { argument
58 switch (position
73 getItemViewType(int position) argument
[all...]
H A DListItemFocusableAboveUnfocusable.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
41 if (position == 0) {
43 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
45 return super.createView(position, parent, desiredHeight);
H A DListInterleaveFocusables.java43 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
44 if (mFocusablePositions.contains(position)) {
46 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
48 return super.createView(position, parent, desiredHeight);
53 public int getItemViewType(int position) { argument
54 return mFocusablePositions.contains(position) ? 0 : 1;
H A DListOfTouchables.java41 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
43 b.setText("Position " + position);
44 b.setId(position);
H A DListThrasher.java79 public Object getItem(int position) { argument
80 return position;
83 public long getItemId(int position) { argument
84 return position;
87 public View getView(int position, View convertView, ViewGroup parent) { argument
95 view.setText(mTitles[position] + " " + mVersion[position]);
101 int position = mRandomizer.nextInt(getCount());
102 mVersion[position]++;
124 public void onItemSelected(AdapterView parent, View v, int position, lon argument
[all...]
H A DListItemFocusablesFarApart.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
42 position, parent.getContext(), desiredHeight);
H A DListTakeFocusFromSide.java55 public Object getItem(int position) { argument
56 return position;
59 public long getItemId(int position) { argument
60 return position;
63 public View getView(int position, View convertView, ViewGroup parent) { argument
71 view.setText(mTitles[position]);
H A DListButtonsDiagonalAcrossItems.java50 protected View createView(int position, ViewGroup parent, argument
52 final Slot slot = position == 0 ? Slot.Left :
53 (position == 1 ? Slot.Middle : Slot.Right);
/frameworks/base/core/java/android/widget/
H A DListAdapter.java37 * Returns true if the item at the specified position is not a separator.
40 * The result is unspecified if position is invalid. An {@link ArrayIndexOutOfBoundsException}
43 * @param position Index of the item
46 boolean isEnabled(int position); argument
H A DSectionIndexer.java39 * @return the starting position of that section. If the section is out of bounds, the
40 * position must be clipped to fall within the size of the list.
45 * This is a reverse mapping to fetch the section index for a given position
47 * @param position the position for which to return the section
48 * @return the section index. If the position is out of bounds, the section index
51 int getSectionForPosition(int position); argument
H A DAdapter.java58 * Get the data item associated with the specified position in the data set.
60 * @param position Position of the item whose data we want within the adapter's
62 * @return The data at the specified position.
64 Object getItem(int position); argument
67 * Get the row id associated with the specified position in the list.
69 * @param position The position of the item within the adapter's data set whose row id we want.
70 * @return The id of the item at the specified position.
72 long getItemId(int position); argument
83 * Get a View that displays the data at the specified position i
97 getView(int position, View convertView, ViewGroup parent) argument
121 getItemViewType(int position) argument
[all...]
H A DBaseAdapter.java61 public boolean isEnabled(int position) { argument
65 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
66 return getView(position, convertView, parent);
69 public int getItemViewType(int position) { argument
H A DSpinnerAdapter.java31 * the data at the specified position in the data set.</p>
33 * @param position index of the item whose view we want.
40 * specified position.
42 public View getDropDownView(int position, View convertView, ViewGroup parent); argument
H A DAbsSpinner.java95 * It also provides methods to transform spinner items based on their position
119 int position = mItemCount > 0 ? 0 : INVALID_POSITION;
121 setSelectedPositionInt(position);
122 setNextSelectedPositionInt(position);
252 final int position = mFirstPosition;
257 int index = position + i;
265 public void setSelection(int position, boolean animate) { argument
266 // Animate only if requested position is already on screen somewhere
267 boolean shouldAnimate = animate && mFirstPosition <= position &&
268 position <
273 setSelection(int position) argument
287 setSelectionInt(int position, boolean animate) argument
361 int position; field in class:AbsSpinner.SavedState
438 put(int position, View v) argument
442 get(int position) argument
[all...]
H A DHeaderViewListAdapter.java146 public boolean isEnabled(int position) { argument
149 if (position < numHeaders) {
150 return mHeaderViewInfos.get(position).isSelectable;
154 final int adjPosition = position - numHeaders;
167 public Object getItem(int position) { argument
170 if (position < numHeaders) {
171 return mHeaderViewInfos.get(position).data;
175 final int adjPosition = position - numHeaders;
188 public long getItemId(int position) { argument
190 if (mAdapter != null && position >
207 getView(int position, View convertView, ViewGroup parent) argument
228 getItemViewType(int position) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceGroupAdapter.java59 * Maps a position into this adapter -> {@link Preference}. These
200 public Preference getItem(int position) { argument
201 if (position < 0 || position >= getCount()) return null;
202 return mPreferenceList.get(position);
205 public long getItemId(int position) { argument
206 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID;
207 return this.getItem(position).getId();
210 public View getView(int position, Vie argument
225 isEnabled(int position) argument
252 getItemViewType(int position) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java87 * Return whether the item at position is selectable (i.e is a separator).
90 private boolean isItemAtPositionSelectable(int position) { argument
91 return !mUnselectableItems.contains(position);
135 * Set the position that starts selected.
137 * @param startingSelectionPosition The selected position within the adapter's data set.
158 * @param position The position in the list.
162 int position, double itemScreenSizeFactor) {
163 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
168 * Set a position a
161 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument
172 setPositionUnselectable(int position) argument
287 positionClicked(int position) argument
296 positionLongClicked(int position) argument
490 getValueAtPosition(int position) argument
500 getHeightForPosition(int position) argument
540 createView(int position, ViewGroup parent, int desiredHeight) argument
548 convertView(int position, View convertView, ViewGroup parent) argument
588 getItemViewType(int position) argument
613 getItem(int position) argument
617 getItemId(int position) argument
627 isEnabled(int position) argument
631 getView(int position, View convertView, ViewGroup parent) argument
652 getItemViewType(int position) argument
[all...]
H A DListUtil.java43 * Set the selected position of the list view.
44 * @param pos The desired position.
70 * Arrow (up or down as appropriate) to the desired position in the list.
71 * @param desiredPos The desired position
72 * @throws IllegalStateException if the position can't be reached within 20 presses.
82 private void arrowDownToSelectedPosition(int position) { argument
84 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) {
87 if (position != mListView.getSelectedItemPosition()) {
93 private void arrowUpToSelectedPosition(int position) { argument
95 while(mListView.getSelectedItemPosition() > position
[all...]
H A DGridScenario.java112 * Set the position that starts selected.
114 * @param startingSelectionPosition The selected position within the adapter's data set.
135 * @param position The position in the grid.
139 int position, double itemScreenSizeFactor) {
140 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
266 public void onItemSelected(AdapterView parent, View v, int position, long id) {
267 positionSelected(position);
315 public final String getValueAtPosition(int position) { argument
316 return "postion " + position;
138 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument
328 createView(int position, ViewGroup parent, int desiredHeight) argument
348 getItem(int position) argument
352 getItemId(int position) argument
356 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridThrasher.java81 public Object getItem(int position) { argument
82 return position;
85 public long getItemId(int position) { argument
86 return position;
89 public View getView(int position, View convertView, ViewGroup parent) { argument
97 view.setText(mTitles[position] + " " + mVersion[position]);
103 int position = mRandomizer.nextInt(getCount());
104 mVersion[position]++;
128 public void onItemSelected(AdapterView parent, View v, int position, lon argument
[all...]
H A DGridDelete.java95 public Object getItem(int position) { argument
96 return mData.get(position);
99 public long getItemId(int position) { argument
100 return mData.get(position);
103 public View getView(int position, View convertView, ViewGroup parent) { argument
105 return createView(mData.get(position), parent, desiredHeight);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java77 public boolean isEnabled(int position) { argument
85 public Object getItem(int position) { argument
86 return mItems.get(position);
89 public long getItemId(int position) { argument
90 return position;
93 public int getItemViewType(int position) { argument
94 return mItems.get(position).getType();
97 public View getView(int position, View convertView, ViewGroup parent) { argument
99 AdapterItem item = mItems.get(position);
109 public View getDropDownView(int position, Vie argument
[all...]
/frameworks/base/libs/rs/java/Fountain/res/raw/
H A Dfountain.c25 np->position.x = x;
26 np->position.y = y;
39 float posy = p->position.y + dy;
44 p->position.x += p->delta.x;
45 p->position.y = posy;
/frameworks/base/tests/CoreTests/android/core/
H A DNIOTest.java37 assertTrue(0 <= b.position());
38 assertTrue(b.position() <= b.limit());
91 b.position(0);
101 b.position(0);
111 b.position(b.limit() - 2);
119 b.position(0);
130 b.position(0);
145 b.position(0);
166 b.position(0);
187 b.position(
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewSimple.java99 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
100 Log.d(LOG_TAG, "onItemClick() position " + position);
102 mItemClickPosition = position;
108 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
109 Log.d(LOG_TAG, "onItemSelected() position " + position);
111 mItemSelectedPosition = position;

Completed in 286 milliseconds

123456