Home
last modified time | relevance | path

Searched refs:KeyValueBackupJob (Results 1 – 10 of 10) sorted by relevance

/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/
H A DKeyValueBackupJobTest.java70 KeyValueBackupJob.cancel(mUserOneId, mContext); in tearDown()
71 KeyValueBackupJob.cancel(mUserTwoId, mContext); in tearDown()
79 assertThat(KeyValueBackupJob.isScheduled(mUserOneId)).isFalse(); in testSchedule_isNoopIfDisabled()
87 assertThat(KeyValueBackupJob.isScheduled(mUserOneId)).isTrue(); in testSchedule_schedulesJobIfEnabled()
92 assertThat(KeyValueBackupJob.isScheduled(mUserOneId)).isFalse(); in testIsScheduled_beforeScheduling_returnsFalse()
101 assertThat(KeyValueBackupJob.isScheduled(mUserOneId)).isTrue(); in testIsScheduled_afterScheduling_returnsTrue()
102 assertThat(KeyValueBackupJob.isScheduled(mUserTwoId)).isTrue(); in testIsScheduled_afterScheduling_returnsTrue()
109 KeyValueBackupJob.cancel(mUserOneId, mContext); in testIsScheduled_afterCancelling_returnsFalse()
110 KeyValueBackupJob.cancel(mUserTwoId, mContext); in testIsScheduled_afterCancelling_returnsFalse()
120 assertThat(KeyValueBackupJob.isScheduled(mUserOneId)).isTrue(); in testIsScheduled_afterScheduling_returnsTrueOnlyForScheduledUser()
[all …]
H A DUserBackupManagerServiceTest.java1377 @Implements(KeyValueBackupJob.class)
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/
H A DKeyValueBackupJob.java44 public class KeyValueBackupJob extends JobService { class
47 new ComponentName(PLATFORM_PACKAGE_NAME, KeyValueBackupJob.class.getName());
74 synchronized (KeyValueBackupJob.class) { in schedule()
119 synchronized (KeyValueBackupJob.class) { in cancel()
129 synchronized (KeyValueBackupJob.class) { in nextScheduled()
136 synchronized (KeyValueBackupJob.class) { in isScheduled()
145 synchronized (KeyValueBackupJob.class) { in onStartJob()
H A DUserBackupManagerService.java1978 KeyValueBackupJob.schedule(mUserId, mContext, BUSY_BACKOFF_MIN_MILLIS, in cancelBackups()
2520 KeyValueBackupJob.schedule(mUserId, mContext, in dataChangedImpl()
2756 KeyValueBackupJob.schedule(mUserId, mContext, in backupNow()
2798 KeyValueBackupJob.cancel(mUserId, mContext); in backupNow()
3262 KeyValueBackupJob.cancel(mUserId, mContext); in setFrameworkSchedulingEnabled()
3265 KeyValueBackupJob.schedule(mUserId, mContext, /* userBackupManagerService */ this); in setFrameworkSchedulingEnabled()
3286 KeyValueBackupJob.schedule(mUserId, mContext, /* userBackupManagerService */ this); in updateStateOnBackupEnabled()
3294 KeyValueBackupJob.cancel(mUserId, mContext); in updateStateOnBackupEnabled()
4235 pw.println(" next scheduled: " + KeyValueBackupJob.nextScheduled(mUserId)); in dumpInternal()
H A DBackupManagerService.java414 KeyValueBackupJob.cancel(userId, mContext); in stopServiceForUser()
/aosp14/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
H A DShadowKeyValueBackupJob.java23 import com.android.server.backup.KeyValueBackupJob;
29 @Implements(KeyValueBackupJob.class)
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/internal/
H A DSetupObserver.java28 import com.android.server.backup.KeyValueBackupJob;
79 KeyValueBackupJob.schedule(mUserBackupManagerService.getUserId(), mContext, in onChange()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
H A DSetupObserverTest.java30 import com.android.server.backup.KeyValueBackupJob;
144 KeyValueBackupJob.MIN_JOB_ID, in testOnChange_whenNewlySetup_schedulesBackup()
145 KeyValueBackupJob.MAX_JOB_ID, in testOnChange_whenNewlySetup_schedulesBackup()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
H A DKeyValueBackupTask.java57 import com.android.server.backup.KeyValueBackupJob;
1250 KeyValueBackupJob.schedule(mBackupManagerService.getUserId(), in revertTask()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
H A DKeyValueBackupTaskTest.java112 import com.android.server.backup.KeyValueBackupJob;
2940 assertThat(KeyValueBackupJob.isScheduled(mBackupManagerService.getUserId())).isTrue(); in assertTaskReverted()