commit | 8c37737cbc5d5a11d78defd330e532a6c3dcdaeb | [log] [tgz] |
---|---|---|
author | Tim Murray <timmurray@google.com> | Thu Jun 24 17:13:06 2021 -0700 |
committer | Tim Murray <timmurray@google.com> | Fri Jun 25 11:14:53 2021 -0700 |
tree | 193b68f279ae0e439e19c5bcfd6537c2318d0d4f | |
parent | 9b03c1c496649c8fc7b6f994801b8c77dd6803af [diff] |
FileBridge: use a ByteBuffer for the temp buffer Using a direct ByteBuffer allows the buffer to be passed to/from JNI without intermediate copies. Test: FileBridgeTests, apps get installed without allocation churn Bug: 192020559 Change-Id: Ic5965c94ba14de6599af67d2e3bba33cd9996046