Home
last modified time | relevance | path

Searched refs:Channel (Results 1 – 25 of 109) sorted by relevance

12345

/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/udp_negotiation/
H A Dtrans_udp_manager_test.cpp80 if (Channel == nullptr) { in GetPackTest()
105 return Channel; in GetPackTest()
141 ASSERT_TRUE(Channel != nullptr);
158 ASSERT_TRUE(Channel != nullptr);
190 ASSERT_TRUE(Channel != nullptr);
191 Channel->seq = 20;
214 ASSERT_TRUE(Channel != nullptr);
248 ASSERT_TRUE(Channel != nullptr);
277 ASSERT_TRUE(Channel != nullptr);
307 ASSERT_TRUE(Channel != nullptr);
[all …]
H A Dtrans_udp_nego_test.cpp102 if (Channel == NULL) { in CreateUdpChannelPackTest()
105 Channel->requestId = 1; in CreateUdpChannelPackTest()
106 Channel->seq = 1; in CreateUdpChannelPackTest()
107 Channel->info.myData.channelId = TestGetChannelId(); in CreateUdpChannelPackTest()
108 Channel->info.myData.pid = 1; in CreateUdpChannelPackTest()
109 Channel->info.appType = APP_TYPE_NORMAL; in CreateUdpChannelPackTest()
110 Channel->info.myData.apiVersion = API_V2; in CreateUdpChannelPackTest()
111 Channel->info.businessType = BUSINESS_TYPE_MESSAGE; in CreateUdpChannelPackTest()
112 Channel->info.peerData.apiVersion = API_V2; in CreateUdpChannelPackTest()
115 Channel->info.crc = APP_INFO_FILE_FEATURES_SUPPORT; in CreateUdpChannelPackTest()
[all …]
/ohos5.0/foundation/multimodalinput/input/intention/common/channel/include/
H A Dchannel.h30 class Channel {
159 Channel() = default;
160 ~Channel() = default;
181 std::pair<typename Channel<Event>::Sender, typename Channel<Event>::Receiver> Channel<Event>::OpenC… in OpenChannel()
183 std::shared_ptr<Channel<Event>> channel = std::make_shared<Channel<Event>>(); in OpenChannel()
184 return std::make_pair(Channel<Event>::Sender(channel), Channel<Event>::Receiver(channel)); in OpenChannel()
188 void Channel<Event>::Enable() in Enable()
195 void Channel<Event>::Disable() in Disable()
221 Event Channel<Event>::Peek() in Peek()
233 void Channel<Event>::Pop() in Pop()
[all …]
/ohos5.0/base/msdp/device_status/intention/common/channel/include/
H A Dchannel.h30 class Channel {
159 Channel() = default;
160 ~Channel() = default;
181 std::pair<typename Channel<Event>::Sender, typename Channel<Event>::Receiver> Channel<Event>::OpenC… in OpenChannel()
183 std::shared_ptr<Channel<Event>> channel = std::make_shared<Channel<Event>>(); in OpenChannel()
184 return std::make_pair(Channel<Event>::Sender(channel), Channel<Event>::Receiver(channel)); in OpenChannel()
188 void Channel<Event>::Enable() in Enable()
195 void Channel<Event>::Disable() in Disable()
221 Event Channel<Event>::Peek() in Peek()
233 void Channel<Event>::Pop() in Pop()
[all …]
/ohos5.0/foundation/multimodalinput/input/intention/common/channel/test/
H A Dchannel_test.cpp51 auto [sender, receiver] = Channel<size_t>::OpenChannel();
52 constexpr size_t count = Channel<size_t>::QUEUE_CAPACITY;
57 EXPECT_EQ(sender.Send(index), Channel<size_t>::NO_ERROR); in __anon6484951c0202()
80 auto [sender, receiver] = Channel<size_t>::OpenChannel();
81 constexpr size_t count = Channel<size_t>::QUEUE_CAPACITY;
86 EXPECT_EQ(sender.Send(index), Channel<size_t>::NO_ERROR); in __anon6484951c0302()
109 auto [sender, receiver] = Channel<size_t>::OpenChannel();
111 EXPECT_EQ(sender.Send(data), Channel<size_t>::INACTIVE_CHANNEL);
122 auto [sender, receiver] = Channel<size_t>::OpenChannel();
127 EXPECT_EQ(sender.Send(data++), Channel<size_t>::NO_ERROR);
[all …]
/ohos5.0/base/msdp/device_status/test/unittest/intention/common/src/
H A Dchannel_test.cpp51 auto [sender, receiver] = Channel<size_t>::OpenChannel();
52 constexpr size_t count = Channel<size_t>::QUEUE_CAPACITY;
57 EXPECT_EQ(sender.Send(index), Channel<size_t>::NO_ERROR); in __anonb4f9918d0202()
80 auto [sender, receiver] = Channel<size_t>::OpenChannel();
81 constexpr size_t count = Channel<size_t>::QUEUE_CAPACITY;
86 EXPECT_EQ(sender.Send(index), Channel<size_t>::NO_ERROR); in __anonb4f9918d0302()
109 auto [sender, receiver] = Channel<size_t>::OpenChannel();
111 EXPECT_EQ(sender.Send(data), Channel<size_t>::INACTIVE_CHANNEL);
122 auto [sender, receiver] = Channel<size_t>::OpenChannel();
127 EXPECT_EQ(sender.Send(data++), Channel<size_t>::NO_ERROR);
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-secureElement.md729 | Promise\<[Channel](#channel)> | 以Promise形式异步返回可用的基础Channel对象实例。 |
853 | Promise\<[Channel](#channel)> | 以Promise形式异步返回可用的基础Channel对象实例。 |
979 | Promise\<[Channel](#channel)> | 以Promise形式异步返回可用的逻辑Channel对象实例。 |
1103 | Promise\<[Channel](#channel)> | 以Promise形式异步返回可用的逻辑Channel实例对象。 |
1210 ## Channel section
1255 ### Channel.close
1259 关闭Channel
1293 检查该Channel是否为基础Channel
1301 | boolean | true: 该Channel是基础Channel, false:该Channel逻辑Channel 。 |
1330 ### Channel.isClosed
[all …]
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/src/
H A Dcooperate.cpp58 if (ret != Channel<CooperateEvent>::NO_ERROR) { in AddObserver()
71 if (ret != Channel<CooperateEvent>::NO_ERROR) { in RemoveObserver()
84 if (ret != Channel<CooperateEvent>::NO_ERROR) { in RegisterListener()
98 if (ret != Channel<CooperateEvent>::NO_ERROR) { in UnregisterListener()
112 if (ret != Channel<CooperateEvent>::NO_ERROR) { in RegisterHotAreaListener()
126 if (ret != Channel<CooperateEvent>::NO_ERROR) { in UnregisterHotAreaListener()
142 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Enable()
157 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Disable()
181 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Start()
197 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Stop()
[all …]
H A Dcooperate_context.cpp41 explicit BoardObserver(Channel<CooperateEvent>::Sender sender) : sender_(sender) {} in BoardObserver()
53 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnBoardOnline()
66 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnBoardOffline()
72 Channel<CooperateEvent>::Sender sender_;
77 explicit HotplugObserver(Channel<CooperateEvent>::Sender sender) : sender_(sender) {} in HotplugObserver()
84 Channel<CooperateEvent>::Sender sender_;
97 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnDeviceAdded()
112 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnDeviceRemoved()
122 void Context::AttachSender(Channel<CooperateEvent>::Sender sender) in AttachSender()
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/src/
H A Dcooperate.cpp58 if (ret != Channel<CooperateEvent>::NO_ERROR) { in AddObserver()
71 if (ret != Channel<CooperateEvent>::NO_ERROR) { in RemoveObserver()
84 if (ret != Channel<CooperateEvent>::NO_ERROR) { in RegisterListener()
98 if (ret != Channel<CooperateEvent>::NO_ERROR) { in UnregisterListener()
112 if (ret != Channel<CooperateEvent>::NO_ERROR) { in RegisterHotAreaListener()
126 if (ret != Channel<CooperateEvent>::NO_ERROR) { in UnregisterHotAreaListener()
142 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Enable()
157 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Disable()
181 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Start()
197 if (ret != Channel<CooperateEvent>::NO_ERROR) { in Stop()
[all …]
H A Dcooperate_context.cpp41 explicit BoardObserver(Channel<CooperateEvent>::Sender sender) : sender_(sender) {} in BoardObserver()
53 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnBoardOnline()
66 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnBoardOffline()
72 Channel<CooperateEvent>::Sender sender_;
85 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnDeviceAdded()
100 if (ret != Channel<CooperateEvent>::NO_ERROR) { in OnDeviceRemoved()
110 void Context::AttachSender(Channel<CooperateEvent>::Sender sender) in AttachSender()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/
H A Dmod.rs35 pub(crate) struct Channel<C: Container> { struct
40 impl<C: Container> Channel<C> { implementation
41 fn new(chan: C) -> Channel<C> { in new()
42 Channel { in new()
50 let channel = Arc::new(Channel::new(chan)); in channel()
55 inner: Arc<Channel<C>>,
68 fn new(channel: Arc<Channel<C>>) -> Tx<C> { in new()
92 inner: Arc<Channel<C>>,
96 fn new(channel: Arc<Channel<C>>) -> Rx<C> { in new()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Doneshot.rs85 let channel = Arc::new(Channel::new()); in channel()
137 channel: Arc<Channel<T>>,
271 channel: Arc<Channel<T>>,
409 struct Channel<T> { struct
421 impl<T> Channel<T> { argument
422 fn new() -> Channel<T> { in new()
423 Channel { in new()
445 unsafe impl<T: Send> Send for Channel<T> {} implementation
446 unsafe impl<T: Send> Sync for Channel<T> {} implementation
448 impl<T> Drop for Channel<T> { implementation
[all …]
H A Dwatch.rs53 let channel = Arc::new(Channel::new(value)); in channel()
85 channel: Arc<Channel<T>>,
275 channel: Arc<Channel<T>>,
536 struct Channel<T> { struct
543 impl<T> Channel<T> { argument
544 fn new(value: T) -> Channel<T> { in new()
545 Channel { in new()
559 impl<T: Debug> Debug for Channel<T> { implementation
/ohos5.0/base/msdp/device_status/intention/cooperate/plugin/include/
H A Dcooperate_context.h50 void AttachSender(Channel<CooperateEvent>::Sender sender);
56 Channel<CooperateEvent>::Sender Sender() const;
116 Channel<CooperateEvent>::Sender sender_;
134 explicit HotplugObserver(Channel<CooperateEvent>::Sender sender) : sender_(sender) {} in HotplugObserver()
141 Channel<CooperateEvent>::Sender sender_;
144 inline Channel<CooperateEvent>::Sender Context::Sender() const in Sender()
H A Dstate_machine.h45 AppStateObserver(Channel<CooperateEvent>::Sender sender, int32_t clientPid);
51 Channel<CooperateEvent>::Sender sender_;
90 …int32_t RegisterApplicationStateObserver(Channel<CooperateEvent>::Sender sender, const EnableCoope…
/ohos5.0/foundation/multimodalinput/input/intention/cooperate/plugin/include/
H A Dcooperate_context.h50 void AttachSender(Channel<CooperateEvent>::Sender sender);
56 Channel<CooperateEvent>::Sender Sender() const;
116 Channel<CooperateEvent>::Sender sender_;
132 inline Channel<CooperateEvent>::Sender Context::Sender() const in Sender()
H A Dstate_machine.h44 AppStateObserver(Channel<CooperateEvent>::Sender sender, int32_t clientPid);
50 Channel<CooperateEvent>::Sender sender_;
88 …int32_t RegisterApplicationStateObserver(Channel<CooperateEvent>::Sender sender, const EnableCoope…
/ohos5.0/docs/en/application-dev/reference/apis-connectivity-kit/
H A Djs-apis-secureElement.md752 let seChannel : omapi.Channel;
810 let seChannel : omapi.Channel;
876 let seChannel : omapi.Channel;
1210 ## Channel section
1214 ### Channel.getSession
1255 ### Channel.close
1289 ### Channel.isBasicChannel
1330 ### Channel.isClosed
1371 ### Channel.getSelectResponse
1412 ### Channel.transmit
[all …]
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/ril/
H A D_cell_list_rat_gsm_v10.md21 | int [arfcn](#arfcn) | BCCH(Broadcast Control Channel)载频的绝对射频频道号,取值范围0~1023 |
38 BCCH(Broadcast Control Channel)载频的绝对射频频道号,取值范围0~1023
H A D_cell_list_rat_gsm_v11.md21 | int [arfcn](#arfcn) | BCCH(Broadcast Control Channel)载频的绝对射频频道号,取值范围0~1023 |
38 BCCH(Broadcast Control Channel)载频的绝对射频频道号,取值范围0~1023
/ohos5.0/docs/zh-cn/application-dev/connectivity/nfc/
H A Dnfc-se-access-guide.md18 | openLogicalChannel(aid: number[]): Promise\<Channel> | 打开逻辑通道,返回逻辑Channel实例对象。 …
20 | close(): void | 关闭Channel。 |
39 let seChannel : omapi.Channel;
/ohos5.0/drivers/interface/wlan/v1_0/
H A DWlanTypes.idl150 /** Channel frequency. */
188 /** Channel ID. */
201 /** Channel ID. */
203 /** Channel load. */
205 /** Channel noise. */
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_v1_0/foo/wlan/v1_0/
H A DWlanTypes.idl150 /** Channel frequency. */
188 /** Channel ID. */
201 /** Channel ID. */
203 /** Channel load. */
205 /** Channel noise. */
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-beta1/
H A Djs-apidiff-communication.md92 …nt<br>类名: Session<br>方法 or 属性: openBasicChannel(aid: number[]): Promise\<Channel>;|@ohos.secureEle…
94 …ssion<br>方法 or 属性: openBasicChannel(aid: number[], p2: number): Promise\<Channel>;|@ohos.secureEle…
96 …<br>类名: Session<br>方法 or 属性: openLogicalChannel(aid: number[]): Promise\<Channel>;|@ohos.secureEle…
98 …ion<br>方法 or 属性: openLogicalChannel(aid: number[], p2: number): Promise\<Channel>;|@ohos.secureEle…
100 |新增|NA|模块名: ohos.secureElement<br>类名: Channel|@ohos.secureElement.d.ts|
101 |新增|NA|模块名: ohos.secureElement<br>类名: Channel<br>方法 or 属性: getSession(): Session;|@ohos.secureEleme…
102 |新增|NA|模块名: ohos.secureElement<br>类名: Channel<br>方法 or 属性: close(): void;|@ohos.secureElement.d.ts|
103 |新增|NA|模块名: ohos.secureElement<br>类名: Channel<br>方法 or 属性: isBasicChannel(): boolean;|@ohos.secureE…
104 |新增|NA|模块名: ohos.secureElement<br>类名: Channel<br>方法 or 属性: isClosed(): boolean;|@ohos.secureElement…
105 |新增|NA|模块名: ohos.secureElement<br>类名: Channel<br>方法 or 属性: getSelectResponse(): number[];|@ohos.sec…
[all …]

12345