Home
last modified time | relevance | path

Searched refs:selectors (Results 1 – 25 of 162) sorted by relevance

1234567

/external/rust/crates/crossbeam-channel/src/
Dwaker.rs28 selectors: Vec<Entry>, field
39 selectors: Vec::new(), in new()
53 self.selectors.push(Entry { in register_with_packet()
64 .selectors in unregister()
69 let entry = self.selectors.remove(i); in unregister()
81 if !self.selectors.is_empty() { in try_select()
84 for i in 0..self.selectors.len() { in try_select()
86 if self.selectors[i].cx.thread_id() != thread_id { in try_select()
88 let sel = Selected::Operation(self.selectors[i].oper); in try_select()
89 let res = self.selectors[i].cx.try_select(sel); in try_select()
[all …]
/external/python/cpython3/Lib/test/
Dtest_selectors.py4 import selectors
65 key = s.register(rd, selectors.EVENT_READ, "data")
66 self.assertIsInstance(key, selectors.SelectorKey)
69 self.assertEqual(key.events, selectors.EVENT_READ)
76 self.assertRaises(ValueError, s.register, -10, selectors.EVENT_READ)
79 self.assertRaises(KeyError, s.register, rd, selectors.EVENT_READ)
83 selectors.EVENT_READ)
91 s.register(rd, selectors.EVENT_READ)
105 s.register(r, selectors.EVENT_READ)
106 s.register(w, selectors.EVENT_WRITE)
[all …]
Dtest_readline.py8 import selectors
304 sel = cleanup.enter_context(selectors.SelectSelector())
305 sel.register(master, selectors.EVENT_READ | selectors.EVENT_WRITE)
309 if events & selectors.EVENT_READ:
320 if events & selectors.EVENT_WRITE:
329 sel.modify(master, selectors.EVENT_READ)
/external/llvm-project/clang/test/SemaObjC/
Dunsafe-perform-selector.m58 …Struct)]; // expected-warning {{'performSelector:' is incompatible with selectors that return a st…
59 …arning {{'performSelectorInBackground:withObject:' is incompatible with selectors that return a st…
60 …nion)))]; // expected-warning {{'performSelector:' is incompatible with selectors that return a un…
61 … expected-warning {{'performSelectorOnMainThread:' is incompatible with selectors that return a st…
62 …Class))]; // expected-warning {{'performSelector:' is incompatible with selectors that return a st…
90 …uctExt)]; // expected-warning {{'performSelector:' is incompatible with selectors that return a st…
91 …ctImpl)]; // expected-warning {{'performSelector:' is incompatible with selectors that return a st…
95 …Struct)]; // expected-warning {{'performSelector:' is incompatible with selectors that return a st…
96 …arning {{'performSelectorInBackground:withObject:' is incompatible with selectors that return a un…
106 …ssImpl)]; // expected-warning {{'performSelector:' is incompatible with selectors that return a st…
[all …]
/external/skia/modules/skottie/src/text/
DTextAnimator.cpp73 std::vector<sk_sp<RangeSelector>> selectors; in Make() local
78 selectors.reserve(jselectors->size()); in Make()
81 selectors.push_back(std::move(sel)); in Make()
86 selectors.reserve(1); in Make()
87 selectors.push_back(std::move(sel)); in Make()
92 new TextAnimator(std::move(selectors), *jprops, abuilder, acontainer)); in Make()
155 TextAnimator::TextAnimator(std::vector<sk_sp<RangeSelector>>&& selectors, in TextAnimator() argument
159 : fSelectors(std::move(selectors)) in TextAnimator()
/external/python/cpython3/Doc/library/
Dasyncio-platforms.rst47 * :class:`~selectors.SelectSelector` is used to wait on socket events:
94 uses :class:`selectors.KqueueSelector`, which does not support
96 can be manually configured to use :class:`~selectors.SelectSelector`
97 or :class:`~selectors.PollSelector` to support character devices on
101 import selectors
103 selector = selectors.SelectSelector()
Dselectors.rst1 :mod:`selectors` --- High-level I/O multiplexing
4 .. module:: selectors
9 **Source code:** :source:`Lib/selectors.py`
246 import selectors
249 sel = selectors.DefaultSelector()
255 sel.register(conn, selectors.EVENT_READ, read)
271 sel.register(sock, selectors.EVENT_READ, accept)
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_selector_events.py3 import selectors
199 self.assertEqual(selectors.EVENT_READ, mask)
206 self.loop._selector.get_key.return_value = selectors.SelectorKey(
207 1, 1, selectors.EVENT_WRITE, (reader, writer))
216 self.assertEqual(selectors.EVENT_WRITE | selectors.EVENT_READ, mask)
222 self.loop._selector.get_key.return_value = selectors.SelectorKey(
223 1, 1, selectors.EVENT_WRITE, (None, writer))
231 self.assertEqual(selectors.EVENT_WRITE | selectors.EVENT_READ, mask)
236 self.loop._selector.get_key.return_value = selectors.SelectorKey(
237 1, 1, selectors.EVENT_READ, (None, None))
[all …]
Dtest_sock_lowlevel.py481 import selectors
483 if hasattr(selectors, 'KqueueSelector'):
489 selectors.KqueueSelector())
491 if hasattr(selectors, 'EpollSelector'):
496 return asyncio.SelectorEventLoop(selectors.EpollSelector())
498 if hasattr(selectors, 'PollSelector'):
503 return asyncio.SelectorEventLoop(selectors.PollSelector())
510 return asyncio.SelectorEventLoop(selectors.SelectSelector())
/external/libkmsxx/py/tests/
Dcam.py4 import selectors
79 sel = selectors.DefaultSelector()
80 sel.register(cap.fd, selectors.EVENT_READ, readvid)
81 sel.register(sys.stdin, selectors.EVENT_READ, readkey)
Ddb.py5 import selectors
88 sel = selectors.DefaultSelector()
89 sel.register(card.fd, selectors.EVENT_READ, readdrm)
90 sel.register(sys.stdin, selectors.EVENT_READ, readkey)
Dmodeset_event.py4 import selectors
24 sel = selectors.DefaultSelector()
25 sel.register(card.fd, selectors.EVENT_READ, readdrm)
Dwb-m2m-crop.py4 import selectors
112 sel = selectors.PollSelector()
113 sel.register(vid.fd, selectors.EVENT_READ, readvid)
114 sel.register(sys.stdin, selectors.EVENT_READ, readkey)
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_perfcounter.c117 unsigned selectors; member
163 unsigned selectors[SI_QUERY_MAX_COUNTERS]; member
676 unsigned total = block->num_groups * block->b->selectors; in lookup_counter()
739 unsigned *selectors) in si_pc_emit_select() argument
762 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
774 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
785 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
795 radeon_set_uconfig_reg(cs, *reg++, selectors[idx] | regs->select_or); in si_pc_emit_select()
812 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
823 radeon_emit(cs, selectors[idx - 1] | regs->select_or); in si_pc_emit_select()
[all …]
/external/pdfium/core/fxcrt/css/
Dcfx_cssstylesheet.cpp61 std::vector<std::unique_ptr<CFX_CSSSelector>> selectors; in LoadStyleRule() local
73 selectors.push_back(std::move(pSelector)); in LoadStyleRule()
98 if (!pStyleRule && !selectors.empty()) { in LoadStyleRule()
101 pStyleRule->SetSelector(&selectors); in LoadStyleRule()
/external/harfbuzz_ng/src/
Dhb-aat-layout-feat-table.hh99 hb_aat_layout_feature_selector_info_t *selectors, /* OUT. May be NULL. */ in get_selector_infos()
121 | hb_sink (hb_array (selectors, *selectors_count)) in get_selector_infos()
184 hb_aat_layout_feature_selector_info_t *selectors, /* OUT. May be NULL. */ in get_selector_infos()
187 return get_feature (feature_type).get_selector_infos (start_offset, selectors_count, selectors, in get_selector_infos()
/external/mesa3d/src/gallium/drivers/r600/
Dr600_query.h269 unsigned count, unsigned *selectors,
277 unsigned count, unsigned *selectors);
284 unsigned count, unsigned *selectors,
308 unsigned counters, unsigned selectors,
Dr600_perfcounter.c82 unsigned selectors[R600_QUERY_MAX_COUNTERS]; member
148 pc->emit_select(ctx, block, group->num_counters, group->selectors); in r600_pc_query_emit_start()
181 group->num_counters, group->selectors, in r600_pc_query_emit_stop()
350 group->selectors[group->num_counters] = sub_index; in r600_create_batch_query()
376 pc->get_size(block, group->num_counters, group->selectors, in r600_create_batch_query()
406 if (group->selectors[j] == sub_index) in r600_create_batch_query()
605 unsigned counters, unsigned selectors, in r600_perfcounters_add_block() argument
615 block->num_selectors = selectors; in r600_perfcounters_add_block()
/external/python/cpython3/Lib/
Dtelnetlib.py38 import selectors
135 if hasattr(selectors, 'PollSelector'):
136 _TelnetSelector = selectors.PollSelector
138 _TelnetSelector = selectors.SelectSelector
313 selector.register(self, selectors.EVENT_READ)
534 selector.register(self, selectors.EVENT_READ)
543 selector.register(self, selectors.EVENT_READ)
544 selector.register(sys.stdin, selectors.EVENT_READ)
618 selector.register(self, selectors.EVENT_READ)
Dsocketserver.py127 import selectors
147 if hasattr(selectors, 'PollSelector'):
148 _ServerSelector = selectors.PollSelector
150 _ServerSelector = selectors.SelectSelector
229 selector.register(self, selectors.EVENT_READ)
291 selector.register(self, selectors.EVENT_READ)
/external/fec/
Dcpu_mode_ppc.c26 int selectors[2] = { CTL_HW, HW_VECTORUNIT }; in find_cpu_mode() local
29 int error = sysctl(selectors, 2, &hasVectorUnit, &length, NULL, 0); in find_cpu_mode()
/external/python/cpython3/Lib/multiprocessing/
Dforkserver.py3 import selectors
208 selectors.DefaultSelector() as selector:
211 selector.register(listener, selectors.EVENT_READ)
212 selector.register(alive_r, selectors.EVENT_READ)
213 selector.register(sig_r, selectors.EVENT_READ)
/external/ms-tpm-20-ref/TPMCmd/tpm/include/
DTableMarshalTypes.h78 UINT32 selectors[1]; member
518 UINT32 selectors[9]; member
611 UINT32 selectors[11]; member
706 UINT32 selectors[8]; member
768 UINT32 selectors[6]; member
777 UINT32 selectors[6]; member
849 UINT32 selectors[3]; member
865 UINT32 selectors[8]; member
881 UINT32 selectors[5]; member
904 UINT32 selectors[11]; member
[all …]
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiMaintenance3Check.cpp590 vector<bool> selectors(descriptorTypes.size(), false); in iterate() local
591 std::fill(begin(selectors), begin(selectors) + combSize, true); in iterate()
597 for (size_t i = 0; i < selectors.size(); ++i) in iterate()
599 if (selectors[i]) in iterate()
627 } while (std::prev_permutation(begin(selectors), end(selectors))); in iterate()
/external/ltp/testcases/cve/
Dcve-2015-3290.c143 struct selectors { struct
150 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr() argument
157 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr()

1234567