diff options
| author | 2021-11-02 10:38:13 +0000 | |
|---|---|---|
| committer | 2021-11-02 10:54:58 +0000 | |
| commit | 31d70842e0033660e73c1c553deade4f213bd411 (patch) | |
| tree | 4d58300a7694b605f0fd88d5e4ee5e3deebf1485 /tools/bit/command.cpp | |
| parent | 98a4a1b8b9c166cd7d3512543b092431f50cee66 (diff) | |
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
Diffstat (limited to 'tools/bit/command.cpp')
0 files changed, 0 insertions, 0 deletions