From d7eb0bfdc72c00423f4945c912894a8e81db1308 Mon Sep 17 00:00:00 2001 From: ntarte Date: Wed, 7 Sep 2022 14:55:21 +0530 Subject: [PATCH] Revert "power: update the AIDL client ver 3" This reverts commit 8e3745115ffc088ee2069b4b98d2d855c5837e8b. Change-Id: I32810869e876b2f3e4d9abf00cb8158473f31239 --- Android.mk | 2 +- Power.cpp | 12 +----------- Power.h | 5 ----- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/Android.mk b/Android.mk index 9d7f222..3b90046 100644 --- a/Android.mk +++ b/Android.mk @@ -11,7 +11,7 @@ LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_SHARED_LIBRARIES := liblog libcutils libdl libxml2 libbase libutils libbinder_ndk ifeq ($(call math_gt_or_eq, 33, $(PLATFORM_SDK_VERSION)), true) - LOCAL_SHARED_LIBRARIES += android.hardware.power-V3-ndk + LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk else LOCAL_SHARED_LIBRARIES += android.hardware.power-V1-ndk_platform endif diff --git a/Power.cpp b/Power.cpp index eadcef4..260ad4c 100644 --- a/Power.cpp +++ b/Power.cpp @@ -116,19 +116,9 @@ ndk::ScopedAStatus Power::isBoostSupported(Boost type, bool* _aidl_return) { *_aidl_return = false; return ndk::ScopedAStatus::ok(); } -ndk::ScopedAStatus Power::createHintSession(int32_t, int32_t, const std::vector&, int64_t, - std::shared_ptr* _aidl_return) { - *_aidl_return = nullptr; - return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); -} - -ndk::ScopedAStatus Power::getHintSessionPreferredRate(int64_t* outNanoseconds) { - *outNanoseconds = -1; - return ndk::ScopedAStatus::fromExceptionCode(EX_UNSUPPORTED_OPERATION); -} } // namespace impl } // namespace power } // namespace hardware } // namespace android -} // namespace aidl +} // namespace aidl \ No newline at end of file diff --git a/Power.h b/Power.h index a66f4a2..c7c42b0 100644 --- a/Power.h +++ b/Power.h @@ -48,11 +48,6 @@ class Power : public BnPower { ndk::ScopedAStatus isModeSupported(Mode type, bool* _aidl_return) override; ndk::ScopedAStatus setBoost(Boost type, int32_t durationMs) override; ndk::ScopedAStatus isBoostSupported(Boost type, bool* _aidl_return) override; - ndk::ScopedAStatus createHintSession(int32_t tgid, int32_t uid, - const std::vector& threadIds, - int64_t durationNanos, - std::shared_ptr* _aidl_return) override; - ndk::ScopedAStatus getHintSessionPreferredRate(int64_t* outNanoseconds) override; }; } // namespace impl