Home
last modified time | relevance | path

Searched refs:card (Results 1 – 25 of 28) sorted by relevance

12

/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/cardstream/
DCardStreamFragment.java72 public void addCard(Card card) { in addCard() argument
73 final String tag = card.getTag(); in addCard()
76 final View view = card.getView(); in addCard()
78 mHiddenCards.put(tag, card); in addCard()
88 public void addCard(Card card, boolean show) { in addCard() argument
89 addCard(card); in addCard()
91 showCard(card.getTag()); in addCard()
103 Card card = mVisibleCards.get(tag); in removeCard() local
104 if (card != null) { in removeCard()
107 mLayout.removeView(card.getView()); in removeCard()
[all …]
DCard.java56 private int mLayoutId = R.layout.card;
386 protected Builder(OnCardClickListener listener, Card card) { in Builder() argument
387 mCard = card; in Builder()
529 public Builder cloneFromCard(Card card) { in cloneFromCard() argument
530 mCard = card.createShallowClone(); in cloneFromCard()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
DCardPresenterSelector.java43 Card card = (Card) item; in getPresenter() local
44 Presenter presenter = presenters.get(card.getType()); in getPresenter()
46 switch (card.getType()) { in getPresenter()
57 if (card.getType() == Card.Type.MOVIE_BASE) { in getPresenter()
59 } else if (card.getType() == Card.Type.MOVIE_COMPLETE) { in getPresenter()
61 } else if (card.getType() == Card.Type.SQUARE_BIG) { in getPresenter()
63 } else if (card.getType() == Card.Type.GRID_SQUARE) { in getPresenter()
65 } else if (card.getType() == Card.Type.GAME) { in getPresenter()
88 presenters.put(card.getType(), presenter); in getPresenter()
DImageCardViewPresenter.java55 public void onBindViewHolder(Card card, final ImageCardView cardView) { in onBindViewHolder() argument
56 cardView.setTag(card); in onBindViewHolder()
57 cardView.setTitleText(card.getTitle()); in onBindViewHolder()
58 cardView.setContentText(card.getDescription()); in onBindViewHolder()
59 if (card.getLocalImageResourceName() != null) { in onBindViewHolder()
61 .getIdentifier(card.getLocalImageResourceName(), in onBindViewHolder()
DSideInfoCardPresenter.java50 public void onBindViewHolder(Card card, BaseCardView cardView) { in onBindViewHolder() argument
52 if (card.getLocalImageResourceName() != null) { in onBindViewHolder()
58 .getIdentifier(card.getLocalImageResourceName(), in onBindViewHolder()
65 primaryText.setText(card.getTitle()); in onBindViewHolder()
68 secondaryText.setText(card.getDescription()); in onBindViewHolder()
71 extraText.setText(card.getExtraText()); in onBindViewHolder()
DSingleLineCardPresenter.java33 @Override public void onBindViewHolder(Card card, ImageCardView cardView) { in onBindViewHolder() argument
34 super.onBindViewHolder(card, cardView); in onBindViewHolder()
35 cardView.setInfoAreaBackgroundColor(card.getFooterColor()); in onBindViewHolder()
DAbstractCardPresenter.java51 Card card = (Card) item; in onBindViewHolder() local
52 onBindViewHolder(card, (T) viewHolder.view); in onBindViewHolder()
77 public abstract void onBindViewHolder(Card card, T cardView); in onBindViewHolder() argument
DCharacterCardPresenter.java36 public void onBindViewHolder(Card card, CharacterCardView cardView) { in onBindViewHolder() argument
37 cardView.updateUi(card); in onBindViewHolder()
DTextCardPresenter.java37 public void onBindViewHolder(Card card, TextCardView cardView) { in onBindViewHolder() argument
38 cardView.updateUi(card); in onBindViewHolder()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DShadowCardStack.java67 TextView card = (TextView) cardParent.getChildAt(i); in onCreate() local
68 card.setText("Card number " + i); in onCreate()
71 Animator expand = ObjectAnimator.ofFloat(card, "translationY", targetY); in onCreate()
74 Animator toward = ObjectAnimator.ofFloat(card, "translationZ", i * Z); in onCreate()
78 card.setPivotX(X_SHIFT_DP); in onCreate()
79 Animator rotateAway = ObjectAnimator.ofFloat(card, "rotationY", in onCreate()
84 Animator slideAway = ObjectAnimator.ofFloat(card, "translationX", in onCreate()
90 Animator rotateBack = ObjectAnimator.ofFloat(card, "rotationY", 0); in onCreate()
93 Animator slideBack = ObjectAnimator.ofFloat(card, "translationX", 0); in onCreate()
97 Animator away = ObjectAnimator.ofFloat(card, "translationZ", 0); in onCreate()
[all …]
/development/samples/browseable/CardEmulation/
D_index.jd8 This sample demonstrates how to emulate an NFC card, using the "host card emulation"
9 feature added in Android 4.4. This sample makes the device appear as a loyalty card
13 The "CardReader" sample can be used to read the loyalty card implemented in this sample.
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/
DDetailsDescriptionPresenter.java52 DetailedCard card = (DetailedCard) item; in onBindViewHolder() local
53 primaryText.setText(card.getTitle()); in onBindViewHolder()
54 sndText1.setText(card.getDescription()); in onBindViewHolder()
55 sndText2.setText(card.getYear() + ""); in onBindViewHolder()
56 extraText.setText(card.getText()); in onBindViewHolder()
DDetailViewExampleFragment.java137 for (Card card : data.getRecommended()) listRowAdapter.add(card); in setupUi()
/development/samples/browseable/CardReader/
D_index.jd8 This sample demonstrates how to implement a low-level NFC card reader, for reading cards
10 loyalty card implemented in the "CardEmulation" sample.\n\n
13 reader is interested, and establish communication with the card
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/
DTextCardView.java37 public void updateUi(Card card) { in updateUi() argument
42 extraText.setText(card.getExtraText()); in updateUi()
43 primaryText.setText(card.getTitle()); in updateUi()
46 int resourceId = card.getLocalImageResourceId(getContext()); in updateUi()
DCharacterCardView.java52 public void updateUi(Card card) { in updateUi() argument
56 primaryText.setText(card.getTitle()); in updateUi()
57 if (card.getLocalImageResourceName() != null) { in updateUi()
58 int resourceId = card.getLocalImageResourceId(getContext()); in updateUi()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/
DCardExampleFragment.java86 Card card = (Card) item; in setupUi()
87 int imageResId = card.getLocalImageResourceId(getContext()); in setupUi()
129 for (Card card : cardRow.getCards()) { in createCardRow()
130 listRowAdapter.add(card); in createCardRow()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/page/
DPageAndListRowFragment.java194 Card card = (Card)item; in setupAdapter()
196 "Clicked on "+card.getTitle(), in setupAdapter()
254 for (Card card : cardRow.getCards()) { in createCardRow()
255 adapter.add(card); in createCardRow()
298 for(Card card : cardRow.getCards()) { in createCardRow()
299 adapter.add(card); in createCardRow()
/development/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/
DMainFragment.java81 for (Card card : cardRow.getCards()) { in createCardRow()
82 listRowAdapter.add(card); in createCardRow()
106 Card card = (Card) item; in onItemClicked() local
107 int id = card.getId(); in onItemClicked()
/development/samples/browseable/FindMyPhone/Wearable/src/com.example.android.wearable.findphone/
DDisconnectListenerService.java123 Notification card = notificationBuilder.build(); in setupLostConnectivityNotification() local
125 .notify(FORGOT_PHONE_NOTIFICATION_ID, card); in setupLostConnectivityNotification()
/development/ndk/platforms/android-21/include/linux/
Dmedia.h82 __u32 card; member
Dfirewire-cdev.h84 __u32 card; member
176 __u32 card; member
/development/samples/browseable/AgendaData/Wearable/src/com.example.android.wearable.agendadata/
DHomeListenerService.java162 Notification card = notificationBuilder.build(); in updateNotificationForDataItem() local
165 .notify(sNotificationId, card); in updateNotificationForDataItem()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DGuidedStepActivity.java259 String card; in onGuidedActionClicked() local
261 card = "Visa "+cardNumber; in onGuidedActionClicked()
263 card = "Master "+cardNumber; in onGuidedActionClicked()
266 sCards.add(card); in onGuidedActionClicked()
DGuidedStepSupportActivity.java261 String card; in onGuidedActionClicked() local
263 card = "Visa "+cardNumber; in onGuidedActionClicked()
265 card = "Master "+cardNumber; in onGuidedActionClicked()
268 sCards.add(card); in onGuidedActionClicked()

12