Home
last modified time | relevance | path

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

/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperAidlTest.cpp309 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK}; in TEST_F() local
334 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedPrimitives), Return(Status()))); in TEST_F()
379 ASSERT_TRUE(failed.supportedPrimitives.isFailed()); in TEST_F()
395 ASSERT_EQ(supportedPrimitives, successful.supportedPrimitives.value()); in TEST_F()
472 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F()
564 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK, in TEST_F() local
579 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedPrimitives), Return(Status()))); in TEST_F()
621 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::SPIN, in TEST_F() local
633 .WillRepeatedly(DoAll(SetArgPointee<0>(supportedPrimitives), Return(Status()))); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp207 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F()
244 ASSERT_TRUE(info.supportedPrimitives.isUnsupported()); in TEST_F()
/frameworks/native/services/vibratorservice/benchmarks/
DVibratorHalControllerBenchmarks.cpp271 checkHalResult(result.supportedPrimitives, state);
286 checkHalResult(result.supportedPrimitives, state);
410 auto primitivesResult = controller.getInfo().supportedPrimitives; in DefaultArgs()
/frameworks/native/services/vibratorservice/
DVibratorHalWrapper.cpp389 std::vector<CompositePrimitive> supportedPrimitives; in getSupportedPrimitivesInternal() local
390 auto result = getHal()->getSupportedPrimitives(&supportedPrimitives); in getSupportedPrimitivesInternal()
391 return HalResult<std::vector<CompositePrimitive>>::fromStatus(result, supportedPrimitives); in getSupportedPrimitivesInternal()
395 const std::vector<CompositePrimitive>& supportedPrimitives) { in getPrimitiveDurationsInternal() argument
401 for (auto primitive : supportedPrimitives) { in getPrimitiveDurationsInternal()
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorHalWrapper.h183 const HalResult<std::vector<hardware::vibrator::CompositePrimitive>> supportedPrimitives; variable
199 supportedPrimitives.checkAndLogFailure("getSupportedPrimitives") || in checkAndLogFailure()
311 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives);
376 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives)
/frameworks/base/core/java/android/os/
DVibratorInfo.java102 @NonNull SparseIntArray supportedPrimitives, int primitiveDelayMax, in VibratorInfo() argument
109 mSupportedPrimitives = supportedPrimitives.clone(); in VibratorInfo()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp405 if (info.supportedPrimitives.isOk()) { in vibratorGetInfo()
407 for (auto& primitive : info.supportedPrimitives.value()) { in vibratorGetInfo()