mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sky
synced 2026-01-27 15:15:25 +00:00
sky: Update extension for libperfmgr
Change-Id: I1c1271739980f806a4109a47b5b3fe4d7fff8440
This commit is contained in:
committed by
Lostark13
parent
5f86373e76
commit
7076970687
@@ -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
11
power/Android.bp
Normal 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",
|
||||
],
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user