Home
last modified time | relevance | path

Searched refs:getSourceUid (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DDeviceIdleJobsController.java126 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()
DTimeController.java117 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()
DConnectivityController.java340 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 …]
DBatteryController.java109 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()
DBackgroundJobsController.java209 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()
DStorageController.java175 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked()
199 js.getSourceUid()); in dumpControllerStateLocked()
DIdleController.java171 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked()
193 js.getSourceUid()); in dumpControllerStateLocked()
DContentObserverController.java393 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()
DFlexibilityController.java408 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()
DQuotaController.java621 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 …]
DPrefetchController.java335 mService.getUidBias(jobStatus.getSourceUid()) == JobInfo.BIAS_TOP_APP; in updateConstraintLocked()
656 UserHandle.formatUid(pw, js.getSourceUid()); in dumpControllerStateLocked()
DJobStatus.java1148 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/
DPendingJobQueue.java90 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()
DJobPackageTracker.java471 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()
DJobServiceContext.java406 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()
DJobSchedulerService.java1894 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 …]
DJobStore.java1831 final int sourceUid = job.getSourceUid(); in add()
1854 final int sourceUid = job.getSourceUid(); in remove()
1961 if (job.getUid() == job.getSourceUid()) { in countJobsForUid()
DJobConcurrencyManager.java1249 final int uid = job.getSourceUid(); in hasImmediacyPrivilegeLocked()
1525 jobStatus.getSourceUid(), jobStatus.getSourcePackageName())); in startJobLocked()
/frameworks/base/services/usage/java/com/android/server/usage/
DBroadcastEvent.java45 public int getSourceUid() { in getSourceUid() method in BroadcastEvent
DUserBroadcastEvents.java62 if (broadcastEvents.valueAt(j).getSourceUid() == uid) { in clear()
DBroadcastResponseStatsTracker.java453 final int sourceUid = broadcastEvent.getSourceUid(); in getOrCreateBroadcastResponseStats()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DPrefetchControllerTest.java231 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()
DConnectivityControllerTest.java448 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/
DJobSetTest.java139 str.append("(s=" + job.getSourceUid() + ", c=" + job.getUid() + "), "); in dump()
DPendingJobQueueTest.java710 final int uid = job.getSourceUid();
788 return "testJob " + job.getSourceUid() + "/" + job.getNamespace() + "/" + job.getJobId()

12