Home
last modified time | relevance | path

Searched refs:DEFAULT_PORT_ID (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/drivers/peripheral/usb/test/unittest/hal/src/
H A Dusbd_function_test.cpp55 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUpTestCase()
394 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST);
424 … auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, USB_POWER_ROLE_INVALID, DATA_ROLE_DEVICE);
439 … auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, USB_DATA_ROLE_INVALID);
454 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, USB_POWER_ROLE_INVALID, DATA_ROLE_HOST);
484 …auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, USB_POWER_ROLE_INVALID, USB_DATA_ROLE_INVA…
514 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE);
529 int32_t portId = DEFAULT_PORT_ID;
H A Dusbfn_mtp_test.cpp185 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUpTestCase()
H A Dusbd_transfer_test.cpp100 const int32_t DEFAULT_PORT_ID = 1; in SetUpTestCase() local
102 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in SetUpTestCase()
/ohos5.0/drivers/peripheral/usb/test/unittest/mock/src/
H A Dusbd_function_auto_test.cpp107 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_INVALID, DATA_ROLE_DEVICE);
121 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_INVALID);
135 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_INVALID, DATA_ROLE_INVALID);
/ohos5.0/drivers/peripheral/usb/test/benchmarktest/
H A Dusb_benchmark_function_test.cpp49 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUp()
110 ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in BENCHMARK_F()
130 int32_t portId = DEFAULT_PORT_ID; in BENCHMARK_F()
H A Dusb_benchmark_device_test.cpp51 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUp()
H A Dusb_benchmark_request_test.cpp81 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in SetUp()
H A Dusb_benchmark_transfer_test.cpp113 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in SetUp()
/ohos5.0/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_port.h27 #define DEFAULT_PORT_ID 1 macro
76 …HDI::Usb::V1_1::PortInfo currentPortInfo_ = {DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE, P…
/ohos5.0/drivers/peripheral/usb/test/fuzztest/usbhost_fuzzer/
H A Dusbhost_fuzzer.cpp36 const int32_t DEFAULT_PORT_ID = 1; variable
73 int32_t ret = usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/usb/usb_manager/test/native/mock/src/
H A Dusb_impl_mock.cpp78 portId = DEFAULT_PORT_ID; in QueryPort()
102 if (portId != DEFAULT_PORT_ID) { in SetPortRole()
H A Dusb_event_mock_test.cpp268 int32_t portId = DEFAULT_PORT_ID;
302 int32_t portId = DEFAULT_PORT_ID;
H A Dusb_request_mock_test.cpp74 …ret = mockUsbImpl_->SetPortRole(DEFAULT_PORT_ID, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::… in SetUpTestCase()
H A Dusb_bulkcallback_mock_test.cpp106 …ret = mockUsbImpl_->SetPortRole(DEFAULT_PORT_ID, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::… in SetUpTestCase()
H A Dusb_device_pipe_mock_test.cpp98 …ret = mockUsbImpl_->SetPortRole(DEFAULT_PORT_ID, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::… in SetUpTestCase()
/ohos5.0/base/usb/usb_manager/test/tool/
H A Dusb_function_test.cpp28 static constexpr int32_t DEFAULT_PORT_ID = 1; variable
169 g_usbClient.SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in PortSwitch()
173 g_usbClient.SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_DEVICE, DEFAULT_ROLE_DEVICE); in PortSwitch()
/ohos5.0/drivers/peripheral/usb/test/fuzztest/usbcommonfunction_fuzzer/
H A Dusbcommonfunction_fuzzer.h31 const int32_t DEFAULT_PORT_ID = 1; variable
H A Dusbcommonfunction_fuzzer.cpp26 int32_t ret = usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in UsbFuzzTestHostModeInit()
/ohos5.0/drivers/peripheral/usb/test/fuzztest/usbsetcurrentfunctions_fuzzer/
H A Dusbsetcurrentfunctions_fuzzer.cpp30 …int32_t ret = usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_DEVICE, DEFAULT_ROLE_DEVICE); in UsbSetCurrentFunctionsFuzzTest()
/ohos5.0/drivers/peripheral/usb/test/fuzztest/usbopendevice_fuzzer/
H A Dusbopendevice_fuzzer.cpp30 int32_t ret = usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in UsbOpenDeviceFuzzTest()
/ohos5.0/drivers/peripheral/usb/hdi_service/src/
H A Dusbd_port.cpp34 if (portId != DEFAULT_PORT_ID) { in IfCanSwitch()
/ohos5.0/base/usb/usb_manager/test/native/mock/include/
H A Dusb_impl_mock.h46 constexpr int32_t DEFAULT_PORT_ID = 1; variable
/ohos5.0/drivers/external_device_manager/test/unittest/bus_extension_usb_test/include/
H A Dusb_impl_mock.h45 constexpr int32_t DEFAULT_PORT_ID = 1; variable