summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2024-04-22 17:13:29 +0000
committer Android Build Coastguard Worker <android-build-coastguard-worker@google.com> 2024-04-22 17:13:29 +0000
commit5a7d46a431071df8ddec1f024ddd2e9203fd58c5 (patch)
tree2cbbc2ce7aedaa56e3f74737849f20995918ee5a
parent8e20321648f378481cfae5b7221ce37b110860a5 (diff)
parentba82ea3c5d628f5039fa615de42cb92b3752400b (diff)
Merge cherrypicks of ['googleplex-android-review.googlesource.com/27031947'] into 24Q2-release.
Change-Id: Ic4c92a5a0eb1f0332fd2a98be5d9ccb9e6b2f10f
-rw-r--r--services/core/java/com/android/server/am/ActiveServices.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActiveServices.java b/services/core/java/com/android/server/am/ActiveServices.java
index b8e09cce93b9..24eba4acb6a5 100644
--- a/services/core/java/com/android/server/am/ActiveServices.java
+++ b/services/core/java/com/android/server/am/ActiveServices.java
@@ -3696,7 +3696,9 @@ public final class ActiveServices {
// is not "now". Compute the time from "now" when starting the anr timer.
final long anrTime = sr.getEarliestStopTypeAndTime().second
+ mAm.mConstants.mFgsAnrExtraWaitDuration - SystemClock.uptimeMillis();
- mFGSAnrTimer.start(sr, anrTime);
+ if (android.app.Flags.introduceNewServiceOntimeoutCallback()) {
+ mFGSAnrTimer.start(sr, anrTime);
+ }
}
}