Home
last modified time | relevance | path

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

123

/frameworks/support/car/src/androidTest/java/androidx/car/widget/
DColumnCardViewTest.java55 ColumnCardView card = mActivity.findViewById(R.id.default_width_column_card); in defaultCardWidthMatchesCalculation() local
59 card.getWidth()); in defaultCardWidthMatchesCalculation()
64 ColumnCardView card = mActivity.findViewById(R.id.span_2_column_card); in customXmlColumnSpanMatchesCalculation() local
66 assertEquals(mCalculator.getSizeForColumnSpan(2), card.getWidth()); in customXmlColumnSpanMatchesCalculation()
73 final ColumnCardView card = mActivity.findViewById(R.id.span_2_column_card); in settingColumnSpanMatchesCalculation() local
74 assertNotEquals(columnSpan, card.getColumnSpan()); in settingColumnSpanMatchesCalculation()
76 card.setColumnSpan(columnSpan); in settingColumnSpanMatchesCalculation()
78 card.getViewTreeObserver().addOnGlobalLayoutListener( in settingColumnSpanMatchesCalculation()
82 assertEquals(mCalculator.getSizeForColumnSpan(columnSpan), card.getWidth()); in settingColumnSpanMatchesCalculation()
90 final ColumnCardView card = mActivity.findViewById(R.id.default_width_column_card); in nonPositiveColumnSpanIsIgnored() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
DEuiccCardController.java199 EuiccCard card = getEuiccCard(cardId); in getAllProfiles() local
200 if (card == null) { in getAllProfiles()
231 card.getAllProfiles(cardCb, mEuiccMainThreadHandler); in getAllProfiles()
239 EuiccCard card = getEuiccCard(cardId); in getProfile() local
240 if (card == null) { in getProfile()
270 card.getProfile(iccid, cardCb, mEuiccMainThreadHandler); in getProfile()
278 EuiccCard card = getEuiccCard(cardId); in disableProfile() local
279 if (card == null) { in disableProfile()
309 card.disableProfile(iccid, refresh, cardCb, mEuiccMainThreadHandler); in disableProfile()
317 EuiccCard card = getEuiccCard(cardId); in switchToProfile() local
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_UsbAlsaJackDetector.cpp55 static jboolean is_jack_connected(jint card, const char* suffix) { in is_jack_connected() argument
56 struct mixer* card_mixer = mixer_open(card); in is_jack_connected()
74 jint card) in android_server_UsbAlsaJackDetector_hasJackDetect() argument
76 struct mixer* card_mixer = mixer_open(card); in android_server_UsbAlsaJackDetector_hasJackDetect()
92 jint card) in android_server_UsbAlsaJackDetector_inputJackConnected() argument
94 return is_jack_connected(card, USB_IN_JACK_SUFFIX); in android_server_UsbAlsaJackDetector_inputJackConnected()
99 jint card) in android_server_UsbAlsaJackDetector_outputJackConnected() argument
101 return is_jack_connected(card, USB_OUT_JACK_SUFFIX); in android_server_UsbAlsaJackDetector_outputJackConnected()
106 jint card) { in android_server_UsbAlsaJackDetector_jackDetect() argument
114 struct mixer* m = mixer_open(card); in android_server_UsbAlsaJackDetector_jackDetect()
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/libs/hwui/tests/common/scenes/
DHwLayerAnimation.cpp29 sp<RenderNode> card; member in HwLayerAnimation
31 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent()
36 canvas.drawRenderNode(card.get()); in createContent()
40 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
41 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
42 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DOvalAnimation.cpp27 sp<RenderNode> card; member in OvalAnimation
30 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent()
36 canvas.drawRenderNode(card.get()); in createContent()
41 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
42 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
43 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DRoundRectClippingAnimation.cpp36 auto card = TestUtils::createNode( in createContent() local
43 canvas.drawRenderNode(card.get()); in createContent()
44 cards.push_back(card); in createContent()
53 for (auto& card : cards) { in doFrame() local
54 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
55 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
56 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DRectGridAnimation.cpp29 sp<RenderNode> card; member in RectGridAnimation
34 card = TestUtils::createNode(50, 50, 250, 250, [](RenderProperties& props, Canvas& canvas) { in createContent()
48 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()
DTextAnimation.cpp26 sp<RenderNode> card; member in TextAnimation
29 card = TestUtils::createNode(0, 0, width, height, [](RenderProperties& props, in createContent()
46 canvas.drawRenderNode(card.get()); in createContent()
51 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
52 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
53 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DClippingAnimation.cpp29 sp<RenderNode> card; member in ClippingAnimation
32 card = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { 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()
DSaveLayerAnimation.cpp30 sp<RenderNode> card; member in SaveLayerAnimation
34 card = TestUtils::createNode(0, 0, 400, 800, [](RenderProperties& props, Canvas& canvas) { in createContent()
56 canvas.drawRenderNode(card.get()); in createContent()
60 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
61 card->mutateStagingProperties().setTranslationY(curFrame); in doFrame()
62 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DJankyScene.cpp31 sp<RenderNode> card; member in JankyScene
34 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent()
38 canvas.drawRenderNode(card.get()); in createContent()
48 card->mutateStagingProperties().setLeftTop(curFrame, curFrame); in doFrame()
49 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DHwLayerSizeAnimation.cpp30 sp<RenderNode> card; member in HwLayerSizeAnimation
32 card = TestUtils::createNode(0, 0, 200, 200, [](RenderProperties& props, Canvas& canvas) { in createContent()
37 canvas.drawRenderNode(card.get()); in createContent()
43 card->mutateStagingProperties().setLeftTop(curFrame, curFrame); in doFrame()
44 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DMagnifierAnimation.cpp29 sp<RenderNode> card; member in MagnifierAnimation
38 card = TestUtils::createNode( in createContent()
47 canvas.drawRenderNode(card.get()); in createContent()
65 card->mutateStagingProperties().setTranslationX(curFrame); in doFrame()
66 card->setPropertyFieldsDirty(RenderNode::X | RenderNode::Y); in doFrame()
DTvApp.cpp76 sp<RenderNode> card = createCard(x, y, dp(160), dp(160), isFirstCard); in createContent() local
78 canvas.drawRenderNode(card.get()); in createContent()
79 mCards.push_back(card); in createContent()
191 sp<RenderNode> card = mCards[ci]; in updateCard() local
192 card->setPropertyFieldsDirty(RenderNode::Y); in updateCard()
193 card->mutateStagingProperties().setTranslationY(curFrame % 150); in updateCard()
197 card->stagingProperties().getWidth(), card->stagingProperties().getHeight(), in updateCard()
198 card.get())); in updateCard()
229 card->setStagingDisplayList(cardcanvas->finishRecording()); in updateCard()
DShapeAnimation.cpp29 sp<RenderNode> card; member in ShapeAnimation
31 card = TestUtils::createNode( in createContent()
94 canvas.drawRenderNode(card.get()); in createContent()
98 card->mutateStagingProperties().setTranslationY(frameNr % 150); in doFrame()
99 card->setPropertyFieldsDirty(RenderNode::Y); in doFrame()
DRecentsAnimation.cpp48 sp<RenderNode> card = createCard(x, y, cardsize, cardsize, *thumb); in createContent() local
49 card->mutateStagingProperties().setElevation(i * dp(8)); in createContent()
50 renderer.drawRenderNode(card.get()); in createContent()
52 mCards.push_back(card); in createContent()
DShadowShaderAnimation.cpp36 sp<RenderNode> card = in createContent() local
38 canvas.drawRenderNode(card.get()); in createContent()
39 cards.push_back(card); in createContent()
DPartialDamageAnimation.cpp41 sp<RenderNode> card = in createContent() local
46 canvas.drawRenderNode(card.get()); in createContent()
47 cards.push_back(card); in createContent()
DShadowGridAnimation.cpp36 sp<RenderNode> card = createCard(x, y, dp(100), dp(100)); in createContent() local
37 canvas.drawRenderNode(card.get()); in createContent()
38 cards.push_back(card); in createContent()
DShadowGrid2Animation.cpp36 sp<RenderNode> card = createCard(x, y, dp(50), dp(50)); in createContent() local
37 canvas.drawRenderNode(card.get()); in createContent()
38 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
DUsbMidiDevice.java142 public static UsbMidiDevice create(Context context, Bundle properties, int card, int device) { in create() argument
144 int subDeviceCount = nativeGetSubdeviceCount(card, device); in create()
150 UsbMidiDevice midiDevice = new UsbMidiDevice(card, device, subDeviceCount); in create()
159 private UsbMidiDevice(int card, int device, int subdeviceCount) { in UsbMidiDevice() argument
160 mAlsaCard = card; in UsbMidiDevice()
357 private static native int nativeGetSubdeviceCount(int card, int device); in nativeGetSubdeviceCount() argument
358 private native FileDescriptor[] nativeOpen(int card, int device, int subdeviceCount); in nativeOpen() argument
/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/support/samples/ViewPager2Demos/src/main/java/com/example/androidx/viewpager2/cards/
DCardView.java43 public void bind(Card card) { in bind() argument
44 mTextSuite.setText(Character.toString(card.getSuit())); in bind()
46 String cornerLabel = card.getCornerLabel(); in bind()

123