commit | 52c866eea41549d0efc4d09f95f0c6d401b78b82 | [log] [tgz] |
---|---|---|
author | Sami Kyostila <skyostil@google.com> | Fri Jan 12 18:28:13 2018 +0000 |
committer | Sami Kyostila <skyostil@google.com> | Fri Jan 12 19:04:02 2018 +0000 |
tree | d786c2fa47853888c11d0984133ae8315022cdff | |
parent | 200cd63fb3ff5b4354773e9994f4340f18b39cbc [diff] |
DropBoxManager: Allow adding a file using an fd This patch adds an overload to DropBoxManager::addFile() which accepts an already-opened file as a file descriptor. This avoids the need for clients to create a filesystem-visible file when uploading data to DropBox. Test: Tested with perfetto using https://android-review.googlesource.com/c/platform/external/perfetto/+/587674 Change-Id: I076bfd3180fb9b4baff7e1bae2e611419061b2a7