From eb7a7d57ca50f85b054edadab766b51ff22a2dfd Mon Sep 17 00:00:00 2001 From: Dan Egnor Date: Wed, 25 Nov 2009 12:38:00 -0800 Subject: Change the DropBoxManager API slightly (this is public, but not yet released) -- take a File instead of a ParcelFileDescriptor (gets opened internally) -- that way the caller doesn't have to worry about closing their PFD and so on. (Pretty much 100% of the time the caller will be uploading a file, anyway.) --- api/current.xml | 4 +++- core/java/android/os/DropBoxManager.java | 21 ++++++++++++------- services/java/com/android/server/BootReceiver.java | 7 +------ .../src/com/android/unit_tests/DropBoxTest.java | 24 +++++----------------- 4 files changed, 23 insertions(+), 33 deletions(-) diff --git a/api/current.xml b/api/current.xml index 12c2eeea7af3..ef8f78f21049 100644 --- a/api/current.xml +++ b/api/current.xml @@ -102263,10 +102263,12 @@ > - + + +