/aosp12/hardware/interfaces/vibrator/aidl/default/ |
H A D | Vibrator.cpp | 128 ndk::ScopedAStatus Vibrator::getSupportedPrimitives(std::vector<CompositePrimitive>* supported) { in getSupportedPrimitives() 130 CompositePrimitive::NOOP, CompositePrimitive::CLICK, in getSupportedPrimitives() 131 CompositePrimitive::THUD, CompositePrimitive::SPIN, in getSupportedPrimitives() 132 CompositePrimitive::QUICK_RISE, CompositePrimitive::SLOW_RISE, in getSupportedPrimitives() 133 CompositePrimitive::QUICK_FALL, CompositePrimitive::LIGHT_TICK, in getSupportedPrimitives() 134 CompositePrimitive::LOW_TICK, in getSupportedPrimitives() 139 ndk::ScopedAStatus Vibrator::getPrimitiveDuration(CompositePrimitive primitive, in getPrimitiveDuration() 141 std::vector<CompositePrimitive> supported; in getPrimitiveDuration() 146 if (primitive != CompositePrimitive::NOOP) { in getPrimitiveDuration() 160 std::vector<CompositePrimitive> supported; in compose()
|
/aosp12/hardware/interfaces/vibrator/aidl/android/hardware/vibrator/ |
H A D | CompositeEffect.aidl | 19 import android.hardware.vibrator.CompositePrimitive; 25 CompositePrimitive primitive = CompositePrimitive.NOOP;
|
H A D | IVibrator.aidl | 24 import android.hardware.vibrator.CompositePrimitive; 185 CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives() 195 int getPrimitiveDuration(CompositePrimitive primitive); in getPrimitiveDuration()
|
/aosp12/frameworks/native/services/vibratorservice/test/ |
H A D | VibratorHalWrapperAidlTest.cpp | 36 using android::hardware::vibrator::CompositePrimitive; 73 MOCK_METHOD(Status, getSupportedPrimitives, (std::vector<CompositePrimitive> * ret), 309 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK}; in TEST_F() 314 constexpr auto primitiveRange = enum_range<CompositePrimitive>(); in TEST_F() 317 primitiveDurations[static_cast<size_t>(CompositePrimitive::CLICK)] = 10ms; in TEST_F() 335 EXPECT_CALL(*mMockHal.get(), getPrimitiveDuration(Eq(CompositePrimitive::CLICK), _)) in TEST_F() 564 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::CLICK, in TEST_F() 565 CompositePrimitive::SPIN, in TEST_F() 566 CompositePrimitive::THUD}; in TEST_F() 621 std::vector<CompositePrimitive> supportedPrimitives = {CompositePrimitive::SPIN, in TEST_F() [all …]
|
H A D | test_utils.h | 32 using ::android::hardware::vibrator::CompositePrimitive; 51 static CompositeEffect createCompositeEffect(CompositePrimitive primitive, in createCompositeEffect()
|
/aosp12/hardware/google/pixel/vibrator/cs40l25/ |
H A D | Vibrator.cpp | 392 CompositePrimitive::NOOP, CompositePrimitive::CLICK, in getSupportedPrimitives() 393 CompositePrimitive::THUD, CompositePrimitive::SPIN, in getSupportedPrimitives() 394 CompositePrimitive::QUICK_RISE, CompositePrimitive::SLOW_RISE, in getSupportedPrimitives() 395 CompositePrimitive::QUICK_FALL, CompositePrimitive::LIGHT_TICK, in getSupportedPrimitives() 396 CompositePrimitive::LOW_TICK, in getSupportedPrimitives() 963 case CompositePrimitive::NOOP: in getPrimitiveDetails() 965 case CompositePrimitive::CLICK: in getPrimitiveDetails() 968 case CompositePrimitive::THUD: in getPrimitiveDetails() 971 case CompositePrimitive::SPIN: in getPrimitiveDetails() 977 case CompositePrimitive::SLOW_RISE: in getPrimitiveDetails() [all …]
|
H A D | Vibrator.h | 152 ndk::ScopedAStatus getSupportedPrimitives(std::vector<CompositePrimitive> *supported) override; 153 ndk::ScopedAStatus getPrimitiveDuration(CompositePrimitive primitive, 187 ndk::ScopedAStatus getPrimitiveDetails(CompositePrimitive primitive, uint32_t *outEffectIndex);
|
/aosp12/hardware/interfaces/vibrator/aidl/vts/ |
H A D | VtsHalVibratorTargetTest.cpp | 36 using android::hardware::vibrator::CompositePrimitive; 60 android::enum_range<CompositePrimitive>().begin(), 61 android::enum_range<CompositePrimitive>().end()}; 64 CompositePrimitive::CLICK, CompositePrimitive::LIGHT_TICK, 65 CompositePrimitive::QUICK_RISE, CompositePrimitive::SLOW_RISE, 66 CompositePrimitive::QUICK_FALL, 390 std::vector<CompositePrimitive> supported; in TEST_P() 408 std::vector<CompositePrimitive> supported; in TEST_P() 429 std::vector<CompositePrimitive> supported; in TEST_P() 463 std::vector<CompositePrimitive> supported; in TEST_P() [all …]
|
H A D | VtsHalVibratorManagerTargetTest.cpp | 34 using android::hardware::vibrator::CompositePrimitive; 45 const std::vector<CompositePrimitive> kPrimitives{android::enum_range<CompositePrimitive>().begin(), 46 android::enum_range<CompositePrimitive>().end()};
|
/aosp12/hardware/google/pixel/vibrator/cs40l25/tests/ |
H A D | test-vibrator.cpp | 527 CompositePrimitive primitive; 539 {CompositePrimitive::NOOP, 0}, {CompositePrimitive::CLICK, 2}, 540 {CompositePrimitive::THUD, 4}, {CompositePrimitive::SPIN, 5}, 541 {CompositePrimitive::QUICK_RISE, 6}, {CompositePrimitive::SLOW_RISE, 7}, 542 {CompositePrimitive::QUICK_FALL, 8}, 599 {"click", {{0, CompositePrimitive::CLICK, 1.0f}}, Queue(QueueEffect(2, Level(1.0f)), 0)}, 603 {{3, CompositePrimitive::QUICK_RISE, 0.4f}}, 606 {{4, CompositePrimitive::SLOW_RISE, 0.0f}}, 609 {{5, CompositePrimitive::QUICK_FALL, 1.0f}}, 612 {{6, CompositePrimitive::SLOW_RISE, 1.0f}, {50, CompositePrimitive::THUD, 1.0f}}, [all …]
|
/aosp12/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/2/android/hardware/vibrator/ |
H A D | CompositeEffect.aidl | 38 …android.hardware.vibrator.CompositePrimitive primitive = android.hardware.vibrator.CompositePrimit…
|
H A D | IVibrator.aidl | 46 android.hardware.vibrator.CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives() 47 int getPrimitiveDuration(android.hardware.vibrator.CompositePrimitive primitive); in getPrimitiveDuration()
|
/aosp12/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/current/android/hardware/vibrator/ |
H A D | CompositeEffect.aidl | 38 …android.hardware.vibrator.CompositePrimitive primitive = android.hardware.vibrator.CompositePrimit…
|
H A D | IVibrator.aidl | 46 android.hardware.vibrator.CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives() 47 int getPrimitiveDuration(android.hardware.vibrator.CompositePrimitive primitive); in getPrimitiveDuration()
|
/aosp12/hardware/google/pixel/vibrator/cs40l26/ |
H A D | Vibrator.cpp | 146 ndk::enum_range<CompositePrimitive>().begin(), ndk::enum_range<CompositePrimitive>().end()}; 490 if (primitive != CompositePrimitive::NOOP) { in getPrimitiveDuration() 1180 case CompositePrimitive::NOOP: in getPrimitiveDetails() 1182 case CompositePrimitive::CLICK: in getPrimitiveDetails() 1185 case CompositePrimitive::THUD: in getPrimitiveDetails() 1188 case CompositePrimitive::SPIN: in getPrimitiveDetails() 1191 case CompositePrimitive::QUICK_RISE: in getPrimitiveDetails() 1194 case CompositePrimitive::SLOW_RISE: in getPrimitiveDetails() 1197 case CompositePrimitive::QUICK_FALL: in getPrimitiveDetails() 1200 case CompositePrimitive::LIGHT_TICK: in getPrimitiveDetails() [all …]
|
H A D | Vibrator.h | 114 ndk::ScopedAStatus getSupportedPrimitives(std::vector<CompositePrimitive> *supported) override; 115 ndk::ScopedAStatus getPrimitiveDuration(CompositePrimitive primitive, 148 ndk::ScopedAStatus getPrimitiveDetails(CompositePrimitive primitive, uint32_t *outEffectIndex); 184 std::vector<CompositePrimitive> mSupportedPrimitives;
|
/aosp12/frameworks/native/cmds/idlcli/vibrator/ |
H A D | CommandGetSupportedPrimitives.cpp | 26 using aidl::CompositePrimitive; 48 std::vector<CompositePrimitive> primitives; in doMain()
|
H A D | CommandGetPrimitiveDuration.cpp | 28 using aidl::CompositePrimitive; 78 CompositePrimitive mPrimitive;
|
/aosp12/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/1/android/hardware/vibrator/ |
H A D | IVibrator.aidl | 30 android.hardware.vibrator.CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives() 31 int getPrimitiveDuration(android.hardware.vibrator.CompositePrimitive primitive); in getPrimitiveDuration()
|
H A D | CompositeEffect.aidl | 22 android.hardware.vibrator.CompositePrimitive primitive;
|
/aosp12/frameworks/native/services/vibratorservice/ |
H A D | VibratorHalWrapper.cpp | 31 using android::hardware::vibrator::CompositePrimitive; 213 HalResult<std::vector<CompositePrimitive>> HalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal() 215 return HalResult<std::vector<CompositePrimitive>>::unsupported(); in getSupportedPrimitivesInternal() 219 const std::vector<CompositePrimitive>&) { in getPrimitiveDurationsInternal() argument 388 HalResult<std::vector<CompositePrimitive>> AidlHalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal() 389 std::vector<CompositePrimitive> supportedPrimitives; in getSupportedPrimitivesInternal() 391 return HalResult<std::vector<CompositePrimitive>>::fromStatus(result, supportedPrimitives); in getSupportedPrimitivesInternal() 395 const std::vector<CompositePrimitive>& supportedPrimitives) { in getPrimitiveDurationsInternal() 397 constexpr auto primitiveRange = enum_range<CompositePrimitive>(); in getPrimitiveDurationsInternal()
|
/aosp12/frameworks/native/services/vibratorservice/benchmarks/ |
H A D | VibratorHalControllerBenchmarks.cpp | 24 using ::android::hardware::vibrator::CompositePrimitive; 415 std::vector<CompositePrimitive> supported = primitivesResult.value(); in DefaultArgs() 423 for (const auto& primitive : enum_range<CompositePrimitive>()) { in DefaultArgs() 427 if (primitive == CompositePrimitive::NOOP) { in DefaultArgs() 438 return static_cast<CompositePrimitive>(this->getOtherArg(state, 0)); in getPrimitive()
|
/aosp12/hardware/interfaces/vibrator/aidl/default/include/vibrator-impl/ |
H A D | Vibrator.h | 39 ndk::ScopedAStatus getSupportedPrimitives(std::vector<CompositePrimitive>* supported) override; 40 ndk::ScopedAStatus getPrimitiveDuration(CompositePrimitive primitive,
|
/aosp12/hardware/interfaces/vibrator/bench/ |
H A D | benchmark.cpp | 394 std::vector<Aidl::CompositePrimitive> supportedPrimitives; 499 for (const auto& primitive : enum_range<Aidl::CompositePrimitive>()) { in DefaultArgs() 506 return static_cast<Aidl::CompositePrimitive>(this->getOtherArg(state, 0)); in getPrimitive() 536 std::vector<Aidl::CompositePrimitive> supported; 559 std::vector<Aidl::CompositePrimitive> supported;
|
/aosp12/frameworks/native/services/vibratorservice/include/vibratorservice/ |
H A D | VibratorHalWrapper.h | 183 const HalResult<std::vector<hardware::vibrator::CompositePrimitive>> supportedPrimitives; 239 HalResult<std::vector<hardware::vibrator::CompositePrimitive>> mSupportedPrimitives = 240 HalResult<std::vector<hardware::vibrator::CompositePrimitive>>::failed(MSG); 308 virtual HalResult<std::vector<hardware::vibrator::CompositePrimitive>> 311 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives); 373 HalResult<std::vector<hardware::vibrator::CompositePrimitive>> getSupportedPrimitivesInternal() 376 const std::vector<hardware::vibrator::CompositePrimitive>& supportedPrimitives)
|