mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-22 04:05:31 -04:00
universal7885: power: fix build on android S enviroment
* Remove dependency on hardware/samsung Change-Id: I803f9e04995d2b1e3a05407ceebe21aa8428abf8 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
8503d0a458
commit
c486edc2fe
4 changed files with 68 additions and 10 deletions
|
|
@ -106,14 +106,17 @@ Return<void> Power::powerHint(PowerHint hint, int32_t data) {
|
|||
|
||||
switch (hint) {
|
||||
case PowerHint::INTERACTION:
|
||||
case PowerHint::LAUNCH:
|
||||
case PowerHint::VSYNC:
|
||||
case PowerHint::SUSTAINED_PERFORMANCE:
|
||||
case PowerHint::VR_MODE:
|
||||
case PowerHint::VIDEO_ENCODE:
|
||||
case PowerHint::VIDEO_DECODE:
|
||||
case PowerHint::LAUNCH:
|
||||
sendBoostpulse();
|
||||
break;
|
||||
case PowerHint::LOW_POWER:
|
||||
setProfile(data ? PowerProfile::POWER_SAVE : PowerProfile::BALANCED);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return Void();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue