Home
last modified time | relevance | path

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

123

/frameworks/base/services/core/jni/
Dcom_android_server_UsbAlsaJackDetector.cpp54 static jboolean is_jack_connected(jint card, const char* suffix) { in is_jack_connected() argument
55 struct mixer* card_mixer = mixer_open(card); in is_jack_connected()
73 jint card) in android_server_UsbAlsaJackDetector_hasJackDetect() argument
75 struct mixer* card_mixer = mixer_open(card); in android_server_UsbAlsaJackDetector_hasJackDetect()
91 jint card) in android_server_UsbAlsaJackDetector_inputJackConnected() argument
93 return is_jack_connected(card, USB_IN_JACK_SUFFIX); in android_server_UsbAlsaJackDetector_inputJackConnected()
98 jint card) in android_server_UsbAlsaJackDetector_outputJackConnected() argument
100 return is_jack_connected(card, USB_OUT_JACK_SUFFIX); in android_server_UsbAlsaJackDetector_outputJackConnected()
105 jint card) { in android_server_UsbAlsaJackDetector_jackDetect() argument
113 struct mixer* m = mixer_open(card); in android_server_UsbAlsaJackDetector_jackDetect()
/frameworks/base/libs/hwui/tests/common/scenes/
DHwLayerAnimation.cpp31 sp<RenderNode> card; member in HwLayerAnimation
33 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { 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.cpp29 sp<RenderNode> card; member in OvalAnimation
32 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent()
38 canvas.drawRenderNode(card.get()); in createContent()
43 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
44 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
45 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DRectGridAnimation.cpp31 sp<RenderNode> card; member in RectGridAnimation
36 card = TestUtils::createNode(50, 50, 250, 250, [](RenderProperties& props, Canvas& canvas) { in createContent()
50 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()
DTextAnimation.cpp29 sp<RenderNode> card; member in TextAnimation
32 card = TestUtils::createNode(0, 0, width, height, [](RenderProperties& props, in createContent()
49 canvas.drawRenderNode(card.get()); in createContent()
54 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
55 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
56 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DJankyScene.cpp33 sp<RenderNode> card; member in JankyScene
36 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent()
40 canvas.drawRenderNode(card.get()); in createContent()
50 card->mutateStagingProperties().setLeftTop(curFrame, curFrame); in doFrame()
51 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DSaveLayerAnimation.cpp32 sp<RenderNode> card; member in SaveLayerAnimation
36 card = TestUtils::createNode(0, 0, 400, 800, [](RenderProperties& props, Canvas& canvas) { in createContent()
60 canvas.drawRenderNode(card.get()); in createContent()
64 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
65 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
66 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DClippingAnimation.cpp31 sp<RenderNode> card; member in ClippingAnimation
34 card = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { 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.cpp32 sp<RenderNode> card; member in HwLayerSizeAnimation
34 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { 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()
DRoundRectClippingAnimation.cpp41 auto card = TestUtils::createNode( in createContent() local
48 canvas.drawRenderNode(card.get()); in createContent()
49 cards.push_back(card); in createContent()
65 for (auto& card : cards) { in doFrame() local
66 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
67 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
68 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DPathClippingAnimation.cpp49 auto card = TestUtils::createNode( in createContent() local
60 canvas.drawRenderNode(card.get()); in createContent()
61 cards.push_back(card); in createContent()
88 for (auto& card : cards) { in doFrame() local
91 card->mutateStagingProperties().mutableOutline().setPath(&path, 1); in doFrame()
93 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
94 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
95 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y | RenderNode::DISPLAY_LIST); in doFrame()
DTvApp.cpp82 sp<RenderNode> card = createCard(x, y, dp(160), dp(160), isFirstCard); in createContent() local
84 canvas.drawRenderNode(card.get()); in createContent()
85 mCards.push_back(card); in createContent()
197 sp<RenderNode> card = mCards[ci]; in updateCard() local
198 card->setPropertyFieldsDirty(RenderNode::Y); in updateCard()
199 card->mutateStagingProperties().setTranslationY(curFrame % 150); in updateCard()
203 card->stagingProperties().getWidth(), card->stagingProperties().getHeight(), in updateCard()
204 card.get())); in updateCard()
235 cardcanvas->finishRecording(card.get()); in updateCard()
DMagnifierAnimation.cpp65 sp<RenderNode> card; member in MagnifierAnimation
77 card = TestUtils::createNode( in createContent()
86 canvas.drawRenderNode(card.get()); in createContent()
111 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
112 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DShapeAnimation.cpp31 sp<RenderNode> card; member in ShapeAnimation
33 card = TestUtils::createNode( in createContent()
96 canvas.drawRenderNode(card.get()); in createContent()
100 card->mutateStagingProperties().setTranslationY(frameNr % 150); in doFrame()
101 card->setPropertyFieldsDirty(RenderNode::Y); in doFrame()
DRecentsAnimation.cpp53 sp<RenderNode> card = createCard(x, y, cardsize, cardsize, *thumb); in createContent() local
54 card->mutateStagingProperties().setElevation(i * dp(8)); in createContent()
55 renderer.drawRenderNode(card.get()); in createContent()
57 mCards.push_back(card); in createContent()
DPartialDamageAnimation.cpp43 sp<RenderNode> card = in createContent() local
48 canvas.drawRenderNode(card.get()); in createContent()
49 cards.push_back(card); in createContent()
DShadowShaderAnimation.cpp38 sp<RenderNode> card = in createContent() local
40 canvas.drawRenderNode(card.get()); in createContent()
41 cards.push_back(card); in createContent()
DShadowGrid2Animation.cpp38 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent() local
39 canvas.drawRenderNode(card.get()); in createContent()
40 cards.push_back(card); in createContent()
DShadowGridAnimation.cpp38 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); 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/
DUsbAlsaJackDetector.java25 private static native boolean nativeHasJackDetect(int card); in nativeHasJackDetect() argument
26 private native boolean nativeJackDetect(int card); in nativeJackDetect() argument
27 private native boolean nativeOutputJackConnected(int card); in nativeOutputJackConnected() argument
28 private native boolean nativeInputJackConnected(int card); in nativeInputJackConnected() argument
DUsbAlsaManager.java443 /* package */ void setPeripheralMidiState(boolean enabled, int card, int device) { in setPeripheralMidiState() argument
457 properties.putInt(MidiDeviceInfo.PROPERTY_ALSA_CARD, card); in setPeripheralMidiState()
459 mPeripheralMidiDevice = UsbAlsaMidiDevice.create(mContext, properties, card, device, in setPeripheralMidiState()
467 private boolean waitForAlsaDevice(int card, boolean isAdded) { in waitForAlsaDevice() argument
469 Slog.e(TAG, "waitForAlsaDevice(c:" + card + ")"); in waitForAlsaDevice()
477 while ((isAdded ^ mAlsaCards.contains(card)) in waitForAlsaDevice()
488 final boolean cardFound = mAlsaCards.contains(card); in waitForAlsaDevice()
490 Slog.e(TAG, "waitForAlsaDevice(" + card + ") timeout"); in waitForAlsaDevice()
492 Slog.i(TAG, "waitForAlsaDevice for device card=" + card + ", isAdded=" + isAdded in waitForAlsaDevice()
527 final int card = getCardNumberFromAlsaFilePath(path); in alsaFileAdded() local
[all …]
/frameworks/base/core/java/com/android/internal/alsa/
DAlsaDevicesParser.java205 public int getDefaultDeviceNum(int card) { in getDefaultDeviceNum() argument
213 public boolean hasPlaybackDevices(int card) { in hasPlaybackDevices() argument
215 if (deviceRecord.mCardNum == card && in hasPlaybackDevices()
224 public boolean hasCaptureDevices(int card) { in hasCaptureDevices() argument
226 if (deviceRecord.mCardNum == card && in hasCaptureDevices()
235 public boolean hasMIDIDevices(int card) { in hasMIDIDevices() argument
237 if (deviceRecord.mCardNum == card && in hasMIDIDevices()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/controller/
DWalletContextualSuggestionsController.kt125 cards.filter { card -> in <lambda>() method
126 card.cardType == WalletCard.CARD_TYPE_NON_PAYMENT && in <lambda>()
127 ids.contains(card.cardId) in <lambda>()
151 callback(cards.filter { card -> card.cardType == WalletCard.CARD_TYPE_NON_PAYMENT }) in <lambda>() method
/frameworks/base/packages/SettingsLib/Spa/gallery/src/com/android/settingslib/spa/gallery/card/
DCardPageProvider.kt17 package com.android.settingslib.spa.gallery.card
49 import com.android.settingslib.spa.widget.card.CardButton
50 import com.android.settingslib.spa.widget.card.CardModel
51 import com.android.settingslib.spa.widget.card.SettingsCard
52 import com.android.settingslib.spa.widget.card.SettingsCardContent
53 import com.android.settingslib.spa.widget.card.SettingsCollapsibleCard
/frameworks/layoutlib/validator/src/com/android/tools/idea/validator/hierarchy/
DCustomHierarchyHelper.java59 Class<?> card = callback.findClass( in isCheckable() local
61 if (card.isInstance(fromView)) { in isCheckable()
62 Method isCheckable = card.getMethod("isCheckable"); in isCheckable()

123