/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() 269 protected void positionSelected(int position) { in positionSelected() argument 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() [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()
|
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/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
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 | 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()
|
/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()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventUtils.java | 239 public void verifyMatchesHistorical(MotionEvent that, int position) { in verifyMatchesHistorical() argument 241 that.getHistoricalX(position), this.x, DELTA); in verifyMatchesHistorical() 243 that.getHistoricalAxisValue(MotionEvent.AXIS_X, position), this.x, DELTA); in verifyMatchesHistorical() 246 that.getHistoricalY(position), this.y, DELTA); in verifyMatchesHistorical() 248 that.getHistoricalAxisValue(MotionEvent.AXIS_Y, position), this.y, DELTA); in verifyMatchesHistorical() 251 that.getHistoricalPressure(position), this.pressure, DELTA); in verifyMatchesHistorical() 253 that.getHistoricalAxisValue(MotionEvent.AXIS_PRESSURE, position), this.pressure, in verifyMatchesHistorical() 257 that.getHistoricalSize(position), this.size, DELTA); in verifyMatchesHistorical() 259 that.getHistoricalAxisValue(MotionEvent.AXIS_SIZE, position), this.size, DELTA); in verifyMatchesHistorical() 262 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() 71 public void clearTestPass(int position) { in clearTestPass() argument 72 tests.get(position).mPassed = false; in clearTestPass() 76 public long getItemId(int position) { in getItemId() argument 77 return position; in getItemId() 81 public View getView(int position, View convertView, ViewGroup parent) { in getView() argument 90 Test test = tests.get(position); in getView()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/ |
D | InfiniteRecording.java | 41 public int readFrom(float[] buffer, int position, int count) { in readFrom() argument 43 position = Math.min(position, maxPosition); in readFrom() 45 numToRead = Math.min(numToRead, maxPosition - position); in readFrom() 51 final int offset = position % mMaxSamples; in readFrom() 70 final int position = mWritten.get(); in write() local 71 final int offset = position % mMaxSamples; in write()
|
/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()
|
/cts/hostsidetests/adpf/app/hintsession/src/cpp/ |
D | Model.h | 51 : position(inPosition), uv(inUV) {} in Vertex() 53 Vector3 position; member 82 startVertices_[i].position = startVertices_[i].position + offset; in move() 83 currentVertices_[i].position = currentVertices_[i].position + offset; in move() 91 Vector3 normalized = startVertices_[i].position - center_; in setRotation() 95 currentVertices_[i].position = out + center_; in setRotation() 105 center = center + vertex.position; in findCenter()
|
/cts/tests/tests/mediaparser/src/android/media/mediaparser/cts/ |
D | MockMediaParserInputReader.java | 37 public void setPosition(int position) { in setPosition() argument 38 mFakeExtractorInput.setPosition(position); in setPosition() 59 public void seekToPosition(long position) { in seekToPosition() argument 60 mFakeExtractorInput.setPosition((int) position); in seekToPosition()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | LauncherActivityStub.java | 50 public Intent intentForPosition(int position) { in intentForPosition() argument 51 return super.intentForPosition(position); in intentForPosition() 65 public void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument 66 super.onListItemClick(l, v, position, id); in onListItemClick() 67 Log.d(TAG, "onListItemClick(): position=" + position + " , id=" + 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/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListAdapter.java | 675 public boolean isEnabled(int position) { in isEnabled() argument 676 if (getItem(position) == null) { in isEnabled() 679 return getItem(position).isTest(); in isEnabled() 683 public int getItemViewType(int position) { in getItemViewType() argument 684 if (getItem(position) == null) { in getItemViewType() 687 return getItem(position).isTest() ? TEST_VIEW_TYPE : CATEGORY_HEADER_VIEW_TYPE; in getItemViewType() 701 public TestListItem getItem(int position) { in getItem() argument 702 return mRows.get(position); in getItem() 706 public long getItemId(int position) { in getItemId() argument 707 return position; in getItemId() [all …]
|
D | AbstractTestListActivity.java | 60 private Intent getIntent(int position) { in getIntent() argument 61 TestListItem item = mAdapter.getItem(position); in getIntent() 141 protected final void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument 142 super.onListItemClick(listView, view, position, id); in onListItemClick() 148 handleItemClick(listView, view, position, id); in onListItemClick() 152 protected void handleItemClick(ListView listView, View view, int position, long id) { in handleItemClick() argument 153 Intent intent = getIntent(position); in handleItemClick()
|
/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/common/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()
|
/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/apps/CtsVerifier/src/com/android/cts/verifier/controls/ |
D | ControlsPanelTestUtils.java | 33 int position = text.toString().indexOf(replace); in addImage() local 38 position, in addImage() 39 position + replace.length(), in addImage()
|