libion: Increase allocation size in large allocation test

The libion unit tests contain a test to check that system heap will fail
an unusually large allocation request. However, the allocation size used
(3GB) is insufficient to cause an allocation failure on high-end
devices. This patch queries the total RAM size of the device and issues
an allocation request for the entire size of the RAM.

Bug: 157702977
Test: atest ion-unit-tests
Change-Id: I2d2f4c57c3a7aa7baba84048b1f74019c7ffad7a
Signed-off-by: Hridya Valsaraju <hridya@google.com>
1 file changed
tree: dc90c13c5c4325877eb2957c92fa30c9d64e2e80
  1. include/
  2. kernel-headers/
  3. original-kernel-headers/
  4. tests/
  5. Android.bp
  6. ion.c
  7. ion_test.c
  8. METADATA
  9. OWNERS