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

Commit 0d40f606 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't penalize app for slow app binding." into main

parents 4625fe13 71fdfd48
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1335,13 +1335,13 @@ public final class JobServiceContext implements ServiceConnection {
    private void handleOpTimeoutLocked() {
        switch (mVerb) {
            case VERB_BINDING:
                onSlowAppResponseLocked(/* reschedule */ false, /* updateStopReasons */ true,
                // The system may have been too busy. Don't drop the job or trigger an ANR.
                onSlowAppResponseLocked(/* reschedule */ true, /* updateStopReasons */ true,
                        /* texCounterMetricId */
                        "job_scheduler.value_cntr_w_uid_slow_app_response_binding",
                        /* debugReason */ "timed out while binding",
                        /* anrMessage */ "Timed out while trying to bind",
                        CompatChanges.isChangeEnabled(ANR_PRE_UDC_APIS_ON_SLOW_RESPONSES,
                            mRunningJob.getUid()));
                        /* triggerAnr */ false);
                break;
            case VERB_STARTING:
                // Client unresponsive - wedged or failed to respond in time. We don't really