mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 19:55:33 -04:00
universal7885: Delineageify
Change-Id: I0e2f60bb4ff6c5e095f5e5a57cf4bee9ed0ac2b6 Signed-off-by: SamarV-121 <samarvispute121@pm.me> Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
97a81dec31
commit
ae36727519
6 changed files with 1 additions and 59 deletions
|
|
@ -104,13 +104,6 @@ Return<void> Power::powerHint(PowerHint hint, int32_t data) {
|
|||
initialize();
|
||||
}
|
||||
|
||||
/* Bail out if low-power mode is active */
|
||||
if (current_profile == PowerProfile::POWER_SAVE && hint != PowerHint::LOW_POWER &&
|
||||
hint != static_cast<PowerHint>(LineagePowerHint::SET_PROFILE)) {
|
||||
LOG(VERBOSE) << "PROFILE_POWER_SAVE active, ignoring hint " << static_cast<int32_t>(hint);
|
||||
return Void();
|
||||
}
|
||||
|
||||
switch (hint) {
|
||||
case PowerHint::INTERACTION:
|
||||
case PowerHint::LAUNCH:
|
||||
|
|
@ -120,13 +113,6 @@ Return<void> Power::powerHint(PowerHint hint, int32_t data) {
|
|||
setProfile(data ? PowerProfile::POWER_SAVE : PowerProfile::BALANCED);
|
||||
break;
|
||||
default:
|
||||
if (hint == static_cast<PowerHint>(LineagePowerHint::SET_PROFILE)) {
|
||||
setProfile(static_cast<PowerProfile>(data));
|
||||
} else if (hint == static_cast<PowerHint>(LineagePowerHint::CPU_BOOST)) {
|
||||
sendBoost(data);
|
||||
} else {
|
||||
LOG(INFO) << "Unknown power hint: " << static_cast<int32_t>(hint);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return Void();
|
||||
|
|
@ -149,15 +135,6 @@ Return<void> Power::getPlatformLowPowerStats(getPlatformLowPowerStats_cb _hidl_c
|
|||
return Void();
|
||||
}
|
||||
|
||||
Return<int32_t> Power::getFeature(LineageFeature feature) {
|
||||
switch (feature) {
|
||||
case LineageFeature::SUPPORTED_PROFILES:
|
||||
return static_cast<int32_t>(PowerProfile::MAX);
|
||||
default:
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
void Power::initialize() {
|
||||
findInputNodes();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue