Loading core/java/android/app/backup/IBackupManager.aidl +0 −7 Original line number Diff line number Diff line Loading @@ -179,13 +179,6 @@ interface IBackupManager { */ void setAutoRestore(boolean doAutoRestore); /** * Indicate that any necessary one-time provisioning has occurred. * * <p>Callers must hold the android.permission.BACKUP permission to use this method. */ void setBackupProvisioned(boolean isProvisioned); /** * Report whether the backup mechanism is currently enabled. * Loading services/backup/java/com/android/server/backup/Trampoline.java +0 −7 Original line number Diff line number Diff line Loading @@ -385,13 +385,6 @@ public class Trampoline extends IBackupManager.Stub { setAutoRestoreForUser(binderGetCallingUserId(), doAutoRestore); } @Override public void setBackupProvisioned(boolean isProvisioned) throws RemoteException { /* * This is now a no-op; provisioning is simply the device's own setup state. */ } @Override public boolean isBackupEnabledForUser(@UserIdInt int userId) throws RemoteException { BackupManagerService svc = mService; Loading services/tests/servicestests/src/com/android/server/backup/TrampolineTest.java +0 −13 Original line number Diff line number Diff line Loading @@ -509,19 +509,6 @@ public class TrampolineTest { verify(mBackupManagerServiceMock).setAutoRestore(mUserId, true); } @Test public void setBackupProvisioned_calledBeforeInitialize_ignored() throws RemoteException { mTrampoline.setBackupProvisioned(true); verifyNoMoreInteractions(mBackupManagerServiceMock); } @Test public void setBackupProvisioned_forwarded() throws RemoteException { mTrampoline.initializeService(); mTrampoline.setBackupProvisioned(true); verifyNoMoreInteractions(mBackupManagerServiceMock); } @Test public void isBackupEnabled_calledBeforeInitialize_ignored() throws RemoteException { assertFalse(mTrampoline.isBackupEnabled()); Loading Loading
core/java/android/app/backup/IBackupManager.aidl +0 −7 Original line number Diff line number Diff line Loading @@ -179,13 +179,6 @@ interface IBackupManager { */ void setAutoRestore(boolean doAutoRestore); /** * Indicate that any necessary one-time provisioning has occurred. * * <p>Callers must hold the android.permission.BACKUP permission to use this method. */ void setBackupProvisioned(boolean isProvisioned); /** * Report whether the backup mechanism is currently enabled. * Loading
services/backup/java/com/android/server/backup/Trampoline.java +0 −7 Original line number Diff line number Diff line Loading @@ -385,13 +385,6 @@ public class Trampoline extends IBackupManager.Stub { setAutoRestoreForUser(binderGetCallingUserId(), doAutoRestore); } @Override public void setBackupProvisioned(boolean isProvisioned) throws RemoteException { /* * This is now a no-op; provisioning is simply the device's own setup state. */ } @Override public boolean isBackupEnabledForUser(@UserIdInt int userId) throws RemoteException { BackupManagerService svc = mService; Loading
services/tests/servicestests/src/com/android/server/backup/TrampolineTest.java +0 −13 Original line number Diff line number Diff line Loading @@ -509,19 +509,6 @@ public class TrampolineTest { verify(mBackupManagerServiceMock).setAutoRestore(mUserId, true); } @Test public void setBackupProvisioned_calledBeforeInitialize_ignored() throws RemoteException { mTrampoline.setBackupProvisioned(true); verifyNoMoreInteractions(mBackupManagerServiceMock); } @Test public void setBackupProvisioned_forwarded() throws RemoteException { mTrampoline.initializeService(); mTrampoline.setBackupProvisioned(true); verifyNoMoreInteractions(mBackupManagerServiceMock); } @Test public void isBackupEnabled_calledBeforeInitialize_ignored() throws RemoteException { assertFalse(mTrampoline.isBackupEnabled()); Loading