/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/ |
D | JsonWebKeyUnittest.cpp | 66 const String8 js( in TEST_F() local 77 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 82 const String8 js( in TEST_F() local 99 EXPECT_FALSE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 104 const String8 js( in TEST_F() local 121 EXPECT_TRUE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 129 const String8 js( in TEST_F() local 146 EXPECT_TRUE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() 154 const String8 js( in TEST_F() local 184 EXPECT_TRUE(jwk->extractKeysFromJsonWebKeySet(js, &keys)); in TEST_F() [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | FlexibilityController.java | 210 JobStatus js = jobs.valueAt(i); 211 if (!js.hasFlexibilityConstraint()) { 214 mFlexibilityTracker.calculateNumDroppedConstraints(js, nowElapsed); 215 mFlexibilityAlarmQueue.scheduleDropNumConstraintsAlarm(js, nowElapsed); 379 public void maybeStartTrackingJobLocked(JobStatus js, JobStatus lastJob) { in maybeStartTrackingJobLocked() argument 380 if (js.hasFlexibilityConstraint()) { in maybeStartTrackingJobLocked() 383 js.setFlexibilityConstraintSatisfied(nowElapsed, true); in maybeStartTrackingJobLocked() 386 js.setNumAppliedFlexibleConstraints( in maybeStartTrackingJobLocked() 387 Integer.bitCount(getRelevantAppliedConstraintsLocked(js))); in maybeStartTrackingJobLocked() 388 js.setFlexibilityConstraintSatisfied(nowElapsed, isFlexibilitySatisfiedLocked(js)); in maybeStartTrackingJobLocked() [all …]
|
D | StorageController.java | 168 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 169 if (!predicate.test(js)) { in dumpControllerStateLocked() 173 js.printUniqueId(pw); in dumpControllerStateLocked() 175 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 192 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 193 if (!predicate.test(js)) { in dumpControllerStateLocked() 197 js.writeToShortProto(proto, StateControllerProto.StorageController.TrackedJob.INFO); in dumpControllerStateLocked() 199 js.getSourceUid()); in dumpControllerStateLocked()
|
D | IdleController.java | 164 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 165 if (!predicate.test(js)) { in dumpControllerStateLocked() 169 js.printUniqueId(pw); in dumpControllerStateLocked() 171 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 186 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 187 if (!predicate.test(js)) { in dumpControllerStateLocked() 191 js.writeToShortProto(proto, StateControllerProto.IdleController.TrackedJob.INFO); in dumpControllerStateLocked() 193 js.getSourceUid()); in dumpControllerStateLocked()
|
D | BatteryController.java | 244 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 245 if (!predicate.test(js)) { in dumpControllerStateLocked() 249 js.printUniqueId(pw); in dumpControllerStateLocked() 251 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 268 final JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 269 if (!predicate.test(js)) { in dumpControllerStateLocked() 273 js.writeToShortProto(proto, StateControllerProto.BatteryController.TrackedJob.INFO); in dumpControllerStateLocked() 275 js.getSourceUid()); in dumpControllerStateLocked()
|
D | PrefetchController.java | 248 final JobStatus js = jobs.valueAt(i); in maybeUpdateConstraintForPkgLocked() local 249 changed |= updateConstraintLocked(js, now, nowElapsed); in maybeUpdateConstraintForPkgLocked() 271 final JobStatus js = jobs.valueAt(i); in maybeUpdateConstraintForUid() local 272 if (updateConstraintLocked(js, now, nowElapsed)) { in maybeUpdateConstraintForUid() 273 changedJobs.add(js); in maybeUpdateConstraintForUid() 649 final JobStatus js = jobs.valueAt(j); in dumpControllerStateLocked() local 650 if (!predicate.test(js)) { in dumpControllerStateLocked() 654 js.printUniqueId(pw); in dumpControllerStateLocked() 656 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked()
|
D | ContentObserverController.java | 386 JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 387 if (!predicate.test(js)) { in dumpControllerStateLocked() 391 js.printUniqueId(pw); in dumpControllerStateLocked() 393 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 479 JobStatus js = mTrackedTasks.valueAt(i); in dumpControllerStateLocked() local 480 if (!predicate.test(js)) { in dumpControllerStateLocked() 485 js.writeToShortProto(proto, in dumpControllerStateLocked() 488 js.getSourceUid()); in dumpControllerStateLocked()
|
D | QuotaController.java | 1713 final JobStatus js = jobs.valueAt(i); in maybeUpdateConstraintForPkgLocked() local 1715 js.isRequestedExpeditedJob() && isWithinEJQuotaLocked(js); in maybeUpdateConstraintForPkgLocked() 1716 if (isTopStartedJobLocked(js)) { in maybeUpdateConstraintForPkgLocked() 1719 if (js.setQuotaConstraintSatisfied(nowElapsed, true)) { in maybeUpdateConstraintForPkgLocked() 1720 changedJobs.add(js); in maybeUpdateConstraintForPkgLocked() 1723 && realStandbyBucket == js.getEffectiveStandbyBucket() in maybeUpdateConstraintForPkgLocked() 1724 && !(Flags.countQuotaFix() && mService.isCurrentlyRunningLocked(js))) { in maybeUpdateConstraintForPkgLocked() 1728 if (setConstraintSatisfied(js, nowElapsed, realInQuota, isWithinEJQuota)) { in maybeUpdateConstraintForPkgLocked() 1729 changedJobs.add(js); in maybeUpdateConstraintForPkgLocked() 1733 if (setConstraintSatisfied(js, nowElapsed, in maybeUpdateConstraintForPkgLocked() [all …]
|
D | ConnectivityController.java | 1531 final JobStatus js = jobs.valueAt(i); in updateTrackedJobsLocked() local 1533 final Network net = getNetworkLocked(js); in updateTrackedJobsLocked() 1540 if (match || !Objects.equals(js.network, net)) { in updateTrackedJobsLocked() 1541 changed |= updateConstraintsSatisfied(js, nowElapsed, net, getNetworkMetadata(net)); in updateTrackedJobsLocked() 1938 final JobStatus js = jobs.valueAt(j); local 1939 if (!mSystemDefaultNetwork.equals(js.network)) { 1941 getNetworkCapabilities(js.network); 1945 includeInProcessing.put(js.network, Boolean.FALSE); 1948 if (includeInProcessing.containsKey(js.network)) { 1949 if (!includeInProcessing.get(js.network)) { [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | FlexibilityControllerTest.java | 280 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus() local 282 js.enqueueTime = FROZEN_TIME; in createJobStatus() 283 js.setStandbyBucket(ACTIVE_INDEX); in createJobStatus() 284 if (js.hasFlexibilityConstraint()) { in createJobStatus() 285 js.setNumAppliedFlexibleConstraints(Integer.bitCount( in createJobStatus() 286 mFlexibilityController.getRelevantAppliedConstraintsLocked(js))); in createJobStatus() 288 return js; in createJobStatus() 409 JobStatus js = createJobStatus("testDefaultFlexibilityConfig", createJob(0)); in testOnConstantsUpdated_AppliedConstraints() local 411 assertTrue(mFlexibilityController.isFlexibilitySatisfiedLocked(js)); in testOnConstantsUpdated_AppliedConstraints() 413 assertFalse(mFlexibilityController.isFlexibilitySatisfiedLocked(js)); in testOnConstantsUpdated_AppliedConstraints() [all …]
|
D | PrefetchControllerTest.java | 193 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus() local 195 js.serviceProcessName = "testProcess"; in createJobStatus() 196 js.setStandbyBucket(FREQUENT_INDEX); in createJobStatus() 198 js.setDeviceNotDozingConstraintSatisfied(/* nowElapsed */ sElapsedRealtimeClock.millis(), in createJobStatus() 200 js.setBackgroundNotRestrictedConstraintSatisfied( in createJobStatus() 202 js.setQuotaConstraintSatisfied(sElapsedRealtimeClock.millis(), true); in createJobStatus() 203 js.setExpeditedJobQuotaApproved(sElapsedRealtimeClock.millis(), true); in createJobStatus() 204 js.setFlexibilityConstraintSatisfied(sElapsedRealtimeClock.millis(), true); in createJobStatus() 205 return js; in createJobStatus()
|
D | BackgroundJobsControllerTest.java | 204 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus() local 206 js.serviceProcessName = "testProcess"; in createJobStatus() 208 js.setStandbyBucket(FREQUENT_INDEX); in createJobStatus() 209 return js; in createJobStatus()
|
D | BatteryControllerTest.java | 184 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus() local 186 js.serviceProcessName = "testProcess"; in createJobStatus() 188 js.setStandbyBucket(FREQUENT_INDEX); in createJobStatus() 189 return js; in createJobStatus()
|
D | QuotaControllerTest.java | 403 JobStatus js = JobStatus.createFromJobInfo( in createJobStatus() local 405 js.serviceProcessName = "testProcess"; in createJobStatus() 407 js.setStandbyBucket(FREQUENT_INDEX); in createJobStatus() 409 js.setDeviceNotDozingConstraintSatisfied(/* nowElapsed */ sElapsedRealtimeClock.millis(), in createJobStatus() 411 js.setBackgroundNotRestrictedConstraintSatisfied( in createJobStatus() 413 js.setFlexibilityConstraintSatisfied(sElapsedRealtimeClock.millis(), true); in createJobStatus() 414 return js; in createJobStatus() 2572 JobStatus js = createExpeditedJobStatus("testIsWithinEJQuotaLocked_NeverApp", 1); in testIsWithinEJQuotaLocked_NeverApp() local 2573 setStandbyBucket(NEVER_INDEX, js); in testIsWithinEJQuotaLocked_NeverApp() 2575 assertFalse(mQuotaController.isWithinEJQuotaLocked(js)); in testIsWithinEJQuotaLocked_NeverApp() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | CreateJavaOutputStreamAdaptor.cpp | 20 JavaInputStreamAdaptor(JavaVM* jvm, jobject js, jbyteArray ar, jint capacity, in JavaInputStreamAdaptor() argument 23 , fJavaInputStream(js) in JavaInputStreamAdaptor() 31 static JavaInputStreamAdaptor* Create(JNIEnv* env, jobject js, jbyteArray ar, in Create() argument 36 js = env->NewGlobalRef(js); in Create() 37 if (!js) { in Create() 43 env->DeleteGlobalRef(js); in Create() 48 return new JavaInputStreamAdaptor(jvm, js, ar, capacity, swallowExceptions); in Create()
|
/frameworks/base/services/core/java/com/android/server/camera/ |
D | CameraStatsJobService.java | 64 JobScheduler js = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() local 65 if (js == null) { in schedule() 69 js.schedule(new JobInfo.Builder(CAMERA_REPORTING_JOB_ID, sCameraStatsJobServiceName) in schedule()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ZramWriteback.java | 127 JobScheduler js = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedNextWriteback() local 129 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in schedNextWriteback() 174 JobScheduler js = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in scheduleZramWriteback() local 178 js.schedule(new JobInfo.Builder(MARK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback() 185 js.schedule(new JobInfo.Builder(WRITEBACK_IDLE_JOB_ID, sZramWriteback) in scheduleZramWriteback()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | FullBackupJob.java | 52 JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() 70 js.schedule(builder.build()); in schedule() 74 JobScheduler js = (JobScheduler) ctx.getSystemService( in cancel() local 76 js.cancel(getJobIdForUserId(userId)); in cancel()
|
D | KeyValueBackupJob.java | 110 JobScheduler js = (JobScheduler) ctx.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() local 111 js.schedule(builder.build()); in schedule() 120 JobScheduler js = (JobScheduler) ctx.getSystemService( in cancel() local 122 js.cancel(getJobIdForUserId(userId)); in cancel()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobStoreTest.java | 259 JobStatus js = JobStatus.createFromJobInfo(b.build(), SOME_UID, null, -1, null, null); in testDynamicConstraintsNotPersisted() local 260 js.addDynamicConstraints(JobStatus.CONSTRAINT_BATTERY_NOT_LOW in testDynamicConstraintsNotPersisted() 264 assertTrue(js.hasBatteryNotLowConstraint()); in testDynamicConstraintsNotPersisted() 265 assertTrue(js.hasChargingConstraint()); in testDynamicConstraintsNotPersisted() 266 assertTrue(js.hasIdleConstraint()); in testDynamicConstraintsNotPersisted() 267 assertTrue(js.hasStorageNotLowConstraint()); in testDynamicConstraintsNotPersisted() 268 mTaskStoreUnderTest.add(js); in testDynamicConstraintsNotPersisted() 517 final JobStatus js = new JobStatus(b.build(), SOME_UID, "somePackage", in testMassivePeriodClampedOnRead() local 524 mTaskStoreUnderTest.add(js); in testMassivePeriodClampedOnRead() 548 final JobStatus js = JobStatus.createFromJobInfo(b.build(), SOME_UID, null, -1, null, null); in testBiasPersisted() local [all …]
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | JobConcurrencyManager.java | 708 JobStatus js = mRunningJobs.valueAt(i); in isSimilarJobRunningLocked() local 709 if (job.matches(js.getUid(), js.getNamespace(), js.getJobId())) { in isSimilarJobRunningLocked() 843 final JobStatus js = jsc.getRunningJobLocked(); in prepareForAssignmentDeterminationLocked() local 852 if (js != null) { in prepareForAssignmentDeterminationLocked() 855 if (js.startedWithImmediacyPrivilege) { in prepareForAssignmentDeterminationLocked() 858 if (js.shouldTreatAsUserInitiatedJob()) { in prepareForAssignmentDeterminationLocked() 860 } else if (js.startedAsExpeditedJob) { in prepareForAssignmentDeterminationLocked() 1179 final JobStatus js = assignment.context.getRunningJobLocked(); in carryOutAssignmentChangesLocked() local 1180 if (js != null) { in carryOutAssignmentChangesLocked() 1182 Slog.d(TAG, "preempting job: " + js); in carryOutAssignmentChangesLocked() [all …]
|
D | JobSchedulerService.java | 2524 JobStatus js = jobs.get(i); 2528 if (js.getStandbyBucket() == RESTRICTED_INDEX) { 2529 mRestrictiveControllers.get(j).startTrackingRestrictedJobLocked(js); 2531 mRestrictiveControllers.get(j).stopTrackingRestrictedJobLocked(js); 3352 JobStatus js = (JobStatus) message.obj; 3353 if (js != null) { 3354 if (isReadyToBeExecutedLocked(js)) { 3355 mJobPackageTracker.notePending(js); 3356 mPendingJobQueue.add(js); 3358 mChangedJobList.remove(js); [all …]
|
D | JobStore.java | 1151 JobStatus js = jobs.get(i); in run() local 1153 js.getUid(), js.getNamespace(), js.getJobId()); in run() 1162 js.prepareLocked(); in run() 1163 js.enqueueTime = nowElapsed; in run() 1164 this.jobSet.add(js); in run() 1167 if (js.getUid() == Process.SYSTEM_UID) { in run() 1169 if (isSyncJob(js)) { in run() 1518 JobStatus js = new JobStatus( in restoreJobFromXml() local 1526 js.enqueueWorkLocked(jobWorkItems.get(i)); in restoreJobFromXml() 1529 return js; in restoreJobFromXml()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | DynamicCodeLoggingService.java | 84 JobScheduler js = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() local 85 js.schedule(new JobInfo.Builder(IDLE_LOGGING_JOB_ID, serviceName) in schedule() 90 js.schedule(new JobInfo.Builder(AUDIT_WATCHING_JOB_ID, serviceName) in schedule()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DiskStatsLoggingService.java | 99 JobScheduler js = (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE); in schedule() local 101 js.schedule(new JobInfo.Builder(JOB_DISKSTATS_LOGGING, sDiskStatsLoggingService) in schedule()
|