commit | 1272eec833fb49c30a4d8bdc432765e7c4413b3f | [log] [tgz] |
---|---|---|
author | Lee Shombert <shombert@google.com> | Fri May 19 15:52:00 2023 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 08 20:34:32 2023 +0000 |
tree | 884d0ae6f1bf31532ad8935459591f6336479e80 | |
parent | badb243574d7fca9aa89152d9d25eeb4f8615385 [diff] |
Remove unnecessary padding code Bug: 213170822 Remove the code that CursorWindow::writeToParcel() uses to ensure slot data is 4-byte aligned. Because mAllocOffset and mSlotsOffset are already 4-byte aligned, the alignment step here is unnecessary. CursorWindow::spaceInUse() returns the total space used. The tests verify that the total space used is always a multiple of 4 bytes. Test: atest * libandroidfw_tests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5d4afa0986cbc440f458b4b8db05fd176ef3e6d2) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:5b0232d7e1c2087839d9bc029943c8780b2484ab) Merged-In: I720699093d5c5a584283e5b76851938f449ffa21 Change-Id: I720699093d5c5a584283e5b76851938f449ffa21