Home
last modified time | relevance | path

Searched refs:g_vibratorInterface (Results 1 - 4 of 4) sorted by relevance

/test/xts/hats/hdf/vibrator/hdiService_additional/
H A Dhdf_vibrator_hdiService_test.cpp30 sptr<IVibratorInterface> g_vibratorInterface = nullptr; member
41 void HdfVibratorHdiServiceTestAdditional::SetUpTestCase() { g_vibratorInterface = IVibratorInterface::Get(); } in SetUpTestCase()
45 g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_ONCE); in TearDownTestCase()
46 g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_PRESET); in TearDownTestCase()
47 g_vibratorInterface = nullptr; in TearDownTestCase()
61 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
63 int32_t startRet = g_vibratorInterface->StartOnce(0); in HWTEST_F()
68 int32_t endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_ONCE); in HWTEST_F()
79 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
81 int32_t startRet = g_vibratorInterface in HWTEST_F()
[all...]
/test/xts/hats/hdf/vibrator/hdiService/
H A Dhdf_vibrator_hdiService_test.cpp47 sptr<OHOS::HDI::Vibrator::V1_2::IVibratorInterface> g_vibratorInterface = nullptr; member
60 g_vibratorInterface = OHOS::HDI::Vibrator::V1_2::IVibratorInterface::Get(); in SetUpTestCase()
82 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
93 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
95 int32_t startRet = g_vibratorInterface->StartOnce(g_duration); in HWTEST_F()
100 int32_t endRet = g_vibratorInterface->StopV1_2(HdfVibratorModeV1_2::HDF_VIBRATOR_MODE_ONCE); in HWTEST_F()
112 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
114 int32_t startRet = g_vibratorInterface->StartOnce(g_noDuration); in HWTEST_F()
117 int32_t endRet = g_vibratorInterface->StopV1_2(HdfVibratorModeV1_2::HDF_VIBRATOR_MODE_ONCE); in HWTEST_F()
129 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
[all...]
/test/xts/hats/hdf/vibrator/vibratorBenchmarkTest/
H A Dhdf_vibrator_benchmark_test.cpp46 sptr<IVibratorInterface> g_vibratorInterface = nullptr; member
56 g_vibratorInterface = IVibratorInterface::Get(); in SetUp()
71 ASSERT_NE(nullptr, g_vibratorInterface); in BENCHMARK_F()
76 startRet = g_vibratorInterface->StartOnce(g_duration); in BENCHMARK_F()
81 endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_ONCE); in BENCHMARK_F()
97 ASSERT_NE(nullptr, g_vibratorInterface); in BENCHMARK_F()
102 startRet = g_vibratorInterface->Start(g_timeSequence); in BENCHMARK_F()
107 endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_PRESET); in BENCHMARK_F()
123 ASSERT_NE(nullptr, g_vibratorInterface); in BENCHMARK_F()
128 startRet = g_vibratorInterface in BENCHMARK_F()
[all...]
/test/xts/hats/hdf/vibrator/hdi_adapter/hdi_impl/
H A Dhdi_vibrator_impl_test.cpp33 sptr<V1_3::IVibratorInterface> g_vibratorInterface = nullptr; member
46 g_vibratorInterface = V1_3::IVibratorInterface::Get(); in SetUpTestCase()
53 if (g_vibratorInterface == nullptr) { in SetUp()
70 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
80 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
101 int32_t ret = g_vibratorInterface -> EnableCompositeEffect(effect); in HWTEST_F()
114 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
135 int32_t ret = g_vibratorInterface -> EnableCompositeEffect(effect); in HWTEST_F()
138 ret = g_vibratorInterface -> StopV1_2(V1_2::HDF_VIBRATOR_MODE_PRESET); in HWTEST_F()
150 ASSERT_NE(nullptr, g_vibratorInterface); in HWTEST_F()
[all...]

Completed in 3 milliseconds