Home
last modified time | relevance | path

Searched refs:position (Results 1 – 25 of 108) sorted by relevance

12345

/cts/tests/tests/widget/src/android/widget/cts/util/
DListScenario.java90 private boolean isItemAtPositionSelectable(int position) { in isItemAtPositionSelectable() argument
91 return !mUnselectableItems.contains(position); in isItemAtPositionSelectable()
162 int position, double itemScreenSizeFactor) { in setPositionScreenSizeFactorOverride() argument
163 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor); in setPositionScreenSizeFactorOverride()
172 public Params setPositionUnselectable(int position) { in setPositionUnselectable() argument
173 mUnselectableItems.add(position); in setPositionUnselectable()
287 protected void positionClicked(int position) { in positionClicked() argument
288 setClickedPosition(position); in positionClicked()
296 protected void positionLongClicked(int position) { in positionLongClicked() argument
297 setLongClickedPosition(position); in positionLongClicked()
[all …]
DListUtil.java80 private void arrowDownToSelectedPosition(int position) { in arrowDownToSelectedPosition() argument
82 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { in arrowDownToSelectedPosition()
85 if (position != mListView.getSelectedItemPosition()) { in arrowDownToSelectedPosition()
91 private void arrowUpToSelectedPosition(int position) { in arrowUpToSelectedPosition() argument
93 while(mListView.getSelectedItemPosition() > position && --maxUps > 0) { in arrowUpToSelectedPosition()
96 if (position != mListView.getSelectedItemPosition()) { in arrowUpToSelectedPosition()
DListItemFactory.java42 … public static View twoButtonsSeparatedByFiller(int position, Context context, int desiredHeight) { in twoButtonsSeparatedByFiller() argument
59 topButton.setText("top (position " + position + ")"); in twoButtonsSeparatedByFiller()
71 bottomButton.setText("bottom (position " + position + ")"); in twoButtonsSeparatedByFiller()
154 public static View button(int position, Context context, String text, int desiredHeight) { in button() argument
162 result.setId(position); in button()
175 public static View convertButton(View convertView, String text, int position) { in convertButton() argument
178 convertView.setId(position); in convertButton()
194 public static View text(int position, Context context, String text, int desiredHeight) { in text() argument
202 result.setId(position); in text()
215 public static View convertText(View convertView, String text, int position) { in convertText() argument
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DDummyAdapter.java39 public Object getItem(int position) { in getItem() argument
44 public long getItemId(int position) { in getItemId() argument
54 public int getItemViewType(int position) { in getItemViewType() argument
55 return position < mSpecialViews.length ? position : mSpecialViews.length; in getItemViewType()
59 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
60 if (position < mSpecialViews.length) { in getView()
61 return mSpecialViews[position]; in getView()
DGalleryCtsActivity.java53 public Object getItem(int position) { in getItem() argument
54 return position; in getItem()
57 public long getItemId(int position) { in getItemId() argument
58 return position; in getItemId()
61 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
64 i.setImageResource(mImageIds[position]); in getView()
DAdapterView_AdapterContextMenuInfoTest.java28 int position = 1; in testConstructor() local
30 menuInfo = new AdapterView.AdapterContextMenuInfo(testView, position, id); in testConstructor()
32 assertEquals(position, menuInfo.position); in testConstructor()
DEditTextTest.java96 int position = 4; in testSetSelectionIndex() local
97 editText.setSelection(position); in testSetSelectionIndex()
98 assertEquals(position, editText.getSelectionStart()); in testSetSelectionIndex()
99 assertEquals(position, editText.getSelectionEnd()); in testSetSelectionIndex()
101 position = 0; in testSetSelectionIndex()
102 editText.setSelection(position); in testSetSelectionIndex()
103 assertEquals(position, editText.getSelectionStart()); in testSetSelectionIndex()
104 assertEquals(position, editText.getSelectionEnd()); in testSetSelectionIndex()
DGridViewTest.java726 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { in onItemClick() argument
746 public boolean isEnabled(int position) { in isEnabled() argument
760 public Object getItem(int position) { in getItem() argument
761 return position; in getItem()
764 public long getItemId(int position) { in getItemId() argument
765 return position; in getItemId()
772 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
787 public int getItemViewType(int position) { in getItemViewType() argument
824 public Object getItem(int position) { in getItem() argument
825 return position; in getItem()
[all …]
DBaseAdapterTest.java112 public Object getItem(int position) { in getItem() argument
116 public long getItemId(int position) { in getItemId() argument
120 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
DHeaderViewListAdapterTest.java389 public boolean isEnabled(int position) { in isEnabled() argument
403 public Object getItem(int position) { in getItem() argument
407 public long getItemId(int position) { in getItemId() argument
408 return position; in getItemId()
414 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
418 public int getItemViewType(int position) { in getItemViewType() argument
447 public boolean isEnabled(int position) { in isEnabled() argument
465 public Object getItem(int position) { in getItem() argument
472 public long getItemId(int position) { in getItemId() argument
473 return position; in getItemId()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DTestAdapter.java63 public Object getItem(int position) { in getItem() argument
64 return tests.get(position); in getItem()
67 public void setTestPass(int position) { in setTestPass() argument
68 tests.get(position).mPassed = true; in setTestPass()
72 public long getItemId(int position) { in getItemId() argument
73 return position; in getItemId()
77 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
86 Test test = tests.get(position); in getView()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityEndToEndActivity.java41 public View getView(int position, View convertView, ViewGroup parent) { in onCreate()
44 textView.setText((String) getItem(position)); in onCreate()
48 public long getItemId(int position) { in onCreate()
49 return position; in onCreate()
52 public Object getItem(int position) { in onCreate()
53 if (position == 0) { in onCreate()
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java63 public boolean isEnabled(int position) { in isEnabled() argument
77 public Object getItem(int position) { in getItem() argument
78 return position; in getItem()
81 public long getItemId(int position) { in getItemId() argument
82 return position; in getItemId()
89 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument
103 public int getItemViewType(int position) { in getItemViewType() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DAbstractTestListActivity.java41 private Intent getIntent(int position) { in getIntent() argument
42 TestListItem item = mAdapter.getItem(position); in getIntent()
83 protected final void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument
84 super.onListItemClick(listView, view, position, id); in onListItemClick()
85 handleItemClick(listView, view, position, id); in onListItemClick()
89 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument
90 Intent intent = getIntent(position); in handleItemClick()
DTestListAdapter.java318 public boolean isEnabled(int position) { in isEnabled() argument
319 return getItem(position).isTest(); in isEnabled()
323 public int getItemViewType(int position) { in getItemViewType() argument
324 return getItem(position).isTest() ? TEST_VIEW_TYPE : CATEGORY_HEADER_VIEW_TYPE; in getItemViewType()
338 public TestListItem getItem(int position) { in getItem() argument
339 return mRows.get(position); in getItem()
343 public long getItemId(int position) { in getItemId() argument
344 return position; in getItemId()
347 public int getTestResult(int position) { in getTestResult() argument
348 TestListItem item = getItem(position); in getTestResult()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/
DWidgetCtsService.java60 public RemoteViews getViewAt(int position) { in getViewAt() argument
62 String text = "List Item " + (position + 1); in getViewAt()
78 public long getItemId(int position) { in getItemId() argument
79 return position; in getItemId()
/cts/tests/tests/media/src/android/media/cts/
DTestMediaDataSource.java65 public synchronized int readAt(long position, byte[] buffer, int offset, int size) in readAt() argument
75 if (position >= mData.length) { in readAt()
78 if (position + size > mData.length) { in readAt()
79 size -= (position + size) - mData.length; in readAt()
81 System.arraycopy(mData, (int)position, buffer, offset, size); in readAt()
DAudioTrackNative.java80 long[] position = new long[1]; in getPositionInMsec() local
81 if (nativeGetPositionInMsec(mNativeTrackInJavaObj, position) != STATUS_OK) { in getPositionInMsec()
84 return position[0]; in getPositionInMsec()
159 private static native int nativeGetPositionInMsec(long track, @NonNull long[] position); in nativeGetPositionInMsec() argument
DAudioRecordNative.java77 long[] position = new long[1]; in getPositionInMsec() local
78 if (nativeGetPositionInMsec(mNativeRecordInJavaObj, position) != STATUS_OK) { in getPositionInMsec()
81 return position[0]; in getPositionInMsec()
152 private static native int nativeGetPositionInMsec(long record, @NonNull long[] position); in nativeGetPositionInMsec() argument
/cts/tests/app/app/src/android/app/stubs/
DLauncherActivityStub.java46 public Intent intentForPosition(int position) { in intentForPosition() argument
47 return super.intentForPosition(position); in intentForPosition()
64 public void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument
65 super.onListItemClick(l, v, position, id); in onListItemClick()
DMockListActivity.java29 protected void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument
32 clickedItemPosition = position; in onListItemClick()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/
DBackupAccessibilityTestActivity.java224 View getView(LayoutInflater inflater, int position, View convertView, ViewGroup parent);
241 public View getView(LayoutInflater inflater, int position, View convertView,
274 public View getView(LayoutInflater inflater, int position, View convertView,
313 public BackupItem getItem(int position) {
314 return mItems.get(position);
318 public long getItemId(int position) {
319 return position;
323 public boolean isEnabled(int position) {
333 public int getItemViewType(int position) {
334 return getItem(position).getViewType();
[all …]
DBackupTestActivity.java263 View getView(LayoutInflater inflater, int position, View convertView, ViewGroup parent);
280 public View getView(LayoutInflater inflater, int position, View convertView,
311 public View getView(LayoutInflater inflater, int position, View convertView,
339 public View getView(LayoutInflater inflater, int position, View convertView,
375 public BackupItem getItem(int position) {
376 return mItems.get(position);
380 public long getItemId(int position) {
381 return position;
385 public boolean isEnabled(int position) {
395 public int getItemViewType(int position) {
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DRendererOneColorBufferTest.java68 mVertices.put(mVerticesData).position(0); in RendererOneColorBufferTest()
74 mIndexBuffer.position(0); in RendererOneColorBufferTest()
78 mColor.put(mVertexColor).position(0); in RendererOneColorBufferTest()
86 mVertices.put(mVerticesData).position(0); in RendererOneColorBufferTest()
92 mIndexBuffer.position(0); in RendererOneColorBufferTest()
96 mColor.put(mVertexColor).position(0); in RendererOneColorBufferTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/
DCube.java76 mVertexBuffer.position(0); in Cube()
82 mColorBuffer.position(0); in Cube()
86 mIndexBuffer.position(0); in Cube()

12345