/frameworks/native/cmds/idlcli/ |
D | Android.bp | 27 "android.hardware.vibrator-V2-ndk", 28 "android.hardware.vibrator@1.0", 29 "android.hardware.vibrator@1.1", 30 "android.hardware.vibrator@1.2", 31 "android.hardware.vibrator@1.3", 49 "vibrator/CommandAlwaysOnDisable.cpp", 50 "vibrator/CommandAlwaysOnEnable.cpp", 51 "vibrator/CommandCompose.cpp", 52 "vibrator/CommandComposePwle.cpp", 53 "vibrator/CommandGetBandwidthAmplitudeMap.cpp", [all …]
|
D | vibrator.h | 57 inline auto getService<android::hardware::vibrator::V1_0::IVibrator>(std::string name) { 58 return android::hardware::vibrator::V1_0::IVibrator::getService(name); 62 inline auto getService<android::hardware::vibrator::V1_1::IVibrator>(std::string name) { 63 return android::hardware::vibrator::V1_1::IVibrator::getService(name); 67 inline auto getService<android::hardware::vibrator::V1_2::IVibrator>(std::string name) { 68 return android::hardware::vibrator::V1_2::IVibrator::getService(name); 72 inline auto getService<android::hardware::vibrator::V1_3::IVibrator>(std::string name) { 73 return android::hardware::vibrator::V1_3::IVibrator::getService(name); 115 namespace vibrator { 117 namespace V1_0 = ::android::hardware::vibrator::V1_0; [all …]
|
/frameworks/native/services/vibratorservice/test/ |
D | VibratorHalControllerTest.cpp | 34 using android::hardware::vibrator::Effect; 35 using android::hardware::vibrator::EffectStrength; 43 static const auto ON_FN = [](vibrator::HalWrapper* hal) { return hal->on(10ms, []() {}); }; in __anon17378eef0202() 44 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon17378eef0302() 45 static const auto PING_FN = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in __anon17378eef0402() 49 class MockHalWrapper : public vibrator::HalWrapper { 51 MockHalWrapper(std::shared_ptr<vibrator::CallbackScheduler> scheduler) in MockHalWrapper() 55 MOCK_METHOD(vibrator::HalResult<void>, ping, (), (override)); 57 MOCK_METHOD(vibrator::HalResult<void>, on, 60 MOCK_METHOD(vibrator::HalResult<void>, off, (), (override)); [all …]
|
D | VibratorManagerHalControllerTest.cpp | 29 using android::vibrator::HalController; 38 class MockManagerHalWrapper : public vibrator::ManagerHalWrapper { 41 MOCK_METHOD(vibrator::HalResult<void>, ping, (), (override)); 42 MOCK_METHOD(vibrator::HalResult<vibrator::ManagerCapabilities>, getCapabilities, (), 44 MOCK_METHOD(vibrator::HalResult<std::vector<int32_t>>, getVibratorIds, (), (override)); 45 MOCK_METHOD(vibrator::HalResult<std::shared_ptr<HalController>>, getVibrator, (int32_t id), 47 MOCK_METHOD(vibrator::HalResult<void>, prepareSynced, (const std::vector<int32_t>& ids), 49 MOCK_METHOD(vibrator::HalResult<void>, triggerSynced, 51 MOCK_METHOD(vibrator::HalResult<void>, cancelSynced, (), (override)); 58 auto callbackScheduler = std::make_shared<vibrator::CallbackScheduler>(); in SetUp() [all …]
|
D | test_utils.h | 26 namespace vibrator { 28 using ::android::hardware::vibrator::ActivePwle; 29 using ::android::hardware::vibrator::Braking; 30 using ::android::hardware::vibrator::BrakingPwle; 31 using ::android::hardware::vibrator::CompositeEffect; 32 using ::android::hardware::vibrator::CompositePrimitive; 33 using ::android::hardware::vibrator::PrimitivePwle; 37 class MockCallbackScheduler : public vibrator::CallbackScheduler {
|
D | VibratorHalWrapperHidlV1_3Test.cpp | 32 namespace V1_0 = android::hardware::vibrator::V1_0; 33 namespace V1_1 = android::hardware::vibrator::V1_1; 34 namespace V1_2 = android::hardware::vibrator::V1_2; 35 namespace V1_3 = android::hardware::vibrator::V1_3; 37 using android::hardware::vibrator::Effect; 38 using android::hardware::vibrator::EffectStrength; 39 using android::hardware::vibrator::IVibrator; 72 mMockScheduler = std::make_shared<StrictMock<vibrator::MockCallbackScheduler>>(); in SetUp() 73 mWrapper = std::make_unique<vibrator::HidlHalWrapperV1_3>(mMockScheduler, mMockHal); in SetUp() 78 std::shared_ptr<StrictMock<vibrator::MockCallbackScheduler>> mMockScheduler = nullptr; [all …]
|
D | VibratorHalWrapperHidlV1_0Test.cpp | 32 namespace V1_0 = android::hardware::vibrator::V1_0; 34 using android::hardware::vibrator::Braking; 35 using android::hardware::vibrator::CompositeEffect; 36 using android::hardware::vibrator::CompositePrimitive; 37 using android::hardware::vibrator::Effect; 38 using android::hardware::vibrator::EffectStrength; 39 using android::hardware::vibrator::IVibrator; 40 using android::hardware::vibrator::PrimitivePwle; 65 mMockScheduler = std::make_shared<StrictMock<vibrator::MockCallbackScheduler>>(); in SetUp() 66 mWrapper = std::make_unique<vibrator::HidlHalWrapperV1_0>(mMockScheduler, mMockHal); in SetUp() [all …]
|
D | VibratorHalWrapperHidlV1_2Test.cpp | 31 namespace V1_0 = android::hardware::vibrator::V1_0; 32 namespace V1_1 = android::hardware::vibrator::V1_1; 33 namespace V1_2 = android::hardware::vibrator::V1_2; 35 using android::hardware::vibrator::Effect; 36 using android::hardware::vibrator::EffectStrength; 65 mMockScheduler = std::make_shared<StrictMock<vibrator::MockCallbackScheduler>>(); in SetUp() 66 mWrapper = std::make_unique<vibrator::HidlHalWrapperV1_2>(mMockScheduler, mMockHal); in SetUp() 71 std::shared_ptr<StrictMock<vibrator::MockCallbackScheduler>> mMockScheduler = nullptr; 72 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr; 91 .WillRepeatedly(vibrator::TriggerSchedulerCallback()); in TEST_F() [all …]
|
D | VibratorHalWrapperHidlV1_1Test.cpp | 31 namespace V1_0 = android::hardware::vibrator::V1_0; 32 namespace V1_1 = android::hardware::vibrator::V1_1; 34 using android::hardware::vibrator::Effect; 35 using android::hardware::vibrator::EffectStrength; 62 mMockScheduler = std::make_shared<StrictMock<vibrator::MockCallbackScheduler>>(); in SetUp() 63 mWrapper = std::make_unique<vibrator::HidlHalWrapperV1_1>(mMockScheduler, mMockHal); in SetUp() 68 std::shared_ptr<StrictMock<vibrator::MockCallbackScheduler>> mMockScheduler = nullptr; 69 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr; 88 .WillRepeatedly(vibrator::TriggerSchedulerCallback()); in TEST_F() 92 auto callback = vibrator::TestFactory::createCountingCallback(callbackCounter.get()); in TEST_F() [all …]
|
D | VibratorManagerHalWrapperLegacyTest.cpp | 26 using android::hardware::vibrator::CompositeEffect; 27 using android::hardware::vibrator::CompositePrimitive; 28 using android::hardware::vibrator::Effect; 29 using android::hardware::vibrator::EffectStrength; 38 class MockHalController : public vibrator::HalController { 53 mWrapper = std::make_unique<vibrator::LegacyManagerHalWrapper>(mMockController); in SetUp() 59 std::unique_ptr<vibrator::ManagerHalWrapper> mWrapper = nullptr; 79 ASSERT_EQ(vibrator::ManagerCapabilities::NONE, result.value()); in TEST_F()
|
D | VibratorManagerHalWrapperAidlTest.cpp | 30 using android::hardware::vibrator::Braking; 31 using android::hardware::vibrator::CompositeEffect; 32 using android::hardware::vibrator::CompositePrimitive; 33 using android::hardware::vibrator::Effect; 34 using android::hardware::vibrator::EffectStrength; 35 using android::hardware::vibrator::IVibrator; 36 using android::hardware::vibrator::IVibratorCallback; 37 using android::hardware::vibrator::IVibratorManager; 38 using android::hardware::vibrator::PrimitivePwle; 43 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon95518da10102() [all …]
|
D | Android.bp | 51 "android.hardware.vibrator-V2-cpp", 52 "android.hardware.vibrator@1.0", 53 "android.hardware.vibrator@1.1", 54 "android.hardware.vibrator@1.2", 55 "android.hardware.vibrator@1.3",
|
/frameworks/native/services/vibratorservice/include/vibratorservice/ |
D | VibratorHalWrapper.h | 30 namespace vibrator { 56 static HalResult<T> fromStatus(hardware::vibrator::V1_0::Status status, T data); 63 hardware::vibrator::V1_0::Status status, T data); 101 static HalResult<void> fromStatus(hardware::vibrator::V1_0::Status status); 129 class HalCallbackWrapper : public hardware::vibrator::BnVibratorCallback { 148 ON_CALLBACK = hardware::vibrator::IVibrator::CAP_ON_CALLBACK, 149 PERFORM_CALLBACK = hardware::vibrator::IVibrator::CAP_PERFORM_CALLBACK, 150 AMPLITUDE_CONTROL = hardware::vibrator::IVibrator::CAP_AMPLITUDE_CONTROL, 151 EXTERNAL_CONTROL = hardware::vibrator::IVibrator::CAP_EXTERNAL_CONTROL, 152 EXTERNAL_AMPLITUDE_CONTROL = hardware::vibrator::IVibrator::CAP_EXTERNAL_AMPLITUDE_CONTROL, [all …]
|
D | VibratorManagerHalWrapper.h | 26 namespace vibrator { 31 SYNC = hardware::vibrator::IVibratorManager::CAP_SYNC, 32 PREPARE_ON = hardware::vibrator::IVibratorManager::CAP_PREPARE_ON, 33 PREPARE_PERFORM = hardware::vibrator::IVibratorManager::CAP_PREPARE_PERFORM, 34 PREPARE_COMPOSE = hardware::vibrator::IVibratorManager::CAP_PREPARE_COMPOSE, 35 MIXED_TRIGGER_ON = hardware::vibrator::IVibratorManager::IVibratorManager::CAP_MIXED_TRIGGER_ON, 36 MIXED_TRIGGER_PERFORM = hardware::vibrator::IVibratorManager::CAP_MIXED_TRIGGER_PERFORM, 37 MIXED_TRIGGER_COMPOSE = hardware::vibrator::IVibratorManager::CAP_MIXED_TRIGGER_COMPOSE, 38 TRIGGER_CALLBACK = hardware::vibrator::IVibratorManager::CAP_TRIGGER_CALLBACK 110 sp<hardware::vibrator::IVibratorManager> handle) in AidlManagerHalWrapper() [all …]
|
/frameworks/native/services/vibratorservice/ |
D | VibratorHalController.cpp | 30 using android::hardware::vibrator::CompositeEffect; 31 using android::hardware::vibrator::CompositePrimitive; 32 using android::hardware::vibrator::Effect; 33 using android::hardware::vibrator::EffectStrength; 37 namespace V1_0 = android::hardware::vibrator::V1_0; 38 namespace V1_1 = android::hardware::vibrator::V1_1; 39 namespace V1_2 = android::hardware::vibrator::V1_2; 40 namespace V1_3 = android::hardware::vibrator::V1_3; 41 namespace Aidl = android::hardware::vibrator; 45 namespace vibrator { namespace
|
D | Android.bp | 38 "hardware/interfaces/vibrator/aidl/android/hardware/vibrator", 48 "android.hardware.vibrator-V2-cpp", 49 "android.hardware.vibrator@1.0", 50 "android.hardware.vibrator@1.1", 51 "android.hardware.vibrator@1.2", 52 "android.hardware.vibrator@1.3",
|
/frameworks/native/services/vibratorservice/benchmarks/ |
D | VibratorHalControllerBenchmarks.cpp | 23 using ::android::hardware::vibrator::CompositeEffect; 24 using ::android::hardware::vibrator::CompositePrimitive; 25 using ::android::hardware::vibrator::Effect; 26 using ::android::hardware::vibrator::EffectStrength; 49 vibrator::HalController mController; 53 bool hasCapabilities(vibrator::Capabilities&& query, State& state) { in hasCapabilities() 70 bool checkHalResult(const vibrator::HalResult<R>& result, State& state) { in checkHalResult() 79 vibrator::HalResult<R> halCall(vibrator::HalController& controller, in halCall() 80 const vibrator::HalFunction<vibrator::HalResult<R>>& halFn) { in halCall() 95 vibrator::HalController controller; [all …]
|
D | Android.bp | 35 "android.hardware.vibrator-V2-cpp", 36 "android.hardware.vibrator@1.0", 37 "android.hardware.vibrator@1.1", 38 "android.hardware.vibrator@1.2", 39 "android.hardware.vibrator@1.3",
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/ |
D | UnfoldHapticsPlayerTest.kt | 39 private val vibrator: Vibrator = mock() constant in com.android.systemui.unfold.UnfoldHapticsPlayerTest 46 player = UnfoldHapticsPlayer(progressProvider, testFoldProvider, Runnable::run, vibrator) in before() 57 verify(vibrator).vibrate(any<VibrationEffect>()) in testUnfoldingTransitionFinishingEarly_playsHaptics() 68 verify(vibrator, never()).vibrate(any<VibrationEffect>()) in testUnfoldingTransitionFinishingLate_doesNotPlayHaptics() 80 clearInvocations(vibrator) in testFoldingAfterUnfolding_doesNotPlayHaptics() 88 verify(vibrator, never()).vibrate(any<VibrationEffect>()) in testFoldingAfterUnfolding_doesNotPlayHaptics() 106 clearInvocations(vibrator) in testUnfoldingAfterFoldingAndUnfolding_playsHaptics() 116 verify(vibrator).vibrate(any<VibrationEffect>()) in testUnfoldingAfterFoldingAndUnfolding_playsHaptics()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/vibrator/ |
D | RampToStepAdapterTest.java | 17 package com.android.server.vibrator; 21 import android.hardware.vibrator.IVibrator; 24 import android.os.vibrator.PrebakedSegment; 25 import android.os.vibrator.PrimitiveSegment; 26 import android.os.vibrator.RampSegment; 27 import android.os.vibrator.StepSegment; 28 import android.os.vibrator.VibrationEffectSegment;
|
D | StepToRampAdapterTest.java | 17 package com.android.server.vibrator; 21 import android.hardware.vibrator.IVibrator; 24 import android.os.vibrator.PrebakedSegment; 25 import android.os.vibrator.PrimitiveSegment; 26 import android.os.vibrator.RampSegment; 27 import android.os.vibrator.StepSegment; 28 import android.os.vibrator.VibrationEffectSegment;
|
/frameworks/base/samples/demo/haptic-assessment/src/com/example/android/hapticassessment/ |
D | MainActivity.kt | 45 val vibrator = getSystemService(Vibrator::class.java) in <lambda>() constant 48 vibrator.vibrate(VibrationEffect.createPredefined(EFFECT_CLICK)) in <lambda>() 52 vibrator.vibrate(VibrationEffect.createOneShot(ONE_SHOT_TIMING, ONE_SHOT_AMPLITUDE)) in <lambda>() 56 vibrator.vibrate( in <lambda>() 60 if (vibrator.hasAmplitudeControl()) { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | VibratorHelperTest.kt | 34 @Mock lateinit var vibrator: Vibrator variable in com.android.systemui.statusbar.VibratorHelperTest 41 vibratorHelper = VibratorHelper(vibrator, executor) in setup() 42 whenever(vibrator.hasVibrator()).thenReturn(true) in setup() 77 verify(vibrator).hasVibrator() in testHasVibrator() 88 verify(vibrator).hasVibrator() in verifyAsync() 91 return verify(vibrator) in verifyAsync()
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 34 namespace V1_0 = android::hardware::vibrator::V1_0; 35 namespace V1_3 = android::hardware::vibrator::V1_3; 36 namespace aidl = android::hardware::vibrator; 94 static std::shared_ptr<vibrator::HalController> findVibrator(int32_t vibratorId) { in findVibrator() 95 vibrator::ManagerHalController* manager = in findVibrator() 123 vibrator::Info getVibratorInfo() { return mHal->getInfo(); } in getVibratorInfo() 128 vibrator::HalResult<T> halCall(const vibrator::HalFunction<vibrator::HalResult<T>>& fn, in halCall() 142 const std::shared_ptr<vibrator::HalController> mHal; 212 auto pingFn = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in vibratorIsAvailable() 224 auto onFn = [timeoutMs, &callback](vibrator::HalWrapper* hal) { in vibratorOn() [all …]
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | RampToStepAdapter.java | 17 package com.android.server.vibrator; 19 import android.hardware.vibrator.IVibrator; 21 import android.os.vibrator.RampSegment; 22 import android.os.vibrator.StepSegment; 23 import android.os.vibrator.VibrationEffectSegment;
|