Home
last modified time | relevance | path

Searched refs:getViewType (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRendererTest.java72 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in bindView_shouldSetListener()
75 card.getViewType()); in bindView_shouldSetListener()
90 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in bindView_closeButton_shouldSetListener()
93 card.getViewType()); in bindView_closeButton_shouldSetListener()
109 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in viewClick_shouldInvokeControllerPrimaryClick()
112 card.getViewType()); in viewClick_shouldInvokeControllerPrimaryClick()
129 final View cardView = LayoutInflater.from(mActivity).inflate(card.getViewType(), in viewClick_closeButton_shouldInvokeControllerDismissClick()
132 card.getViewType()); in viewClick_closeButton_shouldInvokeControllerDismissClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionFooterContextualCardRendererTest.java65 final View view = LayoutInflater.from(mContext).inflate(card.getViewType(), recyclerView, in bindView_shouldSetClickListener()
68 card.getViewType()); in bindView_shouldSetClickListener()
83 final View view = LayoutInflater.from(mContext).inflate(card.getViewType(), recyclerView, in bindView_clickView_shouldSetTrueToIsConditionExpanded()
86 card.getViewType()); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
DConditionContextualCardRendererTest.java71 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in bindView_shouldSetListener()
74 card.getViewType()); in bindView_shouldSetListener()
90 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in viewClick_shouldInvokeControllerPrimaryClick()
93 card.getViewType()); in viewClick_shouldInvokeControllerPrimaryClick()
DConditionHeaderContextualCardRendererTest.java73 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in bindView_shouldSetClickListener()
76 card.getViewType()); in bindView_shouldSetClickListener()
91 final View view = LayoutInflater.from(mActivity).inflate(card.getViewType(), recyclerView, in bindView_clickView_shouldSetTrueToIsConditionExpanded()
94 card.getViewType()); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
DConditionContextualCardControllerTest.java139 assertThat(conditionalCards.get(CardType.CONDITIONAL).get(0).getViewType()).isEqualTo( in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
166 assertThat(card.getViewType()).isEqualTo( in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionViewFactory.kt66 override fun getViewType(suggestion: Suggestion?): String { in getViewType() method
69 return factory.getViewType(suggestion)!! in getViewType()
72 return mDefaultFactory.getViewType(suggestion)!! in getViewType()
DSuggestionViewFactory.kt39 fun getViewType(suggestion: Suggestion?): String? method
DSuggestionViewInflater.kt61 override fun getViewType(suggestion: Suggestion?): String { in getViewType() method
DSuggestionsAdapterBase.kt100 val viewType = mViewFactory.getViewType(suggestion) in suggestionViewType()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardsAdapter.java73 return card.getViewType(); in getItemViewType()
88 mContext, mLifecycleOwner, card.getViewType()); in onBindViewHolder()
107 final int viewType = mContextualCards.get(position).getViewType(); in onAttachedToRecyclerView()
DContextualCard.java120 public int getViewType() { in getViewType() method in ContextualCard
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java494 assertThat(card.getViewType()).isEqualTo(VIEW_TYPE_FULL_WIDTH); in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
514 assertThat(card.getViewType()).isEqualTo(VIEW_TYPE_FULL_WIDTH); in getCardsWithViewType_oneSuggestionCards_shouldNotHaveHalfCards()
538 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_twoConsecutiveSuggestionCards_shouldHaveTwoHalfCards()
559 assertThat(card.getViewType()).isEqualTo(VIEW_TYPE_FULL_WIDTH); in getCardsWithViewType_twoNonConsecutiveSuggestionCards_shouldNotHaveHalfCards()
583 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_threeConsecutiveSuggestionCards_shouldHaveTwoHalfCards()
607 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_fourConsecutiveSuggestionCards_shouldHaveFourHalfCards()
625 assertThat(result.get(0).getViewType()).isEqualTo(VIEW_TYPE_STICKY); in getCardsWithViewType_hasOneStickySlice_shouldHaveOneStickyCard()
626 assertThat(result.get(1).getViewType()).isEqualTo(VIEW_TYPE_FULL_WIDTH); in getCardsWithViewType_hasOneStickySlice_shouldHaveOneStickyCard()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/grid/
DViewHolderBase.java32 public int getViewType() { in getViewType() method in ViewHolderBase
DChooserGridAdapter.java299 int viewType = ((ViewHolderBase) holder).getViewType(); in onBindViewHolder()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DDraggableView.java46 int getViewType(); in getViewType() method
DLauncherDragController.java98 if (originalView.getViewType() == DraggableView.DRAGGABLE_WIDGET) { in startDrag()
/packages/apps/Settings/src/com/android/settings/panel/
DPanelContent.java117 default int getViewType() { in getViewType() method
DVolumePanel.java168 public int getViewType() { in getViewType() method in VolumePanel
/packages/modules/AdServices/sdksandbox/tests/manual-test-apps/SdkSandboxClient/src/com/android/sdksandboxclient/
DBannerOptions.java56 public ViewType getViewType() { in getViewType() method in BannerOptions
DMainActivity.java461 if (options.getViewType().equals(BannerOptions.ViewType.WEBVIEW)) { in registerNewBannerAdButton()
475 switch (options.getViewType()) { in registerNewBannerAdButton()
885 if (options.getViewType() == BannerOptions.ViewType.VIDEO) { in registerNewFullscreenAdButton()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DVolumePanelTest.java78 assertThat(mPanel.getViewType()).isEqualTo(PanelContent.VIEW_TYPE_SLIDER); in getViewType_checkType()
DFakePanelContent.java103 public int getViewType() { in getViewType() method in FakePanelContent
/packages/apps/Settings/tests/unit/src/com/android/settings/panel/
DFakePanelContent.java98 public int getViewType() { in getViewType() method in FakePanelContent
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DNavigableAppWidgetHostView.java205 public int getViewType() { in getViewType() method in NavigableAppWidgetHostView
/packages/apps/Launcher3/src/com/android/launcher3/apppairs/
DAppPairIcon.java160 public int getViewType() { in getViewType() method in AppPairIcon

12