Home
last modified time | relevance | path

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

123456

/external/python/cpython3/Lib/test/
Dtest_selectors.py4 import selectors
64 key = s.register(rd, selectors.EVENT_READ, "data")
65 self.assertIsInstance(key, selectors.SelectorKey)
68 self.assertEqual(key.events, selectors.EVENT_READ)
75 self.assertRaises(ValueError, s.register, -10, selectors.EVENT_READ)
78 self.assertRaises(KeyError, s.register, rd, selectors.EVENT_READ)
82 selectors.EVENT_READ)
90 s.register(rd, selectors.EVENT_READ)
104 s.register(r, selectors.EVENT_READ)
105 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/python/cpython3/Doc/library/
Dasyncio-platforms.rst37 * :class:`~selectors.SelectSelector` is used to wait on socket events:
95 uses :class:`selectors.KqueueSelector`, which does not support
97 can be manually configured to use :class:`~selectors.SelectSelector`
98 or :class:`~selectors.PollSelector` to support character devices on
102 import selectors
104 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/libkmsxx/py/tests/
Dcam.py4 import selectors
70 sel = selectors.DefaultSelector()
71 sel.register(cap.fd, selectors.EVENT_READ, readvid)
72 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)
Dsync.py7 import selectors
216 sel = selectors.DefaultSelector()
217 sel.register(card.fd, selectors.EVENT_READ, readdrm)
218 sel.register(sys.stdin, selectors.EVENT_READ, readkey)
Dbig_fb.py9 import selectors
271 sel = selectors.DefaultSelector()
272 sel.register(card.fd, selectors.EVENT_READ, readdrm)
273 sel.register(sys.stdin, selectors.EVENT_READ, readkey)
/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()
Dcfx_cssstylesheet_unittest.cpp31 const std::vector<WideString>& selectors, in LoadAndVerifyDecl() argument
39 EXPECT_EQ(selectors.size(), style->CountSelectorLists()); in LoadAndVerifyDecl()
41 for (size_t i = 0; i < selectors.size(); i++) { in LoadAndVerifyDecl()
42 uint32_t hash = FX_HashCode_GetW(selectors[i].AsStringView(), true); in LoadAndVerifyDecl()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dsi_perfcounter.c75 unsigned selectors; member
427 unsigned count, unsigned *selectors, in si_pc_get_size() argument
488 unsigned count, unsigned *selectors) in si_pc_emit_select() argument
512 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
525 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
536 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
546 radeon_set_uconfig_reg(cs, *reg++, selectors[idx] | regs->select_or); in si_pc_emit_select()
563 radeon_emit(cs, selectors[idx] | regs->select_or); in si_pc_emit_select()
574 radeon_emit(cs, selectors[idx - 1] | regs->select_or); in si_pc_emit_select()
629 unsigned count, unsigned *selectors, in si_pc_emit_read() argument
[all …]
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_selector_events.py4 import selectors
601 self.assertEqual(selectors.EVENT_READ, mask)
608 self.loop._selector.get_key.return_value = selectors.SelectorKey(
609 1, 1, selectors.EVENT_WRITE, (reader, writer))
618 self.assertEqual(selectors.EVENT_WRITE | selectors.EVENT_READ, mask)
624 self.loop._selector.get_key.return_value = selectors.SelectorKey(
625 1, 1, selectors.EVENT_WRITE, (None, writer))
633 self.assertEqual(selectors.EVENT_WRITE | selectors.EVENT_READ, mask)
638 self.loop._selector.get_key.return_value = selectors.SelectorKey(
639 1, 1, selectors.EVENT_READ, (None, None))
[all …]
/external/harfbuzz_ng/src/
Dhb-aat-layout-feat-table.hh100 hb_aat_layout_feature_selector_info_t *selectors, /* OUT. May be NULL. */ in get_selector_infos()
123 settings_table[start_offset + i].get_info (&selectors[i], default_selector); in get_selector_infos()
188 hb_aat_layout_feature_selector_info_t *selectors, /* OUT. May be NULL. */ in get_selector_infos()
191 return get_feature (feature_type).get_selector_infos (start_offset, selectors_count, selectors, in get_selector_infos()
/external/python/cpython3/Lib/
Dtelnetlib.py38 import selectors
135 if hasattr(selectors, 'PollSelector'):
136 _TelnetSelector = selectors.PollSelector
138 _TelnetSelector = selectors.SelectSelector
311 selector.register(self, selectors.EVENT_READ)
532 selector.register(self, selectors.EVENT_READ)
541 selector.register(self, selectors.EVENT_READ)
542 selector.register(sys.stdin, selectors.EVENT_READ)
616 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/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/mesa3d/src/gallium/drivers/radeon/
Dr600_query.h273 unsigned count, unsigned *selectors,
281 unsigned count, unsigned *selectors);
288 unsigned count, unsigned *selectors,
312 unsigned counters, unsigned selectors,
Dr600_perfcounter.c78 unsigned selectors[R600_QUERY_MAX_COUNTERS]; member
144 pc->emit_select(ctx, block, group->num_counters, group->selectors); in r600_pc_query_emit_start()
177 group->num_counters, group->selectors, in r600_pc_query_emit_stop()
346 group->selectors[group->num_counters] = sub_index; in si_create_batch_query()
372 pc->get_size(block, group->num_counters, group->selectors, in si_create_batch_query()
402 if (group->selectors[j] == sub_index) in si_create_batch_query()
601 unsigned counters, unsigned selectors, in si_perfcounters_add_block() argument
611 block->num_selectors = selectors; in si_perfcounters_add_block()
/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
187 selectors.DefaultSelector() as selector:
190 selector.register(listener, selectors.EVENT_READ)
191 selector.register(alive_r, selectors.EVENT_READ)
192 selector.register(sig_r, selectors.EVENT_READ)
/external/python/cpython3/Lib/asyncio/
Dselector_events.py12 import selectors
52 selector = selectors.DefaultSelector()
253 self._selector.register(fd, selectors.EVENT_READ,
257 self._selector.modify(fd, mask | selectors.EVENT_READ,
271 mask &= ~selectors.EVENT_READ
289 self._selector.register(fd, selectors.EVENT_WRITE,
293 self._selector.modify(fd, mask | selectors.EVENT_WRITE,
309 mask &= ~selectors.EVENT_WRITE
550 if mask & selectors.EVENT_READ and reader is not None:
555 if mask & selectors.EVENT_WRITE and writer is not None:
[all …]
/external/ltp/testcases/cve/
Dcve-2015-3290.c164 struct selectors { struct
171 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in ssptr() argument
178 struct selectors *sels = (void *)&ctx->uc_mcontext.gregs[REG_CSGSFS]; in csptr()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DSnippet.java145 public static Snippet memberSelectSnippet(Iterable<? extends Object> selectors) {
146 return format(Joiner.on('.').join(Collections.nCopies(Iterables.size(selectors), "%s")),
147 selectors);

123456