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:
roynatech2544 2021-10-21 23:32:26 +09:00
commit c486edc2fe
No known key found for this signature in database
GPG key ID: 9675C32163D88D30
4 changed files with 68 additions and 10 deletions

View file

@ -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();
}