/frameworks/native/services/powermanager/ |
D | PowerHalController.cpp | 35 std::unique_ptr<HalWrapper> HalConnector::connect() { in connect() 72 std::shared_ptr<HalWrapper> PowerHalController::initHal() { in initHal() 116 std::shared_ptr<HalWrapper> handle = initHal(); in setBoost() 122 std::shared_ptr<HalWrapper> handle = initHal(); in setMode() 130 std::shared_ptr<HalWrapper> handle = initHal(); in createHintSession() 141 std::shared_ptr<HalWrapper> handle = initHal(); in createHintSessionWithConfig() 150 std::shared_ptr<HalWrapper> handle = initHal(); in getHintSessionPreferredRate() 158 std::shared_ptr<HalWrapper> handle = initHal(); in getSessionChannel() 165 std::shared_ptr<HalWrapper> handle = initHal(); in closeSessionChannel()
|
/frameworks/native/services/vibratorservice/include/vibratorservice/ |
D | VibratorHalController.h | 30 std::shared_ptr<HalWrapper> connectHal(std::shared_ptr<CallbackScheduler> scheduler); 33 using HalFunction = std::function<T(HalWrapper*)>; 41 std::function<std::shared_ptr<HalWrapper>(std::shared_ptr<CallbackScheduler>)>; 71 std::shared_ptr<HalWrapper> hal; in getInfo() 106 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex); 121 std::shared_ptr<HalWrapper> hal; in doWithRetry() 136 HalResult<T> doOnce(HalWrapper* hal, const HalFunction<HalResult<T>>& halFn, in doOnce()
|
D | VibratorHalWrapper.h | 333 friend class HalWrapper; variable 337 class HalWrapper { 339 explicit HalWrapper(std::shared_ptr<CallbackScheduler> scheduler) in HalWrapper() function 341 virtual ~HalWrapper() = default; 406 class AidlHalWrapper : public HalWrapper { 415 : HalWrapper(std::move(scheduler)), in HalWrapper() function 476 class HidlHalWrapper : public HalWrapper { 479 : HalWrapper(std::move(scheduler)), mHandle(std::move(handle)) {} in HidlHalWrapper()
|
D | VibratorManagerHalWrapper.h | 137 std::shared_ptr<HalWrapper> connectToVibrator(int32_t vibratorId,
|
/frameworks/native/include/powermanager/ |
D | PowerHalController.h | 40 virtual std::unique_ptr<HalWrapper> connect(); 51 class PowerHalController : public HalWrapper { 82 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex) = nullptr; 83 const std::shared_ptr<HalWrapper> mDefaultHal = std::make_shared<EmptyHalWrapper>(); 85 std::shared_ptr<HalWrapper> initHal();
|
D | PowerHalWrapper.h | 48 class HalWrapper { 50 virtual ~HalWrapper() = default; 69 class EmptyHalWrapper : public HalWrapper {
|
/frameworks/native/cmds/idlcli/ |
D | vibrator.h | 80 class HalWrapper { 82 static std::unique_ptr<HalWrapper> Create() { in Create() 87 return hal ? std::unique_ptr<HalWrapper>(new HalWrapper(std::move(hal))) : nullptr; in Create() 96 HalWrapper(shared_ptr<I>&& hal) : mHal(std::move(hal)) {} in HalWrapper() function 104 static auto sHalWrapper = HalWrapper<I>::Create(); in getHal()
|
/frameworks/native/services/vibratorservice/ |
D | VibratorHalWrapper.cpp | 59 Info HalWrapper::getInfo() { in getInfo() 99 HalResult<milliseconds> HalWrapper::performComposedEffect(const std::vector<CompositeEffect>&, in performComposedEffect() 105 HalResult<void> HalWrapper::performPwleEffect(const std::vector<PrimitivePwle>&, in performPwleEffect() 111 HalResult<Capabilities> HalWrapper::getCapabilities() { in getCapabilities() 119 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurations() { in getPrimitiveDurations() 134 HalResult<std::vector<Effect>> HalWrapper::getSupportedEffectsInternal() { in getSupportedEffectsInternal() 139 HalResult<std::vector<Braking>> HalWrapper::getSupportedBrakingInternal() { in getSupportedBrakingInternal() 144 HalResult<std::vector<CompositePrimitive>> HalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal() 149 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurationsInternal( in getPrimitiveDurationsInternal() 155 HalResult<milliseconds> HalWrapper::getPrimitiveDelayMaxInternal() { in getPrimitiveDelayMaxInternal() [all …]
|
D | VibratorManagerHalWrapper.cpp | 33 auto pingFn = [](HalWrapper* hal) { return hal->ping(); }; in ping() 76 std::shared_ptr<HalWrapper> AidlManagerHalWrapper::connectToVibrator( in connectToVibrator()
|
D | VibratorHalController.cpp | 49 std::shared_ptr<HalWrapper> connectHal(std::shared_ptr<CallbackScheduler> scheduler) { in connectHal()
|
/frameworks/native/services/vibratorservice/test/ |
D | VibratorHalControllerTest.cpp | 43 static const auto ON_FN = [](vibrator::HalWrapper* hal) { return hal->on(10ms, []() {}); }; in __anon4a8d81570102() 44 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon4a8d81570302() 45 static const auto PING_FN = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in __anon4a8d81570402() 49 class MockHalWrapper : public vibrator::HalWrapper { 52 : HalWrapper(scheduler) {} in MockHalWrapper() 260 auto onFn = [&](vibrator::HalWrapper* hal) { in TEST_F()
|
D | VibratorHalWrapperHidlV1_1Test.cpp | 69 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
|
D | VibratorHalWrapperHidlV1_2Test.cpp | 72 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
|
D | VibratorHalWrapperHidlV1_3Test.cpp | 79 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
|
D | VibratorHalWrapperHidlV1_0Test.cpp | 72 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
|
D | VibratorManagerHalWrapperAidlTest.cpp | 43 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon430768090102()
|
D | VibratorHalWrapperAidlTest.cpp | 111 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 223 auto pingFn = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in vibratorIsAvailable() 235 auto onFn = [timeoutMs, &callback](vibrator::HalWrapper* hal) { in vibratorOn() 248 auto offFn = [](vibrator::HalWrapper* hal) { return hal->off(); }; in vibratorOff() 259 auto setAmplitudeFn = [amplitude](vibrator::HalWrapper* hal) { in vibratorSetAmplitude() 272 auto setExternalControlFn = [enabled](vibrator::HalWrapper* hal) { in vibratorSetExternalControl() 288 auto performEffectFn = [effectType, effectStrength, &callback](vibrator::HalWrapper* hal) { in vibratorPerformEffect() 309 auto performComposedEffectFn = [&effects, &callback](vibrator::HalWrapper* hal) { in vibratorPerformComposedEffect() 344 auto performPwleEffectFn = [&primitives, &callback](vibrator::HalWrapper* hal) { in vibratorPerformPwleEffect() 358 auto alwaysOnEnableFn = [id, effect, strength](vibrator::HalWrapper* hal) { in vibratorAlwaysOnEnable() 371 auto alwaysOnDisableFn = [id](vibrator::HalWrapper* hal) { in vibratorAlwaysOnDisable()
|
/frameworks/native/services/powermanager/tests/ |
D | PowerHalControllerTest.cpp | 56 virtual std::unique_ptr<HalWrapper> connect() override { in connect() 84 std::unique_ptr<HalWrapper> connect() override { in connect()
|
D | PowerHalWrapperHidlV1_1Test.cpp | 61 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|
D | PowerHalWrapperHidlV1_0Test.cpp | 57 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|
D | PowerHalWrapperHidlV1_2Test.cpp | 66 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|
D | PowerHalWrapperHidlV1_3Test.cpp | 70 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|
D | PowerHalWrapperAidlTest.cpp | 81 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|