Home
last modified time | relevance | path

Searched refs:subscriber (Results 1 – 25 of 33) sorted by relevance

12

/drivers/peripheral/usb/test/benchmarktest/
Dusb_benchmark_request_test.cpp51 void InitPara(const sptr<UsbSubscriberTest> &subscriber);
52 void ReleasePara(const sptr<UsbSubscriberTest> &subscriber);
83 void HdfUsbdBenchmarkRequestTest::InitPara(const sptr<UsbSubscriberTest> &subscriber) in InitPara() argument
85 if (g_usbInterface->BindUsbdSubscriber(subscriber) != HDF_SUCCESS) { in InitPara()
88 g_dev = {subscriber->busNum_, subscriber->devAddr_}; in InitPara()
93 void HdfUsbdBenchmarkRequestTest::ReleasePara(const sptr<UsbSubscriberTest> &subscriber) in ReleasePara() argument
96 auto ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in ReleasePara()
111 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); in BENCHMARK_F() local
112 ASSERT_TRUE(subscriber != nullptr); in BENCHMARK_F()
114 InitPara(subscriber); in BENCHMARK_F()
[all …]
Dusb_benchmark_transfer_test.cpp58 void InitPara(const sptr<UsbSubscriberTest> &subscriber);
59 void ReleasePara(const sptr<UsbSubscriberTest> &subscriber);
115 void HdfUsbdBenchmarkTransferTest::InitPara(const sptr<UsbSubscriberTest> &subscriber) in InitPara() argument
117 if (g_usbInterface->BindUsbdSubscriber(subscriber) != HDF_SUCCESS) { in InitPara()
120 g_dev = {subscriber->busNum_, subscriber->devAddr_}; in InitPara()
125 void HdfUsbdBenchmarkTransferTest::ReleasePara(const sptr<UsbSubscriberTest> &subscriber) in ReleasePara() argument
128 auto ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in ReleasePara()
146 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); in BENCHMARK_F() local
147 ASSERT_TRUE(subscriber != nullptr); in BENCHMARK_F()
148 InitPara(subscriber); in BENCHMARK_F()
[all …]
Dusb_benchmark_device_test.cpp63 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); in BENCHMARK_F() local
64 ASSERT_NE(subscriber, nullptr); in BENCHMARK_F()
65 if (g_usbInterface->BindUsbdSubscriber(subscriber) != HDF_SUCCESS) { in BENCHMARK_F()
68 g_dev = {subscriber->busNum_, subscriber->devAddr_}; in BENCHMARK_F()
74 ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in BENCHMARK_F()
90 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); in BENCHMARK_F() local
91 ASSERT_NE(subscriber, nullptr); in BENCHMARK_F()
92 if (g_usbInterface->BindUsbdSubscriber(subscriber) != HDF_SUCCESS) { in BENCHMARK_F()
95 g_dev = {subscriber->busNum_, subscriber->devAddr_}; in BENCHMARK_F()
103 ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in BENCHMARK_F()
/drivers/peripheral/usb/test/unittest/mock/src/
Dusbd_device_auto_test.cpp95 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); variable
96 ASSERT_NE(nullptr, subscriber);
97 auto ret = g_usbInterfaceProxy->BindUsbdSubscriber(subscriber);
100 ret = g_usbInterfaceProxy->UnbindUsbdSubscriber(subscriber);
113 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); variable
114 ASSERT_NE(nullptr, subscriber);
115 auto ret = g_usbInterfaceProxy->UnbindUsbdSubscriber(subscriber);
128 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); variable
129 ASSERT_NE(nullptr, subscriber);
130 auto ret = g_usbInterfaceProxy->UnbindUsbdSubscriber(subscriber);
[all …]
/drivers/peripheral/usb/test/fuzztest/usbcommonfunction_fuzzer/
Dusbcommonfunction_fuzzer.cpp33 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); in UsbFuzzTestHostModeInit() local
34 ret = usbInterface->BindUsbdSubscriber(subscriber); in UsbFuzzTestHostModeInit()
40 dev.busNum = subscriber->busNum_; in UsbFuzzTestHostModeInit()
41 dev.devAddr = subscriber->devAddr_; in UsbFuzzTestHostModeInit()
42 …{public}s: busNum:%{public}d, devAddr:%{public}d", __func__, subscriber->busNum_, subscriber->devA… in UsbFuzzTestHostModeInit()
/drivers/hdf_core/framework/core/host/src/
Dhdf_service_observer.c43 struct HdfServiceSubscriber *subscriber = NULL; in HdfServiceObserverSubscribeService() local
57 subscriber = HdfServiceSubscriberObtain(callback, deviceId); in HdfServiceObserverSubscribeService()
58 if (subscriber == NULL) { in HdfServiceObserverSubscribeService()
67 subscriber = HdfServiceSubscriberObtain(callback, deviceId); in HdfServiceObserverSubscribeService()
68 if (subscriber == NULL) { in HdfServiceObserverSubscribeService()
73 if ((serviceRecord->publisher != NULL) && (subscriber->callback.OnServiceConnected != NULL) && in HdfServiceObserverSubscribeService()
75 subscriber->state = HDF_SUBSCRIBER_STATE_READY; in HdfServiceObserverSubscribeService()
76subscriber->callback.OnServiceConnected(subscriber->callback.deviceObject, serviceRecord->publishe… in HdfServiceObserverSubscribeService()
79 HdfSListAdd(&serviceRecord->subscribers, &subscriber->entry); in HdfServiceObserverSubscribeService()
Dhdf_observer_record.c68 struct HdfServiceSubscriber *subscriber = in HdfServiceObserverRecordNotifySubscribers() local
70 if (deviceId == subscriber->devId || policy != SERVICE_POLICY_PRIVATE) { in HdfServiceObserverRecordNotifySubscribers()
71 subscriber->state = HDF_SUBSCRIBER_STATE_READY; in HdfServiceObserverRecordNotifySubscribers()
72 if (subscriber->callback.OnServiceConnected != NULL) { in HdfServiceObserverRecordNotifySubscribers()
73subscriber->callback.OnServiceConnected(subscriber->callback.deviceObject, record->publisher); in HdfServiceObserverRecordNotifySubscribers()
Dhdf_service_subscriber.c25 void HdfServiceSubscriberRecycle(struct HdfServiceSubscriber *subscriber) in HdfServiceSubscriberRecycle() argument
27 if (subscriber != NULL) { in HdfServiceSubscriberRecycle()
28 OsalMemFree(subscriber); in HdfServiceSubscriberRecycle()
/drivers/peripheral/usb/sample/hdi/
Dusb_subscriber.cpp38 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); in main() local
40 if (g_usbInterface->BindUsbdSubscriber(subscriber) != HDF_SUCCESS) { in main()
46 if (g_usbInterface->UnbindUsbdSubscriber(subscriber) != HDF_SUCCESS) { in main()
/drivers/peripheral/usb/test/fuzztest/usbhost_fuzzer/
Dusbhost_fuzzer.cpp80 sptr<UsbSubscriberTest> subscriber = new UsbSubscriberTest(); in DoSomethingInterestingWithMyAPI() local
81 ret = usbInterface->BindUsbdSubscriber(subscriber); in DoSomethingInterestingWithMyAPI()
89 dev.busNum = subscriber->busNum_; in DoSomethingInterestingWithMyAPI()
90 dev.devAddr = subscriber->devAddr_; in DoSomethingInterestingWithMyAPI()
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/src/
Dusb_impl_mock.cpp86 int32_t UsbImplMock::BindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) in BindUsbdSubscriber() argument
88 subscriber_ = subscriber; in BindUsbdSubscriber()
92 int32_t UsbImplMock::UnbindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) in UnbindUsbdSubscriber() argument
94 (void)subscriber; in UnbindUsbdSubscriber()
/drivers/peripheral/usb/hdi_service/src/
Dusbd_port.cpp140 if (usbdSubscribers[i].subscriber != nullptr) { in SetPort()
141 usbdSubscribers[i].subscriber->PortChangedEvent(currentPortInfo_); in SetPort()
157 int32_t UsbdPort::UpdatePort(int32_t mode, const sptr<IUsbdSubscriber> &subscriber) in UpdatePort() argument
175 if (subscriber == nullptr) { in UpdatePort()
179 subscriber->PortChangedEvent(currentPortInfo_); in UpdatePort()
Dusb_impl.cpp854 const sptr<IUsbdSubscriber> subscriber = usbdSubscriber->subscriber; in UsbdPnpNotifyAddAndRemoveDevice() local
868 UsbdDispatcher::UsbdRemoveBusDev(super, infoTable->busNum, subscriber); in UsbdPnpNotifyAddAndRemoveDevice()
878 if (subscriber == nullptr) { in UsbdPnpNotifyAddAndRemoveDevice()
882 ret = subscriber->DeviceEvent(info); in UsbdPnpNotifyAddAndRemoveDevice()
886 if (subscriber == nullptr) { in UsbdPnpNotifyAddAndRemoveDevice()
890 ret = subscriber->DeviceEvent(info); in UsbdPnpNotifyAddAndRemoveDevice()
898 const sptr<IUsbdSubscriber> subscriber = usbdSubscriber->subscriber; in UsbdPnpLoaderEventReceived() local
904 if (subscriber == nullptr) { in UsbdPnpLoaderEventReceived()
908 ret = subscriber->DeviceEvent(info); in UsbdPnpLoaderEventReceived()
913 if (subscriber == nullptr) { in UsbdPnpLoaderEventReceived()
[all …]
/drivers/hdf_core/framework/core/host/include/
Dhdf_service_subscriber.h29 void HdfServiceSubscriberRecycle(struct HdfServiceSubscriber *subscriber);
/drivers/peripheral/usb/hdi_service/include/
Dusbd.h145 struct UsbdSubscriber *subscriber; member
174 sptr<IUsbdSubscriber> subscriber; member
Dusbd_port.h60 int32_t UpdatePort(int32_t mode, const sptr<HDI::Usb::V1_0::IUsbdSubscriber> &subscriber);
Dusb_impl.h82 int32_t BindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) override;
83 int32_t UnbindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) override;
122 int32_t BindUsbSubscriber(const sptr<IUsbdSubscriber> &subscriber);
Dusbd_dispatcher.h117 …nt32_t UsbdRemoveBusDev(UsbImpl *service, uint8_t busNum, const sptr<IUsbdSubscriber> &subscriber);
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/include/
Dusb_impl_mock.h53 int32_t BindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) override;
54 int32_t UnbindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) override;
/drivers/interface/usb/v1_0/
DIUsbInterface.idl390 * @brief Binds a subscriber.
392 * @param subscriber Indicates the subscriber.
397 BindUsbdSubscriber([in] IUsbdSubscriber subscriber);
400 * @brief Unbinds a subscriber.
402 * @param subscriber Indicates the subscriber.
407 UnbindUsbdSubscriber([in] IUsbdSubscriber subscriber);
DIUsbdBulkCallback.idl34 …* a usb user subscribes to usb data. Only after the usb is enabled, the usb data subscriber can re…
DIUsbdSubscriber.idl36 …* a usb user subscribes to usb data. Only after the usb is enabled, the usb data subscriber can re…
/drivers/interface/sensor/v1_1/
DISensorCallback.idl36 …subscribes to sensor data. Only after the sensor is enabled, the sensor data subscriber can receive
/drivers/interface/sensor/v1_0/
DISensorCallback.idl36 …subscribes to sensor data. Only after the sensor is enabled, the sensor data subscriber can receive
/drivers/interface/location/agnss/v1_0/
DIAGnssCallback.idl62 * @brief Request the upper layer to deliver the subscriber identity.

12