/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 | 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 …]
|
D | ListUtil.java | 53 private void arrowDownToSelectedPosition(int position) { in arrowDownToSelectedPosition() argument 55 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) { in arrowDownToSelectedPosition() 58 if (position != mListView.getSelectedItemPosition()) { in arrowDownToSelectedPosition() 64 private void arrowUpToSelectedPosition(int position) { in arrowUpToSelectedPosition() argument 66 while(mListView.getSelectedItemPosition() > position && --maxUps > 0) { in arrowUpToSelectedPosition() 69 if (position != mListView.getSelectedItemPosition()) { in arrowUpToSelectedPosition()
|
/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/tests/tests/location/src/android/location/cts/asn1/base/ |
D | BitStream.java | 43 private int position = 0; field in BitStream 50 return Arrays.copyOf(buffer, position + (setBits == 0 ? 0 : 1)); in getPaddedBytes() 54 buffer[position] = (byte) (buffer[position] | (data & 0xFF) >> setBits); in appendByte() 56 buffer[position] = (byte) (buffer[position] | (data << (BITS_IN_BYTE - setBits)) & 0xFF); in appendByte() 60 position++; in incrementPosition() 61 if (position >= buffer.length) { in incrementPosition() 68 buffer[position] = (byte) (buffer[position] | 1 << (BITS_IN_BYTE - 1 - setBits)); in appendBit() 78 return BITS_IN_BYTE * position + setBits; in getBitCount()
|
D | BitStreamReader.java | 29 private int position = 0; field in BitStreamReader 43 position++; in readBit() 46 return ((buffer[position] >> (BITS_IN_BYTE - bitsRead)) & 1) == 1; in readBit() 53 return position + 1 < buffer.length in hasBit() 54 || (bitsRead < BITS_IN_BYTE && position < buffer.length); in hasBit() 62 position++; in spoolToByteBoundary() 71 byte result = (byte) ((buffer[position] & mask) << bitsRead); in readByte() 72 position++; in readByte() 74 result = (byte) (result | (buffer[position] & 0xFF) >>> (8 - bitsRead)); in readByte()
|
D | Asn1BMPString.java | 131 int position = 0; in encodeCharactersPer() local 132 while (position < value.length()) { in encodeCharactersPer() 133 int codepoint = Character.codePointAt(value, position); in encodeCharactersPer() 135 "Illegal character atposition %s", position); in encodeCharactersPer() 140 position += Character.charCount(codepoint); in encodeCharactersPer()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | ByteBufferLineSpliterator.java | 44 int curPos = mBuffer.position(); in trySplit() 45 mBuffer.position(curPos + mBuffer.remaining() / 2); in trySplit() 51 mBuffer.position(mBuffer.position() + nextNewLine + 1); in trySplit() 56 mBuffer.position(curPos).limit(curPos + mBuffer.remaining() / 2 + nextNewLine); in trySplit() 91 int curPos = mBuffer.position(); in subsequence() 92 mBuffer.position(curPos + start); in subsequence() 96 mBuffer.position(curPos).limit(curLimit); in subsequence() 112 mBuffer.position(mBuffer.position() + nextLineBreakIndex + 1); in nextLine() 115 mBuffer.position(mBuffer.limit()); // Should not be necessary? in nextLine()
|
/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 | 38 int position = 1; in testConstructor() local 40 menuInfo = new AdapterView.AdapterContextMenuInfo(testView, position, id); in testConstructor() 42 assertEquals(position, menuInfo.position); in testConstructor()
|
D | HeaderViewListAdapterTest.java | 397 public boolean isEnabled(int position) { in isEnabled() argument 411 public Object getItem(int position) { in getItem() argument 415 public long getItemId(int position) { in getItemId() argument 416 return position; in getItemId() 422 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 426 public int getItemViewType(int position) { in getItemViewType() argument 455 public boolean isEnabled(int position) { in isEnabled() argument 473 public Object getItem(int position) { in getItem() argument 480 public long getItemId(int position) { in getItemId() argument 481 return position; in getItemId() [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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 356 public boolean isEnabled(int position) { in isEnabled() argument 357 return getItem(position).isTest(); in isEnabled() 361 public int getItemViewType(int position) { in getItemViewType() argument 362 return getItem(position).isTest() ? TEST_VIEW_TYPE : CATEGORY_HEADER_VIEW_TYPE; in getItemViewType() 376 public TestListItem getItem(int position) { in getItem() argument 377 return mRows.get(position); in getItem() 381 public long getItemId(int position) { in getItemId() argument 382 return position; in getItemId() 385 public int getTestResult(int position) { in getTestResult() argument 386 TestListItem item = getItem(position); in getTestResult() [all …]
|
D | AbstractTestListActivity.java | 56 private Intent getIntent(int position) { in getIntent() argument 57 TestListItem item = mAdapter.getItem(position); in getIntent() 111 protected final void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument 112 super.onListItemClick(listView, view, position, id); in onListItemClick() 118 handleItemClick(listView, view, position, id); in onListItemClick() 122 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument 123 Intent intent = getIntent(position); in handleItemClick()
|
/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/tests/tests/media/src/android/media/cts/ |
D | TestMediaDataSource.java | 67 public synchronized int readAt(long position, byte[] buffer, int offset, int size) in readAt() argument 77 if (position >= mData.length) { in readAt() 80 if (position + size > mData.length) { in readAt() 81 size -= (position + size) - mData.length; in readAt() 83 System.arraycopy(mData, (int)position, buffer, offset, size); in readAt()
|
/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/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()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityEndToEndActivity.java | 50 public View getView(int position, View convertView, ViewGroup parent) { in onCreate() 53 textView.setText((String) getItem(position)); in onCreate() 57 public long getItemId(int position) { in onCreate() 58 return position; in onCreate() 61 public Object getItem(int position) { in onCreate() 62 if (position == 0) { in onCreate()
|
/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()
|