Home
last modified time | relevance | path

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

123456

/cts/tests/tests/location/src/android/location/cts/asn1/base/
DBitStreamReader.java29 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()
DBitStream.java43 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()
DAsn1BMPString.java131 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/tests/widget/src/android/widget/cts/util/
DListScenario.java86 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 …]
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.java52 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()
DAdapterView_AdapterContextMenuInfoTest.java37 int position = 1; in testConstructor() local
39 menuInfo = new AdapterView.AdapterContextMenuInfo(testView, position, id); in testConstructor()
41 assertEquals(position, menuInfo.position); in testConstructor()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java225 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/
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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/Renderable/
DLight.java46 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
DRingRenderable.java51 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()
DConeRenderable.java79 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()
DRectangleRenderable.java59 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/view/src/android/view/animation/cts/
DGridLayoutAnimCtsActivity.java62 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/
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/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java45 public View getView(int position, View convertView, ViewGroup parent) { in onCreate()
48 textView.setText((String) getItem(position)); in onCreate()
52 public long getItemId(int position) { in onCreate()
53 return position; in onCreate()
56 public Object getItem(int position) { in onCreate()
57 if (position == 0) { in onCreate()
/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/tests/tests/media/src/android/media/cts/
DTestMediaDataSource.java67 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()
DTestMedia2DataSource.java67 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/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()

123456