/frameworks/base/core/java/android/preference/ |
D | PreferenceGroupAdapter.java | 305 int viewType = Collections.binarySearch(mPreferenceLayouts, mTempPreferenceLayout); in getItemViewType() local 306 if (viewType < 0) { in getItemViewType() 311 return viewType; in getItemViewType()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ItemBridgeAdapter.java | 237 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument 238 if (DEBUG) Log.v(TAG, "onCreateViewHolder viewType " + viewType); in onCreateViewHolder() 239 Presenter presenter = mPresenters.get(viewType); in onCreateViewHolder()
|
D | BaseCardView.java | 530 if (lp.viewType == LayoutParams.VIEW_TYPE_INFO) { in findChildrenViews() 533 } else if (lp.viewType == LayoutParams.VIEW_TYPE_EXTRA) { in findChildrenViews() 805 public int viewType = VIEW_TYPE_MAIN; field in BaseCardView.LayoutParams 814 viewType = a.getInt( in LayoutParams() 843 this.viewType = source.viewType; in LayoutParams()
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/ |
D | ListViewCompat.java | 275 int viewType = 0; in measureHeightOfChildrenCompat() local 279 if (newType != viewType) { in measureHeightOfChildrenCompat() 281 viewType = newType; in measureHeightOfChildrenCompat()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | RecyclerViewLayoutTest.java | 1420 final AtomicInteger viewType = new AtomicInteger(1); in testTypeForCache() local 1424 return viewType.get(); in testTypeForCache() 1458 viewType.incrementAndGet(); in testTypeForCache() 1469 assertEquals("View holder's type should match latest type", viewType.get(), in testTypeForCache() 1477 final AtomicInteger viewType = new AtomicInteger(1); in testTypeForExistingViews() local 1483 return viewType.get(); in testTypeForExistingViews() 1493 position, viewType.get(), holder.getItemViewType()); in testTypeForExistingViews() 1524 viewType.incrementAndGet(); in testTypeForExistingViews() 1611 int viewType) { in onCreateViewHolder() argument
|
D | BaseRecyclerViewInstrumentationTest.java | 166 public RecyclerView.ViewHolder getRecycledView(int viewType) { in setRecyclerView() 167 RecyclerView.ViewHolder viewHolder = super.getRecycledView(viewType); in setRecyclerView() 423 int viewType) { in onCreateViewHolder() argument
|
D | RecyclerViewAnimationsTest.java | 259 int viewType) { in changeAnimTest() 260 TestViewHolder vh = super.onCreateViewHolder(parent, viewType); in changeAnimTest() 341 int viewType) { in testRecycleDuringAnimations() 343 return super.onCreateViewHolder(parent, viewType); in testRecycleDuringAnimations() 358 public RecyclerView.ViewHolder getRecycledView(int viewType) { in testRecycleDuringAnimations() 359 final RecyclerView.ViewHolder recycledView = super.getRecycledView(viewType); in testRecycleDuringAnimations()
|
D | LinearLayoutManagerTest.java | 378 int viewType) { in testRecycleDuringAnimations() 380 final TestViewHolder testViewHolder = super.onCreateViewHolder(parent, viewType); in testRecycleDuringAnimations() 401 public RecyclerView.ViewHolder getRecycledView(int viewType) { in testRecycleDuringAnimations() 402 final RecyclerView.ViewHolder recycledView = super.getRecycledView(viewType); in testRecycleDuringAnimations()
|
D | DefaultItemAnimatorTest.java | 211 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
|
D | RecyclerViewBasicTest.java | 306 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 2979 public void setMaxRecycledViews(int viewType, int max) { in setMaxRecycledViews() argument 2980 mMaxScrap.put(viewType, max); in setMaxRecycledViews() 2981 final ArrayList<ViewHolder> scrapHeap = mScrap.get(viewType); in setMaxRecycledViews() 2989 public ViewHolder getRecycledView(int viewType) { in getRecycledView() argument 2990 final ArrayList<ViewHolder> scrapHeap = mScrap.get(viewType); in getRecycledView() 3012 final int viewType = scrap.getItemViewType(); in putRecycledView() local 3013 final ArrayList scrapHeap = getScrapHeapForType(viewType); in putRecycledView() 3014 if (mMaxScrap.get(viewType) <= scrapHeap.size()) { in putRecycledView() 3054 private ArrayList<ViewHolder> getScrapHeapForType(int viewType) { in getScrapHeapForType() argument 3055 ArrayList<ViewHolder> scrap = mScrap.get(viewType); in getScrapHeapForType() [all …]
|
/frameworks/base/core/java/android/widget/ |
D | ListView.java | 1163 ((LayoutParams) child.getLayoutParams()).viewType)) { in onMeasure() 1195 p.viewType = mAdapter.getItemViewType(position); in measureScrapChild() 1281 ((LayoutParams) child.getLayoutParams()).viewType)) { in measureHeightOfChildren() 1904 p.viewType = mAdapter.getItemViewType(position); in setupChild() 1907 p.viewType == AdapterView.ITEM_VIEW_TYPE_HEADER_OR_FOOTER)) { in setupChild() 1911 if (p.viewType == AdapterView.ITEM_VIEW_TYPE_HEADER_OR_FOOTER) { in setupChild() 3081 if (recycleBin.shouldRecycleViewType(layoutParams.viewType)) { 3110 if (recycleBin.shouldRecycleViewType(layoutParams.viewType)) { 3898 final boolean isHeading = lp != null && lp.viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER;
|
D | AbsListView.java | 2328 if (params.viewType == mAdapter.getItemViewType(position)) { in obtainView() 2394 lp.viewType = mAdapter.getItemViewType(position); in setItemViewLayoutParams() 5990 if (lp != null && mRecycler.shouldRecycleViewType(lp.viewType)) { in reclaimViews() 6222 int viewType; field in AbsListView.FlingRunnable.LayoutParams 6264 public LayoutParams(int w, int h, int viewType) { in LayoutParams() argument 6266 this.viewType = viewType; in LayoutParams() 6378 public boolean shouldRecycleViewType(int viewType) { in shouldRecycleViewType() argument 6379 return viewType >= 0; in shouldRecycleViewType() 6419 if (lp != null && lp.viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER) { in fillActiveViews() 6521 final int viewType = lp.viewType; in addScrapView() local [all …]
|
D | GridView.java | 1067 p.viewType = mAdapter.getItemViewType(0); in onMeasure() 1079 if (mRecycler.shouldRecycleViewType(p.viewType)) { in onMeasure() 1476 p.viewType = mAdapter.getItemViewType(position); in setupChild() 2385 final boolean isHeading = lp != null && lp.viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER; in onInitializeAccessibilityNodeInfoForItem()
|
/frameworks/ex/widget/java/com/android/ex/widget/ |
D | StaggeredGridView.java | 1236 ((LayoutParams) optScrap.getLayoutParams()).viewType : -1; in obtainView() 1260 sglp.viewType = positionViewType; in obtainView() 1403 int viewType; field in StaggeredGridView.LayoutParams 1515 ArrayList<View> scrap = mScrapViews[lp.viewType]; in addScrap()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PageAdapter.java | 275 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
|
/frameworks/base/docs/html/training/wearables/ui/ |
D | lists.jd | 235 int viewType) {
|
/frameworks/base/docs/html/training/material/ |
D | lists-cards.jd | 166 int viewType) {
|