sky: Update extension for libperfmgr

Change-Id: I1c1271739980f806a4109a47b5b3fe4d7fff8440
This commit is contained in:
Vaisakh Murali
2024-06-29 13:50:58 +05:30
committed by Lostark13
parent 5f86373e76
commit 7076970687
3 changed files with 16 additions and 3 deletions

View File

@@ -197,7 +197,7 @@ TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true
TARGET_USERIMAGES_SPARSE_F2FS_DISABLED := true
# Power
TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp
TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB := //$(DEVICE_PATH):libperfmgr-ext-sky
# Properties
TARGET_ODM_PROP += $(DEVICE_PATH)/configs/properties/odm.prop

11
power/Android.bp Normal file
View File

@@ -0,0 +1,11 @@
cc_library_static {
name: "libperfmgr-ext-sky",
vendor: true,
srcs: [
"power-mode.cpp",
],
shared_libs: [
"android.hardware.power-V4-ndk",
"libbase",
],
}

View File

@@ -45,10 +45,11 @@ int open_ts_input() {
} // anonymous namespace
namespace aidl {
namespace android {
namespace google {
namespace hardware {
namespace power {
namespace impl {
namespace pixel {
static constexpr int kInputEventWakeupModeOff = 4;
static constexpr int kInputEventWakeupModeOn = 5;
@@ -87,8 +88,9 @@ bool setDeviceSpecificMode(Mode type, bool enabled) {
}
}
} // namespace pixel
} // namespace impl
} // namespace power
} // namespace hardware
} // namespace android
} // namespace google
} // namespace aidl