summaryrefslogtreecommitdiff
path: root/tools/bit/command.cpp
diff options
context:
space:
mode:
author Bernardo Rufino <brufino@google.com> 2021-11-02 10:38:13 +0000
committer Bernardo Rufino <brufino@google.com> 2021-11-02 10:54:58 +0000
commit31d70842e0033660e73c1c553deade4f213bd411 (patch)
tree4d58300a7694b605f0fd88d5e4ee5e3deebf1485 /tools/bit/command.cpp
parent98a4a1b8b9c166cd7d3512543b092431f50cee66 (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