summaryrefslogtreecommitdiff
path: root/libs/hwui/Program.cpp
diff options
context:
space:
mode:
author Dan Egnor <egnor@google.com> 2010-07-20 15:24:09 -0700
committer Dan Egnor <egnor@google.com> 2010-07-21 12:52:21 -0700
commit6e6d60d4c85ce440d9ef5e5f36e708ed0ced65c6 (patch)
tree89f6e4441aea77dc5a6bf418a88e2aaa571090b4 /libs/hwui/Program.cpp
parent2f0dc6d9f50ceece294e9db393583e655d3bf781 (diff)
Avoid leaking file descriptors when returning drop box events.
We can't use Parcel.writeValue() to write the ParcelFileDescriptor, otherwise it leaks when returning the value to the caller (the flag gets lost). Change the way DropBoxManager.Entry gets serialized so that it uses a bit of its own flags value to track whether the data is a byte[] or a ParcelFileDescriptor. Modify the dropbox unit test to add extensive checking of Entry serialization and deserialization under various circumstances, and to include a regression test to ensure that FD leaking doesn't happen. Bug: 2847738 Change-Id: I4ccd17dd03ffab234340cd359e6f3510fdf81193
Diffstat (limited to 'libs/hwui/Program.cpp')
0 files changed, 0 insertions, 0 deletions