Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f7105afe authored by Nick Kralevich's avatar Nick Kralevich
Browse files

Parcel_host.java: match Parcel.java error conditions better

Parcel.java throws an IllegalArgumentException when setDataCapacity()
is called with a negative size, whereas Parcel_host.java silently
ignores the invalid value. Modify Parcel_host.java to behave
the same as Parcel.java

Test: atest CtsOsTestCasesRavenwood:ParcelTest\#testSetDataCapacityNegative
Test: atest CtsOsTestCases:ParcelTest\#testSetDataCapacityNegative
Flag: TEST_ONLY
Bug: 345293489

Change-Id: I2a60da0da7b587a8e08cb09546d5b4ad83f05817
parent 899fcff3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment