Spacewar: Use common libqti-perfd-client
- Add libqti-perfd-client namespace import Change-Id: I9278d402937e87ebd06a91ad482982cb27a2b5fa Signed-off-by: DY3413 <milosix3413@gmail.com>
This commit is contained in:
@@ -29,6 +29,7 @@ PRODUCT_SOONG_NAMESPACES += \
|
||||
hardware/nothing \
|
||||
hardware/google/interfaces \
|
||||
hardware/google/pixel \
|
||||
hardware/qcom-caf/common/libqti-perfd-client \
|
||||
hardware/lineage/interfaces/power-libperfmgr \
|
||||
vendor/qcom/opensource/usb/etc
|
||||
|
||||
@@ -334,14 +335,11 @@ PRODUCT_PACKAGES += \
|
||||
libOmxQcelp13Enc \
|
||||
libstagefrighthw
|
||||
|
||||
# Perfd (dummy)
|
||||
PRODUCT_PACKAGES += \
|
||||
libqti-perfd-client
|
||||
|
||||
# Power
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.power-service.lineage-libperfmgr \
|
||||
android.hardware.power@1.3.vendor
|
||||
android.hardware.power@1.3.vendor \
|
||||
libqti-perfd-client
|
||||
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/perf/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
cc_library_shared {
|
||||
name: "libqti-perfd-client",
|
||||
proprietary: true,
|
||||
defaults: ["hidl_defaults"],
|
||||
srcs: [
|
||||
"client.c",
|
||||
],
|
||||
cflags: [
|
||||
"-Werror",
|
||||
"-Wextra",
|
||||
"-Wall",
|
||||
],
|
||||
shared_libs: [
|
||||
"libutils",
|
||||
"liblog",
|
||||
],
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
#define LOG_TAG "libqti-perfd-client"
|
||||
|
||||
#include <stdint.h>
|
||||
#include <log/log.h>
|
||||
|
||||
void perf_get_feedback() {}
|
||||
void perf_hint() {}
|
||||
int perf_lock_acq(int handle, int duration, int arg3[], int arg4) {
|
||||
ALOGI("perf_lock_acq: handle: %d, duration: %d, arg3[0]: %d, arg4: %d",
|
||||
handle, duration, arg3[0], arg4);
|
||||
if (handle > 0)
|
||||
return handle;
|
||||
|
||||
return 233;
|
||||
}
|
||||
void perf_lock_cmd() {}
|
||||
int perf_lock_rel(int handle) {
|
||||
ALOGI("perf_lock_rel: handle: %d", handle);
|
||||
if (handle > 0)
|
||||
return handle;
|
||||
|
||||
return 233;
|
||||
}
|
||||
void perf_lock_use_profile() {}
|
||||
Reference in New Issue
Block a user