Home
last modified time | relevance | path

Searched refs:serviceContext (Results 1 – 3 of 3) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmTestBase.java122 final DpmMockContext serviceContext = mMockContext; in runAsCaller() local
128 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()
H A DDevicePolicyManagerTest.java6447 final DpmMockContext serviceContext = mContext; in verifyCanGetOwnerInstalledCaCerts() local
6448 serviceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in verifyCanGetOwnerInstalledCaCerts()
6483 runAsCaller(serviceContext, dpms, (dpm) -> { in verifyCanGetOwnerInstalledCaCerts()
6520 final DpmMockContext serviceContext = mContext; in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval() local
6521 serviceContext.binder.callingUid = DpmMockContext.SYSTEM_UID; in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()
6544 runAsCaller(serviceContext, dpms, (dpm) -> { in verifyCantGetOwnerInstalledCaCertsProfileOwnerRemoval()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobConcurrencyManager.java1408 JobServiceContext serviceContext = mActiveServices.get(i); in stopNonReadyActiveJobsLocked() local
1409 final JobStatus running = serviceContext.getRunningJobLocked(); in stopNonReadyActiveJobsLocked()
1416 serviceContext.cancelExecutingJobLocked( in stopNonReadyActiveJobsLocked()
1421 serviceContext.cancelExecutingJobLocked( in stopNonReadyActiveJobsLocked()
1430 serviceContext.cancelExecutingJobLocked(restriction.getStopReason(), in stopNonReadyActiveJobsLocked()