diff options
| author | Tao Bao <tbao@google.com> | 2019-10-07 10:17:26 -0700 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2019-10-07 10:17:26 -0700 |
| commit | f4e2a8c352640227a58aaac13cc0c51b33aa3841 (patch) | |
| tree | bbbd8e1939744d5246f8bd72b10ae7b4f6424bd8 /core/java | |
| parent | 8265b02e10b98ccf135f36ef7a701355830c2f14 (diff) | |
| parent | 4e4890a3623da2cb940c77133e5ab40e93b85c6b (diff) | |
Merge "Use ParcelFileDescriptor over FileDescriptor" am: 56f111e13b am: d0ad6794d4
am: 4e4890a362
Change-Id: I4ebd814f61585ebd9358fa82cc0478fdb8f8e038
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/os/UpdateEngine.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/java/android/os/UpdateEngine.java b/core/java/android/os/UpdateEngine.java index dd5e20e39904..a9ddffe7d55c 100644 --- a/core/java/android/os/UpdateEngine.java +++ b/core/java/android/os/UpdateEngine.java @@ -22,8 +22,6 @@ import android.os.IUpdateEngine; import android.os.IUpdateEngineCallback; import android.os.RemoteException; -import java.io.FileDescriptor; - /** * UpdateEngine handles calls to the update engine which takes care of A/B OTA * updates. It wraps up the update engine Binder APIs and exposes them as @@ -315,16 +313,16 @@ public class UpdateEngine { } /** - * Applies the payload passed as file descriptor {@code fd} instead of + * Applies the payload passed as ParcelFileDescriptor {@code pfd} instead of * using the {@code file://} scheme. * * <p>See {@link #applyPayload(String)} for {@code offset}, {@code size} and * {@code headerKeyValuePairs} parameters. */ - public void applyPayload(@NonNull FileDescriptor fd, long offset, long size, + public void applyPayload(@NonNull ParcelFileDescriptor pfd, long offset, long size, @NonNull String[] headerKeyValuePairs) { try { - mUpdateEngine.applyPayloadFd(fd, offset, size, headerKeyValuePairs); + mUpdateEngine.applyPayloadFd(pfd, offset, size, headerKeyValuePairs); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } |
