summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMuhammad Qureshi <muhammadq@google.com>2020-06-04 10:33:59 -0700
committerMuhammad Qureshi <muhammadq@google.com>2020-06-04 14:02:24 -0700
commit351e40fb8d8ed2e4950633c8fa13cf5d9853b2b9 (patch)
treea24bd93a0e226539cd9137f57ea0bdaef092825b /tools/aapt2/java/JavaClassGenerator.cpp
parent8cde2b1aede36c156e0b51e0ac5c23e06e4af2ae (diff)
Increase size limit for pulled StatsEvent.
Increase StatsEvent max byte size to 50 KB when not using pooled buffer. - Set the default max size to 50 KB - The starting buffer size is still ~4 KB for pushed and pulled events. - If a write would exceed the buffer bounds, double buffer size until write fits or 50 KB limit is exceeded in which case the overflow bit is set to true. - If usePooledBuffer() is called, max size is set to ~4 KB but buffer isn't resized. And if the current payload exceeds this limit, set overflow bit to true. - Only "recycle" Buffer object if its size is <= ~4 KB. Bug: 158214941 Test: atest FrameworkStatsdTest Change-Id: I9b6f73688b0bccb5a70f4ef51750464ec9c87fb9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions