Adding tests for OOM fix
Renaming method isDirectlyHandlingTransaction to
isDirectlyHandlingTransactionNative and
adding test which should verify
- Whether large allocations greate than 1MB for
primitive types are failing
- Array length limited to 1M for complex objects
- Allocations within allowed limit are succeeding
Adding a test api in Parcel to mock that binder
transaction is being handled.
Test: atest -c android.os.ParcelTest
Bug: 205282403
Change-Id: I46bc719508c03613646d182571bf773149223bd1
4 files changed