Skip to content

Commit

Permalink
power: Re-Enable power_hint() call for Mode::LAUNCH.
Browse files Browse the repository at this point in the history
This hint is handled by most supported targets.

Change-Id: I9e02dd50e748bde078c2c7588f4f60dcae9027dc
  • Loading branch information
Quallenauge authored and jhenrique09 committed Mar 8, 2021
1 parent 133ea34 commit 87f39a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Power.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) {
case Mode::DOUBLE_TAP_TO_WAKE:
#endif
case Mode::LOW_POWER:
case Mode::LAUNCH:
case Mode::EXPENSIVE_RENDERING:
case Mode::DEVICE_IDLE:
case Mode::DISPLAY_INACTIVE:
Expand All @@ -91,6 +90,9 @@ ndk::ScopedAStatus Power::setMode(Mode type, bool enabled) {
case Mode::VR:
LOG(INFO) << "Mode " << static_cast<int32_t>(type) << "Not Supported";
break;
case Mode::LAUNCH:
power_hint(POWER_HINT_LAUNCH, enabled ? &enabled : NULL);
break;
case Mode::INTERACTIVE:
setInteractive(enabled);
power_hint(POWER_HINT_INTERACTION, NULL);
Expand Down Expand Up @@ -119,6 +121,7 @@ ndk::ScopedAStatus Power::isModeSupported(Mode type, bool* _aidl_return) {
#ifdef TAP_TO_WAKE_NODE
case Mode::DOUBLE_TAP_TO_WAKE:
#endif
case Mode::LAUNCH:
case Mode::INTERACTIVE:
case Mode::SUSTAINED_PERFORMANCE:
case Mode::FIXED_PERFORMANCE:
Expand Down

0 comments on commit 87f39a3

Please sign in to comment.