Home
last modified time | relevance | path

Searched refs:g_usbInterface (Results 1 - 22 of 22) sorted by relevance

/test/xts/hats/hdf/usb/requestTest_additional/common/
H A Dusbd_request_test_additional.cpp40 sptr<IUsbInterface> g_usbInterface = nullptr; member
49 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
50 if (g_usbInterface == nullptr) { in SetUpTestCase()
54 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
64 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
75 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
82 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
84 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
104 auto ret = g_usbInterface->ClaimInterface(dev, interfaceId, 1); in HWTEST_F()
109 ret = g_usbInterface in HWTEST_F()
[all...]
H A Dusbd_interface_test.cpp49 sptr<IUsbInterface> g_usbInterface = nullptr; member
58 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
59 if (g_usbInterface == nullptr) { in SetUpTestCase()
63 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
73 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
84 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
87 ret = g_usbInterface->ClaimInterface(dev_, 1, 1); in SetUpTestCase()
93 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
95 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
115 auto ret = g_usbInterface in HWTEST_F()
[all...]
H A Dusbd_request_test.cpp45 sptr<IUsbInterface> g_usbInterface = nullptr; member
54 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
55 if (g_usbInterface == nullptr) { in SetUpTestCase()
59 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
69 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
80 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
87 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
89 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
108 auto ret = g_usbInterface->ClaimInterface(dev, interfaceId, 0); in HWTEST_F()
122 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/functionTest_additional/common/
H A Dusbd_function_test.cpp35 sptr<IUsbInterface> g_usbInterface = nullptr; member
44 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
45 if (g_usbInterface == nullptr) { in SetUpTestCase()
49 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUpTestCase()
61 auto ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_HDC); in TearDownTestCase()
78 auto ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_NONE); in HWTEST_F()
80 ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_ACM); in HWTEST_F()
92 auto ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_NONE); in HWTEST_F()
94 ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_ECM); in HWTEST_F()
106 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/transferTest_additional/common/
H A Dusbd_transfer_test_additional.cpp46 sptr<IUsbInterface> g_usbInterface = nullptr; member
84 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
85 if (g_usbInterface == nullptr) { in SetUpTestCase()
91 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in SetUpTestCase()
105 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
116 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
123 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
125 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
145 auto ret = g_usbInterface->ClaimInterface(dev, interfaceId, 1); in HWTEST_F()
149 ret = g_usbInterface in HWTEST_F()
[all...]
H A Dusbd_transfer_test.cpp42 sptr<IUsbInterface> g_usbInterface = nullptr; member
51 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
52 if (g_usbInterface == nullptr) { in SetUpTestCase()
58 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in SetUpTestCase()
72 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
83 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
90 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
92 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
115 auto ret = g_usbInterface->ControlTransferWrite(dev, ctrlparmas, bufferData); in HWTEST_F()
134 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/requestTest/common/
H A Dusbd_request_test.cpp54 sptr<OHOS::HDI::Usb::V1_1::IUsbInterface> g_usbInterface = nullptr; member
63 g_usbInterface = OHOS::HDI::Usb::V1_1::IUsbInterface::Get(); in SetUpTestCase()
64 if (g_usbInterface == nullptr) { in SetUpTestCase()
68 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
78 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
88 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
95 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
97 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
117 auto ret = g_usbInterface->SetConfig(dev, configIndex); in HWTEST_F()
133 auto ret = g_usbInterface in HWTEST_F()
[all...]
H A Dusbd_interface_test.cpp55 sptr<IUsbInterface> g_usbInterface = nullptr; member
64 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
65 if (g_usbInterface == nullptr) { in SetUpTestCase()
69 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
79 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
89 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
92 ret = g_usbInterface->ClaimInterface(dev_, 1, 1); in SetUpTestCase()
98 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
100 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
121 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/deviceTest/common/
H A Dusbd_device_test.cpp36 sptr<OHOS::HDI::Usb::V1_1::IUsbInterface> g_usbInterface = nullptr; member
47 g_usbInterface = OHOS::HDI::Usb::V1_1::IUsbInterface::Get(); in SetUpTestCase()
48 if (g_usbInterface == nullptr) { in SetUpTestCase()
52 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
62 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
76 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
93 auto ret = g_usbInterface->OpenDevice(dev); in HWTEST_F()
108 auto ret = g_usbInterface->OpenDevice(dev); in HWTEST_F()
123 auto ret = g_usbInterface->OpenDevice(dev); in HWTEST_F()
138 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/usbdBenchmarkTest/common/
H A DHdfUsbdBenchmarkRequestTest.cpp45 sptr<OHOS::HDI::Usb::V1_1::IUsbInterface> g_usbInterface = nullptr; member
54 g_usbInterface = OHOS::HDI::Usb::V1_1::IUsbInterface::Get(); in SetUp()
55 ASSERT_TRUE(g_usbInterface != nullptr); in SetUp()
56 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in SetUp()
66 auto ret = g_usbInterface->BindUsbdSubscriber(subscriber); in InitPara()
69 ret = g_usbInterface->OpenDevice(dev_); in InitPara()
75 ASSERT_TRUE(g_usbInterface != nullptr); in ReleasePara()
76 auto ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in ReleasePara()
78 ret = g_usbInterface->CloseDevice(dev_); in ReleasePara()
92 ASSERT_TRUE(g_usbInterface ! in BENCHMARK_F()
[all...]
H A DHdfUsbdBenchmarkTransferTest.cpp47 sptr<OHOS::HDI::Usb::V1_1::IUsbInterface> g_usbInterface = nullptr; member
83 g_usbInterface = OHOS::HDI::Usb::V1_1::IUsbInterface::Get(); in SetUp()
84 ASSERT_NE(g_usbInterface, nullptr); in SetUp()
85 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in SetUp()
95 auto ret = g_usbInterface->BindUsbdSubscriber(subscriber); in InitPara()
98 ret = g_usbInterface->OpenDevice(dev_); in InitPara()
104 ASSERT_TRUE(g_usbInterface != nullptr); in ReleasePara()
105 auto ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in ReleasePara()
107 ret = g_usbInterface->CloseDevice(dev_); in ReleasePara()
122 ASSERT_TRUE(g_usbInterface ! in BENCHMARK_F()
[all...]
H A DHdfUsbdBenchmarkDeviceTest.cpp37 sptr<OHOS::HDI::Usb::V1_1::IUsbInterface> g_usbInterface = nullptr; member
48 g_usbInterface = OHOS::HDI::Usb::V1_1::IUsbInterface::Get(); in SetUp()
49 ASSERT_NE(g_usbInterface, nullptr); in SetUp()
50 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in SetUp()
60 auto ret = g_usbInterface->BindUsbdSubscriber(subscriber); in InitPara()
63 ret = g_usbInterface->OpenDevice(dev_); in InitPara()
69 ASSERT_TRUE(g_usbInterface != nullptr); in ReleasePara()
70 auto ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in ReleasePara()
72 ret = g_usbInterface->CloseDevice(dev_); in ReleasePara()
86 ASSERT_NE(g_usbInterface, nullpt in BENCHMARK_F()
[all...]
H A DHdfUsbdBenchmarkManagerInterfaceTest.cpp39 sptr<IUsbInterface> g_usbInterface = nullptr; member
48 g_usbInterface = IUsbInterface::Get(); in SetUp()
49 if (g_usbInterface == nullptr) { in SetUp()
53 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in SetUp()
63 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUp()
70 ret = g_usbInterface->OpenDevice(dev_); in SetUp()
77 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDown()
79 auto ret = g_usbInterface->CloseDevice(dev_); in TearDown()
99 ret = g_usbInterface->ManageInterface(dev, interfaceId, true); in BENCHMARK_F()
H A DHdfUsbdBenchmarkFunctionTest.cpp36 sptr<IUsbInterface> g_usbInterface = nullptr; member
45 g_usbInterface = IUsbInterface::Get(); in SetUp()
46 if (g_usbInterface == nullptr) { in SetUp()
49 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUp()
73 ret = g_usbInterface->GetCurrentFunctions(funcs); in BENCHMARK_F()
96 ret = g_usbInterface->SetCurrentFunctions(funcs); in BENCHMARK_F()
118 ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in BENCHMARK_F()
145 ret = g_usbInterface->QueryPort(portId, powerRole, dataRole, mode); in BENCHMARK_F()
/test/xts/hats/hdf/usb/deviceTest_additional/common/
H A Dusbd_device_test.cpp33 sptr<IUsbInterface> g_usbInterface = nullptr; member
44 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
45 if (g_usbInterface == nullptr) { in SetUpTestCase()
49 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
59 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
71 void UsbdDeviceTestAdditional::TearDownTestCase(void) { g_usbInterface->UnbindUsbdSubscriber(subscriber_); } in TearDownTestCase()
85 auto ret = g_usbInterface->OpenDevice(dev); in HWTEST_F()
97 auto ret = g_usbInterface->OpenDevice(dev); in HWTEST_F()
109 auto ret = g_usbInterface->OpenDevice(dev); in HWTEST_F()
121 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/functionTest/common/
H A Dusbd_function_test.cpp38 sptr<IUsbInterface> g_usbInterface = nullptr; member
47 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
48 if (g_usbInterface == nullptr) { in SetUpTestCase()
52 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUpTestCase()
64 auto ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_HDC); in TearDownTestCase()
83 auto ret = g_usbInterface->GetCurrentFunctions(funcs); in HWTEST_F()
97 auto ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_ACM); in HWTEST_F()
102 ret = g_usbInterface->GetCurrentFunctions(funcs); in HWTEST_F()
118 auto ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_ACM); in HWTEST_F()
133 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/transferTest/common/
H A Dusbd_transfer_test.cpp52 sptr<OHOS::HDI::Usb::V1_1::IUsbInterface> g_usbInterface = nullptr; member
90 g_usbInterface = OHOS::HDI::Usb::V1_1::IUsbInterface::Get(); in SetUpTestCase()
91 if (g_usbInterface == nullptr) { in SetUpTestCase()
97 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, DEFAULT_ROLE_HOST, DEFAULT_ROLE_HOST); in SetUpTestCase()
111 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
121 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
128 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
130 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
151 auto ret = g_usbInterface->ControlTransferRead(dev, ctrlparmas, bufferData); in HWTEST_F()
168 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/deviceStatusTest/common/
H A Dusbd_device_status_test.cpp42 sptr<OHOS::HDI::Usb::V1_1::IUsbInterface> g_usbInterface = nullptr; member
51 g_usbInterface = OHOS::HDI::Usb::V1_1::IUsbInterface::Get(); in SetUpTestCase()
52 if (g_usbInterface == nullptr) { in SetUpTestCase()
56 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
66 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
76 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
83 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
85 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
106 ret = g_usbInterface->GetDeviceSpeed(dev, speed); in HWTEST_F()
123 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/manageInterfaceTest/common/
H A Dusbd_manage_interface_test.cpp42 sptr<IUsbInterface> g_usbInterface = nullptr; member
51 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
52 if (g_usbInterface == nullptr) { in SetUpTestCase()
56 auto ret = g_usbInterface->SetPortRole(1, 1, 1); in SetUpTestCase()
66 if (g_usbInterface->BindUsbdSubscriber(subscriber_) != HDF_SUCCESS) { in SetUpTestCase()
76 ret = g_usbInterface->OpenDevice(dev_); in SetUpTestCase()
83 g_usbInterface->UnbindUsbdSubscriber(subscriber_); in TearDownTestCase()
85 auto ret = g_usbInterface->CloseDevice(dev_); in TearDownTestCase()
107 ret = g_usbInterface->ManageInterface(dev, interfaceId, true); in HWTEST_F()
129 auto ret = g_usbInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/usb/autoFunctionTest/common/
H A Dusbd_auto_function_test.cpp30 sptr<IUsbInterface> g_usbInterface = nullptr; member
34 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
35 if (g_usbInterface == nullptr) { in SetUpTestCase()
56 auto ret = g_usbInterface->GetCurrentFunctions(funcs); in HWTEST_F()
74 auto ret = g_usbInterface->QueryPort(portId, powerRole, dataRole, mode); in HWTEST_F()
/test/xts/hats/hdf/usb/mtpTest/common/
H A Dusbfn_mtp_test.cpp69 sptr<IUsbInterface> g_usbInterface = nullptr; member
182 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
183 ASSERT_TRUE(g_usbInterface != nullptr); in SetUpTestCase()
184 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUpTestCase()
188 ret = g_usbInterface->GetCurrentFunctions(g_currentFunc); in SetUpTestCase()
191 ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_MTP); in SetUpTestCase()
206 ASSERT_TRUE(g_usbInterface != nullptr); in TearDownTestCase()
207 ret = g_usbInterface->SetCurrentFunctions(g_currentFunc); in TearDownTestCase()
/test/xts/hats/hdf/usb/mtpTest_additional/common/
H A Dusbfn_mtp_test.cpp61 sptr<IUsbInterface> g_usbInterface = nullptr; member
176 g_usbInterface = IUsbInterface::Get(); in SetUpTestCase()
177 ASSERT_TRUE(g_usbInterface != nullptr); in SetUpTestCase()
178 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in SetUpTestCase()
182 ret = g_usbInterface->GetCurrentFunctions(g_currentFunc); in SetUpTestCase()
185 ret = g_usbInterface->SetCurrentFunctions(USB_FUNCTION_MTP); in SetUpTestCase()
200 ASSERT_TRUE(g_usbInterface != nullptr); in TearDownTestCase()
201 ret = g_usbInterface->SetCurrentFunctions(g_currentFunc); in TearDownTestCase()

Completed in 21 milliseconds