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

12

/cts/tests/app/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/tests/widget/src/android/widget/cts/
H A DGalleryCtsActivity.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]);
H A DAbsSpinnerTest.java120 * 2. the adapter provides methods to transform spinner items based on their position
177 * 1. Should return the position of the item which contains the specified point.
276 public View getDropDownView(int position, View convertView, argument
289 public Object getItem(int position) { argument
293 public long getItemId(int position) { argument
294 return position;
297 public int getItemViewType(int position) { argument
301 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.java389 public boolean isEnabled(int position) { argument
403 public Object getItem(int position) { argument
407 public long getItemId(int position) { argument
408 return position;
414 public View getView(int position, View convertView, ViewGroup parent) { argument
418 public int getItemViewType(int position) { argument
447 public boolean isEnabled(int position) { argument
465 public Object getItem(int position) { argument
472 public long getItemId(int position) { argument
473 return position;
480 getView(int position, View convertView, ViewGroup parent) argument
484 getItemViewType(int position) argument
[all...]
/cts/tests/tests/widget/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/
H A DAbstractTestListActivity.java39 private Intent getIntent(int position) { argument
40 TestListItem item = mAdapter.getItem(position);
72 protected void onListItemClick(ListView listView, View view, int position, long id) { argument
73 super.onListItemClick(listView, view, position, id);
74 Intent intent = getIntent(position);
H A DTestListAdapter.java318 public boolean isEnabled(int position) { argument
319 return getItem(position).isTest();
323 public int getItemViewType(int position) { argument
324 return getItem(position).isTest() ? TEST_VIEW_TYPE : CATEGORY_HEADER_VIEW_TYPE;
338 public TestListItem getItem(int position) { argument
339 return mRows.get(position);
343 public long getItemId(int position) { argument
344 return position;
347 public int getTestResult(int position) { argument
348 TestListItem item = getItem(position);
354 getTestDetails(int position) argument
361 getReportLog(int position) argument
379 getView(int position, View convertView, ViewGroup parent) argument
424 getLayout(int position) argument
[all...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
H A DTestAdapter.java63 public Object getItem(int position) { argument
64 return tests.get(position);
67 public void setTestPass(int position) { argument
68 tests.get(position).mPassed = true;
72 public long getItemId(int position) { argument
73 return position;
77 public View getView(int position, View convertView, ViewGroup parent) { argument
86 Test test = tests.get(position);
H A DBleScannerHardwareScanFilterActivity.java139 public Object getItem(int position) { argument
140 return mData.get(mKeys.get(position));
H A DDevicePickerActivity.java153 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
155 Device device = (Device) parent.getItemAtPosition(position);
164 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
/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/apps/CtsVerifier/src/com/android/cts/verifier/widget/
H A DWidgetCtsService.java60 public RemoteViews getViewAt(int position) { argument
62 String text = "List Item " + (position + 1);
78 public long getItemId(int position) { argument
79 return position;
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/
H A DTestListFragment.java78 public void onListItemClick(ListView listView, View view, int position, long id) { argument
79 super.onListItemClick(listView, view, position, id);
80 mCallbacks.onItemSelected(TestItems.getTest(position).mId);
96 public void setActivatedPosition(int position) { argument
97 if (position == ListView.INVALID_POSITION) {
100 getListView().setItemChecked(position, true);
103 mActivatedPosition = position;
H A DTest4DetailFragment.java89 public void onPageSelected(int position) {
90 actionBar.setSelectedNavigationItem(position);
143 public CharSequence getPageTitle(int position) { argument
144 switch (position) {
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
H A DSimpleReaderActivity.java166 public void onItemSelected(AdapterView<?> parent, View view, int position, argument
168 if (position == 0) {
/cts/tests/tests/view/src/android/view/animation/cts/
H A DGridLayoutAnimCtsActivity.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/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/cts/deviceTests/browserbench/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/drm/lib/
H A DTestPlugin.cpp119 int playbackStatus, int64_t position) {
118 onSetPlaybackStatus(int uniqueId, DecryptHandle* decryptHandle, int playbackStatus, int64_t position) argument
/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);

Completed in 2323 milliseconds

12