Searched refs:position (Results 26 - 50 of 147) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfInternalSelectionViews.java73 * @param position The position
74 * @return The label (closest thing to a value) for the item at position
76 public String getLabelForPosition(int position) { argument
77 return "position " + position;
152 public Object getItem(int position) { argument
153 return getLabelForPosition(position);
156 public long getItemId(int position) { argument
157 return position;
160 getView(int position, View convertView, ViewGroup parent) argument
[all...]
H A DListWithFooterViewAndNewLabels.java85 public Object getItem(int position) { argument
86 return mLabels.get(position);
89 public long getItemId(int position) { argument
90 return position;
93 public View getView(int position, View convertView, ViewGroup parent) { argument
94 String label = mLabels.get(position);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListItemFocusablesClose.java50 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
52 position, parent.getContext(), desiredHeight);
H A DListItemsExpandOnSelection.java41 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
45 result.setText(getValueAtPosition(position));
55 public View convertView(int position, View convertView, ViewGroup parent) { argument
56 ((ExpandWhenSelectedView)convertView).setText(getValueAtPosition(position));
H A DListSimple.java45 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
46 View view = super.createView(position, parent, desiredHeight);
H A DListWithEmptyView.java42 public long getItemId(int position) { argument
43 if (position < 0 || position >= this.getCount()) {
46 return super.getItemId(position);
H A DListHorizontalFocusWithinItemWins.java51 protected View createView(int position, ViewGroup parent, argument
54 if (position == 0) {
57 } else if (position == 1) {
61 throw new IllegalArgumentException("expecting position 0 or 1");
H A DListItemISVAndButton.java42 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
48 final InternalSelectionView isv = new InternalSelectionView(context, 8, "ISV postion " + position);
61 topButton.setText("button " + position + ")");
H A DAdjacentListsWithAdjacentISVsInside.java113 public Object getItem(int position) { argument
114 return position;
117 public long getItemId(int position) { argument
118 return position;
121 public View getView(int position, View convertView, ViewGroup parent) { argument
/frameworks/base/test-runner/src/android/test/
H A DTestBrowserController.java29 Intent getIntentForTestAt(int position); argument
H A DTestRunnerView.java28 void setItemColorAt(int position, int color); argument
H A DTestBrowserControllerImpl.java47 public Intent getIntentForTestAt(int position) { argument
58 if (shouldAllTestsBeRun(position)) {
62 Test test = TestCaseUtil.getTestAtIndex(mTestSuite, position - 1);
88 private boolean shouldAllTestsBeRun(int position) { argument
89 return position == RUN_ALL_INDEX;
/frameworks/base/core/java/android/app/
H A DListActivity.java199 * getListView().getItemAtPosition(position) if they need to access the
204 * @param position The position of the view in the list
207 protected void onListItemClick(ListView l, View v, int position, long id) { argument
271 * position with the adapter's data
273 * @param position
275 public void setSelection(int position) { argument
276 mList.setSelection(position);
280 * Get the position of the currently selected list item.
317 public void onItemClick(AdapterView<?> parent, View v, int position, lon
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DListItemFactory.java37 * @param position The position within the list.
42 public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { argument
59 topButton.setText("top (position " + position + ")");
71 bottomButton.setText("bottom (position " + position + ")");
149 * @param position The position within the list.
155 public static View button(int position, Contex argument
176 convertButton(View convertView, String text, int position) argument
195 text(int position, Context context, String text, int desiredHeight) argument
216 convertText(View convertView, String text, int position) argument
236 doubleText(int position, Context context, String text, int desiredHeight) argument
279 convertDoubleText(View convertView, String text, int position) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DAdapterView.java57 * The position of the first child displayed
89 * Indicates whether to sync based on the selection or position. Possible
141 * The position within the adapter's data set of the item to select
153 * The position within the adapter's data set of the currently selected item.
180 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the
191 * The last selected position we used when notifying
196 * The id of the last selected position we used when notifying
242 * Implementers can call getItemAtPosition(position) if they need
248 * @param position The position o
251 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
281 performItemClick(View view, int position, long id) argument
310 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument
352 onItemSelected(AdapterView<?> parent, View view, int position, long id) argument
387 AdapterContextMenuInfo(View targetView, int position, long id) argument
403 public int position; field in class:AdapterView.AdapterContextMenuInfo
627 setSelection(int position) argument
738 getItemAtPosition(int position) argument
743 getItemIdAtPosition(int position) argument
1078 lookForSelectablePosition(int position, boolean lookDown) argument
1086 setSelectedPositionInt(int position) argument
1096 setNextSelectedPositionInt(int position) argument
[all...]
H A DCursorAdapter.java141 public Object getItem(int position) { argument
143 mCursor.moveToPosition(position);
153 public long getItemId(int position) { argument
155 if (mCursor.moveToPosition(position)) {
173 public View getView(int position, View convertView, ViewGroup parent) { argument
177 if (!mCursor.moveToPosition(position)) {
178 throw new IllegalStateException("couldn't move cursor to position " + position);
191 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
193 mCursor.moveToPosition(position);
[all...]
H A DSpinner.java122 * @param delta Change in the selected position. +1 moves selection is moving to the right,
174 * @param position Position in the spinner for the view to obtain
177 private View makeAndAddView(int position) { argument
182 child = mRecycler.get(position);
192 child = mAdapter.getView(position, null, this);
203 * Helper for makeAndAddView to set the position of a view
206 * @param child The view to position
319 public Object getItem(int position) { argument
320 return mAdapter == null ? null : mAdapter.getItem(position);
323 public long getItemId(int position) { argument
327 getView(int position, View convertView, ViewGroup parent) argument
331 getDropDownView(int position, View convertView, ViewGroup parent) argument
369 isEnabled(int position) argument
378 getItemViewType(int position) argument
[all...]
H A DExpandableListView.java54 * {@link SimpleCursorTreeAdapter}) contain the preferred position information
59 * {@link ExpandableListContextMenuInfo#packedPosition} being a packed position
82 * The packed position represents a group.
87 * The packed position represents a child.
92 * The packed position represents a neither/null/no preference.
97 * The value for a packed position that represents neither/null/no
99 * (first bit 0) should not have a child position filled.
103 /** The mask (in packed position representation) for the child */
106 /** The mask (in packed position representation) for the group */
109 /** The mask (in packed position representatio
490 isHeaderOrFooterPosition(int position) argument
518 performItemClick(View v, int position, long id) argument
538 handleItemClick(View v, int position, long id) argument
989 getChildOrGroupId(ExpandableListPosition position) argument
[all...]
H A DSimpleAdapter.java99 public Object getItem(int position) { argument
100 return mData.get(position);
106 public long getItemId(int position) { argument
107 return position;
113 public View getView(int position, View convertView, ViewGroup parent) { argument
114 return createViewFromResource(position, convertView, parent, mResource);
117 private View createViewFromResource(int position, View convertView, argument
126 bindView(position, v);
142 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
143 return createViewFromResource(position, convertVie
146 bindView(int position, View view) argument
[all...]
H A DListView.java53 * position - index of the items in the cursor
73 * Used to indicate a no preference for a position type.
462 int position;
464 position = lookForSelectablePosition(mItemCount - 1, false);
466 position = lookForSelectablePosition(0, true);
468 setSelectedPositionInt(position);
469 setNextSelectedPositionInt(position);
654 * @param pos The first position to put in the list
685 * @param pos The first position to put in the list
744 int position
773 fillAboveAndBelow(View sel, int position) argument
1057 setup(int position, int top) argument
1134 measureScrapChild(View child, int position, int widthMeasureSpec) argument
1288 fillSpecific(int position, int top) argument
1722 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected) argument
1767 setupChild(View child, int position, int y, boolean flowDown, int childrenLeft, boolean selected, boolean recycled) argument
1857 setSelection(int position) argument
1870 setSelectionFromTop(int position, int y) argument
1903 setSelectionInt(int position) argument
1933 lookForSelectablePosition(int position, boolean lookDown) argument
2903 addViewAbove(View theView, int position) argument
2912 addViewBelow(View theView, int position) argument
3480 performItemClick(View view, int position, long id) argument
3526 setItemChecked(int position, boolean value) argument
3579 isItemChecked(int position) argument
[all...]
H A DArrayAdapter.java297 public T getItem(int position) { argument
298 return mObjects.get(position);
302 * Returns the position of the specified item in the array.
304 * @param item The item to retrieve the position of.
306 * @return The position of the specified item.
315 public long getItemId(int position) { argument
316 return position;
322 public View getView(int position, View convertView, ViewGroup parent) { argument
323 return createViewFromResource(position, convertView, parent, mResource);
326 private View createViewFromResource(int position, Vie argument
375 getDropDownView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DCharacterPickerDialog.java88 public void onItemClick(AdapterView parent, View view, int position, long id) { argument
89 String result = String.valueOf(mOptions.charAt(position));
122 public View getView(int position, View convertView, ViewGroup parent) { argument
125 b.setText(String.valueOf(mOptions.charAt(position)));
134 public final Object getItem(int position) { argument
135 return String.valueOf(mOptions.charAt(position));
138 public final long getItemId(int position) { argument
139 return position;
/frameworks/base/core/java/android/webkit/
H A DPluginList.java102 public synchronized void pluginClicked(Context context, int position) { argument
104 Plugin plugin = mPlugins.get(position);
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridSimple.java49 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
50 View view = super.createView(position, parent, desiredHeight);
/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuScenario.java73 // Add a default item for this position if the subclasses
103 * @param itemPosition The position of the item to add (only for your
125 final int position = findItemPosition(item);
126 if (position < 0) return false;
128 mWasItemClicked[position] = true;
133 public boolean wasItemClicked(int position) { argument
134 return mWasItemClicked[position];
138 * Finds the position for a given Item.
141 * @return The position, or -1 if not found.
175 * Gets the menu item view for a given position
181 getItemView(int menuType, int position) argument
[all...]

Completed in 2574 milliseconds

123456