commit | 9ab5575de5d132c721d1c125672d56ff02e53561 | [log] [tgz] |
---|---|---|
author | Jimmy Shiu <jimmyshiu@google.com> | Mon Feb 06 21:56:09 2023 +0800 |
committer | SamarV-121 <samar@samarv121.dev> | Thu Mar 21 22:39:16 2024 +0530 |
tree | 8b82e0198b7ffeaf7099035d409a2b6e05949ad9 | |
parent | 371b245350fdb6d7cd00f1d65f88ffdf297ee32f [diff] |
RM6785: power-libperfmgr: ADPF: send ADPF_FIRST_FRAME hint To send ADPF_FIRST_FRAME hint when reportWorkDurations was called first time after stale state. Bug: 243025173 Test: PtsUiBench & CUJ Change-Id: I4377b1f549646bcf44bdf26b2657b7bc0646f9a4 Merged-In: I4377b1f549646bcf44bdf26b2657b7bc0646f9a4
diff --git a/aidl/power-libperfmgr/PowerHintSession.cpp b/aidl/power-libperfmgr/PowerHintSession.cpp index a6b57e4..9e7c351 100644 --- a/aidl/power-libperfmgr/PowerHintSession.cpp +++ b/aidl/power-libperfmgr/PowerHintSession.cpp
@@ -331,6 +331,9 @@ mLastUpdatedTime.store(std::chrono::steady_clock::now()); if (isFirstFrame) { + if (isAppSession()) { + tryToSendPowerHint("ADPF_FIRST_FRAME"); + } updateUniveralBoostMode(); }