commit | 2ebff8a777eac80c021b3e73135834d74a37851c | [log] [tgz] |
---|---|---|
author | Patrick Rohr <prohr@google.com> | Tue Jun 07 16:13:43 2022 -0700 |
committer | Patrick Rohr <prohr@google.com> | Tue Jun 14 10:23:53 2022 -0700 |
tree | 4281a2d2556622502a4a0ae3bf525c84e774ef6c | |
parent | f8785cf1f9ecd810f58128488c5354316e2d57c1 [diff] |
TestNetworkService: Fix TestNetworkInterface parcel flags PARCELABLE_WRITE_RETURN_VALUE will close the fd when writeParcelable is called. This is not always preferable (specifically, if TestNetworkInterface is passed as an "in" parameter). writeParcelable(FileDescriptor, ...) should therefore use the flags passed to writeToParcel which should be correct for all cases. Test: atest EthernetManagerTest Change-Id: Ibb5f14028a3d686157504da3657a18ec0bc28110