Lines Matching refs:g_usbInterface
34 sptr<IUsbInterface> g_usbInterface = nullptr; variable
45 g_usbInterface = IUsbInterface::Get(); in SetUp()
46 ASSERT_NE(g_usbInterface, nullptr); in SetUp()
47 auto ret = g_usbInterface->SetPortRole(DEFAULT_PORT_ID, POWER_ROLE_SOURCE, DATA_ROLE_HOST); in SetUp()
57 auto ret = g_usbInterface->BindUsbdSubscriber(subscriber); in InitPara()
60 ret = g_usbInterface->OpenDevice(dev_); in InitPara()
66 ASSERT_TRUE(g_usbInterface != nullptr); in ReleasePara()
67 auto ret = g_usbInterface->UnbindUsbdSubscriber(subscriber); in ReleasePara()
69 ret = g_usbInterface->CloseDevice(dev_); in ReleasePara()
83 ASSERT_NE(g_usbInterface, nullptr); in BENCHMARK_F()
90 ret = g_usbInterface->OpenDevice(dev); in BENCHMARK_F()
111 ASSERT_NE(g_usbInterface, nullptr); in BENCHMARK_F()
118 ret = g_usbInterface->OpenDevice(dev); in BENCHMARK_F()
120 ret = g_usbInterface->CloseDevice(dev); in BENCHMARK_F()