Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e936a8f authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "Extract WTF to a separate method for easier search" into udc-dev...

Merge "Merge "Extract WTF to a separate method for easier search" into udc-dev am: 813b664c am: 2c58226f" into udc-d1-dev-plus-aosp am: f8ea485e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23089116



Change-Id: I9f0ad71cb311e0fb8c2b2116edfaf72dc5ce9660
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents aec3313a f8ea485e
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -2326,7 +2326,7 @@ public final class ActiveServices {
                            && (r.getConnections().size() > 0)
                            && (r.getConnections().size() > 0)
                            && (r.mDebugWhileInUseReasonInBindService
                            && (r.mDebugWhileInUseReasonInBindService
                            != r.mDebugWhileInUseReasonInStartForeground)) {
                            != r.mDebugWhileInUseReasonInStartForeground)) {
                        Slog.wtf(TAG, "FGS while-in-use changed (b/276963716): old="
                        logWhileInUseChangeWtf("FGS while-in-use changed (b/276963716): old="
                                + reasonCodeToString(r.mDebugWhileInUseReasonInBindService)
                                + reasonCodeToString(r.mDebugWhileInUseReasonInBindService)
                                + " new="
                                + " new="
                                + reasonCodeToString(r.mDebugWhileInUseReasonInStartForeground)
                                + reasonCodeToString(r.mDebugWhileInUseReasonInStartForeground)
@@ -2589,6 +2589,13 @@ public final class ActiveServices {
        }
        }
    }
    }


    /**
     * It just does a wtf, but extracted to a method, so we can do a signature search on pitot.
     */
    private void logWhileInUseChangeWtf(String message) {
        Slog.wtf(TAG, message);
    }

    private boolean withinFgsDeferRateLimit(ServiceRecord sr, final long now) {
    private boolean withinFgsDeferRateLimit(ServiceRecord sr, final long now) {
        // If we're still within the service's deferral period, then by definition
        // If we're still within the service's deferral period, then by definition
        // deferral is not rate limited.
        // deferral is not rate limited.