OSDN Git Service

Write UsageEvents Parcel data as a Blob
authorMichael Wachenschwanz <mwachens@google.com>
Mon, 21 May 2018 23:27:41 +0000 (16:27 -0700)
committerMichael Wachenschwanz <mwachens@google.com>
Tue, 22 May 2018 04:16:18 +0000 (21:16 -0700)
commitf5bae21c5efcd51c0b3fb29942c02c00b896fccf
tree2a4df64172bd46e7c3bc35077ce433f508aa22bb
parente93daa46591ceb2ad9a8cb80eee230e80be19d27
Write UsageEvents Parcel data as a Blob

If too many events are queried from UsageStats, the Parcel will be too
big for a transaction. If the data is written as a Blob, the Parcel will
store too large data in ashmem.

Test: atest android.app.usage.cts.UsageStatsTest
Test: manual (create 1MB in UsageEvents and queryEvents)
Bug: 79860717
Change-Id: Ieb4bd486c83a9cc11fdff55e8fa457a9bdca7395
core/java/android/app/usage/UsageEvents.java