Home
last modified time | relevance | path

Searched refs:port2 (Results 1 - 25 of 100) sorted by relevance

1234

/third_party/node/test/parallel/
H A Dtest-worker-message-port.js8 const { port1, port2 } = new MessageChannel();
10 assert(port2 instanceof MessagePort);
14 port2.on('message', common.mustCall((received) => {
16 port2.close(common.mustCall());
21 const { port2 } = new MessageChannel();
22 port2.addEventListener('foo', common.mustCall((received) => {
26 port2.on('foo', common.mustCall((received) => {
29 port2.emit('foo', 'bar');
32 const { port1, port2 } = new MessageChannel();
38 port2
[all...]
H A Dtest-whatwg-webstreams-transfer.js45 const { port1, port2 } = new MessageChannel();
47 port2.onmessageerror = common.mustNotCall();
50 // port1 first, then again to port2, which reads the data.
57 // 2. Calling port2.postMessage causes a new internal WritableStream W1
66 // 5. ReadableStream R3 is passed to the port2.onmessage callback as the
68 // 6. Once the reader is attached to R3 in the port2.onmessage callback,
89 port2.onmessage = common.mustCall(({ data }) => {
97 port2.close();
107 assert.throws(() => port2.postMessage(readable), {
111 port2
[all...]
H A Dtest-worker-message-port-close.js13 const { port1, port2 } = new MessageChannel();
17 port2.on('message', dummy);
18 port2.off('message', dummy);
22 port2.on('message', dummy);
23 port2.off('message', dummy);
35 const { port2 } = new MessageChannel();
36 port2.close();
37 assert.throws(() => moveMessagePortToContext(port2, {}), {
47 ch.port2.close();
48 ch.port2
[all...]
H A Dtest-worker-message-port-receive-message.js6 const { port1, port2 } = new MessageChannel();
13 assert.strictEqual(receiveMessageOnPort(port2), undefined);
16 assert.deepStrictEqual(receiveMessageOnPort(port2), { message: message1 });
17 assert.deepStrictEqual(receiveMessageOnPort(port2), { message: message2 });
18 assert.strictEqual(receiveMessageOnPort(port2), undefined);
19 assert.strictEqual(receiveMessageOnPort(port2), undefined);
22 port2.on('message', common.mustNotCall());
24 assert.deepStrictEqual(receiveMessageOnPort(port2), { message: message1 });
H A Dtest-worker-message-port-transfer-closed.js10 const { port1, port2 } = new MessageChannel();
14 port2.onmessage = common.mustNotCall();
39 testSingle(port1, port2);
40 testSingle(port2, port1);
48 testSingle(port1, port2);
49 port2.close(common.mustCall(testBothClosed));
H A Dtest-abortsignal-cloneable.js33 mc.port2.postMessage(ac.signal, [ac.signal]);
36 mc.port2.postMessage(ac.signal, [ac.signal]);
38 mc.port2.close();
72 mc.port2.postMessage(signal, [signal]);
81 mc.port2.postMessage(ac.signal, [ac.signal]);
82 mc.port2.close();
H A Dtest-worker-message-port-transfer-fake-js-transferable.js29 const { port1, port2 } = new MessageChannel();
31 port2.on('message', common.mustNotCall());
33 const [ exception ] = await once(port2, 'messageerror');
36 port2.close();
H A Dtest-crypto-key-objects-messageport.js49 const { port1, port2 } = new MessageChannel();
54 port2.once('message', common.mustCall(({ key }) => {
71 const { port1, port2 } = new MessageChannel();
73 const port2moved = moveMessagePortToContext(port2, context);
H A Dtest-https-strict.js166 const port2 = server2.address().port;
182 makeReq('/inv2', port2, 'DEPTH_ZERO_SELF_SIGNED_CERT');
183 makeReq('/inv2-ca1', port2, 'DEPTH_ZERO_SELF_SIGNED_CERT',
185 makeReq('/inv2-ca1ca2', port2, 'DEPTH_ZERO_SELF_SIGNED_CERT',
/third_party/node/test/fixtures/wpt/streams/transferable/
H A Dtransfer-with-messageport.window.js42 { stream, port2: channel.port2 },
43 [stream, channel.port2],
51 { stream, port2: channel.port2 },
52 [channel.port2, stream],
60 { port1: channel.port1, stream, port2: channel.port2 },
61 [channel.port1, stream, channel.port2],
70 [channel.port1, stream, channel.port2],
[all...]
/third_party/selinux/libsepol/src/
H A Dport_record.c109 int sepol_port_compare2(const sepol_port_t * port, const sepol_port_t * port2) in sepol_port_compare2() argument
112 if ((port->low == port2->low) && in sepol_port_compare2()
113 (port->high == port2->high) && (port->proto == port2->proto)) in sepol_port_compare2()
116 if (port->low < port2->low) in sepol_port_compare2()
119 else if (port2->low < port->low) in sepol_port_compare2()
122 else if (port->high < port2->high) in sepol_port_compare2()
125 else if (port2->high < port->high) in sepol_port_compare2()
128 else if (port->proto < port2->proto) in sepol_port_compare2()
H A Dibendports.c140 int port2 = c->u.ibendport.port; in sepol_ibendport_exists() local
142 if (port2 == port && in sepol_ibendport_exists()
168 int port2 = c->u.ibendport.port; in sepol_ibendport_query() local
170 if (port2 == port && in sepol_ibendport_query()
/third_party/node/test/sequential/
H A Dtest-worker-eventlooputil.js61 metricsCh.port2.once('message', mustCall(checkWorkerIdle));
62 metricsCh.port2.postMessage({ cmd: 'elu' });
99 metricsCh.port2.postMessage({ cmd: 'spin', dur: 50 });
100 metricsCh.port2.once('message', (wElu) => {
108 metricsCh.port2.postMessage({ cmd: 'close' });
H A Dtest-dgram-bind-shared-ports.js107 const port2 = socket2.address().port;
108 assert.strictEqual(typeof port2, 'number');
/foundation/multimedia/media_foundation/test/unittest/
H A DTestFilter.cpp27 std::shared_ptr<InPort> port2 = std::make_shared<InPort>(nullptr, "port2"); member in OHOS::Media::Test::UtTestFilter
28 std::vector<PInPort> list {port1, port2};
39 ASSERT_EQ(port2, FilterBase::FindPort(list, "port2")); in HWTEST_F()
/third_party/node/benchmark/worker/
H A Dmessageport.js26 const { port1, port2 } = new MessageChannel();
40 port2.onmessage = listener;
43 port2.on('message', listener);
/third_party/node/lib/internal/
H A Dstructured_clone.js22 channel.port2.unref();
24 return receiveMessageOnPort(channel.port2).message;
H A Dabort_controller.js273 const { port1, port2 } = this[kCloneData];
282 data: { port: port2 },
289 const { port1, port2 } = lazyMessageChannel();
291 port2.unref();
294 port2,
296 return [port2];
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/stream/
H A Ddstream_adaptor_client_test.c59 int32_t port2 = 0; in ConstructVtpStreamOpenParam() local
60 if (sscanf_s(argv[SECOND_ARGV], "%d", &port2) <= 0) { in ConstructVtpStreamOpenParam()
75 p2->peerPort = port2; in ConstructVtpStreamOpenParam()
/kernel/linux/linux-5.10/drivers/ide/
H A Dcmd640.c723 const char *bus_type, *port2; in cmd640x_init() local
809 port2 = "okay"; in cmd640x_init()
812 port2 = "alive"; in cmd640x_init()
814 port2 = "not cmd640"; in cmd640x_init()
819 port2 = "enabled"; in cmd640x_init()
822 port2 = "not responding"; in cmd640x_init()
833 second_port_cmd640 ? "" : "not ", port2); in cmd640x_init()
/kernel/linux/linux-5.10/drivers/gpu/drm/
H A Ddrm_of.c346 * @port2: Second DT port node of the Dual-link LVDS source
360 * @port1 and @port2 are typically DT sibling nodes, but may have different
365 * * DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS - @port1 carries even pixels and @port2
367 * * DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS - @port1 carries odd pixels and @port2
369 * * -EINVAL - @port1 and @port2 are not connected to a dual-link LVDS sink, or
371 * * -EPIPE - when @port1 or @port2 are not connected
374 const struct device_node *port2) in drm_of_lvds_get_dual_link_pixel_order()
378 if (!port1 || !port2) in drm_of_lvds_get_dual_link_pixel_order()
385 remote_p2_pt = drm_of_lvds_get_remote_pixels_type(port2); in drm_of_lvds_get_dual_link_pixel_order()
373 drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, const struct device_node *port2) drm_of_lvds_get_dual_link_pixel_order() argument
/kernel/linux/linux-5.10/include/drm/
H A Ddrm_of.h51 const struct device_node *port2);
97 const struct device_node *port2) in drm_of_lvds_get_dual_link_pixel_order()
96 drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, const struct device_node *port2) drm_of_lvds_get_dual_link_pixel_order() argument
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_of.h53 const struct device_node *port2);
106 const struct device_node *port2) in drm_of_lvds_get_dual_link_pixel_order()
105 drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, const struct device_node *port2) drm_of_lvds_get_dual_link_pixel_order() argument
/foundation/multimedia/media_foundation/engine/pipeline/core/
H A Dpipeline_core.cpp209 ErrorCode PipelineCore::LinkPorts(std::shared_ptr<OutPort> port1, std::shared_ptr<InPort> port2) in LinkPorts() argument
211 FAIL_RETURN(port1->Connect(port2)); in LinkPorts()
212 FAIL_RETURN(port2->Connect(port1)); in LinkPorts()
/kernel/linux/linux-6.6/drivers/gpu/drm/
H A Ddrm_of.c347 * @port2: Second DT port node of the Dual-link LVDS source
361 * @port1 and @port2 are typically DT sibling nodes, but may have different
366 * * DRM_LVDS_DUAL_LINK_EVEN_ODD_PIXELS - @port1 carries even pixels and @port2
368 * * DRM_LVDS_DUAL_LINK_ODD_EVEN_PIXELS - @port1 carries odd pixels and @port2
370 * * -EINVAL - @port1 and @port2 are not connected to a dual-link LVDS sink, or
372 * * -EPIPE - when @port1 or @port2 are not connected
375 const struct device_node *port2) in drm_of_lvds_get_dual_link_pixel_order()
379 if (!port1 || !port2) in drm_of_lvds_get_dual_link_pixel_order()
386 remote_p2_pt = drm_of_lvds_get_remote_pixels_type(port2); in drm_of_lvds_get_dual_link_pixel_order()
374 drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, const struct device_node *port2) drm_of_lvds_get_dual_link_pixel_order() argument

Completed in 9 milliseconds

1234