commit | 4c0a061c5ecf05ccefc04e8e0252094321f1bef4 | [log] [tgz] |
---|---|---|
author | Abhishek Gadewar <abhishekgadewar@meta.com> | Wed May 01 15:45:59 2024 -0700 |
committer | Abhishek Gadewar <abhishekgadewar@meta.com> | Fri May 03 18:58:12 2024 +0000 |
tree | 3549a187ca30fef4090d0df5bcd3824a886cffad | |
parent | e8245d3c96d7e2d189f7d60c3757d549a9b555f4 [diff] |
Call jobFinished after ProfcollectBGJobService processing completes Summary:Add a call to `jobFinished` after processing completes to ensure that the system is notified that the work has been completed. Test: Run `adb shell cmd jobscheduler run -f android 260817` multiple times in succession. Verify that processing is now triggered each time. Tags: Change-Id: Ifa6fcd8b2fdcea4904677bcae4a1cb36cac33154 Signed-off-by: Abhishek Gadewar <abhishekgadewar@meta.com>
diff --git a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java index 68038fa..622e702 100644 --- a/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java +++ b/services/profcollect/src/com/android/server/profcollect/ProfcollectForwardingService.java
@@ -243,6 +243,7 @@ return; } sSelfService.mIProfcollect.process(); + jobFinished(params, false); } catch (RemoteException e) { Log.e(LOG_TAG, "Failed to process profiles in background: " + e.getMessage());