/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/ |
D | CardPresenterSelector.java | 43 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()
|
D | ImageCardViewPresenter.java | 55 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()
|
D | SideInfoCardPresenter.java | 50 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()
|
D | SingleLineCardPresenter.java | 33 @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()
|
D | AbstractCardPresenter.java | 51 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/ |
D | HwLayerAnimation.cpp | 30 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()
|
D | OvalAnimation.cpp | 30 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()
|
D | RoundRectClippingAnimation.cpp | 38 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()
|
D | RectGridAnimation.cpp | 31 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()
|
D | TextAnimation.cpp | 30 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()
|
D | SaveLayerAnimation.cpp | 30 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()
|
D | ClippingAnimation.cpp | 30 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()
|
D | HwLayerSizeAnimation.cpp | 31 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()
|
D | ShapeAnimation.cpp | 32 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()
|
D | RecentsAnimation.cpp | 52 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()
|
D | PartialDamageAnimation.cpp | 45 sp<RenderNode> card = TestUtils::createNode(x, y, in createContent() local 50 canvas.drawRenderNode(card.get()); in createContent() 51 cards.push_back(card); in createContent()
|
D | ShadowShaderAnimation.cpp | 37 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/ |
D | UsbAlsaManager.java | 89 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 …]
|
D | UsbMidiDevice.java | 140 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/ |
D | DetailsDescriptionPresenter.java | 52 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/ |
D | AlsaDevicesParser.java | 194 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()
|
D | AlsaCardsParser.java | 223 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/ |
D | TextCardView.java | 37 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()
|
D | CharacterCardView.java | 52 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/ |
D | com_android_server_UsbMidiDevice.cpp | 43 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()
|