power: update SDK version for QSSI13.
Update SDK version in PowerHintSession to support QSSI13. Change-Id: I7b14160f9c536e9d16f7c7b97753d5c53faef5c1
This commit is contained in:
committed by
Gerrit - the friendly Code Review server
parent
eec9f143ca
commit
5ef80ed94d
@@ -108,7 +108,11 @@ LOCAL_INIT_RC := android.hardware.power-service.rc
|
|||||||
LOCAL_MODULE_TAGS := optional
|
LOCAL_MODULE_TAGS := optional
|
||||||
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
|
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-variable
|
||||||
LOCAL_VENDOR_MODULE := true
|
LOCAL_VENDOR_MODULE := true
|
||||||
|
ifeq ($(PLATFORM_SDK_VERSION), 34)
|
||||||
|
LOCAL_VINTF_FRAGMENTS := /vintf/sdk34/power.xml
|
||||||
|
else
|
||||||
LOCAL_VINTF_FRAGMENTS := power.xml
|
LOCAL_VINTF_FRAGMENTS := power.xml
|
||||||
|
endif
|
||||||
include $(BUILD_EXECUTABLE)
|
include $(BUILD_EXECUTABLE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ ndk::ScopedAStatus PowerHintSessionImpl::resume(){
|
|||||||
ndk::ScopedAStatus PowerHintSessionImpl::close(){
|
ndk::ScopedAStatus PowerHintSessionImpl::close(){
|
||||||
return ndk::ScopedAStatus::ok();
|
return ndk::ScopedAStatus::ok();
|
||||||
}
|
}
|
||||||
|
#if (PLATFORM_SDK_VERSION >= 34)
|
||||||
ndk::ScopedAStatus PowerHintSessionImpl::sendHint(aidl::android::hardware::power::SessionHint hint){
|
ndk::ScopedAStatus PowerHintSessionImpl::sendHint(aidl::android::hardware::power::SessionHint hint){
|
||||||
return ndk::ScopedAStatus::ok();
|
return ndk::ScopedAStatus::ok();
|
||||||
}
|
}
|
||||||
@@ -41,3 +42,4 @@ ndk::ScopedAStatus PowerHintSessionImpl::setThreads(const std::vector<int32_t>&
|
|||||||
}
|
}
|
||||||
return ndk::ScopedAStatus::ok();
|
return ndk::ScopedAStatus::ok();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -7,8 +7,10 @@
|
|||||||
#define __POWERHINTSESSION__
|
#define __POWERHINTSESSION__
|
||||||
|
|
||||||
#include <aidl/android/hardware/power/WorkDuration.h>
|
#include <aidl/android/hardware/power/WorkDuration.h>
|
||||||
#include <aidl/android/hardware/power/SessionHint.h>
|
|
||||||
#include <aidl/android/hardware/power/BnPowerHintSession.h>
|
#include <aidl/android/hardware/power/BnPowerHintSession.h>
|
||||||
|
#if (PLATFORM_SDK_VERSION >= 34)
|
||||||
|
#include <aidl/android/hardware/power/SessionHint.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
std::shared_ptr<aidl::android::hardware::power::IPowerHintSession> setPowerHintSession();
|
std::shared_ptr<aidl::android::hardware::power::IPowerHintSession> setPowerHintSession();
|
||||||
int64_t getSessionPreferredRate();
|
int64_t getSessionPreferredRate();
|
||||||
@@ -21,7 +23,9 @@ public:
|
|||||||
ndk::ScopedAStatus pause() override;
|
ndk::ScopedAStatus pause() override;
|
||||||
ndk::ScopedAStatus resume() override;
|
ndk::ScopedAStatus resume() override;
|
||||||
ndk::ScopedAStatus close() override;
|
ndk::ScopedAStatus close() override;
|
||||||
|
#if (PLATFORM_SDK_VERSION >= 34)
|
||||||
ndk::ScopedAStatus sendHint(aidl::android::hardware::power::SessionHint hint) override;
|
ndk::ScopedAStatus sendHint(aidl::android::hardware::power::SessionHint hint) override;
|
||||||
ndk::ScopedAStatus setThreads(const std::vector<int32_t>& threadIds) override;
|
ndk::ScopedAStatus setThreads(const std::vector<int32_t>& threadIds) override;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
#endif /* __POWERHINTSESSION__ */
|
#endif /* __POWERHINTSESSION__ */
|
||||||
@@ -32,7 +32,7 @@ SPDX-License-Identifier: BSD-3-Clause-Clear
|
|||||||
<manifest version="1.0" type="device">
|
<manifest version="1.0" type="device">
|
||||||
<hal format="aidl">
|
<hal format="aidl">
|
||||||
<name>android.hardware.power</name>
|
<name>android.hardware.power</name>
|
||||||
<version>4</version>
|
<version>3</version>
|
||||||
<fqname>IPower/default</fqname>
|
<fqname>IPower/default</fqname>
|
||||||
</hal>
|
</hal>
|
||||||
</manifest>
|
</manifest>
|
||||||
11
vintf/sdk34/power.xml
Normal file
11
vintf/sdk34/power.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<!--
|
||||||
|
Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||||
|
SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||||
|
-->
|
||||||
|
<manifest version="1.0" type="device">
|
||||||
|
<hal format="aidl">
|
||||||
|
<name>android.hardware.power</name>
|
||||||
|
<version>4</version>
|
||||||
|
<fqname>IPower/default</fqname>
|
||||||
|
</hal>
|
||||||
|
</manifest>
|
||||||
Reference in New Issue
Block a user