/cts/hostsidetests/appsearch/test-apps/AppSearchHostTestHelperA/src/android/appsearch/app/helper_a/ |
D | ContactsIndexerDeviceTest.java | 52 int jobId = MIN_INDEXER_JOB_ID + userId; in testFullUpdateJobIsScheduled() local 53 assertJobWaiting(jobId); in testFullUpdateJobIsScheduled() 65 int jobId = MIN_INDEXER_JOB_ID + userId; in testFullUpdateJobIsNotScheduled() local 66 assertNoJob(jobId); in testFullUpdateJobIsNotScheduled() 73 private String getJobState(int jobId) throws Exception { in getJobState() argument 75 "cmd jobscheduler get-job-state android " + jobId).trim(); in getJobState() 79 private void assertJobWaiting(int jobId) throws Exception { in assertJobWaiting() argument 80 assertThat(getJobState(jobId)).contains("waiting"); in assertJobWaiting() 83 private void assertNoJob(int jobId) throws Exception { in assertNoJob() argument 84 assertThat(getJobState(jobId)).contains("unknown"); in assertNoJob()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | ProfileScheduledJobHostSideTest.java | 102 int jobId = getJobIdForUser(KEY_VALUE_MIN_JOB_ID, mProfileUserId.get()); in testKeyValueBackupJobScheduled() local 103 assertThat(isSystemJobScheduled(jobId, KEY_VALUE_JOB_NAME)).isTrue(); in testKeyValueBackupJobScheduled() 132 int jobId = getJobIdForUser(KEY_VALUE_MIN_JOB_ID, profileUserId); in testKeyValueBackupJobRunsSuccessfully() local 133 mBackupUtils.executeShellCommandSync(JOB_SCHEDULER_RUN_COMMAND + " " + jobId); in testKeyValueBackupJobRunsSuccessfully() 140 assertThat(isSystemJobScheduled(jobId, KEY_VALUE_JOB_NAME)).isTrue(); in testKeyValueBackupJobRunsSuccessfully() 149 int jobId = getJobIdForUser(KEY_VALUE_MIN_JOB_ID, profileUserId); in testKeyValueBackupJobCancelled() local 150 assertThat(isSystemJobScheduled(jobId, KEY_VALUE_JOB_NAME)).isTrue(); in testKeyValueBackupJobCancelled() 154 assertThat(isSystemJobScheduled(jobId, KEY_VALUE_JOB_NAME)).isFalse(); in testKeyValueBackupJobCancelled() 160 int jobId = getJobIdForUser(FULL_BACKUP_MIN_JOB_ID, mProfileUserId.get()); in testFullBackupJobScheduled() local 161 assertThat(isSystemJobScheduled(jobId, FULL_BACKUP_JOB_NAME)).isTrue(); in testFullBackupJobScheduled() [all …]
|
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/ |
D | ConstraintTest.java | 186 String getJobState(int jobId) throws Exception { in getJobState() argument 189 + kJobServiceComponent.getPackageName() + " " + jobId).trim(); in getJobState() 192 void assertJobReady(int jobId) throws Exception { in assertJobReady() argument 193 String state = getJobState(jobId); in assertJobReady() 197 void assertJobWaiting(int jobId) throws Exception { in assertJobWaiting() argument 198 String state = getJobState(jobId); in assertJobWaiting() 202 void assertJobNotReady(int jobId) throws Exception { in assertJobNotReady() argument 203 String state = getJobState(jobId); in assertJobNotReady() 207 void runSatisfiedJob(int jobId) throws Exception { in runSatisfiedJob() argument 212 + " " + jobId); in runSatisfiedJob()
|
/cts/tests/JobSchedulerSharedUid/JobSharedUidTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobSchedulerReceiver.java | 51 final int jobId = intent.getIntExtra(EXTRA_JOB_ID_KEY, hashCode()); in onReceive() local 53 JobInfo.Builder jobBuilder = new JobInfo.Builder(jobId, jobServiceComponent) in onReceive() 58 Log.e(TAG, "Could not schedule job " + jobId); in onReceive() 60 Log.d(TAG, "Successfully scheduled job with id " + jobId); in onReceive()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | BaseJobSchedulerTest.java | 307 String getJobState(int jobId) throws Exception { in getJobState() argument 310 + kJobServiceComponent.getPackageName() + " " + jobId).trim(); in getJobState() 313 void assertJobReady(int jobId) throws Exception { in assertJobReady() argument 314 String state = getJobState(jobId); in assertJobReady() 318 void assertJobWaiting(int jobId) throws Exception { in assertJobWaiting() argument 319 String state = getJobState(jobId); in assertJobWaiting() 323 void assertJobNotReady(int jobId) throws Exception { in assertJobNotReady() argument 324 String state = getJobState(jobId); in assertJobNotReady() 399 void runSatisfiedJob(int jobId) throws Exception { in runSatisfiedJob() argument 400 runSatisfiedJob(jobId, null); in runSatisfiedJob() [all …]
|
D | TestAppInterface.java | 91 TestAppInterface(Context ctx, int jobId) { in TestAppInterface() argument 93 mJobId = jobId; in TestAppInterface() 257 void runSatisfiedJob(int jobId) throws Exception { in runSatisfiedJob() argument 264 + " -u " + UserHandle.myUserId() + " " + TEST_APP_PACKAGE + " " + jobId); in runSatisfiedJob() 396 final int jobId = intent.getIntExtra( 398 TestJobState jobState = mTestJobStates.get(jobId); 401 mTestJobStates.put(jobId, jobState); 419 boolean awaitJobStart(int jobId, long maxWait) throws Exception { in awaitJobStart() argument 422 TestJobState jobState = mTestJobStates.get(jobId); in awaitJobStart() 437 private String getJobState(int jobId) throws Exception { [all …]
|
/cts/tests/JobScheduler/JobTestApp/src/android/jobscheduler/cts/jobtestapp/ |
D | TestJobSchedulerReceiver.java | 94 final int jobId = intent.getIntExtra(EXTRA_JOB_ID_KEY, hashCode()); in onReceive() local 119 JobInfo.Builder jobBuilder = new JobInfo.Builder(jobId, jobServiceComponent) in onReceive() 135 Log.e(TAG, "Could not schedule job " + jobId); in onReceive() 137 Log.d(TAG, "Successfully scheduled job with id " + jobId); in onReceive() 141 scheduleJobResultIntent.putExtra(EXTRA_JOB_ID_KEY, jobId); in onReceive()
|
/cts/tests/JobScheduler/src/android/jobscheduler/ |
D | MockJobService.java | 695 public int jobId; field in MockJobService.TestEnvironment.Event 697 public Event(int event, int jobId) { in Event() argument 699 this.jobId = jobId; in Event() 709 return otherEvent.event == event && otherEvent.jobId == jobId; in equals() 716 return event + 31 * jobId; in hashCode() 721 return "Event{" + event + ", " + jobId + "}"; in toString()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | GarageModeChecker.java | 73 int jobId = jobInfo.getId(); in scheduleAnIdleJob() local 74 if (highestJobNumber < jobId) { in scheduleAnIdleJob() 75 highestJobNumber = jobId; in scheduleAnIdleJob()
|