Home | History | Annotate | Download | only in job

Lines Matching refs:uId

133      * still clean up. On reinstall the package will have a new uid.
145 Slog.d(TAG, "Removing jobs for uid: " + uidRemoved);
175 * @param uId The package identifier of the application this job is for.
178 public int schedule(JobInfo job, int uId) {
179 JobStatus jobStatus = new JobStatus(job, uId);
180 cancelJob(uId, job.getId());
186 public List<JobInfo> getPendingJobs(int uid) {
192 if (job.getUid() == uid) {
212 * Entry point from client to cancel all jobs originating from their uid.
215 * @param uid Uid to check against for removal of a job.
217 public void cancelJobsForUid(int uid) {
220 jobsForUid = mJobs.getJobsByUid(uid);
232 * @param uid Uid of the calling client.
235 public void cancelJob(int uid, int jobId) {
238 toCancel = mJobs.getJobByUidAndJobId(uid, jobId);
680 // Already running this job for this uId, skip.
707 * key is uid of the calling app; value is undetermined/true/false
711 // Enforce that only the app itself (or shared uid participant) can schedule a
714 private void enforceValidJobRequest(int uid, JobInfo job) {
718 ServiceInfo si = pm.getServiceInfo(service, 0, UserHandle.getUserId(uid));
722 if (si.applicationInfo.uid != uid) {
723 throw new IllegalArgumentException("uid " + uid +
735 private boolean canPersistJobs(int pid, int uid) {
740 Boolean cached = mPersistCache.get(uid);
748 android.Manifest.permission.RECEIVE_BOOT_COMPLETED, pid, uid);
750 mPersistCache.put(uid, canPersist);
763 final int uid = Binder.getCallingUid();
765 enforceValidJobRequest(uid, job);
767 if (!canPersistJobs(pid, uid)) {
775 return JobSchedulerService.this.schedule(job, uid);
783 final int uid = Binder.getCallingUid();
787 return JobSchedulerService.this.getPendingJobs(uid);
795 final int uid = Binder.getCallingUid();
799 JobSchedulerService.this.cancelJobsForUid(uid
807 final int uid = Binder.getCallingUid();
811 JobSchedulerService.this.cancelJob(uid, jobId);