Home
last modified time | relevance | path

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

/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperHidlV1_2Test.cpp94 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
95 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
100 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
119 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
120 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
125 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
163 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
164 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
169 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
181 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
[all …]
DVibratorHalWrapperHidlV1_1Test.cpp91 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
92 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
97 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
136 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
137 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
142 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
154 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
158 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
159 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
164 ASSERT_EQ(0, *callbackCounter.get()); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp117 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
118 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
121 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
128 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
288 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
289 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
294 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
306 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
310 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
311 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
[all …]
DVibratorHalWrapperAidlTest.cpp162 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
163 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
166 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
170 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
174 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
198 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
199 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
202 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
208 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
504 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
[all …]
DVibratorHalWrapperHidlV1_3Test.cpp265 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
266 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
271 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
290 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
291 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
296 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
315 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
316 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
321 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
361 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
[all …]
DVibratorHalControllerTest.cpp231 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
232 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
238 ASSERT_EQ(0, *callbackCounter.get()); in TEST_F()
242 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
DVibratorManagerHalWrapperAidlTest.cpp316 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
317 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
322 ASSERT_EQ(1, *callbackCounter.get()); in TEST_F()
337 std::unique_ptr<int32_t> callbackCounter = std::make_unique<int32_t>(); in TEST_F() local
338 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F()
341 ASSERT_EQ(0, *callbackCounter.get()); in TEST_F()