Home
last modified time | relevance | path

Searched refs:POWER_ROLE_SOURCE (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/drivers/peripheral/usb/test/unittest/mock/src/
H A Dusbd_function_auto_test.cpp93 auto ret = g_usbInterface->SetPortRole(PORT_ID_INVALID, POWER_ROLE_SOURCE, DATA_ROLE_HOST);
121 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_INVALID);
149 auto ret = g_usbInterface->SetPortRole(PORT_ID_INVALID, POWER_ROLE_SOURCE, DATA_ROLE_INVALID);
/ohos5.0/drivers/peripheral/usb/hdi_service/src/
H A Dusbd_port.cpp127 powerRole = POWER_ROLE_SOURCE; in ReadPortFile()
158 if (powerRole == POWER_ROLE_SOURCE && dataRole == DATA_ROLE_HOST) { in SetPortInit()
210 currentPortInfo_.powerRole = POWER_ROLE_SOURCE; in UpdatePort()
/ohos5.0/drivers/peripheral/usb/test/unittest/hal/src/
H A Dusbd_function_test.cpp394 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST);
409 auto ret = g_usbInterface->SetPortRole(USB_PORT_ID_INVALID, POWER_ROLE_SOURCE, DATA_ROLE_HOST);
439 … auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, USB_DATA_ROLE_INVALID);
469 …auto ret = g_usbInterface->SetPortRole(USB_PORT_ID_INVALID, POWER_ROLE_SOURCE, USB_DATA_ROLE_INVAL…
/ohos5.0/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_dfx_test.cpp188 … UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
215 … UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
261 … UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
H A Dusb_core_test.cpp675 … UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
695 … UsbSrvSupport::PORT_MODE_HOST, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
734 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, USB_DATA_ROLE_INVALID);
770 …auto ret = UsbSrvClient.SetPortRole(USB_PORT_ID_INVALID, UsbSrvSupport::POWER_ROLE_SOURCE, USB_DAT…
/ohos5.0/base/usb/usb_manager/test/native/mock/src/
H A Dusb_core_mock_test.cpp619 … UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
634 … UsbSrvSupport::PORT_MODE_HOST, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
664 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, USB_DATA_ROLE_INVALID);
693 …auto ret = usbSrv_->SetPortRole(USB_PORT_ID_INVALID, UsbSrvSupport::POWER_ROLE_SOURCE, USB_DATA_RO…
H A Dusb_impl_mock.cpp112 … if (powerRole == UsbSrvSupport::POWER_ROLE_SOURCE && dataRole == UsbSrvSupport::DATA_ROLE_HOST) { in SetPortRole()
H A Dusb_event_mock_test.cpp269 int32_t powerRole = UsbSrvSupport::POWER_ROLE_SOURCE;
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/interfaces/innerkits/native/include/
H A Dusb_srv_support.h34 POWER_ROLE_SOURCE, enumerator
/ohos5.0/drivers/peripheral/usb/hdi_service/include/
H A Dusbd_port.h33 #define POWER_ROLE_SOURCE 1 macro
/ohos5.0/drivers/peripheral/usb/test/benchmarktest/
H A Dusb_benchmark_function_test.cpp110 ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in BENCHMARK_F()
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/base/usb/usb_manager/services/native/src/
H A Dusb_port_manager.cpp250 … UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in DumpSetPortRoles()