summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Makoto Onuki <omakoto@google.com> 2024-08-14 15:52:49 -0700
committer Makoto Onuki <omakoto@google.com> 2024-08-14 23:14:23 +0000
commit161c9a8b22d92a1af2ba8917af019d6a5dfd6ad8 (patch)
tree60b5280e2be93fb057cd67808894c4f42ef4f1f6 /libs/androidfw/misc.cpp
parent783fd952848c6eddd15084b19d88a0a503a515a6 (diff)
[hoststubgen] Fix log.iTime()
- iTime() didn't print the log, if the `block` had a return. Let's just use a finally to fix it. (I din't want to print the log if the code threw, but it's not a big deal.) - Add vTime() and dTime() while I'm at it. - Also make copyZipEntry() _slightly_ faster. InputStream.transferTo() still uses `write(int)` to write byte-by-byte, but using it makes it a bit fast. Although apparently copying entries-by-entires this way is still surprisingly slow. (HostStubGen doesn't use this method too often, but "ravenizer" will use it more often, and that's where I noticed it.) Test: $ANDROID_BUILD_TOP/frameworks/base/ravenwood/scripts/run-ravenwood-tests.sh Flag: EXEMPT host side test change only Bug: 292141694 Change-Id: Id2609d1b44055f92956207ee7f8b4c57e931ce44
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions