Home
last modified time | relevance | path

Searched refs:UsbSrvSupport (Results 1 - 15 of 15) sorted by relevance

/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_core_test.cpp53 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::DATA_ROLE_DEVICE, UsbSrvSupport::POWER_ROLE_SINK); in SetUpTestCase()
82 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
99 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
117 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
135 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
152 int32_t isok = instance.SetCurrentFunctions(UsbSrvSupport::FUNCTION_ACM); in HWTEST_F()
167 int32_t isok = instance.SetCurrentFunctions(UsbSrvSupport::FUNCTION_ECM); in HWTEST_F()
182 int32_t funcs = UsbSrvSupport in HWTEST_F()
[all...]
H A Dusb_dfx_test.cpp183 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
190 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in HWTEST_F()
209 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
217 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in HWTEST_F()
259 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
263 UsbSrvSupport in HWTEST_F()
[all...]
H A Dusb_event_test.cpp91 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, false)); in HWTEST_F()
92 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false)); in HWTEST_F()
116 EXPECT_FALSE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, true)); in HWTEST_F()
117 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false)); in HWTEST_F()
241 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport::PORT_MODE_HOST); in HWTEST_F()
275 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport::PORT_MODE_DEVICE); in HWTEST_F()
/base/usb/usb_manager/test/native/mock/src/
H A Dusb_impl_mock.cpp79 powerRole = UsbSrvSupport::POWER_ROLE_SINK; in QueryPort()
80 dataRole = UsbSrvSupport::DATA_ROLE_DEVICE; in QueryPort()
81 mode = UsbSrvSupport::PORT_MODE_DEVICE; in QueryPort()
100 int32_t mode = UsbSrvSupport::PORT_MODE_DEVICE; in SetPortRole()
105 if (powerRole <= UsbSrvSupport::POWER_ROLE_NONE || powerRole > UsbSrvSupport::POWER_ROLE_SINK) { in SetPortRole()
108 if (dataRole <= UsbSrvSupport::DTA_ROLE_NONE || dataRole > UsbSrvSupport::DATA_ROLE_DEVICE) { in SetPortRole()
112 if (powerRole == UsbSrvSupport::POWER_ROLE_SOURCE && dataRole == UsbSrvSupport in SetPortRole()
[all...]
H A Dusb_core_mock_test.cpp132 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE); in HWTEST_F()
148 int32_t isok = usbSrv_->SetCurrentFunctions(UsbSrvSupport::FUNCTION_ACM); in HWTEST_F()
162 int32_t isok = usbSrv_->SetCurrentFunctions(UsbSrvSupport::FUNCTION_ECM); in HWTEST_F()
175 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_ECM; in HWTEST_F()
191 int32_t isok = usbSrv_->SetCurrentFunctions(UsbSrvSupport::FUNCTION_HDC); in HWTEST_F()
204 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_HDC; in HWTEST_F()
219 int32_t funcs = UsbSrvSupport::FUNCTION_ECM | UsbSrvSupport in HWTEST_F()
[all...]
H A Dusb_event_mock_test.cpp131 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, false)); in HWTEST_F()
132 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false)); in HWTEST_F()
159 EXPECT_FALSE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, true)); in HWTEST_F()
160 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false)); in HWTEST_F()
269 int32_t powerRole = UsbSrvSupport::POWER_ROLE_SOURCE; in HWTEST_F()
270 int32_t dataRole = UsbSrvSupport::DATA_ROLE_HOST; in HWTEST_F()
285 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport::PORT_MODE_HOST); in HWTEST_F()
303 int32_t powerRole = UsbSrvSupport::POWER_ROLE_SINK; in HWTEST_F()
304 int32_t dataRole = UsbSrvSupport::DATA_ROLE_DEVICE; in HWTEST_F()
319 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport in HWTEST_F()
[all...]
H A Dusb_request_mock_test.cpp74 ret = mockUsbImpl_->SetPortRole(DEFAULT_PORT_ID, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in SetUpTestCase()
H A Dusb_bulkcallback_mock_test.cpp106 ret = mockUsbImpl_->SetPortRole(DEFAULT_PORT_ID, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in SetUpTestCase()
H A Dusb_device_pipe_mock_test.cpp98 ret = mockUsbImpl_->SetPortRole(DEFAULT_PORT_ID, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in SetUpTestCase()
/base/usb/usb_manager/services/native/include/
H A Dusb_device_manager.h55 static constexpr uint32_t functionSettable_ = UsbSrvSupport::FUNCTION_HDC | UsbSrvSupport::FUNCTION_ACM |
56 UsbSrvSupport::FUNCTION_ECM | UsbSrvSupport::FUNCTION_MTP | UsbSrvSupport::FUNCTION_PTP |
57 UsbSrvSupport::FUNCTION_RNDIS | UsbSrvSupport::FUNCTION_STORAGE;
59 int32_t currentFunctions_ {UsbSrvSupport::FUNCTION_HDC};
H A Dusb_function_switch_window.h33 FUNCTION_CHOOSE_TRANSFER_FILE = UsbSrvSupport::FUNCTION_MTP,
34 FUNCTION_CHOOSE_TRANSFER_PIC = UsbSrvSupport::FUNCTION_PTP,
/base/usb/usb_manager/services/native/src/
H A Dusb_device_manager.cpp40 {UsbSrvSupport::FUNCTION_NAME_NONE, UsbSrvSupport::FUNCTION_NONE},
41 {UsbSrvSupport::FUNCTION_NAME_ACM, UsbSrvSupport::FUNCTION_ACM},
42 {UsbSrvSupport::FUNCTION_NAME_ECM, UsbSrvSupport::FUNCTION_ECM},
43 {UsbSrvSupport::FUNCTION_NAME_HDC, UsbSrvSupport::FUNCTION_HDC},
44 {UsbSrvSupport::FUNCTION_NAME_MTP, UsbSrvSupport
[all...]
H A Dusb_port_manager.cpp256 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in DumpSetPortRoles()
261 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SINK, UsbSrvSupport::DATA_ROLE_DEVICE); in DumpSetPortRoles()
H A Dusb_right_manager.cpp477 if (!(static_cast<uint32_t>(functions) & UsbSrvSupport::FUNCTION_HDC)) { in HasSetFuncRight()
/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_srv_support.h22 struct UsbSrvSupport { struct

Completed in 12 milliseconds