/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 | 1932 int viewType) { in createOwnerCheckingAdapter() argument 1933 final TestViewHolder2 vh = super.onCreateViewHolder(parent, viewType); in createOwnerCheckingAdapter() 2040 final AtomicInteger viewType = new AtomicInteger(1); 2044 return viewType.get(); 2078 viewType.incrementAndGet(); 2089 assertEquals("View holder's type should match latest type", viewType.get(), 2097 final AtomicInteger viewType = new AtomicInteger(1); 2103 return viewType.get(); 2113 position, viewType.get(), holder.getItemViewType()); 2144 viewType.incrementAndGet(); [all …]
|
D | RecyclerViewAnimationsTest.java | 258 int viewType) { in changeAnimTest() 259 TestViewHolder vh = super.onCreateViewHolder(parent, viewType); in changeAnimTest() 342 int viewType) { in testRecycleDuringAnimations() 344 return super.onCreateViewHolder(parent, viewType); in testRecycleDuringAnimations() 359 public RecyclerView.ViewHolder getRecycledView(int viewType) { in testRecycleDuringAnimations() 360 final RecyclerView.ViewHolder recycledView = super.getRecycledView(viewType); in testRecycleDuringAnimations()
|
D | BaseRecyclerViewInstrumentationTest.java | 203 public RecyclerView.ViewHolder getRecycledView(int viewType) { in setRecyclerView() 204 RecyclerView.ViewHolder viewHolder = super.getRecycledView(viewType); in setRecyclerView() 508 int viewType) { in onCreateViewHolder() argument
|
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 | RecyclerViewBasicTest.java | 337 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
|
D | DefaultItemAnimatorTest.java | 398 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 3334 public void setMaxRecycledViews(int viewType, int max) { in setMaxRecycledViews() argument 3335 mMaxScrap.put(viewType, max); in setMaxRecycledViews() 3336 final ArrayList<ViewHolder> scrapHeap = mScrap.get(viewType); in setMaxRecycledViews() 3344 public ViewHolder getRecycledView(int viewType) { in getRecycledView() argument 3345 final ArrayList<ViewHolder> scrapHeap = mScrap.get(viewType); in getRecycledView() 3367 final int viewType = scrap.getItemViewType(); in putRecycledView() local 3368 final ArrayList scrapHeap = getScrapHeapForType(viewType); in putRecycledView() 3369 if (mMaxScrap.get(viewType) <= scrapHeap.size()) { in putRecycledView() 3409 private ArrayList<ViewHolder> getScrapHeapForType(int viewType) { in getScrapHeapForType() argument 3410 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 | 2331 if (params.viewType == mAdapter.getItemViewType(position)) { in obtainView() 2397 lp.viewType = mAdapter.getItemViewType(position); in setItemViewLayoutParams() 6013 if (lp != null && mRecycler.shouldRecycleViewType(lp.viewType)) { in reclaimViews() 6245 int viewType; field in AbsListView.FlingRunnable.LayoutParams 6287 public LayoutParams(int w, int h, int viewType) { in LayoutParams() argument 6289 this.viewType = viewType; in LayoutParams() 6401 public boolean shouldRecycleViewType(int viewType) { in shouldRecycleViewType() argument 6402 return viewType >= 0; in shouldRecycleViewType() 6442 if (lp != null && lp.viewType != ITEM_VIEW_TYPE_HEADER_OR_FOOTER) { in fillActiveViews() 6546 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 | 284 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() argument
|
/frameworks/base/docs/html/training/wearables/ui/ |
D | lists.jd | 218 int viewType) {
|
/frameworks/base/docs/html/training/material/ |
D | lists-cards.jd | 166 int viewType) {
|