Improve @hide Parcel.hasFileDescriptors(Object)
Addressing Jeff's comment on aosp/1787847 to support List<> in Parcel.hasFileDescriptor(), also added support for Map (+ArrayMap) and Object[] that were missing. Made the checks recursive since it's possible to put nested containers in bundle. Since that's @hide and only used by bundle, included Parcel as a supported type too and clarified in the javadoc. That allowed to clean up Bundle.hasFileDescriptors(). Bug: 195622897 Test: atest -d android.os.cts.ParcelTest android.os.cts.BundleTest android.os.BundleTest android.os.ParcelTest Change-Id: I6acf358763d8f544fc6ff1a5b0c8bdff567d50be
Loading
Please register or sign in to comment