Home
last modified time | relevance | path

Searched refs:UsbSrvSupport (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/base/usb/usb_manager/test/native/service_unittest/src/
H A Dusb_core_test.cpp53UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::DATA_ROLE_DEVICE, UsbSrvSupport::POWER_ROLE_SINK); in SetUpTestCase()
182 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_ECM;
213 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_HDC;
229 int32_t funcs = UsbSrvSupport::FUNCTION_ECM | UsbSrvSupport::FUNCTION_HDC;
275 int32_t funcs = UsbSrvSupport::FUNCTION_MTP | UsbSrvSupport::FUNCTION_HDC;
291 int32_t funcs = UsbSrvSupport::FUNCTION_PTP | UsbSrvSupport::FUNCTION_HDC;
307 …int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_MTP | UsbSrvSupport::FUNCTIO…
323 …int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_PTP | UsbSrvSupport::FUNCTIO…
675UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
695UsbSrvSupport::PORT_MODE_HOST, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
[all …]
H A Dusb_dfx_test.cpp181 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE);
188UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
207 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE);
215UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
257 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE);
261UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
H A Dusb_event_test.cpp91 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, false));
92 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false));
116 EXPECT_FALSE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, true));
117 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false));
241 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport::PORT_MODE_HOST);
275 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport::PORT_MODE_DEVICE);
/ohos5.0/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::DATA_ROLE_HOST) { in SetPortRole()
113 mode = UsbSrvSupport::PORT_MODE_HOST; in SetPortRole()
116 … if (powerRole == UsbSrvSupport::POWER_ROLE_SINK && dataRole == UsbSrvSupport::DATA_ROLE_DEVICE) { in SetPortRole()
117 mode = UsbSrvSupport::PORT_MODE_DEVICE; in SetPortRole()
H A Dusb_core_mock_test.cpp132 int32_t funcs = static_cast<int32_t>(UsbSrvSupport::FUNCTION_NONE);
148 int32_t isok = usbSrv_->SetCurrentFunctions(UsbSrvSupport::FUNCTION_ACM);
175 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_ECM;
204 int32_t funcs = UsbSrvSupport::FUNCTION_ACM | UsbSrvSupport::FUNCTION_HDC;
219 int32_t funcs = UsbSrvSupport::FUNCTION_ECM | UsbSrvSupport::FUNCTION_HDC;
254 isok = usbSrv_->SetCurrentFunctions(UsbSrvSupport::FUNCTION_HDC);
619UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
634UsbSrvSupport::PORT_MODE_HOST, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST);
649 UsbSrvSupport::PORT_MODE_DEVICE, USB_POWER_ROLE_INVALID, UsbSrvSupport::DATA_ROLE_DEVICE);
664 UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, USB_DATA_ROLE_INVALID);
[all …]
H A Dusb_event_mock_test.cpp131 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, false));
132 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false));
159 EXPECT_FALSE(want.GetBoolParam(std::string {UsbSrvSupport::CONNECTED}, true));
160 EXPECT_TRUE(want.GetBoolParam(std::string {UsbSrvSupport::FUNCTION_NAME_HDC}, false));
269 int32_t powerRole = UsbSrvSupport::POWER_ROLE_SOURCE;
270 int32_t dataRole = UsbSrvSupport::DATA_ROLE_HOST;
285 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport::PORT_MODE_HOST);
303 int32_t powerRole = UsbSrvSupport::POWER_ROLE_SINK;
304 int32_t dataRole = UsbSrvSupport::DATA_ROLE_DEVICE;
319 EXPECT_EQ(jsonMode->valueint, UsbSrvSupport::PORT_MODE_DEVICE);
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/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::FUNCTION_MTP},
45 {UsbSrvSupport::FUNCTION_NAME_PTP, UsbSrvSupport::FUNCTION_PTP},
46 {UsbSrvSupport::FUNCTION_NAME_RNDIS, UsbSrvSupport::FUNCTION_RNDIS},
47 {UsbSrvSupport::FUNCTION_NAME_STORAGE, UsbSrvSupport::FUNCTION_STORAGE},
101 if (strFun == UsbSrvSupport::FUNCTION_NAME_NONE) { in ConvertFromString()
102 return UsbSrvSupport::FUNCTION_NONE; in ConvertFromString()
[all …]
H A Dusb_port_manager.cpp250UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SOURCE, UsbSrvSupport::DATA_ROLE_HOST); in DumpSetPortRoles()
255UsbSrvSupport::PORT_MODE_DEVICE, UsbSrvSupport::POWER_ROLE_SINK, UsbSrvSupport::DATA_ROLE_DEVICE); in DumpSetPortRoles()
H A Dusb_right_manager.cpp588 if (!(static_cast<uint32_t>(functions) & UsbSrvSupport::FUNCTION_HDC)) { in HasSetFuncRight()
/ohos5.0/base/usb/usb_manager/services/native/include/
H A Dusb_device_manager.h60 …static constexpr uint32_t functionSettable_ = UsbSrvSupport::FUNCTION_HDC | UsbSrvSupport::FUNCTIO…
61 UsbSrvSupport::FUNCTION_ECM | UsbSrvSupport::FUNCTION_MTP | UsbSrvSupport::FUNCTION_PTP |
62 UsbSrvSupport::FUNCTION_RNDIS | UsbSrvSupport::FUNCTION_STORAGE;
64 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,
H A Dusb_accessory_manager.h65 int32_t curDeviceFunc_ = {UsbSrvSupport::FUNCTION_NONE};
66 int32_t lastDeviceFunc_ = {UsbSrvSupport::FUNCTION_NONE};
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dmtp_subscriber.cpp53 bool isConnected = want.GetBoolParam(std::string {USB::UsbSrvSupport::CONNECTED}, false); in OnReceiveEvent()
62 bool isMtp = want.GetBoolParam(std::string {USB::UsbSrvSupport::FUNCTION_NAME_MTP}, false); in OnReceiveEvent()
68 bool isPtp = want.GetBoolParam(std::string {USB::UsbSrvSupport::FUNCTION_NAME_PTP}, false); in OnReceiveEvent()
H A Dmtp_manager.cpp66 if (unsignedfuncs & USB::UsbSrvSupport::Function::FUNCTION_MTP) { in Init()
70 if (unsignedfuncs & USB::UsbSrvSupport::Function::FUNCTION_PTP) { in Init()
74 if (unsignedfuncs & USB::UsbSrvSupport::Function::FUNCTION_HDC) { in Init()
/ohos5.0/base/usb/usb_manager/interfaces/innerkits/native/include/
H A Dusb_srv_support.h22 struct UsbSrvSupport { struct
/ohos5.0/foundation/communication/netmanager_ext/services/networksharemanager/src/
H A Dnetworkshare_tracker.cpp761 uint32_t tmpData = USB::UsbSrvSupport::FUNCTION_RNDIS | static_cast<uint32_t>(funcs); in SetUsbNetworkSharing()
779 uint32_t tmpData = static_cast<uint32_t>(funcs) & (~USB::UsbSrvSupport::FUNCTION_RNDIS); in SetUsbNetworkSharing()