diff options
author | Hugo Benichi <hugobenichi@google.com> | 2017-03-27 13:45:23 +0900 |
---|---|---|
committer | Hugo Benichi <hugobenichi@google.com> | 2017-04-07 13:18:16 +0900 |
commit | 112962a6b09310c58093b9a8af341cbeaa612a48 (patch) | |
tree | e3f5757a1fbfb367aba7e31e39f5ecb17740926b /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | db104b23670d5c0302c6d6540b72e0007abfb94a (diff) |
Improve utility of IntArray and LongArray
This patch adds several utility methods to IntArray and LongArray to
make them more useful in the context of a Parcelable class.
More specifically, it is now possible to parcel and unparcel a
{Int, Long}Array with the following one liners:
- mIntArray = IntArray.wrap(parcel.createIntArray());
- parcel.writeIntArray(mIntArray.toArray());
This patch also
- adds unit tests for IntArray and LongArray.
- adds a method for setting a field at a given index.
- adds a method for changing the effective array length.
- adds missing bound checks for negative index values.
Test: added test coverage
Bug: 34901696
Change-Id: Ia0febf4dae048b0a45c75310b5d90b56499320da
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions