+64
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
UsageStats.getAppStandbyBuckets and setAppStandbyBuckets deal with large maps of packages to buckets which may exceed the IPC transaction size limit. Using ParceledListSlice to send and receive data across binder. Test: atest android.app.usage.cts.UsageStatsTest#testGetAppStandbyBuckets And manually: adb shell am get-standby-bucket --user 0 adb shell am set-standby-bucket <package1> active <package2> rare ... Locally, added protectionLevel development to permission CHANGE_APP_IDLE_STATE and tested setAppStandbyBuckets with a test app. Bug: 70890569 Change-Id: Ic1fb0465137d1b830d3ad1fbf3ac8698a409c623