Searched defs:position (Results 1 - 25 of 37) sorted by relevance

12

/cts/tests/tests/holo/src/android/holo/cts/
H A DLayoutPickerActivity.java45 protected void onListItemClick(ListView l, View v, int position, long id) { argument
48 intent.putExtra(ThemeTestActivity.EXTRA_LAYOUT_INDEX, position);
H A DThemePickerActivity.java42 protected void onListItemClick(ListView l, View v, int position, long id) { argument
44 intent.putExtra(LayoutPickerActivity.EXTRA_THEME_INDEX, position);
H A DThemeAdapter.java174 public ThemeInfo getItem(int position) { argument
175 return mThemeInfos.get(position);
179 public long getItemId(int position) { argument
180 return getItem(position).mTheme;
184 public View getView(int position, View convertView, ViewGroup parent) { argument
192 ThemeInfo themeInfo = getItem(position);
H A DHoloTestUtilitiesActivity.java84 protected void onListItemClick(ListView listView, View view, int position, long id) { argument
85 Task task = getListAdapter().getItem(position);
H A DLayoutAdapter.java335 public LayoutInfo getItem(int position) { argument
336 return mLayoutInfos.get(position);
340 public long getItemId(int position) { argument
341 return getItem(position).mLayout;
345 public View getView(int position, View convertView, ViewGroup parent) { argument
353 LayoutInfo layoutInfo = getItem(position);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
H A DAbstractTestListActivity.java38 private Intent getIntent(int position) { argument
39 TestListItem item = mAdapter.getItem(position);
65 protected void onListItemClick(ListView listView, View view, int position, long id) { argument
66 super.onListItemClick(listView, view, position, id);
67 Intent intent = getIntent(position);
H A DTestListAdapter.java258 public boolean isEnabled(int position) { argument
259 return getItem(position).isTest();
263 public int getItemViewType(int position) { argument
264 return getItem(position).isTest() ? TEST_VIEW_TYPE : CATEGORY_HEADER_VIEW_TYPE;
278 public TestListItem getItem(int position) { argument
279 return mRows.get(position);
283 public long getItemId(int position) { argument
284 return position;
287 public int getTestResult(int position) { argument
288 TestListItem item = getItem(position);
294 getTestDetails(int position) argument
312 getView(int position, View convertView, ViewGroup parent) argument
357 getLayout(int position) argument
[all...]
/cts/tests/src/android/app/cts/
H A DLauncherActivityStub.java45 protected Intent intentForPosition(int position) { argument
46 return super.intentForPosition(position);
60 public void onListItemClick(ListView l, View v, int position, long id) { argument
61 super.onListItemClick(l, v, position, id);
/cts/tests/src/android/widget/cts/
H A DGalleryStubActivity.java53 public Object getItem(int position) { argument
54 return position;
57 public long getItemId(int position) { argument
58 return position;
61 public View getView(int position, View convertView, ViewGroup parent) { argument
64 i.setImageResource(mImageIds[position]);
/cts/tests/src/android/widget/cts/util/
H A DListUtil.java41 * Set the selected position of the list view.
42 * @param pos The desired position.
68 * Arrow (up or down as appropriate) to the desired position in the list.
69 * @param desiredPos The desired position
70 * @throws IllegalStateException if the position can't be reached within 20 presses.
80 private void arrowDownToSelectedPosition(int position) { argument
82 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) {
85 if (position != mListView.getSelectedItemPosition()) {
91 private void arrowUpToSelectedPosition(int position) { argument
93 while(mListView.getSelectedItemPosition() > position
[all...]
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 + ")");
148 * @param position The position within the list.
154 public static View button(int position, Contex argument
175 convertButton(View convertView, String text, int position) argument
194 text(int position, Context context, String text, int desiredHeight) argument
215 convertText(View convertView, String text, int position) argument
235 doubleText(int position, Context context, String text, int desiredHeight) argument
277 convertDoubleText(View convertView, String text, int position) argument
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/
H A DP2pTestListActivity.java128 protected void onListItemClick(ListView listView, View view, int position, long id) { argument
133 super.onListItemClick(listView, view, position, id);
/cts/tests/src/android/view/animation/cts/
H A DGridLayoutAnimStubActivity.java63 public boolean isEnabled(int position) { argument
77 public Object getItem(int position) { argument
78 return position;
81 public long getItemId(int position) { argument
82 return position;
89 public View getView(int position, View convertView, ViewGroup parent) { argument
103 public int getItemViewType(int position) { argument
/cts/tests/tests/widget/src/android/widget/cts/
H A DAbsSpinnerTest.java120 * 2. the adapter provides methods to transform spinner items based on their position
176 * 1. Should return the position of the item which contains the specified point.
273 public View getDropDownView(int position, View convertView, argument
286 public Object getItem(int position) { argument
290 public long getItemId(int position) { argument
291 return position;
294 public int getItemViewType(int position) { argument
298 public View getView(int position, View convertView, ViewGroup parent) { argument
H A DBaseAdapterTest.java113 public Object getItem(int position) { argument
117 public long getItemId(int position) { argument
121 public View getView(int position, View convertView, ViewGroup parent) { argument
H A DAdapterViewTest.java292 * Get the position within the adapter's data set for the view, where view is a an adapter item
294 * when scroll down the list, the item's position may be 5 or 6 be on the screen
297 * this means the position of item is same as position of the children in parent layout
354 * set and get the selected id, position and item.
472 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
487 public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) { argument
504 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
H A DCheckedTextViewTest.java344 public Object getItem(int position) { argument
345 return position;
348 public long getItemId(int position) { argument
349 return position;
352 public View getView(int position, View convertView, ViewGroup parent) { argument
353 return mCheckedTextViews[position];
H A DHeaderViewListAdapterTest.java381 public boolean isEnabled(int position) { argument
395 public Object getItem(int position) { argument
399 public long getItemId(int position) { argument
400 return position;
406 public View getView(int position, View convertView, ViewGroup parent) { argument
410 public int getItemViewType(int position) { argument
439 public boolean isEnabled(int position) { argument
457 public Object getItem(int position) { argument
464 public long getItemId(int position) { argument
465 return position;
472 getView(int position, View convertView, ViewGroup parent) argument
476 getItemViewType(int position) argument
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
H A DDevicePickerActivity.java150 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
152 Device device = (Device) parent.getItemAtPosition(position);
161 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
H A DSuidFilesActivity.java119 protected void onListItemClick(ListView listView, View view, int position, long id) { argument
120 super.onListItemClick(listView, view, position, id);
121 File file = mAdapter.getItem(position);
159 public View getView(int position, View convertView, ViewGroup parent) { argument
160 TextView view = (TextView) super.getView(position, convertView, parent);
161 File file = getItem(position);
/cts/suite/pts/hostTests/browser/browserlauncher/assets/octane/
H A Draytrace.js198 position: null,
203 this.position = pos;
209 return 'Light [' + this.position.x + ',' + this.position.y + ',' + this.position.z + ']';
283 position : null,
286 this.position = pos;
291 return 'Ray [' + this.position + ',' + this.direction + ']';
422 this.position = pos;
430 var dst = Flog.RayTracer.Vector.prototype.subtract(ray.position, thi
[all...]
/cts/tests/tests/text/src/android/text/method/cts/
H A DLinkMovementMethodTest.java491 private void assertSelection(Spannable spannable, int position) { argument
492 assertSelection(spannable, position, position);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
H A DPolicySerializationTestActivity.java197 protected void onListItemClick(ListView l, View v, int position, long id) { argument
198 super.onListItemClick(l, v, position, id);
199 PolicyItem<?> item = mAdapter.getItem(position);
217 public View getView(int position, View convertView, ViewGroup parent) { argument
218 TextView view = (TextView) super.getView(position, convertView, parent);
220 PolicyItem<?> item = getItem(position);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
H A DBackupTestActivity.java263 View getView(LayoutInflater inflater, int position, View convertView, ViewGroup parent); argument
280 public View getView(LayoutInflater inflater, int position, View convertView, argument
311 public View getView(LayoutInflater inflater, int position, View convertView, argument
339 public View getView(LayoutInflater inflater, int position, View convertView, argument
375 public BackupItem getItem(int position) { argument
376 return mItems.get(position);
380 public long getItemId(int position) { argument
381 return position;
385 public boolean isEnabled(int position) { argument
395 public int getItemViewType(int position) { argument
400 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/analyzer/
H A DCameraAnalyzerActivity.java399 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
400 Log.v(TAG, String.format("Item %d selected!", position));
404 captureTask.execute(position);
457 public View getView(int position, View convertView, ViewGroup parent) { argument
464 nameField.setText(mCurrentTest.getTestName(position));
465 int result = mCurrentTest.getResult(position);

Completed in 255 milliseconds

12