Home
last modified time | relevance | path

Searched refs:CompositePrimitive (Results 1 – 25 of 27) sorted by relevance

12

/hardware/interfaces/vibrator/aidl/android/hardware/vibrator/
DCompositeEffect.aidl19 import android.hardware.vibrator.CompositePrimitive;
25 CompositePrimitive primitive = CompositePrimitive.NOOP;
DIVibrator.aidl24 import android.hardware.vibrator.CompositePrimitive;
185 CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives()
195 int getPrimitiveDuration(CompositePrimitive primitive); in getPrimitiveDuration()
DCompositePrimitive.aidl21 enum CompositePrimitive { enum
/hardware/interfaces/vibrator/aidl/default/
DVibrator.cpp133 ndk::ScopedAStatus Vibrator::getSupportedPrimitives(std::vector<CompositePrimitive>* supported) { in getSupportedPrimitives()
135 CompositePrimitive::NOOP, CompositePrimitive::CLICK, in getSupportedPrimitives()
136 CompositePrimitive::THUD, CompositePrimitive::SPIN, in getSupportedPrimitives()
137 CompositePrimitive::QUICK_RISE, CompositePrimitive::SLOW_RISE, in getSupportedPrimitives()
138 CompositePrimitive::QUICK_FALL, CompositePrimitive::LIGHT_TICK, in getSupportedPrimitives()
139 CompositePrimitive::LOW_TICK, in getSupportedPrimitives()
144 ndk::ScopedAStatus Vibrator::getPrimitiveDuration(CompositePrimitive primitive, in getPrimitiveDuration()
146 std::vector<CompositePrimitive> supported; in getPrimitiveDuration()
151 if (primitive != CompositePrimitive::NOOP) { in getPrimitiveDuration()
165 std::vector<CompositePrimitive> supported; in compose()
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/2/android/hardware/vibrator/
DCompositeEffect.aidl38 …android.hardware.vibrator.CompositePrimitive primitive = android.hardware.vibrator.CompositePrimit…
DIVibrator.aidl46 android.hardware.vibrator.CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives()
47 int getPrimitiveDuration(android.hardware.vibrator.CompositePrimitive primitive); in getPrimitiveDuration()
DCompositePrimitive.aidl36 enum CompositePrimitive { enum
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/current/android/hardware/vibrator/
DCompositeEffect.aidl38 …android.hardware.vibrator.CompositePrimitive primitive = android.hardware.vibrator.CompositePrimit…
DIVibrator.aidl46 android.hardware.vibrator.CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives()
47 int getPrimitiveDuration(android.hardware.vibrator.CompositePrimitive primitive); in getPrimitiveDuration()
DCompositePrimitive.aidl36 enum CompositePrimitive { enum
/hardware/interfaces/vibrator/aidl/vts/
DVtsHalVibratorTargetTest.cpp36 using android::hardware::vibrator::CompositePrimitive;
61 const std::vector<CompositePrimitive> kCompositePrimitives{
62 android::enum_range<CompositePrimitive>().begin(),
63 android::enum_range<CompositePrimitive>().end()};
65 const std::vector<CompositePrimitive> kRequiredPrimitives = {
66 CompositePrimitive::CLICK, CompositePrimitive::LIGHT_TICK,
67 CompositePrimitive::QUICK_RISE, CompositePrimitive::SLOW_RISE,
68 CompositePrimitive::QUICK_FALL,
71 const std::vector<CompositePrimitive> kInvalidPrimitives = {
72 static_cast<CompositePrimitive>(static_cast<int32_t>(kCompositePrimitives.front()) - 1),
[all …]
DVtsHalVibratorManagerTargetTest.cpp34 using android::hardware::vibrator::CompositePrimitive;
45 const std::vector<CompositePrimitive> kPrimitives{android::enum_range<CompositePrimitive>().begin(),
46 android::enum_range<CompositePrimitive>().end()};
/hardware/interfaces/vibrator/aidl/aidl_api/android.hardware.vibrator/1/android/hardware/vibrator/
DIVibrator.aidl30 android.hardware.vibrator.CompositePrimitive[] getSupportedPrimitives(); in getSupportedPrimitives()
31 int getPrimitiveDuration(android.hardware.vibrator.CompositePrimitive primitive); in getPrimitiveDuration()
DCompositeEffect.aidl22 android.hardware.vibrator.CompositePrimitive primitive;
DCompositePrimitive.aidl20 enum CompositePrimitive { enum
/hardware/google/pixel/vibrator/cs40l25/tests/
Dtest-vibrator.cpp579 CompositePrimitive primitive;
591 {CompositePrimitive::NOOP, 0}, {CompositePrimitive::CLICK, 2},
592 {CompositePrimitive::THUD, 4}, {CompositePrimitive::SPIN, 5},
593 {CompositePrimitive::QUICK_RISE, 6}, {CompositePrimitive::SLOW_RISE, 7},
594 {CompositePrimitive::QUICK_FALL, 8},
660 {"click", {{0, CompositePrimitive::CLICK, 1.0f}}, Queue(QueueEffect(2, Level(1.0f)), 0)},
661 {"thud", {{1, CompositePrimitive::THUD, 0.8f}}, Queue(1, QueueEffect(4, Level(0.8f)), 0)},
662 {"spin", {{2, CompositePrimitive::SPIN, 0.6f}}, Queue(2, QueueEffect(5, Level(0.6f)), 0)},
664 {{3, CompositePrimitive::QUICK_RISE, 0.4f}},
667 {{4, CompositePrimitive::SLOW_RISE, 0.0f}},
[all …]
/hardware/google/pixel/vibrator/cs40l26/tests/
Dtest-vibrator.cpp613 CompositePrimitive primitive;
625 {CompositePrimitive::CLICK, 2}, {CompositePrimitive::THUD, 4},
626 {CompositePrimitive::SPIN, 5}, {CompositePrimitive::QUICK_RISE, 6},
627 {CompositePrimitive::SLOW_RISE, 7}, {CompositePrimitive::QUICK_FALL, 8},
628 {CompositePrimitive::LIGHT_TICK, 9}, {CompositePrimitive::LOW_TICK, 10},
702 {{0, CompositePrimitive::CLICK, 1.0f}},
705 {{1, CompositePrimitive::THUD, 0.8f}},
708 {{2, CompositePrimitive::SPIN, 0.6f}},
711 {{3, CompositePrimitive::QUICK_RISE, 0.4f}},
714 {{4, CompositePrimitive::SLOW_RISE, 0.0f}},
[all …]
/hardware/google/pixel/vibrator/cs40l25/
DVibrator.cpp453 ndk::ScopedAStatus Vibrator::getSupportedPrimitives(std::vector<CompositePrimitive> *supported) { in getSupportedPrimitives()
456 CompositePrimitive::NOOP, CompositePrimitive::CLICK, in getSupportedPrimitives()
457 CompositePrimitive::THUD, CompositePrimitive::SPIN, in getSupportedPrimitives()
458 CompositePrimitive::QUICK_RISE, CompositePrimitive::SLOW_RISE, in getSupportedPrimitives()
459 CompositePrimitive::QUICK_FALL, CompositePrimitive::LIGHT_TICK, in getSupportedPrimitives()
460 CompositePrimitive::LOW_TICK, in getSupportedPrimitives()
465 ndk::ScopedAStatus Vibrator::getPrimitiveDuration(CompositePrimitive primitive, in getPrimitiveDuration()
471 if (primitive != CompositePrimitive::NOOP) { in getPrimitiveDuration()
517 if (e.primitive != CompositePrimitive::NOOP) { in compose()
1203 ndk::ScopedAStatus Vibrator::getPrimitiveDetails(CompositePrimitive primitive, in getPrimitiveDetails()
[all …]
DVibrator.h180 ndk::ScopedAStatus getSupportedPrimitives(std::vector<CompositePrimitive> *supported) override;
181 ndk::ScopedAStatus getPrimitiveDuration(CompositePrimitive primitive,
215 ndk::ScopedAStatus getPrimitiveDetails(CompositePrimitive primitive, uint32_t *outEffectIndex);
/hardware/interfaces/vibrator/aidl/default/include/vibrator-impl/
DVibrator.h39 ndk::ScopedAStatus getSupportedPrimitives(std::vector<CompositePrimitive>* supported) override;
40 ndk::ScopedAStatus getPrimitiveDuration(CompositePrimitive primitive,
/hardware/google/pixel/vibrator/cs40l26/
DVibrator.h193 ndk::ScopedAStatus getSupportedPrimitives(std::vector<CompositePrimitive> *supported) override;
194 ndk::ScopedAStatus getPrimitiveDuration(CompositePrimitive primitive,
226 ndk::ScopedAStatus getPrimitiveDetails(CompositePrimitive primitive, uint32_t *outEffectIndex);
268 std::vector<CompositePrimitive> mSupportedPrimitives;
DVibrator.cpp147 std::vector<CompositePrimitive> defaultSupportedPrimitives = {
148 ndk::enum_range<CompositePrimitive>().begin(), ndk::enum_range<CompositePrimitive>().end()};
483 ndk::ScopedAStatus Vibrator::getSupportedPrimitives(std::vector<CompositePrimitive> *supported) { in getSupportedPrimitives()
489 ndk::ScopedAStatus Vibrator::getPrimitiveDuration(CompositePrimitive primitive, in getPrimitiveDuration()
494 if (primitive != CompositePrimitive::NOOP) { in getPrimitiveDuration()
554 if (e_curr.primitive != CompositePrimitive::NOOP) { in compose()
1529 ndk::ScopedAStatus Vibrator::getPrimitiveDetails(CompositePrimitive primitive, in getPrimitiveDetails()
1540 case CompositePrimitive::NOOP: in getPrimitiveDetails()
1542 case CompositePrimitive::CLICK: in getPrimitiveDetails()
1545 case CompositePrimitive::THUD: in getPrimitiveDetails()
[all …]
DTrace.h129 SUPPORT_TYPENAME(std::vector<CompositePrimitive> *);
130 SUPPORT_TYPENAME(CompositePrimitive);
160 std::ostream &operator<<(std::ostream &out, const CompositePrimitive &arg);
/hardware/interfaces/vibrator/bench/
Dbenchmark.cpp566 std::vector<Aidl::CompositePrimitive> supportedPrimitives;
712 for (const auto& primitive : enum_range<Aidl::CompositePrimitive>()) { in DefaultArgs()
719 return static_cast<Aidl::CompositePrimitive>(this->getOtherArg(state, 0)); in getPrimitive()
722 bool isPrimitiveSupported(const Aidl::CompositePrimitive& primitive) { in isPrimitiveSupported()
723 std::vector<Aidl::CompositePrimitive> supported; in isPrimitiveSupported()
789 if (effect.primitive == Aidl::CompositePrimitive::NOOP) {
/hardware/google/pixel/vibrator/drv2624/
DVibrator.h150 ndk::ScopedAStatus getSupportedPrimitives(std::vector<CompositePrimitive> *supported) override;
151 ndk::ScopedAStatus getPrimitiveDuration(CompositePrimitive primitive,

12