Home
last modified time | relevance | path

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

/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/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
DContextualCardManagerTest.java403 assertThat(card.getViewType()).isEqualTo(VIEW_TYPE_FULL_WIDTH); in getCardsWithViewType_noSuggestionCards_shouldNotHaveHalfCards()
423 assertThat(card.getViewType()).isEqualTo(VIEW_TYPE_FULL_WIDTH); in getCardsWithViewType_oneSuggestionCards_shouldNotHaveHalfCards()
447 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_twoConsecutiveSuggestionCards_shouldHaveTwoHalfCards()
468 assertThat(card.getViewType()).isEqualTo(VIEW_TYPE_FULL_WIDTH); in getCardsWithViewType_twoNonConsecutiveSuggestionCards_shouldNotHaveHalfCards()
492 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_threeConsecutiveSuggestionCards_shouldHaveTwoHalfCards()
516 assertThat(result.get(i).getViewType()).isEqualTo(expectedValues.get(i)); in getCardsWithViewType_fourConsecutiveSuggestionCards_shouldHaveFourHalfCards()
527 assertThat(result.get(0).getViewType()).isEqualTo(VIEW_TYPE_DEFERRED_SETUP); in getCardsWithViewType_onlyDeferredSetupCard_shouldHaveDeferredSetupCard()
545 assertThat(result.get(0).getViewType()).isEqualTo(VIEW_TYPE_DEFERRED_SETUP); in getCardsWithViewType_hasDeferredSetupCard_shouldHaveDeferredSetupCard()
564 assertThat(result.get(i).getViewType()).isNotEqualTo( in getCardsWithViewType_noDeferredSetupCard_shouldNotHaveDeferredSetupCard()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionViewFactory.java75 public String getViewType(Suggestion suggestion) { in getViewType() method in DefaultSuggestionViewFactory
78 return factory.getViewType(suggestion); in getViewType()
81 return mDefaultFactory.getViewType(suggestion); in getViewType()
DSuggestionViewFactory.java45 String getViewType(Suggestion suggestion); in getViewType() method
DSuggestionViewInflater.java75 public String getViewType(Suggestion suggestion) { in getViewType() method in SuggestionViewInflater
DSuggestionsAdapterBase.java132 String 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.java157 public int getViewType() { in getViewType() method in ContextualCard
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.java156 public int getViewType() { in getViewType() method in ContextualCard
/packages/apps/Calendar/src/com/android/calendar/
DAllInOneActivity.java480 initFragments(mController.getTime(), mController.getViewType(), null); in onResume()
534 if (mController.getViewType() != ViewType.EDIT) { in onPause()
535 Utils.setDefaultView(this, mController.getViewType()); in onPause()
656 && (mController.getViewType() == ViewType.MONTH)) { in onCreateOptionsMenu()
739 initFragments(mController.getTime(), mController.getViewType(), null); in onSharedPreferenceChanged()
DCalendarController.java649 public int getViewType() { in getViewType() method in CalendarController