Adding method to check if a Parcel has any Binders marshalled in it.
This is an extension to the existing `hasFileDescriptors` method, both of which are "Active Objects" of a sort and allow writes across processes. This check would be useful to perform validations on Bundle entries or any Parcelable type if it only contains non-active objects and can be essentially treated read only without having to inspect the marshalled parcel object. Test: TODO Bug: 316589195 API-Coverage-Bug: 323147058 Change-Id: I1fd8c8a27e3e7b90df8fefb0fe77bbad908db6b6
Showing
- core/java/android/os/Parcel.java 32 additions, 0 deletionscore/java/android/os/Parcel.java
- core/jni/android_os_Parcel.cpp 34 additions, 1 deletioncore/jni/android_os_Parcel.cpp
- core/tests/coretests/src/android/os/ParcelTest.java 26 additions, 0 deletionscore/tests/coretests/src/android/os/ParcelTest.java
- ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/Parcel_host.java 12 additions, 0 deletions...atform/test/ravenwood/nativesubstitution/Parcel_host.java
Loading
Please register or sign in to comment