public class Trampoline
extends IBackupManager.Stub
Constructor and Description |
---|
Trampoline(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
acknowledgeFullBackupOrRestore(int token,
boolean allow,
String curPassword,
String encryptionPassword,
IFullBackupRestoreObserver observer) |
void |
agentConnected(String packageName,
IBinder agent) |
void |
agentDisconnected(String packageName) |
void |
backupNow() |
IRestoreSession |
beginRestoreSession(String packageName,
String transportID) |
void |
clearBackupData(String transportName,
String packageName) |
void |
dataChanged(String packageName) |
void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
void |
fullBackup(ParcelFileDescriptor fd,
boolean includeApks,
boolean includeObbs,
boolean includeShared,
boolean doWidgets,
boolean allApps,
boolean allIncludesSystem,
boolean doCompress,
String[] packageNames) |
void |
fullRestore(ParcelFileDescriptor fd) |
void |
fullTransportBackup(String[] packageNames) |
long |
getAvailableRestoreToken(String packageName) |
Intent |
getConfigurationIntent(String transport) |
String |
getCurrentTransport() |
Intent |
getDataManagementIntent(String transport) |
String |
getDataManagementLabel(String transport) |
String |
getDestinationString(String transport) |
String[] |
getTransportWhitelist() |
boolean |
hasBackupPassword() |
void |
initialize(int whichUser) |
boolean |
isAppEligibleForBackup(String packageName) |
boolean |
isBackupEnabled() |
boolean |
isBackupServiceActive(int userHandle)
Querying activity state of backup service.
|
String[] |
listAllTransports() |
void |
opComplete(int token,
long result) |
int |
requestBackup(String[] packages,
IBackupObserver observer) |
void |
restoreAtInstall(String packageName,
int token) |
String |
selectBackupTransport(String transport) |
void |
setAutoRestore(boolean doAutoRestore) |
void |
setBackupEnabled(boolean isEnabled) |
boolean |
setBackupPassword(String currentPw,
String newPw) |
void |
setBackupProvisioned(boolean isProvisioned) |
void |
setBackupServiceActive(int userHandle,
boolean makeActive) |
public Trampoline(Context context)
public void initialize(int whichUser)
public void setBackupServiceActive(int userHandle, boolean makeActive)
public boolean isBackupServiceActive(int userHandle)
userHandle
- The user in which the activity state of backup service is queried.public void dataChanged(String packageName) throws RemoteException
RemoteException
public void clearBackupData(String transportName, String packageName) throws RemoteException
RemoteException
public void agentConnected(String packageName, IBinder agent) throws RemoteException
RemoteException
public void agentDisconnected(String packageName) throws RemoteException
RemoteException
public void restoreAtInstall(String packageName, int token) throws RemoteException
RemoteException
public void setBackupEnabled(boolean isEnabled) throws RemoteException
RemoteException
public void setAutoRestore(boolean doAutoRestore) throws RemoteException
RemoteException
public void setBackupProvisioned(boolean isProvisioned) throws RemoteException
RemoteException
public boolean isBackupEnabled() throws RemoteException
RemoteException
public boolean setBackupPassword(String currentPw, String newPw) throws RemoteException
RemoteException
public boolean hasBackupPassword() throws RemoteException
RemoteException
public void backupNow() throws RemoteException
RemoteException
public void fullBackup(ParcelFileDescriptor fd, boolean includeApks, boolean includeObbs, boolean includeShared, boolean doWidgets, boolean allApps, boolean allIncludesSystem, boolean doCompress, String[] packageNames) throws RemoteException
RemoteException
public void fullTransportBackup(String[] packageNames) throws RemoteException
RemoteException
public void fullRestore(ParcelFileDescriptor fd) throws RemoteException
RemoteException
public void acknowledgeFullBackupOrRestore(int token, boolean allow, String curPassword, String encryptionPassword, IFullBackupRestoreObserver observer) throws RemoteException
RemoteException
public String getCurrentTransport() throws RemoteException
RemoteException
public String[] listAllTransports() throws RemoteException
RemoteException
public String[] getTransportWhitelist()
public String selectBackupTransport(String transport) throws RemoteException
RemoteException
public Intent getConfigurationIntent(String transport) throws RemoteException
RemoteException
public String getDestinationString(String transport) throws RemoteException
RemoteException
public Intent getDataManagementIntent(String transport) throws RemoteException
RemoteException
public String getDataManagementLabel(String transport) throws RemoteException
RemoteException
public IRestoreSession beginRestoreSession(String packageName, String transportID) throws RemoteException
RemoteException
public void opComplete(int token, long result) throws RemoteException
RemoteException
public long getAvailableRestoreToken(String packageName)
public boolean isAppEligibleForBackup(String packageName)
public int requestBackup(String[] packages, IBackupObserver observer) throws RemoteException
RemoteException
public void dump(FileDescriptor fd, PrintWriter pw, String[] args)