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

Commit 83191779 authored by Lee Shombert's avatar Lee Shombert
Browse files

Make an AnrTimer flag non-read-only

Use a read/write flag to connect JobService to AnrTimer.  The previous
flag was fixed-read-only, which is not needed, and which prevents the
flag from entering partial trunk-food.  The previous flag cannot be
changed because it has already been seen by gantry.  Therefore a new
flag will be created.

Flag: com.android.server.utils.anr_timer_for_job_service
Bug: 408440679
Test: atest
 * FrameworksMockingServicesTests_com_android_server_job
 * FrameworksServicesTests:AnrTimerTest
Change-Id: I4c17f599e1b567f758ac52890a1f3128badd8cbe
parent eb1109d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ public final class JobServiceContext implements ServiceConnection {

    // All instances of JobAnrTimer share the same arguments.
    private static final AnrTimer.Args sAnrTimerArgs =
            new AnrTimer.Args().enable(com.android.server.utils.Flags.anrTimerJobService());
            new AnrTimer.Args().enable(com.android.server.utils.Flags.anrTimerForJobService());

    /**
     * An AnrTimer for the JobServiceContext.  There is one instance for each JobServiceContext
+1 −2
Original line number Diff line number Diff line
@@ -10,9 +10,8 @@ flag {
}

flag {
     name: "anr_timer_job_service"
     name: "anr_timer_for_job_service"
     namespace: "system_performance"
     is_fixed_read_only: true
     description: "Use AnrTimer to signal ANRs in JobScheduler"
     bug: "408440679"
}