/frameworks/base/services/backup/java/com/android/server/backup/ |
D | TransportManager.java | 234 public String getTransportDirName(String transportName) throws TransportNotRegisteredException { in getTransportDirName() argument 236 return getRegisteredTransportDescriptionOrThrowLocked(transportName).transportDirName; in getTransportDirName() 246 public Intent getTransportConfigurationIntent(String transportName) in getTransportConfigurationIntent() argument 249 return getRegisteredTransportDescriptionOrThrowLocked(transportName) in getTransportConfigurationIntent() 259 public String getTransportCurrentDestinationString(String transportName) in getTransportCurrentDestinationString() argument 262 return getRegisteredTransportDescriptionOrThrowLocked(transportName) in getTransportCurrentDestinationString() 273 public Intent getTransportDataManagementIntent(String transportName) in getTransportDataManagementIntent() argument 276 return getRegisteredTransportDescriptionOrThrowLocked(transportName) in getTransportDataManagementIntent() 287 public CharSequence getTransportDataManagementLabel(String transportName) in getTransportDataManagementLabel() argument 290 return getRegisteredTransportDescriptionOrThrowLocked(transportName) in getTransportDataManagementLabel() [all …]
|
D | BackupManagerService.java | 316 public void clearBackupData(@UserIdInt int userId, String transportName, String packageName) { in clearBackupData() argument 321 userBackupManagerService.clearBackupData(transportName, packageName); in clearBackupData() 438 public String selectBackupTransport(@UserIdInt int userId, String transportName) { in selectBackupTransport() argument 444 : userBackupManagerService.selectBackupTransport(transportName); in selectBackupTransport() 469 public Intent getConfigurationIntent(@UserIdInt int userId, String transportName) { in getConfigurationIntent() argument 475 : userBackupManagerService.getConfigurationIntent(transportName); in getConfigurationIntent() 536 public String getDestinationString(@UserIdInt int userId, String transportName) { in getDestinationString() argument 542 : userBackupManagerService.getDestinationString(transportName); in getDestinationString() 547 public Intent getDataManagementIntent(@UserIdInt int userId, String transportName) { in getDataManagementIntent() argument 553 : userBackupManagerService.getDataManagementIntent(transportName); in getDataManagementIntent() [all …]
|
D | UserBackupManagerService.java | 1142 boolean isPending, String transportName, String transportDirName) { in recordInitPending() argument 1145 Slog.i(TAG, "recordInitPending(" + isPending + ") on transport " + transportName); in recordInitPending() 1155 mPendingInits.add(transportName); in recordInitPending() 1164 mPendingInits.remove(transportName); in recordInitPending() 1203 private void onTransportRegistered(String transportName, String transportDirName) { in onTransportRegistered() argument 1206 Slog.d(TAG, "Transport " + transportName + " registered " + timeMs in onTransportRegistered() 1216 mPendingInits.add(transportName); in onTransportRegistered() 2083 private boolean fullBackupAllowable(String transportName) { in fullBackupAllowable() argument 2084 if (!mTransportManager.isTransportRegistered(transportName)) { in fullBackupAllowable() 2092 String transportDirName = mTransportManager.getTransportDirName(transportName); in fullBackupAllowable() [all …]
|
D | Trampoline.java | 426 public void clearBackupDataForUser(int userId, String transportName, String packageName) in clearBackupDataForUser() argument 429 mService.clearBackupData(userId, transportName, packageName); in clearBackupDataForUser() 434 public void clearBackupData(String transportName, String packageName) in clearBackupData() argument 436 clearBackupDataForUser(binderGetCallingUserId(), transportName, packageName); in clearBackupData() local
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/ |
D | TransportManagerTest.java | 129 .onTransportRegistered(mTransportA1.transportName, mTransportA1.transportDirName); in testRegisterTransports() 131 .onTransportRegistered(mTransportA2.transportName, mTransportA2.transportDirName); in testRegisterTransports() 133 .onTransportRegistered(mTransportB1.transportName, mTransportB1.transportDirName); in testRegisterTransports() 150 .onTransportRegistered(transport1.transportName, transport1.transportDirName); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport() 152 .onTransportRegistered(transport2.transportName, transport2.transportDirName); in testRegisterTransports_whenOneTransportUnavailable_doesNotRegisterUnavailableTransport() 180 .onTransportRegistered(mTransportA1.transportName, mTransportA1.transportDirName); in testRegisterTransports_whenOnlyOneTransportWhitelisted_onlyRegistersWhitelistedTransport() 182 .onTransportRegistered(mTransportA2.transportName, mTransportA2.transportDirName); in testRegisterTransports_whenOnlyOneTransportWhitelisted_onlyRegistersWhitelistedTransport() 229 .onTransportRegistered(mTransportA1.transportName, mTransportA1.transportDirName); in testOnPackageAdded_registerTransports() 265 .onTransportRegistered(mTransportA1.transportName, mTransportA1.transportDirName); in testOnPackageChanged_whenOneComponentChanged_onlyOneTransportReRegistered() 267 .onTransportRegistered(mTransportA2.transportName, mTransportA2.transportDirName); in testOnPackageChanged_whenOneComponentChanged_onlyOneTransportReRegistered() [all …]
|
D | UserBackupManagerServiceTest.java | 120 mTransportName = mTransport.transportName; in setUp() 324 when(mTransportManager.selectTransport(eq(mNewTransport.transportName))) in setUpForSelectTransport() 325 .thenReturn(mOldTransport.transportName); in setUpForSelectTransport() 340 backupManagerService.selectBackupTransport(mNewTransport.transportName); in testSelectBackupTransport() 342 assertThat(getSettingsTransport()).isEqualTo(mNewTransport.transportName); in testSelectBackupTransport() 343 assertThat(oldTransport).isEqualTo(mOldTransport.transportName); in testSelectBackupTransport() 360 () -> backupManagerService.selectBackupTransport(mNewTransport.transportName)); in testSelectBackupTransport_withoutPermission() 380 assertThat(getSettingsTransport()).isEqualTo(mNewTransport.transportName); in testSelectBackupTransportAsync() 381 verify(callback).onSuccess(eq(mNewTransport.transportName)); in testSelectBackupTransportAsync() 404 assertThat(getSettingsTransport()).isNotEqualTo(mNewTransport.transportName); in testSelectBackupTransportAsync_whenRegistrationFails()
|
D | BackupManagerServiceTest.java | 540 transport.transportName, in testUpdateTransportAttributes_onRegisteredUser_callsMethodForUser() 549 transport.transportName, in testUpdateTransportAttributes_onRegisteredUser_callsMethodForUser() 570 transport.transportName, in testUpdateTransportAttributes_onUnknownUser_doesNotPropagateCall() 579 transport.transportName, in testUpdateTransportAttributes_onUnknownUser_doesNotPropagateCall()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/ |
D | TransportData.java | 72 public final String transportName; field in TransportData 82 String transportName, in TransportData() argument 90 this.transportName = transportName; in TransportData() 100 String transportName, in TransportData() argument 109 transportName, in TransportData() 129 transportName, in unavailable() 141 transportName, in unregistered()
|
D | TransportTestUtils.java | 89 when(transportManager.getCurrentTransportName()).thenReturn(transport.transportName); in setUpCurrentTransport() 117 String transportName = transport.transportName; in setUpTransport() local 125 when(transportManager.getTransportClient(eq(transportName), any())) in setUpTransport() 127 when(transportManager.getTransportClientOrThrow(eq(transportName), any())) in setUpTransport() 129 when(transportManager.getTransportName(transportComponent)).thenReturn(transportName); in setUpTransport() 130 when(transportManager.getTransportDirName(eq(transportName))) in setUpTransport() 134 when(transportManager.isTransportRegistered(eq(transportName))).thenReturn(true); in setUpTransport() 138 when(transportManager.getTransportClient(eq(transportName), any())).thenReturn(null); in setUpTransport() 139 when(transportManager.getTransportClientOrThrow(eq(transportName), any())) in setUpTransport() 143 when(transportManager.getTransportDirName(eq(transportName))) in setUpTransport() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/params/ |
D | ClearRetryParams.java | 20 public String transportName; field in ClearRetryParams 23 public ClearRetryParams(String transportName, String packageName) { in ClearRetryParams() argument 24 this.transportName = transportName; in ClearRetryParams()
|
/frameworks/base/services/backup/java/com/android/server/backup/internal/ |
D | PerformInitializeTask.java | 115 for (String transportName : mQueue) { in run() 117 mTransportManager.getTransportClient(transportName, callerLogString); in run() 119 Slog.e(TAG, "Requested init for " + transportName + " but not found"); in run() 124 Slog.i(TAG, "Initializing (wiping) backup transport storage: " + transportName); in run() 150 mBackupManagerService.recordInitPending(false, transportName, transportDirName); in run() 151 notifyResult(transportName, BackupTransport.TRANSPORT_OK); in run() 156 mBackupManagerService.recordInitPending(true, transportName, transportDirName); in run() 157 notifyResult(transportName, status); in run() 162 Slog.w(TAG, "Init failed on " + transportName + " resched in " + delay); in run()
|
D | BackupHandler.java | 331 backupManagerService.clearBackupData(params.transportName, params.packageName); in handleMessage()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupManager.java | 851 public Intent getConfigurationIntent(String transportName) { in getConfigurationIntent() argument 855 return sService.getConfigurationIntentForUser(mContext.getUserId(), transportName); in getConfigurationIntent() 873 public String getDestinationString(String transportName) { in getDestinationString() argument 877 return sService.getDestinationStringForUser(mContext.getUserId(), transportName); in getDestinationString() 895 public Intent getDataManagementIntent(String transportName) { in getDataManagementIntent() argument 899 return sService.getDataManagementIntentForUser(mContext.getUserId(), transportName); in getDataManagementIntent() 922 public String getDataManagementLabel(@NonNull String transportName) { in getDataManagementLabel() argument 923 CharSequence label = getDataManagementIntentLabel(transportName); in getDataManagementLabel() 939 public CharSequence getDataManagementIntentLabel(@NonNull String transportName) { in getDataManagementIntentLabel() argument 943 return sService.getDataManagementLabelForUser(mContext.getUserId(), transportName); in getDataManagementIntentLabel() [all …]
|
D | ISelectBackupTransportCallback.aidl | 33 void onSuccess(String transportName); in onSuccess() argument
|
D | SelectBackupTransportCallback.java | 36 public void onSuccess(String transportName){} in onSuccess() argument
|
D | IBackupManager.aidl | 72 void clearBackupDataForUser(int userId, String transportName, String packageName); in clearBackupDataForUser() argument 78 void clearBackupData(String transportName, String packageName); in clearBackupData() argument
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/ |
D | PerformInitializeTaskTest.java | 91 mTransportName = mTransport.transportName; in setUp() 252 createPerformInitializeTask(transport1.transportName, transport2.transportName); in testRun_whenOnlyOneTransportFails() 257 verify(mObserver).onResult(eq(transport1.transportName), eq(TRANSPORT_ERROR)); in testRun_whenOnlyOneTransportFails() 258 verify(mObserver).onResult(eq(transport2.transportName), eq(TRANSPORT_OK)); in testRun_whenOnlyOneTransportFails() 272 .map(t -> t.transportName) in testRun_withMultipleTransports() 286 verify(mTransportManager).getTransportClient(eq(transport.transportName), any()); in testRun_withMultipleTransports() 301 createPerformInitializeTask(transport1.transportName, transport2.transportName); in testRun_whenOnlyOneTransportFails_disposesAllTransports() 329 String registeredTransportName = transport2.transportName; in testRun_whenOnlyOneTransportNotRegistered() 333 createPerformInitializeTask(transport1.transportName, transport2.transportName); in testRun_whenOnlyOneTransportNotRegistered()
|
/frameworks/base/services/backup/java/com/android/server/backup/transport/ |
D | TransportNotRegisteredException.java | 33 public TransportNotRegisteredException(String transportName) { in TransportNotRegisteredException() argument 34 super("Transport " + transportName + " not registered"); in TransportNotRegisteredException()
|
D | OnTransportRegisteredListener.java | 32 public void onTransportRegistered(String transportName, String transportDirName); in onTransportRegistered() argument
|
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/ |
D | KeyValueBackupReporter.java | 105 void onTransportReady(String transportName) { in onTransportReady() argument 106 EventLog.writeEvent(EventLogTags.BACKUP_START, transportName); in onTransportReady() 109 void onInitializeTransport(String transportName) { in onInitializeTransport() argument
|
D | KeyValueBackupTask.java | 414 String transportName = transport.name(); in startTask() local 415 mReporter.onTransportReady(transportName); in startTask() 419 mReporter.onInitializeTransport(transportName); in startTask()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | ActiveRestoreSession.java | 66 String transportName) { in ActiveRestoreSession() argument 70 mTransportName = transportName; in ActiveRestoreSession()
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/restore/ |
D | ActiveRestoreSessionTest.java | 579 mBackupManagerService, packageName, transport.transportName); in createActiveRestoreSession() 587 mBackupManagerService, packageName, transport.transportName); in createActiveRestoreSessionWithRestoreSets()
|
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/ |
D | Bmgr.java | 560 public void onSuccess(String transportName) { in doTransportByComponent() 561 System.out.println("Success. Selected transport: " + transportName); in doTransportByComponent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | TrampolineTest.java | 974 public void onSuccess(String transportName) throws RemoteException { in selectBackupTransportAsyncForUser_calledBeforeInitialize_ignored() 1012 public void onSuccess(String transportName) throws RemoteException { in selectBackupTransportAsyncForUser_calledBeforeInitialize_ignored_listenerThrows()
|