From 2d449afe3d075020bdd1115bcc15c9383cbce122 Mon Sep 17 00:00:00 2001 From: Christopher Tate Date: Mon, 29 Mar 2010 19:14:24 -0700 Subject: [PATCH] Make RestoreSession.getAvailableRestoreSets() asynchronous This transaction can involve the transport having to query a remote backend over the wire, so it can take a Long Time(tm). Make it main-thread-safe by making it asynchronous, with the results passed as a callback to the invoker's RestoreObserver. We also make the IRestoreObserver callback interface properly oneway. Bug #2550665 Bug #2549422 Change-Id: If18a233a0a3d54c7b55101715c9e6195b762c5a0 --- api/current.xml | 41 ++++++++++++ .../src/com/android/commands/bmgr/Bmgr.java | 27 ++++++-- .../android/app/backup/IRestoreObserver.aidl | 20 +++++- .../android/app/backup/IRestoreSession.aidl | 10 +-- .../android/app/backup/RestoreObserver.java | 22 ++++++- .../android/app/backup/RestoreSession.java | 28 +++++--- .../android/server/BackupManagerService.java | 66 ++++++++++++++++--- 7 files changed, 180 insertions(+), 34 deletions(-) diff --git a/api/current.xml b/api/current.xml index cf4686765d0ec..b0d9931728422 100644 --- a/api/current.xml +++ b/api/current.xml @@ -27381,6 +27381,47 @@ visibility="public" > + + + + + + + + + + + + + +