Home
last modified time | relevance | path

Searched refs:BackupManager (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupReporter.java20 import android.app.backup.BackupManager;
141 mObserver, packageName, BackupManager.ERROR_BACKUP_NOT_ALLOWED); in onPackageNotEligibleForBackup()
149 mObserver, packageName, BackupManager.ERROR_BACKUP_NOT_ALLOWED); in onPackageEligibleForFullBackup()
154 mObserver, packageName, BackupManager.ERROR_BACKUP_NOT_ALLOWED); in onPackageStopped()
160 mObserver, packageName, BackupManager.ERROR_PACKAGE_NOT_FOUND); in onAgentUnknown()
166 mObserver, packageName, BackupManager.ERROR_AGENT_FAILURE); in onBindAgentError()
174 mObserver, packageName, BackupManager.ERROR_AGENT_FAILURE); in onAgentError()
197 mObserver, packageName, BackupManager.ERROR_AGENT_FAILURE); in onCallAgentDoBackupError()
220 mObserver, packageName, BackupManager.ERROR_AGENT_FAILURE); in onAgentIllegalKey()
268 mObserver, packageName, BackupManager.SUCCESS); in onPackageBackupComplete()
[all …]
DKeyValueBackupTask.java35 import android.app.backup.BackupManager;
598 return BackupManager.ERROR_BACKUP_CANCELLED; in getBackupFinishedStatus()
604 return BackupManager.SUCCESS; in getBackupFinishedStatus()
608 return BackupManager.ERROR_TRANSPORT_ABORTED; in getBackupFinishedStatus()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java28 import android.app.backup.BackupManager;
209 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in PerformFullTransportBackupTask()
224 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in PerformFullTransportBackupTask()
239 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in PerformFullTransportBackupTask()
320 int backupRunStatus = BackupManager.SUCCESS; in run()
342 backupRunStatus = BackupManager.ERROR_BACKUP_NOT_ALLOWED; in run()
349 backupRunStatus = BackupManager.ERROR_TRANSPORT_ABORTED; in run()
541 BackupManager.ERROR_TRANSPORT_PACKAGE_REJECTED); in run()
558 BackupManager.ERROR_TRANSPORT_QUOTA_EXCEEDED); in run()
569 BackupManager.ERROR_AGENT_FAILURE); in run()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DBackupManagerProxy.java19 import android.app.backup.BackupManager;
31 BackupManager.dataChanged("com.android.providers.settings"); in notifyDataChanged()
/frameworks/base/services/backup/java/com/android/server/backup/
DTransportManager.java22 import android.app.backup.BackupManager;
534 return BackupManager.SUCCESS; in registerAndSelectTransport()
542 if (result != BackupManager.SUCCESS) { in registerAndSelectTransport()
548 return BackupManager.SUCCESS; in registerAndSelectTransport()
551 return BackupManager.ERROR_TRANSPORT_UNAVAILABLE; in registerAndSelectTransport()
630 return BackupManager.ERROR_TRANSPORT_INVALID; in registerTransport()
648 return BackupManager.ERROR_TRANSPORT_UNAVAILABLE; in registerTransport()
659 result = BackupManager.SUCCESS; in registerTransport()
662 result = BackupManager.ERROR_TRANSPORT_UNAVAILABLE; in registerTransport()
DUserBackupManagerService.java49 import android.app.backup.BackupManager;
1686 BackupObserverUtils.sendBackupFinished(observer, BackupManager.ERROR_TRANSPORT_ABORTED); in requestBackup()
1701 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in requestBackup()
1707 return BackupManager.ERROR_BACKUP_NOT_ALLOWED; in requestBackup()
1719 BackupObserverUtils.sendBackupFinished(observer, BackupManager.ERROR_TRANSPORT_ABORTED); in requestBackup()
1723 return BackupManager.ERROR_TRANSPORT_ABORTED; in requestBackup()
1741 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in requestBackup()
1751 BackupManager.ERROR_PACKAGE_NOT_FOUND); in requestBackup()
1762 boolean nonIncrementalBackup = (flags & BackupManager.FLAG_NON_INCREMENTAL_BACKUP) != 0; in requestBackup()
1768 return BackupManager.SUCCESS; in requestBackup()
[all …]
DTrampoline.java25 import android.app.backup.BackupManager;
669 listener.onFailure(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in selectBackupTransportAsyncForUser()
762 return BackupManager.ERROR_BACKUP_NOT_ALLOWED; in requestBackupForUser()
DBackupManagerService.java25 import android.app.backup.BackupManager;
657 ? BackupManager.ERROR_BACKUP_NOT_ALLOWED in requestBackup()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java39 import android.app.backup.BackupManager;
373 .thenReturn(BackupManager.SUCCESS); in testSelectBackupTransportAsync()
397 .thenReturn(BackupManager.ERROR_TRANSPORT_UNAVAILABLE); in testSelectBackupTransportAsync_whenRegistrationFails()
419 .thenReturn(BackupManager.SUCCESS); in testSelectBackupTransportAsync_whenTransportGetsUnregistered()
807 verify(mObserver).backupFinished(BackupManager.ERROR_TRANSPORT_ABORTED); in testRequestBackup_whenPackagesNull()
823 verify(mObserver).backupFinished(BackupManager.ERROR_TRANSPORT_ABORTED); in testRequestBackup_whenPackagesEmpty()
838 assertThat(result).isEqualTo(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in testRequestBackup_whenBackupDisabled()
839 verify(mObserver).backupFinished(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in testRequestBackup_whenBackupDisabled()
855 assertThat(result).isEqualTo(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in testRequestBackup_whenNotProvisioned()
856 verify(mObserver).backupFinished(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in testRequestBackup_whenNotProvisioned()
[all …]
DTransportManagerTest.java45 import android.app.backup.BackupManager;
322 assertThat(result).isEqualTo(BackupManager.SUCCESS); in testRegisterAndSelectTransport_whenTransportRegistered()
339 assertThat(result).isEqualTo(BackupManager.SUCCESS); in testRegisterAndSelectTransport_whenTransportNotRegistered()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeBackupActivity.java20 import android.app.backup.BackupManager;
63 BackupManager mBackupManager;
82 mBackupManager = new BackupManager(this); in onCreate()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java21 import android.app.backup.BackupManager;
371 if (status == BackupManager.ERROR_BACKUP_CANCELLED) { in backupFinished()
380 case BackupManager.SUCCESS: in convertBackupStatusToString()
382 case BackupManager.ERROR_BACKUP_NOT_ALLOWED: in convertBackupStatusToString()
384 case BackupManager.ERROR_PACKAGE_NOT_FOUND: in convertBackupStatusToString()
386 case BackupManager.ERROR_TRANSPORT_ABORTED: in convertBackupStatusToString()
388 case BackupManager.ERROR_TRANSPORT_PACKAGE_REJECTED: in convertBackupStatusToString()
391 case BackupManager.ERROR_AGENT_FAILURE: in convertBackupStatusToString()
393 case BackupManager.ERROR_TRANSPORT_QUOTA_EXCEEDED: in convertBackupStatusToString()
395 case BackupManager.ERROR_BACKUP_CANCELLED: in convertBackupStatusToString()
[all …]
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java23 import android.app.backup.BackupManager;
55 BackupManager sBm = new BackupManager(this);
/frameworks/base/core/java/com/android/internal/app/
DLocalePicker.java24 import android.app.backup.BackupManager;
319 BackupManager.dataChanged("com.android.providers.settings");
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java19 import static android.app.backup.BackupManager.ERROR_AGENT_FAILURE;
20 import static android.app.backup.BackupManager.ERROR_BACKUP_NOT_ALLOWED;
21 import static android.app.backup.BackupManager.ERROR_PACKAGE_NOT_FOUND;
22 import static android.app.backup.BackupManager.ERROR_TRANSPORT_ABORTED;
23 import static android.app.backup.BackupManager.ERROR_TRANSPORT_PACKAGE_REJECTED;
24 import static android.app.backup.BackupManager.SUCCESS;
78 import android.app.backup.BackupManager;
742 verify(mObserver).backupFinished(BackupManager.SUCCESS); in testRunTask_whenAgentUnavailable()
775 verify(mObserver).backupFinished(BackupManager.SUCCESS); in testRunTask_whenNonIncrementalAndAgentUnavailable()
792 verify(mObserver).backupFinished(BackupManager.SUCCESS); in testRunTask_whenBindToAgentThrowsSecurityException()
[all …]
/frameworks/base/core/java/android/app/backup/
DBackupManager.java68 public class BackupManager { class
216 public BackupManager(Context context) { in BackupManager() method in BackupManager
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DTrampolineTest.java37 import android.app.backup.BackupManager;
992 assertEquals(BackupManager.ERROR_BACKUP_NOT_ALLOWED, (int) errorCode); in selectBackupTransportAsyncForUser_calledBeforeInitialize_ignored()
1216 assertEquals(BackupManager.ERROR_BACKUP_NOT_ALLOWED, mTrampoline.requestBackup( in requestBackup_calledBeforeInitialize_ignored()
/frameworks/base/core/java/android/net/
DTrafficStats.java24 import android.app.backup.BackupManager;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java26 import android.app.backup.BackupManager;
1188 BackupManager.dataChanged("com.android.providers.settings"); in changeLanguage()
/frameworks/base/config/
Ddirty-image-objects42 android.app.backup.BackupManager
/frameworks/base/api/
Dtest-lint-baseline.txt446 IntentBuilderName: android.app.backup.BackupManager#getConfigurationIntent(String):
448 IntentBuilderName: android.app.backup.BackupManager#getDataManagementIntent(String):
676 MissingNullability: android.app.backup.BackupManager#getConfigurationIntent(String):
678 MissingNullability: android.app.backup.BackupManager#getConfigurationIntent(String) parameter #0:
680 MissingNullability: android.app.backup.BackupManager#getDataManagementIntent(String):
682 MissingNullability: android.app.backup.BackupManager#getDataManagementIntent(String) parameter #0:
684 MissingNullability: android.app.backup.BackupManager#getDestinationString(String):
686 MissingNullability: android.app.backup.BackupManager#getDestinationString(String) parameter #0:
Dlint-baseline.txt589 RequiresPermission: android.app.backup.BackupManager#dataChanged(String):
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java25 import android.app.backup.BackupManager;
2210 BackupManager.dataChanged("android"); in queueBackup()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java30 import android.app.backup.BackupManager;
2396 private final BackupManager mBackupManager;
2403 mBackupManager = new BackupManager(getContext());
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java47 import android.app.backup.BackupManager;
1051 BackupManager.dataChanged("com.android.providers.settings"); in setStringUnchecked()

12