Searched refs:serviceContext (Results 1 – 3 of 3) sorted by relevance
122 final DpmMockContext serviceContext = mMockContext; in runAsCaller() local128 final long origId = serviceContext.binder.clearCallingIdentity(); in runAsCaller()130 serviceContext.binder.callingUid = callingUid; in runAsCaller()131 serviceContext.binder.callingPid = callingPid; in runAsCaller()132 serviceContext.binder.callingPermissions.put(callingUid, caller.permissions); in runAsCaller()137 serviceContext.binder.restoreCallingIdentity(origId); in runAsCaller()
6447 final DpmMockContext serviceContext = mContext; in verifyCanGetOwnerInstalledCaCerts() local6448 serviceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in verifyCanGetOwnerInstalledCaCerts()6483 runAsCaller(serviceContext, dpms, (dpm) -> { in verifyCanGetOwnerInstalledCaCerts()6520 final DpmMockContext serviceContext = mContext; in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval() local6521 serviceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()6544 runAsCaller(serviceContext, dpms, (dpm) -> { in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()
1408 JobServiceContext serviceContext = mActiveServices.get(i); in stopNonReadyActiveJobsLocked() local1409 final JobStatus running = serviceContext.getRunningJobLocked(); in stopNonReadyActiveJobsLocked()1416 serviceContext.cancelExecutingJobLocked( in stopNonReadyActiveJobsLocked()1421 serviceContext.cancelExecutingJobLocked( in stopNonReadyActiveJobsLocked()1430 serviceContext.cancelExecutingJobLocked(restriction.getStopReason(), in stopNonReadyActiveJobsLocked()