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

Commit bbffa8fd authored by Kweku Adams's avatar Kweku Adams
Browse files

Introduce JobScheduler quota bumps in lieu of bucket changes.

Add an option to temporarily increase regular JobScheduler quota for
notification seen events.

Bug: 230066560
Test: atest AppStandbyControllerTests
Test: atest CtsJobSchedulerTestCases
Test: atest FrameworksMockingServicesTests:QuotaControllerTest
Change-Id: Iea36a12a012036fdbbe6a5b488e608f76aa99d76
parent 96ad5cca
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -59,6 +59,13 @@ public interface AppStandbyInternal {
        public void onUserInteractionStarted(String packageName, @UserIdInt int userId) {
            // No-op by default
        }

        /**
         * Optional callback to inform the listener to give the app a temporary quota bump.
         */
        public void triggerTemporaryQuotaBump(String packageName, @UserIdInt int userId) {
            // No-op by default
        }
    }

    void onBootPhase(int phase);