| /external/python/cpython2/Demo/tkinter/guido/ |
| D | solitaire.py | 17 I'm not much of a card player, so my terminology in these comments may 42 # work in a "grid" where each card/stack is surrounded by MARGIN 87 # Card values are 1-13. We also define symbolic names for the picture 88 # cards. ALLVALUES is a list of all card values. 98 # VALNAMES is a list that maps a card value to string. It contains a 99 # dummy element at index 0 so it can be indexed directly with the card 115 class Card: class 117 """A playing card. 119 A card doesn't record to which stack it belongs; only the stack 126 moveto(x, y) -- move the card to an absolute position [all …]
|
| /external/chromium-trace/catapult/third_party/polymer/components/paper-card/ |
| D | README.md | 5 paper-card.html 15 …s://travis-ci.org/PolymerElements/paper-card.svg?branch=master)](https://travis-ci.org/PolymerElem… 17 _[Demo and API docs](https://elements.polymer-project.org/elements/paper-card)_ 20 ##<paper-card> 24 `paper-card` is a container with a drop shadow. 29 <paper-card heading="Card Title"> 30 <div class="card-content">Some content</div> 31 <div class="card-actions"> 34 </paper-card> 37 Example - top card image: [all …]
|
| D | paper-card.html | 20 `paper-card` is a container with a drop shadow. 24 <paper-card heading="Card Title"> 25 <div class="card-content">Some content</div> 26 <div class="card-actions"> 29 </paper-card> 31 Example - top card image: 33 <paper-card heading="Card Title" image="/path/to/image.png"> 35 </paper-card> 47 `--paper-card-background-color` | The background color of the card | `--primary-background-color` 48 `--paper-card-header-color` | The color of the header text | `#000` [all …]
|
| /external/grpc-grpc/third_party/upb/upb/wire/internal/ |
| D | decode_fast.h | 69 #define F(card, type, valbytes, tagbytes) \ argument 70 const char* upb_p##card##type##valbytes##_##tagbytes##bt(UPB_PARSE_PARAMS); 72 #define TYPES(card, tagbytes) \ argument 73 F(card, b, 1, tagbytes) \ 74 F(card, v, 4, tagbytes) \ 75 F(card, v, 8, tagbytes) \ 76 F(card, z, 4, tagbytes) \ 77 F(card, z, 8, tagbytes) \ 78 F(card, f, 4, tagbytes) \ 79 F(card, f, 8, tagbytes) [all …]
|
| D | decode_fast.c | 236 int valbytes, upb_card card) { in fastdecode_getfield() argument 237 switch (card) { in fastdecode_getfield() 280 #define FASTDECODE_CHECKPACKED(tagbytes, card, func) \ argument 282 if (card == CARD_r && fastdecode_flippacked(&data, tagbytes)) { \ 331 valbytes, card, zigzag, packed) \ argument 336 FASTDECODE_CHECKPACKED(tagbytes, card, packed); \ 339 card); \ 340 if (card == CARD_r) { \ 347 if (card == CARD_r) { \ 357 if (card == CARD_r) { \ [all …]
|
| /external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/wire/ |
| D | decode_fast.h | 89 #define F(card, type, valbytes, tagbytes) \ argument 90 const char* upb_p##card##type##valbytes##_##tagbytes##bt(UPB_PARSE_PARAMS); 92 #define TYPES(card, tagbytes) \ argument 93 F(card, b, 1, tagbytes) \ 94 F(card, v, 4, tagbytes) \ 95 F(card, v, 8, tagbytes) \ 96 F(card, z, 4, tagbytes) \ 97 F(card, z, 8, tagbytes) \ 98 F(card, f, 4, tagbytes) \ 99 F(card, f, 8, tagbytes) [all …]
|
| D | decode_fast.c | 253 int valbytes, upb_card card) { in fastdecode_getfield() argument 254 switch (card) { in fastdecode_getfield() 297 #define FASTDECODE_CHECKPACKED(tagbytes, card, func) \ argument 299 if (card == CARD_r && fastdecode_flippacked(&data, tagbytes)) { \ 348 valbytes, card, zigzag, packed) \ argument 353 FASTDECODE_CHECKPACKED(tagbytes, card, packed); \ 356 card); \ 357 if (card == CARD_r) { \ 364 if (card == CARD_r) { \ 374 if (card == CARD_r) { \ [all …]
|
| /external/chromium-trace/catapult/third_party/polymer/components/paper-card/demo/ |
| D | index.html | 13 <title>paper-card demo</title> 34 <link rel="import" href="../paper-card.html"> 47 paper-card { 74 paper-card.dark, paper-card.amber, paper-card.lime, paper-card.cyan { 76 --paper-card-header-color: white; 99 <h3>A paper-card with a simple heading, header image, body content, and actions</h3> 102 <paper-card heading="Emmental" image="http://placehold.it/350x150/FFC107/000000"> 103 <div class="card-content"> 106 <div class="card-actions"> 110 </paper-card> [all …]
|
| /external/linux-kselftest/tools/testing/selftests/alsa/ |
| D | mixer-test.c | 34 int card; member 49 struct card_data *card; member 55 " @args [ CARD ]\n" 56 " @args.CARD.type string\n" 58 " card $CARD\n" 106 int card, ctl, err; in find_controls() local 111 card = -1; in find_controls() 112 if (snd_card_next(&card) < 0 || card < 0) in find_controls() 122 while (card >= 0) { in find_controls() 123 sprintf(name, "hw:%d", card); in find_controls() [all …]
|
| /external/rust/crates/drm/examples/ |
| D | properties.rs | 1 /// Check the `util` module to see how the `Card` structure is implemented. 5 fn print_properties<T: drm::control::ResourceHandle>(card: &Card, handle: T) { in print_properties() argument 6 let props = card.get_properties(handle).unwrap(); in print_properties() 10 let info = card.get_property(id).unwrap(); in print_properties() 21 let card = Card::open_global(); in main() localVariable 25 if let Err(e) = card.set_client_capability(cap, true) { in main() 31 let resources = card.resource_handles().unwrap(); in main() 32 let plane_res = card.plane_handles().unwrap(); in main() 35 print_properties(&card, handle); in main() 39 print_properties(&card, handle); in main() [all …]
|
| D | kms_interactive.rs | 1 /// Check the `util` module to see how the `Card` structure is implemented. 7 let card = Card::open_global(); in main() localVariable 11 if let Err(e) = card.set_client_capability(cap, true) { in main() 17 run_repl(&card); in main() 20 fn run_repl(card: &Card) { in run_repl() argument 32 let mut db = card in run_repl() 37 let _fb = card.add_framebuffer(&db, 24, 32).unwrap(); in run_repl() 41 let mut mapping = card.map_dumb_buffer(&mut db).unwrap(); in run_repl() 80 if let Err(err) = card.destroy_framebuffer(handle) { in run_repl() 86 let resources = card.resource_handles().unwrap(); in run_repl() [all …]
|
| D | atomic_modeset.rs | 12 let card = Card::open_global(); in main() localVariable 14 card.set_client_capability(drm::ClientCapability::UniversalPlanes, true) in main() 16 card.set_client_capability(drm::ClientCapability::Atomic, true) in main() 20 let res = card in main() 26 .flat_map(|con| card.get_connector(*con, true)) in main() 31 .flat_map(|crtc| card.get_crtc(*crtc)) in main() 54 let mut db = card in main() 60 let mut map = card in main() 69 let fb = card in main() 73 let planes = card.plane_handles().expect("Could not list planes"); in main() [all …]
|
| D | resources.rs | 1 /// Check the `util` module to see how the `Card` structure is implemented. 6 let card = Card::open_global(); in main() localVariable 10 if let Err(e) = card.set_client_capability(cap, true) { in main() 16 let resources = card.resource_handles().unwrap(); in main() 17 let plane_res = card.plane_handles().unwrap(); in main() 19 // Print out all card resource handles in main() 27 let info = card.get_connector(handle, false).unwrap(); in main() 35 for mode in card.get_modes(handle).unwrap() { in main() 42 let info = card.get_encoder(handle).unwrap(); in main() 50 let info = card.get_crtc(handle).unwrap(); in main() [all …]
|
| /external/libkmsxx/kms++/src/ |
| D | card.cpp | 47 vector<string> paths = glob("/dev/dri/card*"); in open_first_kms_device() 70 throw runtime_error("No modesetting DRM card found"); in open_first_kms_device() 81 // open Nth DRM card with the given driver name 87 vector<string> paths = glob("/dev/dri/card*"); in open_device_by_driver() 110 std::unique_ptr<Card> Card::open_named_card(const std::string& name) in open_named_card() 115 throw invalid_argument(string(strerror(errno)) + " opening card \"" + name + "\""); in open_named_card() 117 return std::unique_ptr<Card>(new Card(fd, true)); in open_named_card() 120 Card::Card(const std::string& dev_path) in Card() function in kms::Card 157 Card::Card(const std::string& driver, uint32_t idx) in Card() function in kms::Card 164 Card::Card(int fd, bool take_ownership) in Card() function in kms::Card [all …]
|
| D | framebuffer.cpp | 14 Framebuffer::Framebuffer(Card& card, uint32_t width, uint32_t height) in Framebuffer() argument 15 : DrmObject(card, DRM_MODE_OBJECT_FB), m_width(width), m_height(height) in Framebuffer() 17 card.m_framebuffers.push_back(this); in Framebuffer() 20 Framebuffer::Framebuffer(Card& card, uint32_t id) in Framebuffer() argument 21 : DrmObject(card, id, DRM_MODE_OBJECT_FB) in Framebuffer() 23 auto fb = drmModeGetFB(card.fd(), id); in Framebuffer() 34 card.m_framebuffers.push_back(this); in Framebuffer() 44 drmModeDirtyFB(card().fd(), id(), &clip, 1); in flush() 49 auto& fbs = card().m_framebuffers; in ~Framebuffer() 51 card().m_framebuffers.erase(iter); in ~Framebuffer()
|
| D | drmpropobject.cpp | 14 DrmPropObject::DrmPropObject(Card& card, uint32_t object_type) in DrmPropObject() argument 15 : DrmObject(card, object_type) in DrmPropObject() 19 DrmPropObject::DrmPropObject(Card& card, uint32_t id, uint32_t object_type, uint32_t idx) in DrmPropObject() argument 20 : DrmObject(card, id, object_type, idx) in DrmPropObject() 31 auto props = drmModeObjectGetProperties(card().fd(), this->id(), this->object_type()); in refresh_props() 49 auto prop = card().get_prop(pair.first); in get_prop() 66 auto prop = card().get_prop(pair.first); in get_prop_value() 78 return unique_ptr<Blob>(new Blob(card(), blob_id)); in get_prop_value_as_blob() 83 return drmModeObjectSetProperty(card().fd(), this->id(), this->object_type(), prop->id(), value); in set_prop_value() 88 return drmModeObjectSetProperty(card().fd(), this->id(), this->object_type(), id, value); in set_prop_value()
|
| D | crtc.cpp | 18 Crtc::Crtc(Card& card, uint32_t id, uint32_t idx) in Crtc() argument 19 : DrmPropObject(card, id, DRM_MODE_OBJECT_CRTC, idx) in Crtc() 22 m_priv->drm_crtc = drmModeGetCrtc(this->card().fd(), this->id()); in Crtc() 36 m_priv->drm_crtc = drmModeGetCrtc(this->card().fd(), this->id()); in refresh() 42 for (Plane* plane : card().get_planes()) { in setup() 54 drmModeSetCrtc(card().fd(), id(), c->buffer_id, in restore_mode() 61 AtomicReq req(card()); in set_mode() 63 unique_ptr<Blob> blob = mode.to_blob(card()); in set_mode() 86 return drmModeSetCrtc(card().fd(), id(), fb.id(), in set_mode() 93 return drmModeSetCrtc(card().fd(), id(), 0, 0, 0, 0, 0, 0); in disable_mode() [all …]
|
| /external/libkmsxx/kmscube/ |
| D | cube-gbm.cpp | 28 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/trusty/arm-trusted-firmware/drivers/brcm/emmc/ |
| D | emmc_csl_sdcmd.c | 150 int sd_cmd9(struct sd_handle *handle, struct sd_card_data *card) in sd_cmd9() argument 168 if (handle->card->type == SD_CARD_MMC) { in sd_cmd9() 169 card->csd.mmc.structure = (resp.data.r2.rsp4 >> 22) & 0x3; in sd_cmd9() 170 card->csd.mmc.csdSpecVer = (resp.data.r2.rsp4 >> 18) & 0x0f; in sd_cmd9() 171 card->csd.mmc.taac = (resp.data.r2.rsp4 >> 8) & 0xff; in sd_cmd9() 172 card->csd.mmc.nsac = resp.data.r2.rsp4 & 0xff; in sd_cmd9() 173 card->csd.mmc.speed = resp.data.r2.rsp3 >> 24; in sd_cmd9() 174 card->csd.mmc.classes = (resp.data.r2.rsp3 >> 12) & 0xfff; in sd_cmd9() 175 card->csd.mmc.rdBlkLen = (resp.data.r2.rsp3 >> 8) & 0xf; in sd_cmd9() 176 card->csd.mmc.rdBlkPartial = (resp.data.r2.rsp3 >> 7) & 0x01; in sd_cmd9() [all …]
|
| /external/arm-trusted-firmware/drivers/brcm/emmc/ |
| D | emmc_csl_sdcmd.c | 150 int sd_cmd9(struct sd_handle *handle, struct sd_card_data *card) in sd_cmd9() argument 168 if (handle->card->type == SD_CARD_MMC) { in sd_cmd9() 169 card->csd.mmc.structure = (resp.data.r2.rsp4 >> 22) & 0x3; in sd_cmd9() 170 card->csd.mmc.csdSpecVer = (resp.data.r2.rsp4 >> 18) & 0x0f; in sd_cmd9() 171 card->csd.mmc.taac = (resp.data.r2.rsp4 >> 8) & 0xff; in sd_cmd9() 172 card->csd.mmc.nsac = resp.data.r2.rsp4 & 0xff; in sd_cmd9() 173 card->csd.mmc.speed = resp.data.r2.rsp3 >> 24; in sd_cmd9() 174 card->csd.mmc.classes = (resp.data.r2.rsp3 >> 12) & 0xfff; in sd_cmd9() 175 card->csd.mmc.rdBlkLen = (resp.data.r2.rsp3 >> 8) & 0xf; in sd_cmd9() 176 card->csd.mmc.rdBlkPartial = (resp.data.r2.rsp3 >> 7) & 0x01; in sd_cmd9() [all …]
|
| /external/ltp/testcases/kernel/security/mmc_security/ |
| D | README | 11 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/libkmsxx/py/pykms/ |
| D | pykmsbase.cpp | 22 py::class_<Card>(m, "Card") in init_pykmsbase() 26 .def_property_readonly("fd", &Card::fd) in init_pykmsbase() 27 .def_property_readonly("minor", &Card::dev_minor) in init_pykmsbase() 28 .def_property_readonly("get_first_connected_connector", &Card::get_first_connected_connector) in init_pykmsbase() 33 .def_property_readonly("connectors", [](Card* self) { in init_pykmsbase() 37 .def_property_readonly("crtcs", [](Card* self) { in init_pykmsbase() 41 .def_property_readonly("encoders", [](Card* self) { in init_pykmsbase() 45 .def_property_readonly("planes", [](Card* self) { in init_pykmsbase() 49 .def_property_readonly("has_atomic", &Card::has_atomic) in init_pykmsbase() 50 .def("get_prop", (Property * (Card::*)(uint32_t) const) & Card::get_prop) in init_pykmsbase() [all …]
|
| /external/libkmsxx/utils/ |
| D | kmstest.cpp | 110 static void parse_crtc(ResourceManager& resman, Card& card, const string& crtc_str, OutputInfo& out… in parse_crtc() argument 133 Crtc* c = card.get_crtc(num); in parse_crtc() 139 auto crtcs = card.get_crtcs(); in parse_crtc() 182 Crtc* c = card.get_crtc(num); in parse_crtc() 188 auto crtcs = card.get_crtcs(); in parse_crtc() 243 static void parse_plane(ResourceManager& resman, Card& card, const string& plane_str, const OutputI… in parse_plane() argument 259 Plane* p = card.get_plane(num); in parse_plane() 265 auto planes = card.get_planes(); in parse_plane() 307 static void get_props(Card& card, vector<PropInfo>& props, const DrmPropObject* propobj) in get_props() argument 313 static vector<Framebuffer*> get_default_fb(Card& card, unsigned width, unsigned height) in get_default_fb() argument [all …]
|
| /external/libkmsxx/py/tests/ |
| D | ctm_test.py | 7 def ctm_to_blob(ctm, card): argument 23 return pykms.Blob(card, arr); 35 card = pykms.Card() variable 36 res = pykms.ResourceManager(card) 44 modeb = mode.to_blob(card) 46 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 52 plane = card.planes[args.plane] 54 card.disable_planes() 63 ctmb = ctm_to_blob(ctm, card) 65 req = pykms.AtomicReq(card) [all …]
|
| D | test.py | 14 card = pykms.OmapCard() variable 16 card = pykms.Card() variable 18 res = pykms.ResourceManager(card) 23 modeb = mode.to_blob(card) 26 origfb = pykms.OmapFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 28 origfb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 31 fb = pykms.DmabufFramebuffer(card, origfb.width, origfb.height, origfb.format, 38 card.disable_planes() 40 req = pykms.AtomicReq(card)
|