Home
last modified time | relevance | path

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

12345678910>>...22

/external/python/cpython2/Demo/tkinter/guido/
Dsolitaire.py293 def add(self, card): argument
294 self.cards.append(card)
295 card.tkraise()
296 self.position(card)
297 self.group.addtag_withtag(card.group)
299 def delete(self, card): argument
300 self.cards.remove(card)
301 card.group.dtag(self.group)
310 card = self.cards[-1]
311 self.delete(card)
[all …]
/external/libkmsxx/kms++/src/
Dframebuffer.cpp15 Framebuffer::Framebuffer(Card& card, uint32_t width, uint32_t height) in Framebuffer() argument
16 : DrmObject(card, DRM_MODE_OBJECT_FB), m_width(width), m_height(height) in Framebuffer()
18 card.m_framebuffers.push_back(this); in Framebuffer()
21 Framebuffer::Framebuffer(Card& card, uint32_t id) in Framebuffer() argument
22 : DrmObject(card, id, DRM_MODE_OBJECT_FB) in Framebuffer()
24 auto fb = drmModeGetFB(card.fd(), id); in Framebuffer()
35 card.m_framebuffers.push_back(this); in Framebuffer()
45 drmModeDirtyFB(card().fd(), id(), &clip, 1); in flush()
50 auto& fbs = card().m_framebuffers; in ~Framebuffer()
52 card().m_framebuffers.erase(iter); in ~Framebuffer()
Dcrtc.cpp20 Crtc::Crtc(Card &card, uint32_t id, uint32_t idx) in Crtc() argument
21 :DrmPropObject(card, id, DRM_MODE_OBJECT_CRTC, idx) in Crtc()
24 m_priv->drm_crtc = drmModeGetCrtc(this->card().fd(), this->id()); in Crtc()
38 m_priv->drm_crtc = drmModeGetCrtc(this->card().fd(), this->id()); in refresh()
44 for (Plane* plane : card().get_planes()) { in setup()
56 drmModeSetCrtc(card().fd(), id(), c->buffer_id, in restore_mode()
63 AtomicReq req(card()); in set_mode()
65 unique_ptr<Blob> blob = mode.to_blob(card()); in set_mode()
88 return drmModeSetCrtc(card().fd(), id(), fb.id(), in set_mode()
95 return drmModeSetCrtc(card().fd(), id(), 0, 0, 0, 0, 0, 0); in disable_mode()
[all …]
Ddrmpropobject.cpp15 DrmPropObject::DrmPropObject(Card& card, uint32_t object_type) in DrmPropObject() argument
16 : DrmObject(card, object_type) in DrmPropObject()
20 DrmPropObject::DrmPropObject(Card& card, uint32_t id, uint32_t object_type, uint32_t idx) in DrmPropObject() argument
21 : DrmObject(card, id, object_type, idx) in DrmPropObject()
33 auto props = drmModeObjectGetProperties(card().fd(), this->id(), this->object_type()); in refresh_props()
51 auto prop = card().get_prop(pair.first); in get_prop()
68 auto prop = card().get_prop(pair.first); in get_prop_value()
80 return unique_ptr<Blob>(new Blob(card(), blob_id)); in get_prop_value_as_blob()
85 return drmModeObjectSetProperty(card().fd(), this->id(), this->object_type(), id, value); in set_prop_value()
Ddumbframebuffer.cpp23 DumbFramebuffer::DumbFramebuffer(Card &card, uint32_t width, uint32_t height, const string& fourcc) in DumbFramebuffer() argument
24 :DumbFramebuffer(card, width, height, FourCCToPixelFormat(fourcc)) in DumbFramebuffer()
28 DumbFramebuffer::DumbFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format) in DumbFramebuffer() argument
29 :Framebuffer(card, width, height), m_format(format) in DumbFramebuffer()
56 r = drmIoctl(card().fd(), DRM_IOCTL_MODE_CREATE_DUMB, &creq); in Create()
73 r = drmModeAddFB2(card().fd(), width(), height(), (uint32_t)format(), in Create()
84 drmModeRmFB(card().fd(), id()); in Destroy()
96 drmIoctl(card().fd(), DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); in Destroy()
112 int r = drmIoctl(card().fd(), DRM_IOCTL_MODE_MAP_DUMB, &mreq); in map()
118 card().fd(), mreq.offset); in map()
[all …]
Dblob.cpp11 Blob::Blob(Card& card, uint32_t blob_id) in Blob() argument
12 : DrmObject(card, blob_id, DRM_MODE_OBJECT_BLOB), m_created(false) in Blob()
17 Blob::Blob(Card& card, void* data, size_t len) in Blob() argument
18 : DrmObject(card, DRM_MODE_OBJECT_BLOB), m_created(true) in Blob()
22 int r = drmModeCreatePropertyBlob(card.fd(), data, len, &id); in Blob()
32 drmModeDestroyPropertyBlob(card().fd(), id()); in ~Blob()
37 drmModePropertyBlobPtr blob = drmModeGetPropertyBlob(card().fd(), id()); in data()
Dextframebuffer.cpp17 ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, in ExtFramebuffer() argument
19 : Framebuffer(card, width, height) in ExtFramebuffer()
40 …int r = drmModeAddFB2(card.fd(), width, height, (uint32_t)format, handles.data(), pitches.data(), … in ExtFramebuffer()
47 ExtFramebuffer::ExtFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, in ExtFramebuffer() argument
49 : Framebuffer(card, width, height) in ExtFramebuffer()
64 r = drmPrimeFDToHandle(card.fd(), fds[i], &plane.handle); in ExtFramebuffer()
76 r = drmModeAddFB2(card.fd(), width, height, (uint32_t)format, in ExtFramebuffer()
86 drmModeRmFB(card().fd(), id()); in ~ExtFramebuffer()
Dencoder.cpp34 Encoder::Encoder(Card &card, uint32_t id, uint32_t idx) in Encoder() argument
35 :DrmPropObject(card, id, DRM_MODE_OBJECT_ENCODER, idx) in Encoder()
38 m_priv->drm_encoder = drmModeGetEncoder(this->card().fd(), this->id()); in Encoder()
52 m_priv->drm_encoder = drmModeGetEncoder(this->card().fd(), this->id()); in refresh()
59 return card().get_crtc(m_priv->drm_encoder->crtc_id); in get_crtc()
73 auto crtc = card().get_crtcs()[idx]; in get_possible_crtcs()
/external/libkmsxx/kmscube/
Dcube-gbm.cpp28 GbmDevice(Card& card) in GbmDevice() argument
30 m_dev = gbm_create_device(card.fd()); in GbmDevice()
91 GbmEglSurface(Card& card, GbmDevice& gdev, const EglState& egl, int width, int height) in GbmEglSurface() argument
92 : card(card), egl(egl), m_width(width), m_height(height), in GbmEglSurface()
125 static Framebuffer* drm_fb_get_from_bo(struct gbm_bo *bo, Card& card) in drm_fb_get_from_bo() argument
141 fb = new ExtFramebuffer(card, width, height, format, handles, strides, offsets); in drm_fb_get_from_bo()
153 return drm_fb_get_from_bo(bo_next, card); in lock_next()
168 Card& card; member in GbmEglSurface
184 …OutputHandler(Card& card, GbmDevice& gdev, const EglState& egl, Connector* connector, Crtc* crtc, … in OutputHandler() argument
188 …m_surface1 = unique_ptr<GbmEglSurface>(new GbmEglSurface(card, gdev, egl, mode.hdisplay, mode.vdis… in OutputHandler()
[all …]
/external/libkmsxx/utils/
Dkmstest.cpp113 static void parse_crtc(ResourceManager& resman, Card& card, const string& crtc_str, OutputInfo& out… in parse_crtc() argument
136 Crtc* c = card.get_crtc(num); in parse_crtc()
142 auto crtcs = card.get_crtcs(); in parse_crtc()
185 Crtc* c = card.get_crtc(num); in parse_crtc()
191 auto crtcs = card.get_crtcs(); in parse_crtc()
241 static void parse_plane(ResourceManager& resman, Card& card, const string& plane_str, const OutputI… in parse_plane() argument
257 Plane* p = card.get_plane(num); in parse_plane()
263 auto planes = card.get_planes(); in parse_plane()
305 static void get_props(Card& card, vector<PropInfo> &props, const DrmPropObject* propobj) in get_props() argument
311 static vector<Framebuffer*> get_default_fb(Card& card, unsigned width, unsigned height) in get_default_fb() argument
[all …]
Dkmsprint.cpp110 if (p.card().has_atomic()) { in format_plane()
160 Blob blob(prop->card(), blob_id); in format_property()
229 const Property* p = o->card().get_prop(pp.first); in format_props()
365 static void print_as_list(Card& card) in print_as_list() argument
370 for (Connector* conn : card.get_connectors()) { in print_as_list()
374 for (Encoder* enc : card.get_encoders()) { in print_as_list()
378 for (Crtc* crtc : card.get_crtcs()) { in print_as_list()
380 if (crtc->buffer_id() && !card.has_has_universal_planes()) { in print_as_list()
381 Framebuffer* fb = new Framebuffer(card, crtc->buffer_id()); in print_as_list()
386 for (Plane* plane : card.get_planes()) { in print_as_list()
[all …]
/external/adhd/cras/src/server/
Dcras_system_state.c28 struct cras_alsa_card *card; member
358 struct card_list *card; in cras_system_add_alsa_card() local
367 DL_FOREACH(state.cards, card) { in cras_system_add_alsa_card()
368 if (card_index == cras_alsa_card_get_index(card->card)) in cras_system_add_alsa_card()
380 card = calloc(1, sizeof(*card)); in cras_system_add_alsa_card()
381 if (card == NULL) in cras_system_add_alsa_card()
383 card->card = alsa_card; in cras_system_add_alsa_card()
384 DL_APPEND(state.cards, card); in cras_system_add_alsa_card()
390 struct card_list *card; in cras_system_remove_alsa_card() local
392 DL_FOREACH(state.cards, card) { in cras_system_remove_alsa_card()
[all …]
/external/libkmsxx/py/tests/
Dplane_hog.py6 card = pykms.Card() variable
7 res = pykms.ResourceManager(card)
12 for conn in card.connectors:
22 modeb1 = mode1.to_blob(card)
28 modeb2 = mode2.to_blob(card)
34 fb = pykms.DumbFramebuffer(card, fbwidth, fbheight, "AR24");
38 card.disable_planes()
52 req = pykms.AtomicReq(card)
69 req = pykms.AtomicReq(card)
91 req = pykms.AtomicReq(card)
[all …]
Dtest.py13 card = pykms.OmapCard() variable
15 card = pykms.Card() variable
22 res = pykms.ResourceManager(card)
27 modeb = mode.to_blob(card)
30 origfb = pykms.OmapFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
32 origfb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
35 fb = pykms.ExtFramebuffer(card, origfb.width, origfb.height, origfb.format,
42 card.disable_planes()
44 req = pykms.AtomicReq(card)
Dtrans-test.py7 card = pykms.Card() variable
8 card = 0 variable
10 card = pykms.Card() variable
11 res = pykms.ResourceManager(card)
17 for p in card.planes:
22 card.disable_planes()
30 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24"))
31 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24"))
70 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24"))
71 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24"))
[all …]
Dctm_test.py6 def ctm_to_blob(ctm, card): argument
22 return pykms.Blob(card, arr);
30 card = pykms.Card() variable
31 res = pykms.ResourceManager(card)
36 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
47 ctmb = ctm_to_blob(ctm, card)
57 ctmb = ctm_to_blob(ctm, card)
69 ctmb = ctm_to_blob(ctm, card)
Dmodeset_event.py8 for ev in card.read_events():
23 card = pykms.Card() variable
25 sel.register(card.fd, selectors.EVENT_READ, readdrm)
27 res = pykms.ResourceManager(card)
33 modeb = mode.to_blob(card)
41 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, format);
45 card.disable_planes()
49 req = pykms.AtomicReq(card)
Dgamma.py6 card = pykms.Card() variable
7 card = 0 variable
9 card = pykms.Card() variable
10 res = pykms.ResourceManager(card)
15 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
32 gamma = pykms.Blob(card, arr);
Dplane_csc.py5 card = pykms.Card() variable
6 res = pykms.ResourceManager(card)
10 modeb = mode.to_blob(card)
16 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "UYVY");
19 req = pykms.AtomicReq(card)
29 req = pykms.AtomicReq(card)
57 req = pykms.AtomicReq(card)
Ddb.py15 self.fb1 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
16 self.fb2 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
52 if card.has_atomic:
53 ctx = pykms.AtomicReq(card)
64 card = pykms.Card() variable
65 res = pykms.ResourceManager(card)
78 for ev in card.read_events():
89 sel.register(card.fd, selectors.EVENT_READ, readdrm)
/external/ltp/testcases/kernel/security/mmc_security/
DREADME11 the card or assigning a new password to an unlocked card.
12 - change_password.sh: used to change the password from a unlocked card.
13 - forced_erase.sh: used to force-erase a card, usually when the user has forgot
14 the password and wants to unlock the card. NOTE: all the card's contents are
16 - remove_password.sh: used to remove the passwor from a card previously unlocked.
34 1) Unlocking a card:
38 2) Assigning a password to an unlocked card:
42 3) Changing the password (card must be unlocked first):
46 4) Removing the password (card must be unlocked first):
50 5) Force erase card (card must be LOCKED):
/external/u-boot/board/boundary/nitrogen6x/
DREADME.mx6qsabrelite6 1. Boot source, boot from SD card
10 boot from SD card only. However, by default, the SabreLite
12 a small SD card loader to support boot from SD card. This small SD card loader
14 the loader will in turn request the BootROM to load the U-Boot from SD card.
16 The SD card loader is available from
25 1. Write this SD card loader onto a large SD card using:
29 Note: Replace sXx with the device representing the SD card in your system.
31 Note: This writes SD card loader at address 0
33 2. Put this SD card into the slot for the large SD card (SD3 on the bottom of
68 To copy the resulting u-boot.imx to the SD card:
[all …]
/external/adhd/scripts/
Daudio_diagnostics10 for card in ${@}
12 echo '=== amixer -c' $card scontents '==='
13 amixer -c $card scontents
14 echo '=== amixer -c' $card contents '==='
15 amixer -c $card contents
33 output_cards=$(aplay -l | egrep ^card | sed 's/card \([0-9]\+\).*/\1/' | sort -u)
36 input_cards=$(arecord -l | egrep ^card | sed 's/card \([0-9]\+\).*/\1/' | sort -u)
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_QUERYCAP.c77 cap.card, in test_VIDIOC_QUERYCAP()
93 CU_ASSERT(0 < strlen((char *)cap.card)); in test_VIDIOC_QUERYCAP()
94 CU_ASSERT(valid_string((char *)cap.card, sizeof(cap.card))); in test_VIDIOC_QUERYCAP()
118 strncpy((char *)cap2.card, (char *)cap.card, sizeof(cap2.card)); in test_VIDIOC_QUERYCAP()
/external/tinyalsa/
Dtinyhostless.c47 int play_sample(unsigned int card, unsigned int p_device,
62 unsigned int card = 0; in main() local
126 card = atoi(*argv); in main()
147 return play_sample(card, p_device, c_device, num_channels, sample_rate, in main()
176 static int check_params(unsigned int card, unsigned int device, unsigned int direction, in check_params() argument
183 params = pcm_params_get(card, device, direction); in check_params()
216 int play_sample(unsigned int card, unsigned int p_device, in play_sample() argument
247 if (!check_params(card, p_device, PCM_OUT, &config)) in play_sample()
249 pcm_play = pcm_open(card, p_device, PCM_OUT, &config); in play_sample()
258 if (!check_params(card, c_device, PCM_IN, &config)) in play_sample()
[all …]

12345678910>>...22