Home
last modified time | relevance | path

Searched refs:BackupManager (Results 1 – 25 of 34) 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;
798 return BackupManager.ERROR_BACKUP_CANCELLED; in getBackupFinishedStatus()
804 return BackupManager.SUCCESS; in getBackupFinishedStatus()
808 return BackupManager.ERROR_TRANSPORT_ABORTED; in getBackupFinishedStatus()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java28 import android.app.backup.BackupManager;
210 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in PerformFullTransportBackupTask()
225 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in PerformFullTransportBackupTask()
240 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in PerformFullTransportBackupTask()
323 int backupRunStatus = BackupManager.SUCCESS; in run()
346 backupRunStatus = BackupManager.ERROR_BACKUP_NOT_ALLOWED; in run()
353 backupRunStatus = BackupManager.ERROR_TRANSPORT_ABORTED; in run()
546 BackupManager.ERROR_TRANSPORT_PACKAGE_REJECTED); in run()
564 BackupManager.ERROR_TRANSPORT_QUOTA_EXCEEDED); in run()
575 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/backuplib/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()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DUserBackupManagerServiceTest.java42 import android.app.backup.BackupManager;
388 .thenReturn(BackupManager.SUCCESS); in testSelectBackupTransportAsync()
412 .thenReturn(BackupManager.ERROR_TRANSPORT_UNAVAILABLE); in testSelectBackupTransportAsync_whenRegistrationFails()
434 .thenReturn(BackupManager.SUCCESS); in testSelectBackupTransportAsync_whenTransportGetsUnregistered()
839 verify(mObserver).backupFinished(BackupManager.ERROR_TRANSPORT_ABORTED); in testRequestBackup_whenPackagesNull()
855 verify(mObserver).backupFinished(BackupManager.ERROR_TRANSPORT_ABORTED); in testRequestBackup_whenPackagesEmpty()
870 assertThat(result).isEqualTo(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in testRequestBackup_whenBackupDisabled()
871 verify(mObserver).backupFinished(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in testRequestBackup_whenBackupDisabled()
887 assertThat(result).isEqualTo(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in testRequestBackup_whenNotProvisioned()
888 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/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsFavoritePersistenceWrapper.kt19 import android.app.backup.BackupManager in <lambda>()
45 private var backupManager: BackupManager? = null in <lambda>()
72 fun changeFileAndBackupManager(fileName: File, newBackupManager: BackupManager?) { in <lambda>()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java21 import android.app.backup.BackupManager;
398 if (status == BackupManager.ERROR_BACKUP_CANCELLED) { in backupFinished()
407 case BackupManager.SUCCESS: in convertBackupStatusToString()
409 case BackupManager.ERROR_BACKUP_NOT_ALLOWED: in convertBackupStatusToString()
411 case BackupManager.ERROR_PACKAGE_NOT_FOUND: in convertBackupStatusToString()
413 case BackupManager.ERROR_TRANSPORT_ABORTED: in convertBackupStatusToString()
415 case BackupManager.ERROR_TRANSPORT_PACKAGE_REJECTED: in convertBackupStatusToString()
418 case BackupManager.ERROR_AGENT_FAILURE: in convertBackupStatusToString()
420 case BackupManager.ERROR_TRANSPORT_QUOTA_EXCEEDED: in convertBackupStatusToString()
422 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.java22 import android.app.backup.BackupManager;
277 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;
744 verify(mObserver).backupFinished(BackupManager.SUCCESS); in testRunTask_whenAgentUnavailable()
777 verify(mObserver).backupFinished(BackupManager.SUCCESS); in testRunTask_whenNonIncrementalAndAgentUnavailable()
794 verify(mObserver).backupFinished(BackupManager.SUCCESS); in testRunTask_whenBindToAgentThrowsSecurityException()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java49 import android.app.backup.BackupManager;
1801 BackupObserverUtils.sendBackupFinished(observer, BackupManager.ERROR_TRANSPORT_ABORTED); in requestBackup()
1816 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in requestBackup()
1822 return BackupManager.ERROR_BACKUP_NOT_ALLOWED; in requestBackup()
1834 BackupObserverUtils.sendBackupFinished(observer, BackupManager.ERROR_TRANSPORT_ABORTED); in requestBackup()
1838 return BackupManager.ERROR_TRANSPORT_ABORTED; in requestBackup()
1856 BackupManager.ERROR_BACKUP_NOT_ALLOWED); in requestBackup()
1866 BackupManager.ERROR_PACKAGE_NOT_FOUND); in requestBackup()
1885 boolean nonIncrementalBackup = (flags & BackupManager.FLAG_NON_INCREMENTAL_BACKUP) != 0; in requestBackup()
1891 return BackupManager.SUCCESS; in requestBackup()
[all …]
DBackupManagerService.java26 import android.app.backup.BackupManager;
1110 listener.onFailure(BackupManager.ERROR_BACKUP_NOT_ALLOWED); in selectBackupTransportAsyncForUser()
1339 return BackupManager.ERROR_BACKUP_NOT_ALLOWED; in requestBackupForUser()
1365 ? BackupManager.ERROR_BACKUP_NOT_ALLOWED in requestBackup()
/frameworks/base/core/java/android/app/backup/
DBackupManager.java70 public class BackupManager { class
218 public BackupManager(Context context) { in BackupManager() method in BackupManager
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DBackupManagerServiceTest.java37 import android.app.backup.BackupManager;
479 assertEquals(BackupManager.ERROR_BACKUP_NOT_ALLOWED, (int) future.get(5, TimeUnit.SECONDS)); in selectBackupTransportAsyncForUser_beforeUserUnlocked_notifiesBackupNotAllowed()
/frameworks/base/core/java/android/net/
DTrafficStats.java24 import android.app.backup.BackupManager;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DCatService.java24 import android.app.backup.BackupManager;
1182 BackupManager.dataChanged("com.android.providers.settings"); in changeLanguage()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java26 import android.app.backup.BackupManager;
595 BackupManager.dataChanged("com.android.providers.settings"); in setString()
/frameworks/base/api/
Dtest-lint-baseline.txt460 IntentBuilderName: android.app.backup.BackupManager#getConfigurationIntent(String):
462 IntentBuilderName: android.app.backup.BackupManager#getDataManagementIntent(String):
690 MissingNullability: android.app.backup.BackupManager#getConfigurationIntent(String):
692 MissingNullability: android.app.backup.BackupManager#getConfigurationIntent(String) parameter #0:
694 MissingNullability: android.app.backup.BackupManager#getDataManagementIntent(String):
696 MissingNullability: android.app.backup.BackupManager#getDataManagementIntent(String) parameter #0:
698 MissingNullability: android.app.backup.BackupManager#getDestinationString(String):
700 MissingNullability: android.app.backup.BackupManager#getDestinationString(String) parameter #0:
Dlint-baseline.txt680 RequiresPermission: android.app.backup.BackupManager#dataChanged(String):
/frameworks/base/config/
Ddirty-image-objects42 android.app.backup.BackupManager
/frameworks/base/services/core/java/com/android/server/content/
DSyncStorageEngine.java25 import android.app.backup.BackupManager;
2616 BackupManager.dataChanged("android"); in queueBackup()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java33 import android.app.backup.BackupManager;
2579 private final BackupManager mBackupManager;
2586 mBackupManager = new BackupManager(getContext());

12