Home
last modified time | relevance | path

Searched refs:getJobIdForUserId (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DFullBackupJobTest.java73 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserOneId))).isNotNull(); in testSchedule_afterScheduling_jobExists()
74 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserTwoId))).isNotNull(); in testSchedule_afterScheduling_jobExists()
84 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserOneId))).isNull(); in testCancel_afterCancelling_jobDoesntExist()
85 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserTwoId))).isNull(); in testCancel_afterCancelling_jobDoesntExist()
92 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserOneId))).isNotNull(); in testSchedule_onlySchedulesForRequestedUser()
93 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserTwoId))).isNull(); in testSchedule_onlySchedulesForRequestedUser()
102 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserOneId))).isNull(); in testCancel_onlyCancelsForRequestedUser()
103 assertThat(mShadowJobScheduler.getPendingJob(getJobIdForUserId(mUserTwoId))).isNotNull(); in testCancel_onlyCancelsForRequestedUser()
106 private static int getJobIdForUserId(int userId) { in getJobIdForUserId() method in FullBackupJobTest
107 return JobIdManager.getJobIdForUserId(FullBackupJob.MIN_JOB_ID, FullBackupJob.MAX_JOB_ID, in getJobIdForUserId()
DJobIdManagerTest.java48 int jobIdOne = JobIdManager.getJobIdForUserId(MIN_JOB_ID, MAX_JOB_ID, mUserOneId); in testGetJobIdForUserId_returnsDifferentJobIdsForDifferentUsers()
49 int jobIdTwo = JobIdManager.getJobIdForUserId(MIN_JOB_ID, MAX_JOB_ID, mUserTwoId); in testGetJobIdForUserId_returnsDifferentJobIdsForDifferentUsers()
56 int jobIdOne = JobIdManager.getJobIdForUserId(MIN_JOB_ID, MAX_JOB_ID, mUserOneId); in testGetJobIdForUserId_returnsSameJobIdForSameUser()
57 int jobIdTwo = JobIdManager.getJobIdForUserId(MIN_JOB_ID, MAX_JOB_ID, mUserOneId); in testGetJobIdForUserId_returnsSameJobIdForSameUser()
66 () -> JobIdManager.getJobIdForUserId(MIN_JOB_ID, MAX_JOB_ID, in testGetJobIdForUserId_throwsExceptionIfRangeIsExceeded()
/frameworks/base/services/backup/java/com/android/server/backup/
DFullBackupJob.java48 JobInfo.Builder builder = new JobInfo.Builder(getJobIdForUserId(userId), sIdleService); in schedule()
68 js.cancel(getJobIdForUserId(userId)); in cancel()
112 private static int getJobIdForUserId(int userId) { in getJobIdForUserId() method in FullBackupJob
113 return JobIdManager.getJobIdForUserId(MIN_JOB_ID, MAX_JOB_ID, userId); in getJobIdForUserId()
DKeyValueBackupJob.java95 JobInfo.Builder builder = new JobInfo.Builder(getJobIdForUserId(userId), in schedule()
118 js.cancel(getJobIdForUserId(userId)); in cancel()
168 private static int getJobIdForUserId(int userId) { in getJobIdForUserId() method in KeyValueBackupJob
169 return JobIdManager.getJobIdForUserId(MIN_JOB_ID, MAX_JOB_ID, userId); in getJobIdForUserId()
DJobIdManager.java23 public static int getJobIdForUserId(int minJobId, int maxJobId, int userId) { in getJobIdForUserId() method in JobIdManager
/frameworks/base/services/robotests/backup/src/com/android/server/backup/internal/
DSetupObserverTest.java150 return JobIdManager.getJobIdForUserId(min, max, userId); in getJobIdForUser()
/frameworks/base/services/
Dart-profile4777 HSPLcom/android/server/backup/KeyValueBackupJob;->getJobIdForUserId(I)I