/drivers/peripheral/usb/test/benchmarktest/ |
D | usb_benchmark_request_test.cpp | 51 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 …]
|
D | usb_benchmark_transfer_test.cpp | 58 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 …]
|
D | usb_benchmark_device_test.cpp | 63 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/ |
D | usbd_device_auto_test.cpp | 95 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/ |
D | usbcommonfunction_fuzzer.cpp | 33 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/ |
D | hdf_service_observer.c | 43 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() 76 …subscriber->callback.OnServiceConnected(subscriber->callback.deviceObject, serviceRecord->publishe… in HdfServiceObserverSubscribeService() 79 HdfSListAdd(&serviceRecord->subscribers, &subscriber->entry); in HdfServiceObserverSubscribeService()
|
D | hdf_observer_record.c | 68 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() 73 … subscriber->callback.OnServiceConnected(subscriber->callback.deviceObject, record->publisher); in HdfServiceObserverRecordNotifySubscribers()
|
D | hdf_service_subscriber.c | 25 void HdfServiceSubscriberRecycle(struct HdfServiceSubscriber *subscriber) in HdfServiceSubscriberRecycle() argument 27 if (subscriber != NULL) { in HdfServiceSubscriberRecycle() 28 OsalMemFree(subscriber); in HdfServiceSubscriberRecycle()
|
/drivers/peripheral/usb/sample/hdi/ |
D | usb_subscriber.cpp | 38 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/ |
D | usbhost_fuzzer.cpp | 80 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/ |
D | usb_impl_mock.cpp | 86 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/ |
D | usbd_port.cpp | 140 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()
|
D | usb_impl.cpp | 854 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/ |
D | hdf_service_subscriber.h | 29 void HdfServiceSubscriberRecycle(struct HdfServiceSubscriber *subscriber);
|
/drivers/peripheral/usb/hdi_service/include/ |
D | usbd.h | 145 struct UsbdSubscriber *subscriber; member 174 sptr<IUsbdSubscriber> subscriber; member
|
D | usbd_port.h | 60 int32_t UpdatePort(int32_t mode, const sptr<HDI::Usb::V1_0::IUsbdSubscriber> &subscriber);
|
D | usb_impl.h | 82 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);
|
D | usbd_dispatcher.h | 117 …nt32_t UsbdRemoveBusDev(UsbImpl *service, uint8_t busNum, const sptr<IUsbdSubscriber> &subscriber);
|
/drivers/external_device_manager/test/unittest/bus_extension_usb_test/include/ |
D | usb_impl_mock.h | 53 int32_t BindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) override; 54 int32_t UnbindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) override;
|
/drivers/interface/usb/v1_0/ |
D | IUsbInterface.idl | 390 * @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);
|
D | IUsbdBulkCallback.idl | 34 …* a usb user subscribes to usb data. Only after the usb is enabled, the usb data subscriber can re…
|
D | IUsbdSubscriber.idl | 36 …* a usb user subscribes to usb data. Only after the usb is enabled, the usb data subscriber can re…
|
/drivers/interface/sensor/v1_1/ |
D | ISensorCallback.idl | 36 …subscribes to sensor data. Only after the sensor is enabled, the sensor data subscriber can receive
|
/drivers/interface/sensor/v1_0/ |
D | ISensorCallback.idl | 36 …subscribes to sensor data. Only after the sensor is enabled, the sensor data subscriber can receive
|
/drivers/interface/location/agnss/v1_0/ |
D | IAGnssCallback.idl | 62 * @brief Request the upper layer to deliver the subscriber identity.
|