Home
last modified time | relevance | path

Searched refs:itemType (Results 1 – 9 of 9) sorted by relevance

/frameworks/ex/common/java/com/android/common/widget/
DGroupingListAdapter.java51 int itemType; field in GroupingListAdapter.PositionMetadata
341 metadata.itemType = ITEM_TYPE_STANDALONE; in obtainPositionMetadata()
351 metadata.itemType = ITEM_TYPE_GROUP_HEADER; in obtainPositionMetadata()
362 metadata.itemType = ITEM_TYPE_IN_GROUP; in obtainPositionMetadata()
380 metadata.itemType = ITEM_TYPE_STANDALONE; in obtainPositionMetadata()
390 return mPositionMetadata.itemType == ITEM_TYPE_GROUP_HEADER; in isGroupHeader()
407 if (mPositionMetadata.itemType != ITEM_TYPE_GROUP_HEADER) { in toggleGroup()
429 return mPositionMetadata.itemType; in getItemViewType()
458 switch (mPositionMetadata.itemType) { in getView()
472 switch (mPositionMetadata.itemType) { in getView()
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuPopup.java140 int itemType = 0; in measureIndividualMenuWidth() local
147 if (positionType != itemType) { in measureIndividualMenuWidth()
148 itemType = positionType; in measureIndividualMenuWidth()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopup.java142 int itemType = 0; in measureIndividualMenuWidth() local
149 if (positionType != itemType) { in measureIndividualMenuWidth()
150 itemType = positionType; in measureIndividualMenuWidth()
/frameworks/ex/common/tests/src/com/android/common/widget/
DGroupingListAdapterTests.java301 private void assertPositionMetadata(int position, int itemType, boolean isExpanded, in assertPositionMetadata() argument
305 assertEquals(itemType, metadata.itemType); in assertPositionMetadata()
306 if (metadata.itemType == ITEM_TYPE_GROUP_HEADER) { in assertPositionMetadata()
/frameworks/base/core/java/com/android/internal/app/
DSuggestedLocaleAdapter.java135 int itemType = getItemViewType(position); in getView() local
136 switch (itemType) { in getView()
145 if (itemType == TYPE_HEADER_SUGGESTED) { in getView()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java198 int itemType = 0; in measureContentWidth() local
206 if (positionType != itemType) { in measureContentWidth()
207 itemType = positionType; in measureContentWidth()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DAppCompatSpinner.java543 int itemType = 0; in compatMeasureContentWidth() local
557 if (positionType != itemType) { in compatMeasureContentWidth()
558 itemType = positionType; in compatMeasureContentWidth()
/frameworks/base/core/java/android/widget/
DSpinner.java827 int itemType = 0; in measureContentWidth() local
841 if (positionType != itemType) { in measureContentWidth()
842 itemType = positionType; in measureContentWidth()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DItemAnimatorV2ApiTest.java553 final AtomicInteger itemType = new AtomicInteger(1); in notifyUpdateWithChangedAdapterType() local
557 return position == 2 ? itemType.get() : 20; in notifyUpdateWithChangedAdapterType()
572 itemType.set(3); in notifyUpdateWithChangedAdapterType()