Home
last modified time | relevance | path

Searched refs:adapterPosition (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DSettingsJankMonitor.kt51 val adapterPosition = adapter.getPreferenceAdapterPosition(preference) in detectSwitchPreferenceClickJank() constant
52 val viewHolder = recyclerView.findViewHolderForAdapterPosition(adapterPosition) ?: return in detectSwitchPreferenceClickJank()
/frameworks/base/core/java/com/android/internal/widget/
DGridLayoutManager.java451 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(viewPosition); in getSpanGroupIndex() local
452 if (adapterPosition == -1) { in getSpanGroupIndex()
460 return mSpanSizeLookup.getSpanGroupIndex(adapterPosition, mSpanCount); in getSpanGroupIndex()
471 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(pos); in getSpanIndex() local
472 if (adapterPosition == -1) { in getSpanIndex()
481 return mSpanSizeLookup.getCachedSpanIndex(adapterPosition, mSpanCount); in getSpanIndex()
492 final int adapterPosition = recycler.convertPreLayoutPositionToPostLayout(pos); in getSpanSize() local
493 if (adapterPosition == -1) { in getSpanSize()
502 return mSpanSizeLookup.getSpanSize(adapterPosition); in getSpanSize()
957 public int getSpanGroupIndex(int adapterPosition, int spanCount) { in getSpanGroupIndex() argument
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/instrumentation/
DSettingsJankMonitorTest.java101 int adapterPosition = 7; in detectSwitchPreferenceClickJank() local
104 .thenReturn(adapterPosition); in detectSwitchPreferenceClickJank()
105 when(mRecyclerView.findViewHolderForAdapterPosition(adapterPosition)) in detectSwitchPreferenceClickJank()
/frameworks/base/core/java/android/widget/
DAdapterViewAnimator.java223 int adapterPosition; field in AdapterViewAnimator.ViewAndMetaData
226 ViewAndMetaData(View view, int relativeIndex, int adapterPosition, long itemId) { in ViewAndMetaData() argument
229 this.adapterPosition = adapterPosition; in ViewAndMetaData()
552 final int adapterPosition = modulo(i, adapterCount); in showOnly() local
553 View newView = mAdapter.getView(adapterPosition, null, this); in showOnly()
554 long itemId = mAdapter.getItemId(adapterPosition); in showOnly()
565 adapterPosition, itemId)); in showOnly()
661 performItemClick(v, viewData.adapterPosition, in onTouchEvent()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt65598 Landroid/widget/AdapterViewAnimator$ViewAndMetaData;->adapterPosition:I