Home
last modified time | relevance | path

Searched refs:g_vibratorInterface (Results 1 – 7 of 7) sorted by relevance

/drivers/peripheral/vibrator/test/unittest/hdi/
Dhdf_vibrator_hdi_test.cpp42 sptr<IVibratorInterface> g_vibratorInterface = nullptr; variable
55 g_vibratorInterface = IVibratorInterface::Get(); in SetUpTestCase()
78 ASSERT_NE(nullptr, g_vibratorInterface);
90 ASSERT_NE(nullptr, g_vibratorInterface);
92 int32_t startRet = g_vibratorInterface->StartOnce(g_duration);
97 int32_t endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_ONCE);
110 ASSERT_NE(nullptr, g_vibratorInterface);
112 int32_t startRet = g_vibratorInterface->StartOnce(g_noDuration);
115 int32_t endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_ONCE);
128 ASSERT_NE(nullptr, g_vibratorInterface);
[all …]
/drivers/peripheral/vibrator/test/benchmarktest/
Dhdf_vibrator_benchmark_test.cpp40 sptr<IVibratorInterface> g_vibratorInterface = nullptr; variable
50 g_vibratorInterface = IVibratorInterface::Get(); in SetUp()
65 ASSERT_NE(nullptr, g_vibratorInterface); in BENCHMARK_F()
70 startRet = g_vibratorInterface->StartOnce(g_duration); in BENCHMARK_F()
73 endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_ONCE); in BENCHMARK_F()
89 ASSERT_NE(nullptr, g_vibratorInterface); in BENCHMARK_F()
94 startRet = g_vibratorInterface->Start(g_timeSequence); in BENCHMARK_F()
97 endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_PRESET); in BENCHMARK_F()
113 ASSERT_NE(nullptr, g_vibratorInterface); in BENCHMARK_F()
118 startRet = g_vibratorInterface->Start(g_builtIn); in BENCHMARK_F()
[all …]
/drivers/peripheral/vibrator/test/performance/hdi/
Dhdf_vibrator_hdi_performance_test.cpp34 sptr<IVibratorInterface> g_vibratorInterface = nullptr; variable
47 g_vibratorInterface = IVibratorInterface::Get(); in SetUpTestCase()
48 if (g_vibratorInterface == nullptr) { in SetUpTestCase()
78 int ret = g_vibratorInterface->StartOnce(VIBRATOR_DURATION);
79 int endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_ONCE);
102 int ret = g_vibratorInterface->Start(g_timeSequence);
103 int endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_PRESET);
126 int ret = g_vibratorInterface->Start(g_builtIn);
127 int endRet = g_vibratorInterface->Stop(HDF_VIBRATOR_MODE_PRESET);
/drivers/peripheral/vibrator/test/fuzztest/vibratorstop_fuzzer/
Dvibratorstop_fuzzer.cpp26 sptr<IVibratorInterface> g_vibratorInterface = IVibratorInterface::Get(); in VibratorStopFuzzTest() local
27 if (!g_vibratorInterface->Start(reinterpret_cast<const std::string &>(data))) { in VibratorStopFuzzTest()
31 if (!g_vibratorInterface->Stop(mode)) { in VibratorStopFuzzTest()
/drivers/peripheral/vibrator/test/fuzztest/vibrator_fuzzer/
Dvibrator_fuzzer.cpp56 sptr<IVibratorInterface> g_vibratorInterface = IVibratorInterface::Get(false); in DoSomethingInterestingWithMyAPI() local
57 if (g_vibratorInterface == nullptr) { in DoSomethingInterestingWithMyAPI()
61 sptr<VibratorInterfaceStub> vibratorInterface = new VibratorInterfaceStub(g_vibratorInterface); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/vibrator/test/fuzztest/vibratorstartonce_fuzzer/
Dvibratorstartonce_fuzzer.cpp26 sptr<IVibratorInterface> g_vibratorInterface = IVibratorInterface::Get(); in VibratorStartOnceFuzzTest() local
27 if (!g_vibratorInterface->StartOnce(*(uint32_t *)data)) { in VibratorStartOnceFuzzTest()
/drivers/peripheral/vibrator/test/fuzztest/vibratorstart_fuzzer/
Dvibratorstart_fuzzer.cpp26 sptr<IVibratorInterface> g_vibratorInterface = IVibratorInterface::Get(); in VibratorStartFuzzTest() local
27 if (!g_vibratorInterface->Start(reinterpret_cast<const std::string &>(data))) { in VibratorStartFuzzTest()