/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/ |
D | DeviceIdleJobsController.java | 126 jobStatus.isRequestedExpeditedJob() || mForegroundUids.get(jobStatus.getSourceUid()); 201 UserHandle.getAppId(job.getSourceUid())) >= 0; in isWhitelistedLocked() 209 UserHandle.getAppId(job.getSourceUid())); in isTempWhitelistedLocked() 214 && (mForegroundUids.get(task.getSourceUid()) || isTempWhitelistedLocked(task)); in updateTaskStateLocked() 245 UserHandle.formatUid(pw, jobStatus.getSourceUid()); in dumpControllerStateLocked() 274 proto.write(TrackedJob.SOURCE_UID, jobStatus.getSourceUid()); in dumpControllerStateLocked()
|
D | TimeController.java | 117 mService.deriveWorkSource(job.getSourceUid(), job.getSourcePackageName()); in maybeStartTrackingJobLocked() 167 mService.deriveWorkSource(job.getSourceUid(), job.getSourcePackageName())); in evaluateStateLocked() 182 mService.deriveWorkSource(job.getSourceUid(), job.getSourcePackageName())); in evaluateStateLocked() 249 nextExpiryUid = job.getSourceUid(); in checkExpiredDeadlinesAndResetAlarm() 308 nextDelayUid = job.getSourceUid(); in checkExpiredDelaysAndResetAlarm() 443 UserHandle.formatUid(pw, ts.getSourceUid()); in dumpControllerStateLocked()
|
D | ConnectivityController.java | 340 getUidStats(jobStatus.getSourceUid(), jobStatus.getSourcePackageName(), false); in maybeStartTrackingJobLocked() 344 ArraySet<JobStatus> jobs = mTrackedJobs.get(jobStatus.getSourceUid()); in maybeStartTrackingJobLocked() 347 mTrackedJobs.put(jobStatus.getSourceUid(), jobs); in maybeStartTrackingJobLocked() 360 getUidStats(jobStatus.getSourceUid(), jobStatus.getSourcePackageName(), true); in prepareForExecutionLocked() 370 getUidStats(jobStatus.getSourceUid(), jobStatus.getSourcePackageName(), true); in unprepareFromExecutionLocked() 380 ArraySet<JobStatus> jobs = mTrackedJobs.get(jobStatus.getSourceUid()); in maybeStopTrackingJobLocked() 385 getUidStats(jobStatus.getSourceUid(), jobStatus.getSourcePackageName(), true); in maybeStopTrackingJobLocked() 463 final int uid = job.getSourceUid(); in requestStandbyExceptionLocked() 501 getUidStats(jobStatus.getSourceUid(), jobStatus.getSourcePackageName(), true); in evaluateStateLocked() 558 final int uid = job.getSourceUid(); in maybeRevokeStandbyExceptionLocked() [all …]
|
D | BatteryController.java | 109 final int uid = jobStatus.getSourceUid(); in prepareForExecutionLocked() 160 return mService.getUidBias(taskStatus.getSourceUid()) == JobInfo.BIAS_TOP_APP in hasTopExemptionLocked() 251 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 275 js.getSourceUid()); in dumpControllerStateLocked()
|
D | BackgroundJobsController.java | 209 final int uid = jobStatus.getSourceUid(); in dumpControllerStateLocked() 251 final int sourceUid = jobStatus.getSourceUid(); in dumpControllerStateLocked() 336 final int uid = jobStatus.getSourceUid(); in updateSingleJobRestrictionLocked() 340 isPackageStoppedLocked(jobStatus.getSourcePackageName(), jobStatus.getSourceUid()); in updateSingleJobRestrictionLocked()
|
D | StorageController.java | 175 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 199 js.getSourceUid()); in dumpControllerStateLocked()
|
D | IdleController.java | 171 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 193 js.getSourceUid()); in dumpControllerStateLocked()
|
D | ContentObserverController.java | 393 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked() 436 UserHandle.formatUid(pw, inst.mJobStatus.getSourceUid()); in dumpControllerStateLocked() 488 js.getSourceUid()); in dumpControllerStateLocked() 533 inst.mJobStatus.getSourceUid()); in dumpControllerStateLocked()
|
D | FlexibilityController.java | 408 mJobScoreTrackers.get(jobStatus.getSourceUid(), jobStatus.getSourcePackageName()); in prepareForExecutionLocked() 411 mJobScoreTrackers.add(jobStatus.getSourceUid(), jobStatus.getSourcePackageName(), in prepareForExecutionLocked() 425 mJobScoreTrackers.get(jobStatus.getSourceUid(), jobStatus.getSourcePackageName()); in unprepareFromExecutionLocked() 456 if ((js.getSourceUid() == uid && js.getSourcePackageName().equals(packageName)) in onAppRemovedLocked() 476 if (UserHandle.getUserId(js.getSourceUid()) == userId in onUserRemovedLocked() 494 || mService.getUidBias(js.getSourceUid()) == JobInfo.BIAS_TOP_APP in isFlexibilitySatisfiedLocked() 496 || (mService.getUidBias(js.getSourceUid()) >= JobInfo.BIAS_BOUND_FOREGROUND_SERVICE in isFlexibilitySatisfiedLocked() 689 getScoreLocked(js.getSourceUid(), js.getSourcePackageName(), nowElapsed); in getLifeCycleEndElapsedLocked() 940 UserHandle.formatUid(pw, js.getSourceUid()); in dump()
|
D | QuotaController.java | 621 final int uid = jobStatus.getSourceUid(); in prepareForExecutionLocked() 790 final boolean isInPrivilegedState = mTopAppCache.get(jobStatus.getSourceUid()) in getMaxJobExecutionTimeMsLocked() 792 || isUidInForeground(jobStatus.getSourceUid()); in getMaxJobExecutionTimeMsLocked() 811 if (mTopAppCache.get(jobStatus.getSourceUid()) || isTopStartedJobLocked(jobStatus)) { in getMaxJobExecutionTimeMsLocked() 816 if (isUidInForeground(jobStatus.getSourceUid())) { in getMaxJobExecutionTimeMsLocked() 848 if (isTopStartedJobLocked(jobStatus) || isUidInForeground(jobStatus.getSourceUid())) { in isWithinEJQuotaLocked() 853 if (hasTempAllowlistExemptionLocked(jobStatus.getSourceUid(), in isWithinEJQuotaLocked() 858 final long topAppGracePeriodEndElapsed = mTopAppGraceCache.get(jobStatus.getSourceUid()); in isWithinEJQuotaLocked() 859 final boolean hasTopAppExemption = mTopAppCache.get(jobStatus.getSourceUid()) in isWithinEJQuotaLocked() 894 || isUidInForeground(jobStatus.getSourceUid()) [all …]
|
D | PrefetchController.java | 335 mService.getUidBias(jobStatus.getSourceUid()) == JobInfo.BIAS_TOP_APP; in updateConstraintLocked() 656 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked()
|
D | JobStatus.java | 1148 public int getSourceUid() { in getSourceUid() method in JobStatus 1491 if (uidForegroundChecker.test(getSourceUid())) { in maybeAddForegroundExemption() 2397 sb.append(getSourceUid()); in toString() 2693 pw.print("Source: uid="); UserHandle.formatUid(pw, getSourceUid()); in dump() 3012 proto.write(JobStatusDumpProto.SOURCE_UID, getSourceUid()); in dump()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/ |
D | PendingJobQueue.java | 90 final AppJobQueue ajq = getAppJobQueue(job.getSourceUid(), true); in add() 104 List<JobStatus> appJobs = jobsByUid.get(job.getSourceUid()); in addAll() 107 jobsByUid.put(job.getSourceUid(), appJobs); in addAll() 131 final AppJobQueue ajq = mCurrentQueues.get(job.getSourceUid()); in contains() 206 final AppJobQueue ajq = getAppJobQueue(job.getSourceUid(), false); in remove() 218 mCurrentQueues.remove(job.getSourceUid()); in remove()
|
D | JobPackageTracker.java | 471 mCurDataSet.incPending(job.getSourceUid(), job.getSourcePackageName(), now); in notePending() 476 mCurDataSet.decPending(job.getSourceUid(), job.getSourcePackageName(), now); in noteNonpending() 485 mCurDataSet.incActiveTop(job.getSourceUid(), job.getSourcePackageName(), now); in noteActive() 487 mCurDataSet.incActive(job.getSourceUid(), job.getSourcePackageName(), now); in noteActive() 490 job.getSourceUid(), job.getBatteryName(), job.getJobId(), 0, null); in noteActive() 496 mCurDataSet.decActiveTop(job.getSourceUid(), job.getSourcePackageName(), now, in noteInactive() 499 mCurDataSet.decActive(job.getSourceUid(), job.getSourcePackageName(), now, stopReason); in noteInactive() 503 job.getSourceUid(), job.getBatteryName(), job.getJobId(), stopReason, debugReason); in noteInactive() 516 final int uid = job.getSourceUid(); in getLoadFactor()
|
D | JobServiceContext.java | 406 mService.deriveWorkSource(job.getSourceUid(), job.getSourcePackageName())); in executeRunnableJob() 467 final int sourceUid = job.getSourceUid(); in executeRunnableJob() 551 mBatteryStats.noteJobStart(job.getBatteryName(), job.getSourceUid()); in executeRunnableJob() 1530 final int sourceUid = completedJob.getSourceUid(); in closeAndCleanupJobLocked() 1578 TrafficStats.getUidRxBytes(completedJob.getSourceUid()) in closeAndCleanupJobLocked() 1580 TrafficStats.getUidTxBytes(completedJob.getSourceUid()) in closeAndCleanupJobLocked() 1604 mBatteryStats.noteJobFinish(mRunningJob.getBatteryName(), mRunningJob.getSourceUid(), in closeAndCleanupJobLocked()
|
D | JobSchedulerService.java | 1894 final int sourceUid = jobStatus.getSourceUid(); 2083 final boolean backingUp = mBackingUpUids.get(job.getSourceUid()); 2344 final int sourceUid = cancelled.getSourceUid(); 4009 final boolean backingUp = mBackingUpUids.get(job.getSourceUid()); 4088 final boolean backingUp = mBackingUpUids.get(job.getSourceUid()); 4123 job.getSourceUid(), job.getSourcePackageName())) { 4170 job.getSourceUid(), job.getSourcePackageName()) 4228 int override = mUidBiasOverride.get(job.getSourceUid(), 0); 4475 if (job.getSourceUid() == Process.SYSTEM_UID 5732 if (mBackingUpUids.get(js.getSourceUid())) { [all …]
|
D | JobStore.java | 1831 final int sourceUid = job.getSourceUid(); in add() 1854 final int sourceUid = job.getSourceUid(); in remove() 1961 if (job.getUid() == job.getSourceUid()) { in countJobsForUid()
|
D | JobConcurrencyManager.java | 1249 final int uid = job.getSourceUid(); in hasImmediacyPrivilegeLocked() 1525 jobStatus.getSourceUid(), jobStatus.getSourcePackageName())); in startJobLocked()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | BroadcastEvent.java | 45 public int getSourceUid() { in getSourceUid() method in BroadcastEvent
|
D | UserBroadcastEvents.java | 62 if (broadcastEvents.valueAt(j).getSourceUid() == uid) { in clear()
|
D | BroadcastResponseStatsTracker.java | 453 final int sourceUid = broadcastEvent.getSourceUid(); in getOrCreateBroadcastResponseStats()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/ |
D | PrefetchControllerTest.java | 231 ArraySet<String> pkgs = mPackagesForUid.get(job.getSourceUid()); in trackJobs() 234 mPackagesForUid.put(job.getSourceUid(), pkgs); in trackJobs() 330 final int uid = jobPending.getSourceUid(); in testConstraintSatisfiedWhenTop()
|
D | ConnectivityControllerTest.java | 448 controller.onAppRemovedLocked(job.getSourcePackageName(), job.getSourceUid()); in testMeteredAllowed() 455 controller.onAppRemovedLocked(job.getSourcePackageName(), job.getSourceUid()); in testMeteredAllowed()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobSetTest.java | 139 str.append("(s=" + job.getSourceUid() + ", c=" + job.getUid() + "), "); in dump()
|
D | PendingJobQueueTest.java | 710 final int uid = job.getSourceUid(); 788 return "testJob " + job.getSourceUid() + "/" + job.getNamespace() + "/" + job.getJobId()
|