Home
last modified time | relevance | path

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

12

/frameworks/support/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
/frameworks/base/libs/hwui/tests/common/scenes/
DHwLayerAnimation.cpp30 sp<RenderNode> card; member in HwLayerAnimation
32 card = TestUtils::createNode(0, 0, 200, 200, in createContent()
38 canvas.drawRenderNode(card.get()); in createContent()
42 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
43 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
44 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DOvalAnimation.cpp30 sp<RenderNode> card; member in OvalAnimation
33 card = TestUtils::createNode(0, 0, 200, 200, in createContent()
40 canvas.drawRenderNode(card.get()); in createContent()
45 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
46 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
47 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DRoundRectClippingAnimation.cpp38 auto card = TestUtils::createNode(x, y, x + mSize, y + mSize, in createContent() local
45 canvas.drawRenderNode(card.get()); in createContent()
46 cards.push_back(card); in createContent()
55 for (auto& card : cards) { in doFrame() local
56 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
57 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
58 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DRectGridAnimation.cpp31 sp<RenderNode> card; member in RectGridAnimation
36 card = TestUtils::createNode(50, 50, 250, 250, in createContent()
51 canvas.drawRenderNode(card.get()); in createContent()
57 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
58 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
59 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DTextAnimation.cpp30 sp<RenderNode> card; member in TextAnimation
33 card = TestUtils::createNode(0, 0, width, height, in createContent()
51 canvas.drawRenderNode(card.get()); in createContent()
56 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
57 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
58 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DSaveLayerAnimation.cpp30 sp<RenderNode> card; member in SaveLayerAnimation
34 card = TestUtils::createNode(0, 0, 400, 800, in createContent()
57 canvas.drawRenderNode(card.get()); in createContent()
61 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
62 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
63 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DClippingAnimation.cpp30 sp<RenderNode> card; member in ClippingAnimation
33 card = TestUtils::createNode(0, 0, 200, 400, in createContent()
59 canvas.drawRenderNode(card.get()); in createContent()
63 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
64 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
65 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DHwLayerSizeAnimation.cpp31 sp<RenderNode> card; member in HwLayerSizeAnimation
33 card = TestUtils::createNode(0, 0, 200, 200, in createContent()
39 canvas.drawRenderNode(card.get()); in createContent()
45 card->mutateStagingProperties().setLeftTop(curFrame, curFrame); in doFrame()
46 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DShapeAnimation.cpp32 sp<RenderNode> card; member in ShapeAnimation
34 card = TestUtils::createNode(0, 0, width, height, in createContent()
98 canvas.drawRenderNode(card.get()); in createContent()
102 card->mutateStagingProperties().setTranslationY(frameNr % 150); in doFrame()
103 card->setPropertyFieldsDirty(RenderNode::Y); in doFrame()
DRecentsAnimation.cpp52 sp<RenderNode> card = createCard(x, y, cardsize, cardsize, *thumb); in createContent() local
53 card->mutateStagingProperties().setElevation(i * dp(8)); in createContent()
54 renderer.drawRenderNode(card.get()); in createContent()
56 mCards.push_back(card); in createContent()
DPartialDamageAnimation.cpp45 sp<RenderNode> card = TestUtils::createNode(x, y, in createContent() local
50 canvas.drawRenderNode(card.get()); in createContent()
51 cards.push_back(card); in createContent()
DShadowShaderAnimation.cpp37 sp<RenderNode> card = createCard(outset, outset, in createContent() local
39 canvas.drawRenderNode(card.get()); in createContent()
40 cards.push_back(card); in createContent()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbAlsaManager.java89 public AlsaDevice(int type, int card, int device) { in AlsaDevice() argument
91 mCard = card; in AlsaDevice()
211 private AlsaDevice waitForAlsaDevice(int card, int device, int type) { in waitForAlsaDevice() argument
213 Slog.e(TAG, "waitForAlsaDevice(c:" + card + " d:" + device + ")"); in waitForAlsaDevice()
216 AlsaDevice testDevice = new AlsaDevice(type, card, device); in waitForAlsaDevice()
244 int card = -1, device = -1; in alsaFileAdded() local
265 card = Integer.parseInt(name.substring(c_index + 1, d_index)); in alsaFileAdded()
273 AlsaDevice alsaDevice = new AlsaDevice(type, card, device); in alsaFileAdded()
294 /* package */ UsbAudioDevice selectAudioCard(int card) { in selectAudioCard() argument
296 Slog.d(TAG, "selectAudioCard() card:" + card in selectAudioCard()
[all …]
DUsbMidiDevice.java140 public static UsbMidiDevice create(Context context, Bundle properties, int card, int device) { in create() argument
142 int subDeviceCount = nativeGetSubdeviceCount(card, device); in create()
148 UsbMidiDevice midiDevice = new UsbMidiDevice(card, device, subDeviceCount); in create()
157 private UsbMidiDevice(int card, int device, int subdeviceCount) { in UsbMidiDevice() argument
158 mAlsaCard = card; in UsbMidiDevice()
341 private static native int nativeGetSubdeviceCount(int card, int device); in nativeGetSubdeviceCount() argument
342 private native FileDescriptor[] nativeOpen(int card, int device, int subdeviceCount); in nativeOpen() argument
/frameworks/support/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()
/frameworks/base/core/java/com/android/internal/alsa/
DAlsaDevicesParser.java194 public int getDefaultDeviceNum(int card) { in getDefaultDeviceNum() argument
208 public boolean hasPlaybackDevices(int card) { in hasPlaybackDevices() argument
210 if (deviceRecord.mCardNum == card && in hasPlaybackDevices()
225 public boolean hasCaptureDevices(int card) { in hasCaptureDevices() argument
227 if (deviceRecord.mCardNum == card && in hasCaptureDevices()
242 public boolean hasMIDIDevices(int card) { in hasMIDIDevices() argument
244 if (deviceRecord.mCardNum == card && in hasMIDIDevices()
DAlsaCardsParser.java223 int card = getDefaultUsbCard(); in getDefaultCard() local
225 Slog.d(TAG, "getDefaultCard() default usb card:" + card); in getDefaultCard()
228 if (card < 0 && getNumCardRecords() > 0) { in getDefaultCard()
230 card = getCardRecordAt(getNumCardRecords() - 1).mCardNum; in getDefaultCard()
233 Slog.d(TAG, " returns card:" + card); in getDefaultCard()
235 return card; in getDefaultCard()
/frameworks/support/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()
/frameworks/base/services/core/jni/
Dcom_android_server_UsbMidiDevice.cpp43 jint card, jint device) in android_server_UsbMidiDevice_get_subdevice_count() argument
50 snprintf(path, sizeof(path), "/dev/snd/controlC%d", card); in android_server_UsbMidiDevice_get_subdevice_count()
84 android_server_UsbMidiDevice_open(JNIEnv *env, jobject thiz, jint card, jint device, in android_server_UsbMidiDevice_open() argument
89 snprintf(path, sizeof(path), "/dev/snd/midiC%dD%d", card, device); in android_server_UsbMidiDevice_open()

12