/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListScenario.java | 86 private boolean isItemAtPositionSelectable(int position) { in isItemAtPositionSelectable() argument 87 return !mUnselectableItems.contains(position); in isItemAtPositionSelectable() 158 int position, double itemScreenSizeFactor) { in setPositionScreenSizeFactorOverride() argument 159 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor); in setPositionScreenSizeFactorOverride() 168 public Params setPositionUnselectable(int position) { in setPositionUnselectable() argument 169 mUnselectableItems.add(position); in setPositionUnselectable() 283 protected void positionClicked(int position) { in positionClicked() argument 284 setClickedPosition(position); in positionClicked() 334 public void onItemSelected(AdapterView parent, View v, int position, long id) { in onCreate() 335 positionSelected(position); in onCreate() [all …]
|
D | ListUtil.java | 80 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()
|
D | ListItemFactory.java | 42 … 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/ |
D | DummyAdapter.java | 39 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()
|
D | GalleryCtsActivity.java | 52 public Object getItem(int position) { in getItem() argument 53 return position; in getItem() 56 public long getItemId(int position) { in getItemId() argument 57 return position; in getItemId() 60 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 63 i.setImageResource(mImageIds[position]); in getView()
|
D | AdapterView_AdapterContextMenuInfoTest.java | 37 int position = 1; in testConstructor() local 39 menuInfo = new AdapterView.AdapterContextMenuInfo(testView, position, id); in testConstructor() 41 assertEquals(position, menuInfo.position); in testConstructor()
|
D | EditTextTest.java | 109 int position = 4; in testSetSelectionIndex() local 110 mEditText1.setSelection(position); in testSetSelectionIndex() 111 assertEquals(position, mEditText1.getSelectionStart()); in testSetSelectionIndex() 112 assertEquals(position, mEditText1.getSelectionEnd()); in testSetSelectionIndex() 114 position = 0; in testSetSelectionIndex() 115 mEditText1.setSelection(position); in testSetSelectionIndex() 116 assertEquals(position, mEditText1.getSelectionStart()); in testSetSelectionIndex() 117 assertEquals(position, mEditText1.getSelectionEnd()); in testSetSelectionIndex()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 225 public void verifyMatchesHistorical(MotionEvent that, int position) { in verifyMatchesHistorical() argument 227 that.getHistoricalX(position), this.x, DELTA); in verifyMatchesHistorical() 229 that.getHistoricalAxisValue(MotionEvent.AXIS_X, position), this.x, DELTA); in verifyMatchesHistorical() 232 that.getHistoricalY(position), this.y, DELTA); in verifyMatchesHistorical() 234 that.getHistoricalAxisValue(MotionEvent.AXIS_Y, position), this.y, DELTA); in verifyMatchesHistorical() 237 that.getHistoricalPressure(position), this.pressure, DELTA); in verifyMatchesHistorical() 239 that.getHistoricalAxisValue(MotionEvent.AXIS_PRESSURE, position), this.pressure, in verifyMatchesHistorical() 243 that.getHistoricalSize(position), this.size, DELTA); in verifyMatchesHistorical() 245 that.getHistoricalAxisValue(MotionEvent.AXIS_SIZE, position), this.size, DELTA); in verifyMatchesHistorical() 248 that.getHistoricalTouchMajor(position), this.touchMajor,DELTA); in verifyMatchesHistorical() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | TestAdapter.java | 63 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/ |
D | AccessibilityEndToEndActivity.java | 41 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/ |
D | GridLayoutAnimCtsActivity.java | 62 public boolean isEnabled(int position) { in isEnabled() argument 76 public Object getItem(int position) { in getItem() argument 77 return position; in getItem() 80 public long getItemId(int position) { in getItemId() argument 81 return position; in getItemId() 88 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 102 public int getItemViewType(int position) { in getItemViewType() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/Renderable/ |
D | Light.java | 46 public Light(float[] position) { in Light() argument 47 new Light(position, DEFAULT_LIGHT_STRENGTH); in Light() 60 public Light(float[] position, float strength) { in Light() argument 64 Matrix.translateM(getModelMatrix(), 0, position[X], position[Y], position[Z]); in Light() local
|
D | RingRenderable.java | 51 public RingRenderable(float[] position, float[] rotation, float[] upVector) { in RingRenderable() argument 73 Matrix.translateM(translationTransformation, 0, position[X], position[Y], position[Z]); in RingRenderable() 105 mPositionBuffer.put(ringData.getVertexData()).position(0); in initialise() 106 mColorBuffer.put(colours).position(0); in initialise() 107 mNormalsBuffer.put(ringData.getNormalsData()).position(0); in initialise() 108 mIndicesBuffer.put(ringData.getIndicesData()).position(0); in initialise() 150 mPositionBuffer.position(0); in drawRing() 163 mColorBuffer.position(0); in drawRing() 170 mNormalsBuffer.position(0); in drawRing()
|
D | ConeRenderable.java | 79 mPositionBuffer.put(coneData.getVertexData()).position(0); in initialise() 80 mColorBuffer.put(colours).position(0); in initialise() 81 mNormalsBuffer.put(coneData.getNormalsData()).position(0); in initialise() 82 mIndicesBuffer.put(coneData.getIndicesData()).position(0); in initialise() 142 mPositionBuffer.position(0); in drawCone() 155 mColorBuffer.position(0); in drawCone() 162 mNormalsBuffer.position(0); in drawCone()
|
D | RectangleRenderable.java | 59 mPositionBuffer.put(mRectanglePositionData).position(0); in initialiseRectangle() 73 mColorBuffer.put(colours).position(0); in initialiseRectangle() 103 mPositionBuffer.position(0); in drawRectangle() 117 mColorBuffer.position(0); in drawRectangle() 141 mColorBuffer.put(colours).position(0); in setLineColor()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | AbstractTestListActivity.java | 41 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()
|
D | TestListAdapter.java | 318 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/ |
D | WidgetCtsService.java | 60 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/ |
D | TestMediaDataSource.java | 65 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()
|
D | AudioTrackNative.java | 81 long[] position = new long[1]; in getPositionInMsec() local 82 if (nativeGetPositionInMsec(mNativeTrackInJavaObj, position) != STATUS_OK) { in getPositionInMsec() 85 return position[0]; in getPositionInMsec() 160 private static native int nativeGetPositionInMsec(long track, @NonNull long[] position); in nativeGetPositionInMsec() argument
|
D | AudioRecordNative.java | 78 long[] position = new long[1]; in getPositionInMsec() local 79 if (nativeGetPositionInMsec(mNativeRecordInJavaObj, position) != STATUS_OK) { in getPositionInMsec() 82 return position[0]; in getPositionInMsec() 153 private static native int nativeGetPositionInMsec(long record, @NonNull long[] position); in nativeGetPositionInMsec() argument
|
/cts/tests/app/app/src/android/app/stubs/ |
D | LauncherActivityStub.java | 46 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()
|
D | MockListActivity.java | 29 protected void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument 32 clickedItemPosition = position; in onListItemClick()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | RendererOneColorBufferTest.java | 68 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/ |
D | Cube.java | 76 mVertexBuffer.position(0); in Cube() 82 mColorBuffer.position(0); in Cube() 86 mIndexBuffer.position(0); in Cube()
|