Home
last modified time | relevance | path

Searched refs:CardType (Results 1 – 25 of 45) sorted by relevance

12

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
H A DConditionContextualCardControllerTest.java33 import com.android.settings.homepage.contextualcards.ContextualCard.CardType;
126 for (@CardType int cardType : conditionalCards.keySet()) { in getConditionalCards_hasEmptyConditionCards_shouldReturnThreeEmptyList()
138 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(1); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
141 assertThat(conditionalCards.get(CardType.CONDITIONAL_HEADER)).isEmpty(); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
152 assertThat(conditionalCards.get(CardType.CONDITIONAL)).isEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
154 assertThat(conditionalCards.get(CardType.CONDITIONAL_FOOTER)).isEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
164 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(2); in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
165 for (ContextualCard card : conditionalCards.get(CardType.CONDITIONAL)) { in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
180 assertThat(conditionalCards.get(CardType.CONDITIONAL)).isEmpty(); in getConditionalCards_hasTwoConditionCardsAndCollapsed_shouldGetConditionalHeader()
192 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(3); in getConditionalCards_hasThreeCardsAndExpanded_shouldGetThreeCardsWithFooter()
[all …]
H A DConditionFooterContextualCardRendererTest.java70 ContextualCard.CardType.CONDITIONAL_FOOTER)).thenReturn(mController); in bindView_shouldSetClickListener()
88 ContextualCard.CardType.CONDITIONAL_FOOTER)).thenReturn(mController); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
H A DConditionContextualCardRendererTest.java77 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in bindView_shouldSetListener()
96 ContextualCard.CardType.CONDITIONAL)).thenReturn(mController); in viewClick_shouldInvokeControllerPrimaryClick()
H A DConditionHeaderContextualCardRendererTest.java78 ContextualCard.CardType.CONDITIONAL_HEADER)).thenReturn(mController); in bindView_shouldSetClickListener()
96 ContextualCard.CardType.CONDITIONAL_HEADER)).thenReturn(mController); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
H A DContextualCardLookupTable.java24 import com.android.settings.homepage.contextualcards.ContextualCard.CardType;
44 @CardType
70 add(new ControllerRendererMapping(CardType.CONDITIONAL,
74 add(new ControllerRendererMapping(CardType.CONDITIONAL,
78 add(new ControllerRendererMapping(CardType.LEGACY_SUGGESTION,
82 add(new ControllerRendererMapping(CardType.SLICE,
86 add(new ControllerRendererMapping(CardType.SLICE,
90 add(new ControllerRendererMapping(CardType.SLICE,
94 add(new ControllerRendererMapping(CardType.CONDITIONAL_FOOTER,
98 add(new ControllerRendererMapping(CardType.CONDITIONAL_HEADER,
[all …]
H A DContextualCard.java41 @IntDef({CardType.DEFAULT, CardType.SLICE, CardType.LEGACY_SUGGESTION, CardType.CONDITIONAL,
42 CardType.CONDITIONAL_HEADER, CardType.CONDITIONAL_FOOTER})
44 public @interface CardType { annotation in ContextualCard
55 @CardType
215 if (cardType == CardType.SLICE) { in getViewTypeByCardType()
H A DContextualCardManager.java115 for (@ContextualCard.CardType int cardType : getSettingsCards()) { in ContextualCardManager()
151 return new int[] {ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards()
154 {ContextualCard.CardType.CONDITIONAL, ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards()
158 void setupController(@ContextualCard.CardType int cardType) { in setupController()
200 add(ContextualCard.CardType.CONDITIONAL); in onContextualCardUpdated()
201 add(ContextualCard.CardType.CONDITIONAL_HEADER); in onContextualCardUpdated()
202 add(ContextualCard.CardType.CONDITIONAL_FOOTER); in onContextualCardUpdated()
227 cardsToUpdate.put(ContextualCard.CardType.DEFAULT, mContextualCards); in onContextualCardUpdated()
304 .getController(mContext, ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged()
H A DContextualCardController.java24 @ContextualCard.CardType
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/
H A DContextualCardManagerTest.java150 ContextualCard.CardType.LEGACY_SUGGESTION); in constructor_hasSettingsCustomCards_shouldSetUpCustomControllers()
179 ContextualCard.CardType.LEGACY_SUGGESTION}; in getSettingsCards_conditionalsEnabled_shouldContainLegacyAndConditionals()
416 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_hasFocusAndNoConditional_startMonitoringConditionCard()
435 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_hasFocusAndHasConditionals_startMonitoringConditionCard()
454 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_loseFocusAndHasConditionals_stopMonitoringConditionCard()
471 ContextualCard.CardType.CONDITIONAL); in onWindowFocusChanged_loseFocusAndNoConditional_stopMonitoringConditionCard()
643 .setCardType(ContextualCard.CardType.SLICE) in buildContextualCard()
652 .setCardType(ContextualCard.CardType.SLICE) in buildContextualCard()
673 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
679 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
[all …]
H A DContextualCardLoaderTest.java158 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
163 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
169 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
174 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
180 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
186 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
192 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
H A DContextualCardsAdapterTest.java119 cardsToUpdate.put(ContextualCard.CardType.DEFAULT, newCardList); in onContextualCardUpdated_emptyList_shouldClearCardList()
132 cardsToUpdate.put(ContextualCard.CardType.DEFAULT, newCardList); in onContextualCardUpdated_newCardList_shouldUpdateCardList()
153 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
159 .setCardType(ContextualCard.CardType.SLICE) in getContextualCardList()
169 .setCardType(ContextualCard.CardType.SLICE) in buildContextualCard()
H A DEligibleCardCheckerTest.java90 .setCardType(ContextualCard.CardType.SLICE) in isCardEligibleToDisplay_invalidRankingScore_returnFalse()
132 .setCardType(ContextualCard.CardType.SLICE) in getContextualCard()
/aosp12/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/
H A DphFriNfc_SmtCrdFmt.cpp113 NdefSmtCrdFmt->CardType = 0; in phFriNfc_NdefSmtCrd_Reset()
184 if ((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_1K_CRD) || in phFriNfc_NdefSmtCrd_Process()
185 (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_4K_CRD) || in phFriNfc_NdefSmtCrd_Process()
186 (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_2K_CRD)) { in phFriNfc_NdefSmtCrd_Process()
H A DphFriNfc_MifStdFormat.h245 (((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_1K_CRD) && \
248 ((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_4K_CRD) && \
251 ((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_2K_CRD) && \
326 NdefSmtCrdFmt->CardType, NdefSmtCrdFmt->AddInfo.MfStdInfo.SectCompl); \
H A DphFriNfc_MifStdFormat.cpp366 if (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_1K_CRD) { in phFriNfc_MfStd_H_FillSendBuf()
369 } else if (NdefSmtCrdFmt->CardType == in phFriNfc_MfStd_H_FillSendBuf()
1098 if ((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_1K_CRD) || in phFriNfc_MfStd_H_ProUpdMADBlk()
1165 if ((NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_4K_CRD) || in phFriNfc_MfStd_H_StrNdefData()
1166 (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_2K_CRD)) { in phFriNfc_MfStd_H_StrNdefData()
1179 (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_4K_CRD)) || in phFriNfc_MfStd_H_StrNdefData()
1181 (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_1K_CRD)) || in phFriNfc_MfStd_H_StrNdefData()
1183 (NdefSmtCrdFmt->CardType == PH_FRINFC_SMTCRDFMT_MFSTD_2K_CRD))) { in phFriNfc_MfStd_H_StrNdefData()
1234 (NdefSmtCrdFmt->CardType == in phFriNfc_MfStd_H_BlkNoToWrTLV()
1237 (NdefSmtCrdFmt->CardType == in phFriNfc_MfStd_H_BlkNoToWrTLV()
[all …]
H A DphFriNfc_MifareStdMap.cpp341 ((NdefMap->CardType == PH_FRINFC_MIFARESTD_VAL0) in phFriNfc_MifareStdMap_ChkNdef()
345 NdefMap->CardType = PH_FRINFC_NDEFMAP_MIFARE_STD_1K_CARD; in phFriNfc_MifareStdMap_ChkNdef()
351 ((NdefMap->CardType == PH_FRINFC_MIFARESTD_VAL0) in phFriNfc_MifareStdMap_ChkNdef()
355 NdefMap->CardType = PH_FRINFC_NDEFMAP_MIFARE_STD_2K_CARD; in phFriNfc_MifareStdMap_ChkNdef()
361 ((NdefMap->CardType == PH_FRINFC_MIFARESTD_VAL0) in phFriNfc_MifareStdMap_ChkNdef()
365 NdefMap->CardType = PH_FRINFC_NDEFMAP_MIFARE_STD_4K_CARD; in phFriNfc_MifareStdMap_ChkNdef()
826 NdefMap->CardType == in phFriNfc_MifareStdMap_Process()
1186 if (NdefMap->CardType == PH_FRINFC_NDEFMAP_MIFARE_STD_1K_CARD || in phFriNfc_MifStd_H_AuthSector()
1187 NdefMap->CardType == PH_FRINFC_NDEFMAP_MIFARE_STD_4K_CARD || in phFriNfc_MifStd_H_AuthSector()
1389 else if (NdefMap->CardType == in phFriNfc_MifStd_H_BlkChk()
[all …]
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
H A DConditionContextualCardController.java73 return ContextualCard.CardType.CONDITIONAL; in getCardType()
150 conditionalCards.put(ContextualCard.CardType.CONDITIONAL, in buildConditionalCardsWithFooterOrHeader()
152 conditionalCards.put(ContextualCard.CardType.CONDITIONAL_FOOTER, in buildConditionalCardsWithFooterOrHeader()
154 conditionalCards.put(ContextualCard.CardType.CONDITIONAL_HEADER, in buildConditionalCardsWithFooterOrHeader()
H A DConditionFooterContextualCard.java35 return CardType.CONDITIONAL_FOOTER; in getCardType()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
H A DLegacySuggestionContextualCardRendererTest.java77 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in bindView_shouldSetListener()
96 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in bindView_closeButton_shouldSetListener()
114 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in viewClick_shouldInvokeControllerPrimaryClick()
135 ContextualCard.CardType.LEGACY_SUGGESTION)).thenReturn(mController); in viewClick_closeButton_shouldInvokeControllerDismissClick()
H A DLegacySuggestionContextualCardTest.java38 .setCardType(ContextualCard.CardType.CONDITIONAL) in newInstance_changeCardType_shouldCrash()
45 .isEqualTo(ContextualCard.CardType.LEGACY_SUGGESTION); in getCardType_shouldAlwaysBeSuggestionType()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/homepage/contextualcards/conditional/
H A DConditionFooterContextualCardTest.java34 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash()
41 .isEqualTo(ContextualCard.CardType.CONDITIONAL_FOOTER); in getCardType_shouldAlwaysBeConditionalFooter()
H A DConditionHeaderContextualCardTest.java34 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash()
41 .isEqualTo(ContextualCard.CardType.CONDITIONAL_HEADER); in getCardType_shouldAlwaysBeConditionalHeader()
H A DConditionalContextualCardTest.java37 .setCardType(ContextualCard.CardType.LEGACY_SUGGESTION) in newInstance_changeCardType_shouldCrash()
44 .isEqualTo(ContextualCard.CardType.CONDITIONAL); in getCardType_shouldAlwaysBeConditional()
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/
H A DLegacySuggestionContextualCardController.java76 return ContextualCard.CardType.LEGACY_SUGGESTION; in getCardType()
172 suggestionCards.put(ContextualCard.CardType.LEGACY_SUGGESTION, mSuggestions); in updateAdapter()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
H A DSliceContextualCardRendererTest.java231 ContextualCard.CardType.SLICE); in viewClick_removeCard_shouldRemoveViewHolderFromSet()
246 ContextualCard.CardType.SLICE); in viewClick_removeCard_sliceLiveDataShouldRemoveObservers()
291 .setCardType(ContextualCard.CardType.SLICE) in buildContextualCard()

12