/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>)>; 67 return apply<Info>([](HalWrapper* hal) { return hal->getInfo(); }, sDefaultInfo, "getInfo"); in getInfo() 84 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex); 98 std::shared_ptr<HalWrapper> hal; in apply()
|
D | VibratorHalWrapper.h | 255 friend class HalWrapper; variable 259 class HalWrapper { 261 explicit HalWrapper(std::shared_ptr<CallbackScheduler> scheduler) in HalWrapper() function 263 virtual ~HalWrapper() = default; 328 class AidlHalWrapper : public HalWrapper { 337 : HalWrapper(std::move(scheduler)), in HalWrapper() function 398 class HidlHalWrapper : public HalWrapper { 401 : HalWrapper(std::move(scheduler)), mHandle(std::move(handle)) {} in HidlHalWrapper()
|
D | VibratorManagerHalWrapper.h | 137 std::shared_ptr<HalWrapper> connectToVibrator(int32_t vibratorId,
|
/frameworks/native/services/powermanager/ |
D | PowerHalController.cpp | 35 std::unique_ptr<HalWrapper> HalConnector::connect() { in connect() 63 std::shared_ptr<HalWrapper> PowerHalController::initHal() { in initHal() 90 std::shared_ptr<HalWrapper> handle = initHal(); in setBoost() 96 std::shared_ptr<HalWrapper> handle = initHal(); in setMode() 103 std::shared_ptr<HalWrapper> handle = initHal(); in createHintSession() 109 std::shared_ptr<HalWrapper> handle = initHal(); in getHintSessionPreferredRate()
|
/frameworks/native/include/powermanager/ |
D | PowerHalController.h | 39 virtual std::unique_ptr<HalWrapper> connect(); 49 class PowerHalController : public HalWrapper { 71 std::shared_ptr<HalWrapper> mConnectedHal GUARDED_BY(mConnectedHalMutex) = nullptr; 72 const std::shared_ptr<HalWrapper> mDefaultHal = std::make_shared<EmptyHalWrapper>(); 74 std::shared_ptr<HalWrapper> initHal();
|
D | PowerHalWrapper.h | 116 class HalWrapper { 118 virtual ~HalWrapper() = default; 129 class EmptyHalWrapper : public HalWrapper { 143 class HidlHalWrapperV1_0 : public HalWrapper { 182 class AidlHalWrapper : public HalWrapper {
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | PowerAdvisor.cpp | 98 HalWrapper* const halWrapper = getPowerHal(); in setExpensiveRenderingExpected() 122 HalWrapper* const halWrapper = getPowerHal(); in notifyDisplayUpdateImminent() 139 class HidlPowerHalWrapper : public PowerAdvisor::HalWrapper { 145 static std::unique_ptr<HalWrapper> connect() { in connect() 185 class AidlPowerHalWrapper : public PowerAdvisor::HalWrapper { 202 static std::unique_ptr<HalWrapper> connect() { in connect() 241 PowerAdvisor::HalWrapper* PowerAdvisor::getPowerHal() { in getPowerHal() 242 static std::unique_ptr<HalWrapper> sHalWrapper = nullptr; in getPowerHal()
|
D | PowerAdvisor.h | 51 class HalWrapper { 53 virtual ~HalWrapper() = default; 69 HalWrapper* getPowerHal() REQUIRES(mPowerHalMutex);
|
/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 | 128 Info HalWrapper::getInfo() { in getInfo() 168 HalResult<milliseconds> HalWrapper::performComposedEffect(const std::vector<CompositeEffect>&, in performComposedEffect() 174 HalResult<void> HalWrapper::performPwleEffect(const std::vector<PrimitivePwle>&, in performPwleEffect() 180 HalResult<Capabilities> HalWrapper::getCapabilities() { in getCapabilities() 188 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurations() { in getPrimitiveDurations() 203 HalResult<std::vector<Effect>> HalWrapper::getSupportedEffectsInternal() { in getSupportedEffectsInternal() 208 HalResult<std::vector<Braking>> HalWrapper::getSupportedBrakingInternal() { in getSupportedBrakingInternal() 213 HalResult<std::vector<CompositePrimitive>> HalWrapper::getSupportedPrimitivesInternal() { in getSupportedPrimitivesInternal() 218 HalResult<std::vector<milliseconds>> HalWrapper::getPrimitiveDurationsInternal( in getPrimitiveDurationsInternal() 224 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 __anon0a7ef88a0202() 44 static const auto OFF_FN = [](vibrator::HalWrapper* hal) { return hal->off(); }; in __anon0a7ef88a0302() 45 static const auto PING_FN = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in __anon0a7ef88a0402() 49 class MockHalWrapper : public vibrator::HalWrapper { 52 : HalWrapper(scheduler) {} in MockHalWrapper() 234 auto onFn = [&](vibrator::HalWrapper* hal) { return hal->on(10ms, callback); }; 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 __anon714a623c0102()
|
D | VibratorHalWrapperAidlTest.cpp | 111 std::unique_ptr<vibrator::HalWrapper> mWrapper = nullptr;
|
/frameworks/base/services/core/jni/ |
D | com_android_server_vibrator_VibratorController.cpp | 212 auto pingFn = [](vibrator::HalWrapper* hal) { return hal->ping(); }; in vibratorIsAvailable() 224 auto onFn = [timeoutMs, &callback](vibrator::HalWrapper* hal) { in vibratorOn() 237 auto offFn = [](vibrator::HalWrapper* hal) { return hal->off(); }; in vibratorOff() 247 auto setAmplitudeFn = [amplitude](vibrator::HalWrapper* hal) { in vibratorSetAmplitude() 260 auto setExternalControlFn = [enabled](vibrator::HalWrapper* hal) { in vibratorSetExternalControl() 276 auto performEffectFn = [effectType, effectStrength, &callback](vibrator::HalWrapper* hal) { in vibratorPerformEffect() 297 auto performComposedEffectFn = [&effects, &callback](vibrator::HalWrapper* hal) { in vibratorPerformComposedEffect() 332 auto performPwleEffectFn = [&primitives, &callback](vibrator::HalWrapper* hal) { in vibratorPerformPwleEffect() 346 auto alwaysOnEnableFn = [id, effect, strength](vibrator::HalWrapper* hal) { in vibratorAlwaysOnEnable() 359 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_0Test.cpp | 57 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|
D | PowerHalWrapperHidlV1_1Test.cpp | 71 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|
D | PowerHalWrapperAidlTest.cpp | 67 std::unique_ptr<HalWrapper> mWrapper = nullptr;
|