Home
last modified time | relevance | path

Searched refs:callingPid (Results 1 – 25 of 76) sorted by relevance

1234

/frameworks/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java138 int callingPid, int callingUid) { in setCallingPidUidForRemoteAnimationAdapter() argument
143 if (callingPid == Process.myPid()) { in setCallingPidUidForRemoteAnimationAdapter()
147 adapter.setCallingPidUid(callingPid, callingUid); in setCallingPidUidForRemoteAnimationAdapter()
193 ActivityOptions options, int callingPid, int callingUid) { in checkPermissions() argument
199 START_TASKS_FROM_RECENTS, callingPid, callingUid); in checkPermissions()
202 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
213 && !supervisor.isCallerAllowedToLaunchOnDisplay(callingPid, callingUid, in checkPermissions()
216 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
228 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
237 CONTROL_REMOTE_APP_TRANSITION_ANIMATIONS, callingPid, callingUid) in checkPermissions()
[all …]
DAppTaskImpl.java98 final int callingPid = Binder.getCallingPid(); in moveToFront() local
109 if (!mService.checkAppSwitchAllowedLocked(callingPid, callingUid, -1, -1, in moveToFront()
119 if (starter.shouldAbortBackgroundActivityStart(callingUid, callingPid, in moveToFront()
125 mService.mStackSupervisor.startActivityFromRecents(callingPid, in moveToFront()
DActivityStarter.java319 int callingPid = DEFAULT_CALLING_PID; field in ActivityStarter.Request
375 callingPid = DEFAULT_CALLING_PID; in reset()
414 callingPid = request.callingPid; in set()
530 mRequest.resultWho, mRequest.requestCode, mRequest.callingPid, in execute()
571 IBinder resultTo, String resultWho, int requestCode, int callingPid, int callingUid, in startActivity() argument
587 callingPid, callingUid, callingPackage, realCallingPid, realCallingUid, startFlags, in startActivity()
616 IBinder resultTo, String resultWho, int requestCode, int callingPid, int callingUid, in startActivity() argument
632 callingPid = callerApp.getPid(); in startActivity()
636 + " (pid=" + callingPid + ") when starting: " in startActivity()
763 requestCode, callingPid, callingUid, callingPackage, ignoreTargetSecurity, in startActivity()
[all …]
DActivityStackSupervisor.java357 boolean canPlaceEntityOnDisplay(int displayId, int callingPid, int callingUid, in canPlaceEntityOnDisplay() argument
367 if (!isCallerAllowedToLaunchOnDisplay(callingPid, callingUid, displayId, activityInfo)) { in canPlaceEntityOnDisplay()
1003 int requestCode, int callingPid, int callingUid, String callingPackage, in checkStartAnyActivityPermission() argument
1009 final int startAnyPerm = mService.checkPermission(START_ANY_ACTIVITY, callingPid, in checkStartAnyActivityPermission()
1018 aInfo, callingPackage, callingPid, callingUid, ignoreTargetSecurity); in checkStartAnyActivityPermission()
1020 intent.getAction(), callingPackage, callingPid, callingUid); in checkStartAnyActivityPermission()
1031 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1036 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1041 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1051 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
[all …]
DActivityStartController.java366 int callingPid; in startActivities() local
368 callingPid = -1; in startActivities()
370 callingPid = realCallingPid; in startActivities()
373 callingPid = callingUid = -1; in startActivities()
414 .setCallingPid(callingPid) in startActivities()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationDelegate.java26 void onClearAll(int callingUid, int callingPid, int userId); in onClearAll() argument
27 void onNotificationClick(int callingUid, int callingPid, String key, in onNotificationClick() argument
29 void onNotificationActionClick(int callingUid, int callingPid, String key, int actionIndex, in onNotificationActionClick() argument
31 void onNotificationClear(int callingUid, int callingPid, in onNotificationClear() argument
36 void onNotificationError(int callingUid, int callingPid, in onNotificationError() argument
/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp423 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients) { in getClientForResource_l() argument
428 if (getLowestPriorityBiggestClient_l(callingPid, res->mType, &client)) { in getClientForResource_l()
434 int callingPid, const Vector<MediaResource> &resources) { in reclaimResource() argument
436 callingPid, getString(resources).string()); in reclaimResource()
442 if (!mProcessInfo->isValidPid(callingPid)) { in reclaimResource()
466 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) { in reclaimResource()
471 if (!getAllClients_l(callingPid, MediaResource::kNonSecureCodec, &clients)) { in reclaimResource()
478 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) { in reclaimResource()
484 getClientForResource_l(callingPid, drmSession, &clients); in reclaimResource()
492 getClientForResource_l(callingPid, graphicMemory, &clients); in reclaimResource()
[all …]
DResourceManagerService.h89 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources);
102 bool getAllClients_l(int callingPid, MediaResource::Type type,
108 bool getLowestPriorityBiggestClient_l(int callingPid, MediaResource::Type type,
119 bool isCallingPriorityHigher_l(int callingPid, int pid);
124 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients);
/frameworks/av/services/camera/libcameraservice/api1/
DCameraClient.cpp45 int callingPid = CameraThreadState::getCallingPid(); in CameraClient() local
46 LOG1("CameraClient::CameraClient E (pid %d, id %d)", callingPid, cameraId); in CameraClient()
58 LOG1("CameraClient::CameraClient X (pid %d, id %d)", callingPid, cameraId); in CameraClient()
63 int callingPid = CameraThreadState::getCallingPid(); in initialize() local
66 LOG1("CameraClient::initialize E (pid %d, id %d)", callingPid, mCameraId); in initialize()
96 LOG1("CameraClient::initialize X (pid %d, id %d)", callingPid, mCameraId); in initialize()
104 int callingPid = CameraThreadState::getCallingPid(); in ~CameraClient() local
105 LOG1("CameraClient::~CameraClient E (pid %d, this %p)", callingPid, this); in ~CameraClient()
108 LOG1("CameraClient::~CameraClient X (pid %d, this %p)", callingPid, this); in ~CameraClient()
147 int callingPid = CameraThreadState::getCallingPid(); in checkPid() local
[all …]
/frameworks/base/telephony/common/android/telephony/
DLocationAccessPolicy.java68 public final int callingPid; field in LocationAccessPolicy.LocationPermissionQuery
75 int callingUid, int callingPid, int minSdkVersionForCoarse, in LocationPermissionQuery() argument
80 this.callingPid = callingPid; in LocationPermissionQuery()
122 public Builder setCallingPid(int callingPid) { in setCallingPid() argument
123 mCallingPid = callingPid; in setCallingPid()
205 boolean hasManifestPermission = checkManifestPermission(context, query.callingPid, in checkAppLocationPermissionHelper()
264 if (!checkSystemLocationAccess(context, query.callingUid, query.callingPid)) { in checkLocationPermission()
/frameworks/av/media/utils/
DProcessInfo.cpp58 int callingPid = IPCThreadState::self()->getCallingPid(); in isValidPid() local
61 return (callingPid == getpid()) || (callingPid == pid) || (callingUid == AID_MEDIA); in isValidPid()
/frameworks/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp71 int callingPid = CameraThreadState::getCallingPid(); in checkPid() local
72 if (callingPid == TClientBase::mClientPid) return NO_ERROR; in checkPid()
75 " (old pid %d, new pid %d)", checkLocation, TClientBase::mClientPid, callingPid); in checkPid()
186 int callingPid = CameraThreadState::getCallingPid(); in disconnect() local
187 if (callingPid != TClientBase::mClientPid && in disconnect()
188 callingPid != TClientBase::mServicePid) return res; in disconnect()
/frameworks/base/core/java/android/content/pm/
DShortcutServiceInternal.java49 int userId, int callingPid, int callingUid); in getShortcuts() argument
62 int callingPid, int callingUid); in createShortcutIntents() argument
74 @NonNull String callingPackage, int callingPid, int callingUid); in hasShortcutHostPermission() argument
/frameworks/native/cmds/servicemanager/
DAccess.cpp104 pid_t callingPid = ipc->getCallingPid(); in getCallingContext() local
107 .debugPid = callingPid, in getCallingContext()
109 .sid = callingSid ? std::string(callingSid) : getPidcon(callingPid), in getCallingContext()
/frameworks/av/media/libmedia/
DIResourceManagerService.cpp110 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources) { in reclaimResource() argument
113 data.writeInt32(callingPid); in reclaimResource()
178 int callingPid = data.readInt32(); in onTransact() local
181 bool ret = reclaimResource(callingPid, resources); in onTransact()
/frameworks/base/services/core/java/com/android/server/slice/
DPinnedSliceState.java216 private int callingPid; field in PinnedSliceState.ListenerInfo
219 int callingUid, int callingPid) { in ListenerInfo() argument
224 this.callingPid = callingPid; in ListenerInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java100 public int callingPid = CALLER_PID; field in DpmMockContext.MockBinder
104 final long token = (((long) callingUid) << 32) | (callingPid); in clearCallingIdentity()
106 callingPid = SYSTEM_PID; in clearCallingIdentity()
112 callingPid = (int) token; in restoreCallingIdentity()
135 return callingPid; in getCallingPid()
320 if (binder.callingPid != SYSTEM_PID) { in sendBroadcastAsUser()
DDpmTestBase.java100 final int callingPid = caller.binder.callingPid; in runAsCaller() local
105 serviceContext.binder.callingPid = callingPid; in runAsCaller()
/frameworks/base/core/java/android/hardware/face/
DIFaceService.aidl40 int cookie, int callingUid, int callingPid, int callingUserId); in prepareForAuthentication() argument
50 int callingUid, int callingPid, int callingUserId, boolean fromClient); in cancelAuthenticationFromService() argument
/frameworks/base/core/java/android/hardware/fingerprint/
DIFingerprintService.aidl43 int callingUid, int callingPid, int callingUserId); in prepareForAuthentication() argument
54 int callingUid, int callingPid, int callingUserId, boolean fromClient); in cancelAuthenticationFromService() argument
/frameworks/av/drm/libmediadrm/
DDrmSessionManager.cpp164 bool DrmSessionManager::reclaimSession(int callingPid) { in reclaimSession() argument
165 ALOGV("reclaimSession(%d)", callingPid); in reclaimSession()
179 return service->reclaimResource(callingPid, toResourceVec(dummy)); in reclaimSession()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastRecord.java54 final int callingPid; // the pid of who sent this field in BroadcastRecord
132 pw.print(" pid="); pw.print(callingPid); in dump()
249 callingPid = _callingPid; in BroadcastRecord()
283 callingPid = from.callingPid; in BroadcastRecord()
347 callerPackage, callingPid, callingUid, callerInstantApp, resolvedType, in splitRecipientsLocked()
/frameworks/base/services/core/java/com/android/server/biometrics/
DBiometricService.java183 Bundle bundle, int callingUid, int callingPid, int callingUserId, in AuthSession() argument
194 mCallingPid = callingPid; in AuthSession()
639 final int callingPid = Binder.getCallingPid(); in authenticate() local
723 args.argi3 = callingPid; in authenticate()
1486 int callingUid, int callingPid, int callingUserId, in handleAuthenticate() argument
1525 callingUid, callingPid, callingUserId, modality, callback); in handleAuthenticate()
1540 int callingUid, int callingPid, int callingUserId, int modality, in authenticateInternal() argument
1560 receiver, opPackageName, bundle, callingUid, callingPid, callingUserId, in authenticateInternal()
1567 callingUid, callingPid, callingUserId); in authenticateInternal()
1575 cookie, callingUid, callingPid, callingUserId); in authenticateInternal()
[all …]
/frameworks/base/cmds/incidentd/src/
DIncidentService.cpp65 pid_t callingPid = IPCThreadState::self()->getCallingPid(); in checkIncidentPermissions() local
81 callingPid, callingUid); in checkIncidentPermissions()
88 callingPid, callingUid); in checkIncidentPermissions()
99 callingPid, callingUid); in checkIncidentPermissions()
109 callingPid, callingUid); in checkIncidentPermissions()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java1175 final int callingPid = Binder.getCallingPid(); in onNotificationClick() local
1178 mNotificationDelegate.onNotificationClick(callingUid, callingPid, key, nv); in onNotificationClick()
1190 final int callingPid = Binder.getCallingPid(); in onNotificationActionClick() local
1193 mNotificationDelegate.onNotificationActionClick(callingUid, callingPid, key, in onNotificationActionClick()
1205 final int callingPid = Binder.getCallingPid(); in onNotificationError() local
1209 mNotificationDelegate.onNotificationError(callingUid, callingPid, in onNotificationError()
1223 final int callingPid = Binder.getCallingPid(); in onNotificationClear() local
1226 mNotificationDelegate.onNotificationClear(callingUid, callingPid, pkg, tag, id, userId, in onNotificationClear()
1313 final int callingPid = Binder.getCallingPid(); in onClearAllNotifications() local
1316 mNotificationDelegate.onClearAll(callingUid, callingPid, userId); in onClearAllNotifications()

1234