/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | ListScenario.java | 90 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 …]
|
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/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/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/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimCtsActivity.java | 63 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/ |
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/tests/tests/widget/src/android/widget/cts/ |
D | AdapterView_AdapterContextMenuInfoTest.java | 29 int position = 1; in testConstructor() local 31 menuInfo = new AdapterView.AdapterContextMenuInfo(testView, position, id); in testConstructor() 33 assertEquals(position, menuInfo.position); in testConstructor()
|
D | GalleryCtsActivity.java | 53 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()
|
D | EditTextTest.java | 95 int position = 4; in testSetSelectionIndex() local 96 editText.setSelection(position); in testSetSelectionIndex() 97 assertEquals(position, editText.getSelectionStart()); in testSetSelectionIndex() 98 assertEquals(position, editText.getSelectionEnd()); in testSetSelectionIndex() 100 position = 0; in testSetSelectionIndex() 101 editText.setSelection(position); in testSetSelectionIndex() 102 assertEquals(position, editText.getSelectionStart()); in testSetSelectionIndex() 103 assertEquals(position, editText.getSelectionEnd()); in testSetSelectionIndex()
|
D | GridViewTest.java | 649 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { 669 public boolean isEnabled(int position) { 683 public Object getItem(int position) { 684 return position; 687 public long getItemId(int position) { 688 return position; 695 public View getView(int position, View convertView, ViewGroup parent) { 710 public int getItemViewType(int position) { 747 public Object getItem(int position) { 748 return position; [all …]
|
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
D | TestListFragment.java | 78 public void onListItemClick(ListView listView, View view, int position, long id) { in onListItemClick() argument 79 super.onListItemClick(listView, view, position, id); in onListItemClick() 80 mCallbacks.onItemSelected(TestItems.getTest(position).mId); in onListItemClick() 96 public void setActivatedPosition(int position) { in setActivatedPosition() argument 97 if (position == ListView.INVALID_POSITION) { in setActivatedPosition() 100 getListView().setItemChecked(position, true); in setActivatedPosition() 103 mActivatedPosition = position; in setActivatedPosition()
|
D | Test4DetailFragment.java | 89 public void onPageSelected(int position) { in onCreateView() 90 actionBar.setSelectedNavigationItem(position); in onCreateView() 143 public CharSequence getPageTitle(int position) { in getPageTitle() argument 144 switch (position) { in getPageTitle()
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | raytrace.js | 198 position: null, property in Flog.RayTracer.Light 203 this.position = pos; 209 return 'Light [' + this.position.x + ',' + this.position.y + ',' + this.position.z + ']'; 283 position : null, property in Flog.RayTracer.Ray 286 this.position = pos; 291 return 'Ray [' + this.position + ',' + this.direction + ']'; 422 this.position = pos; 430 var dst = Flog.RayTracer.Vector.prototype.subtract(ray.position, this.position); 439 info.position = Flog.RayTracer.Vector.prototype.add( 440 ray.position, [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | LauncherActivityStub.java | 45 protected Intent intentForPosition(int position) { in intentForPosition() argument 46 return super.intentForPosition(position); in intentForPosition() 60 public void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument 61 super.onListItemClick(l, v, position, id); in onListItemClick()
|
/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 | 75 long[] position = new long[1]; in getPositionInMsec() local 76 if (nativeGetPositionInMsec(mNativeTrackInJavaObj, position) != STATUS_OK) { in getPositionInMsec() 79 return position[0]; in getPositionInMsec() 148 private static native int nativeGetPositionInMsec(long track, @NonNull long[] position); in nativeGetPositionInMsec() argument
|
D | AudioRecordNative.java | 72 long[] position = new long[1]; in getPositionInMsec() local 73 if (nativeGetPositionInMsec(mNativeRecordInJavaObj, position) != STATUS_OK) { in getPositionInMsec() 76 return position[0]; in getPositionInMsec() 141 private static native int nativeGetPositionInMsec(long record, @NonNull long[] position); in nativeGetPositionInMsec() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/backup/ |
D | BackupTestActivity.java | 263 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/tools/signature-tools/templates/ |
D | Styles.st | 24 position:relative; 33 position:absolute; 40 position: relative;
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/css/ |
D | bootstrap.css | 32 position: relative; 85 position: relative; 1065 position: relative; 1501 background-position: 14px 14px; 1512 background-position: 0 0; 1515 background-position: -24px 0; 1518 background-position: -48px 0; 1521 background-position: -72px 0; 1524 background-position: -96px 0; 1527 background-position: -120px 0; [all …]
|
/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()
|