Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbAlsaManager.java92 public AlsaDevice(int type, int card, int device) { in AlsaDevice() argument
94 mCard = card; in AlsaDevice()
214 private AlsaDevice waitForAlsaDevice(int card, int device, int type) { in waitForAlsaDevice() argument
216 Slog.e(TAG, "waitForAlsaDevice(c:" + card + " d:" + device + ")"); in waitForAlsaDevice()
219 AlsaDevice testDevice = new AlsaDevice(type, card, device); in waitForAlsaDevice()
247 int card = -1, device = -1; in alsaFileAdded() local
268 card = Integer.parseInt(name.substring(c_index + 1, d_index)); in alsaFileAdded()
276 AlsaDevice alsaDevice = new AlsaDevice(type, card, device); in alsaFileAdded()
297 /* package */ UsbAudioDevice selectAudioCard(int card) { in selectAudioCard() argument
299 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/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()
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()
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.cpp50 sp<RenderNode> card = createCard(x, y, cardsize, cardsize, thumb); in createContent() local
51 card->mutateStagingProperties().setElevation(i * dp(8)); in createContent()
52 renderer.drawRenderNode(card.get()); in createContent()
54 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()
DShadowGrid2Animation.cpp37 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent() local
38 canvas.drawRenderNode(card.get()); in createContent()
39 cards.push_back(card); in createContent()
DShadowGridAnimation.cpp37 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent() local
38 canvas.drawRenderNode(card.get()); in createContent()
39 cards.push_back(card); in createContent()
/frameworks/base/docs/html/distribute/users/
Dyoutube.jd2 page.metaDescription=Bring users from videos to your store listing with a merchandise card availabl…
3 page.image=images/cards/card-instals-from-youtube_16-9_2x.png
9 listing with a merchandise card, one of several card types available to add
10 to YouTube videos. Once published the presence of the merchandise card is
11 indicated in the video with an information icon. When a viewer opens the card
19 <img src="{@docRoot}images/distribute/youtube-card-example.png">
35 <li>Don’t indicate the location of a card within your video, cards might be
/frameworks/base/docs/html/training/tv/playback/
Dnow-playing.jd14 <li><a href="#card">Display a Now Playing Card</a></li>
22 <p>TV apps must display a <em>Now Playing</em> card when playing media behind the launcher or in the
23 background. This card allows users to return to the app that is currently playing media.</p>
25 <p>The Android framework displays a <em>Now Playing</em> card on the home
27 The card includes media metadata such as album art, title, and app icon.
28 When the user selects the card, the system opens the app.</p>
31 the <em>Now Playing</em> card.</p>
34 <p class="img-caption"><strong>Figure 1.</strong> Display a <em>Now Playing</em> card when playing
51 <p class="note"<strong>Note:</strong> The <em>Now Playing</em> card will display
55 <h2 id="card">Display a Now Playing Card</h2>
[all …]
Dcard.jd2 page.tags="card"
13 <li><a href="#card-view">Create a Card View</a></li>
24 displays a list of media items. In this lesson, you create the card views for your media items and
35 <img itemprop="image" src="{@docRoot}images/tv/card-view.png" alt="App card view" id="collapsed"/>
37 Leanback sample app</a> image card view when selected.</p>
87 <h2 id="card-view">Create a Card View</h2>
89 <p>In this step, you build the card presenter with a view holder for the card view that describes
91 different card view types then you need two different card presenters.</p>
114 onCreateViewHolder()} method, create a card view for content items. The sample below uses an
117 <p>When a card is selected, the default behavior expands it to a larger size. If you want to design…
[all …]
/frameworks/base/core/java/com/android/internal/alsa/
DAlsaDevicesParser.java194 public int getDefaultDeviceNum(int card) { in getDefaultDeviceNum() argument
206 public boolean hasPlaybackDevices(int card) { in hasPlaybackDevices() argument
208 if (deviceRecord.mCardNum == card && in hasPlaybackDevices()
221 public boolean hasCaptureDevices(int card) { in hasCaptureDevices() argument
223 if (deviceRecord.mCardNum == card && in hasCaptureDevices()
236 public boolean hasMIDIDevices(int card) { in hasMIDIDevices() argument
238 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/base/docs/html/training/wearables/ui/
Dcards.jd9 <li><a href="#card-fragment">Create a Card Fragment</a></li>
10 <li><a href="#card-layout">Add a Card to Your Layout</a></li>
26 class, which wraps views inside a card-styled frame with a white background, rounded corners, and a
30 you can add other views to customize the content inside the card.</p>
38 <li>Add a card inside a
49 <h2 id="card-fragment">Create a Card Fragment</h2>
53 class provides a default card layout with a title, a description, and an icon. Use this approach to
54 add cards to your app if the default card layout shown in figure 1 meets your needs.</p>
66 <li>In your layout, assign an ID to the element that contains the card</li>
114 <p>To create a card with a custom layout using the
[all …]
/frameworks/base/docs/html/training/animation/
Dcardflip.jd37 <p> This lesson shows you how to do a card flip
40 a card flipping over.
43 <p>Here's what a card flip looks like:
94 Create the animations for the card flips. You'll need two animators for when the front
95 of the card animates out and to the left and in and from the left. You'll also need two
96 animators for when the back of the card animates in and from the right and out and to the
214 Each side of the "card" is a separate layout that can contain any content you want,
217 create one side of a card that shows text:
250 and the other side of the card that displays an {@link android.widget.ImageView}:
267 Create fragment classes for the front and back of the card. These classes return the layouts
[all …]
/frameworks/base/docs/html/design/wear/
Dpatterns.jd31card by default for all notifications in the Context Stream. This is an opportunity for cards to b…
37card. In most cases one additional detail card should be sufficient. For example, a weather card m…
49 <p>Swiping from left to right on a card causes it to be dismissed from the stream. Dismissed cards …
57 …tton and a short caption with a verb. Actions should be limited to three for a single card row.</p>
71 …ly and the result of the action is shown (either by updating the relevant card contents immediatel…
74 <li>The cue card can be invoked to continue specifying the action. For example in a messaging appli…
96 <p>Some cards may benefit from having tappable actions directly on a card. Some guidance on when to…
100 <li>On-card actions should not require a text label to be understood.</li>
101 <li>On-card actions should only result in something happening on the wearable (apart from web links…
102 <li>You should only have one action per card.</li>
[all …]
Dindex.jd33 …id phones and tablets, users swipe vertically to navigate from card to card. Only one card is disp…
50card allows users to speak to Google. The cue card is opened by saying, “OK Google” or by tapping …
54 … tap on a regular in-stream action button: by adding or updating a stream card, or by launching a …
62 …<li>The background, showing either content relating to the first card or a custom watch face desig…
64 …<li>The top ranked card in the Context Stream, peeking up at the bottom of the screen. The amount …
68 … screen. Watch faces display the time and accommodate the top ranked peek card. The user can choos…
70 …s usually involves dimming the screen in some way. The contents of a peek card will automatically …
74 <li>The <strong>Settings screen</strong> can be invoked from the cue card or on some devices using …
Dstyle.jd33 …<p>A core set of standard assets may need to be provided depending on your card design: app icon, …
41card layout to ensure that useful information is conveyed in the peek state on the Home screen. Th…
45 <img src="{@docRoot}design/media/wear/peek-card.png" width="300"
56 …backgrounds that change to reflect and support the primary message in the card work great. For exa…
64card layout to the point where glanceability is affected. Instead, add an additional <a href="{@do…
87card. Note that app icons or branding should not be displayed in the background photo, which is re…
91 …d be as concise as possible, and long pieces of text will be truncated to fit on a single card.</p>
96card. A notification could place the sensitive information on a second page that must be swiped to…
/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()
/frameworks/base/docs/html/training/wearables/watch-faces/
Dissues.jd71 <p>When users receive a notification, the notification card may cover a significant portion of the
75 the notification card is present.</p>
77 <p>Analog watch faces can make adjustments when a notification card is present, like scaling
78 down the watch face to fit inside the portion of the screen not covered by the peek card. Digital
80 usually require adjustments. To determine the free space above the peek card so you can adapt
86 near the card in ambient mode, consider drawing a black rectangle over them to ensure that users
87 can read the contents of the card.</p>
134 the elements of your watch face in response to a peek card, use values that are some fraction
135 of the remaining space above the card to redraw your watch face.</p>

12345678910>>...12