commit | 119be9a5fc4033eba570ec94b94862401ee84570 | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Sun Feb 18 22:23:00 2018 -0800 |
committer | Amith Yamasani <yamasani@google.com> | Fri Feb 23 10:45:39 2018 -0800 |
tree | e7740f03ebb24af98bd058784447ac1bf8ab8e6f | |
parent | a8e26b2e16f1bf800072194055ade22e1f1df4be [diff] [blame] |
Improve reporting of bucketing reason Keep track of main and sub reason for bucket change Bug: 73178753 Test: atest AppIdleHistoryTests Change-Id: I4936281ac06046bb5ffed9f3306efa24c7fd47ab
diff --git a/services/core/java/com/android/server/job/JobSchedulerService.java b/services/core/java/com/android/server/job/JobSchedulerService.java index 740866c..017fada 100644 --- a/services/core/java/com/android/server/job/JobSchedulerService.java +++ b/services/core/java/com/android/server/job/JobSchedulerService.java
@@ -2240,7 +2240,7 @@ @Override public void onAppIdleStateChanged(final String packageName, final @UserIdInt int userId, - boolean idle, int bucket) { + boolean idle, int bucket, int reason) { final int uid = mLocalPM.getPackageUid(packageName, PackageManager.MATCH_UNINSTALLED_PACKAGES, userId); if (uid < 0) {