Home
last modified time | relevance | path

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

12

/frameworks/av/services/mediaresourcemanager/
DResourceManagerService.cpp251 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients) { in getClientForResource_l() argument
256 if (getLowestPriorityBiggestClient_l(callingPid, res->mType, &client)) { in getClientForResource_l()
262 int callingPid, const Vector<MediaResource> &resources) { in reclaimResource() argument
264 callingPid, getString(resources).string()); in reclaimResource()
270 if (!mProcessInfo->isValidPid(callingPid)) { in reclaimResource()
291 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) { in reclaimResource()
296 if (!getAllClients_l(callingPid, MediaResource::kNonSecureCodec, &clients)) { in reclaimResource()
303 if (!getAllClients_l(callingPid, MediaResource::kSecureCodec, &clients)) { in reclaimResource()
311 getClientForResource_l(callingPid, graphicMemory, &clients); in reclaimResource()
316 getClientForResource_l(callingPid, secureCodec, &clients); in reclaimResource()
[all …]
DResourceManagerService.h71 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources);
82 bool getAllClients_l(int callingPid, MediaResource::Type type,
88 bool getLowestPriorityBiggestClient_l(int callingPid, MediaResource::Type type,
99 bool isCallingPriorityHigher_l(int callingPid, int pid);
104 int callingPid, const MediaResource *res, Vector<sp<IResourceManagerClient>> *clients);
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationDelegate.java23 void onClearAll(int callingUid, int callingPid, int userId); in onClearAll() argument
24 void onNotificationClick(int callingUid, int callingPid, String key); in onNotificationClick() argument
25 void onNotificationActionClick(int callingUid, int callingPid, String key, int actionIndex); in onNotificationActionClick() argument
26 void onNotificationClear(int callingUid, int callingPid, in onNotificationClear() argument
28 void onNotificationError(int callingUid, int callingPid, in onNotificationError() argument
DNotificationManagerService.java517 public void onClearAll(int callingUid, int callingPid, int userId) {
519 cancelAllLocked(callingUid, callingPid, userId, REASON_DELEGATE_CANCEL_ALL, null,
525 public void onNotificationClick(int callingUid, int callingPid, String key) {
537 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(),
545 public void onNotificationActionClick(int callingUid, int callingPid, String key,
561 public void onNotificationClear(int callingUid, int callingPid,
563 cancelNotification(callingUid, callingPid, pkg, tag, id, 0,
592 … public void onNotificationError(int callingUid, int callingPid, String pkg, String tag, int id,
596 cancelNotification(callingUid, callingPid, pkg, tag, id, 0, 0, false, userId,
1301 int callingPid = Binder.getCallingPid();
[all …]
DNotificationManagerInternal.java22 void enqueueNotification(String pkg, String basePkg, int callingUid, int callingPid, in enqueueNotification() argument
/frameworks/av/services/camera/libcameraservice/api1/
DCameraClient.cpp46 int callingPid = getCallingPid(); in CameraClient() local
47 LOG1("CameraClient::CameraClient E (pid %d, id %d)", callingPid, cameraId); in CameraClient()
60 LOG1("CameraClient::CameraClient X (pid %d, id %d)", callingPid, cameraId); in CameraClient()
64 int callingPid = getCallingPid(); in initialize() local
67 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 = 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()
142 int callingPid = getCallingPid(); in checkPid() local
[all …]
/frameworks/av/media/libstagefright/
DProcessInfo.cpp57 int callingPid = IPCThreadState::self()->getCallingPid(); in isValidPid() local
59 return (callingPid == getpid()) || (callingPid == pid); in isValidPid()
/frameworks/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp73 int callingPid = getCallingPid(); in checkPid() local
74 if (callingPid == TClientBase::mClientPid) return NO_ERROR; in checkPid()
77 " (old pid %d, new pid %d)", checkLocation, TClientBase::mClientPid, callingPid); in checkPid()
179 int callingPid = getCallingPid(); in disconnect() local
180 if (callingPid != TClientBase::mClientPid && in disconnect()
181 callingPid != TClientBase::mServicePid) return res; in disconnect()
/frameworks/av/media/libmedia/
DIResourceManagerService.cpp97 virtual bool reclaimResource(int callingPid, const Vector<MediaResource> &resources) { in reclaimResource() argument
100 data.writeInt32(callingPid); in reclaimResource()
154 int callingPid = data.readInt32(); in onTransact() local
157 bool ret = reclaimResource(callingPid, resources); in onTransact()
/frameworks/base/services/core/java/com/android/server/statusbar/
DStatusBarManagerService.java758 final int callingPid = Binder.getCallingPid(); in onNotificationClick() local
761 mNotificationDelegate.onNotificationClick(callingUid, callingPid, key); in onNotificationClick()
771 final int callingPid = Binder.getCallingPid(); in onNotificationActionClick() local
774 mNotificationDelegate.onNotificationActionClick(callingUid, callingPid, key, in onNotificationActionClick()
786 final int callingPid = Binder.getCallingPid(); in onNotificationError() local
790 mNotificationDelegate.onNotificationError(callingUid, callingPid, in onNotificationError()
801 final int callingPid = Binder.getCallingPid(); in onNotificationClear() local
804 mNotificationDelegate.onNotificationClear(callingUid, callingPid, pkg, tag, id, userId); in onNotificationClear()
841 final int callingPid = Binder.getCallingPid(); in onClearAllNotifications() local
844 mNotificationDelegate.onClearAll(callingUid, callingPid, userId); in onClearAllNotifications()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java424 private void registerCallbackInternal(IDisplayManagerCallback callback, int callingPid) { in registerCallbackInternal() argument
426 if (mCallbacks.get(callingPid) != null) { in registerCallbackInternal()
431 CallbackRecord record = new CallbackRecord(callingPid, callback); in registerCallbackInternal()
440 mCallbacks.put(callingPid, record); in registerCallbackInternal()
451 private void startWifiDisplayScanInternal(int callingPid) { in startWifiDisplayScanInternal() argument
453 CallbackRecord record = mCallbacks.get(callingPid); in startWifiDisplayScanInternal()
473 private void stopWifiDisplayScanInternal(int callingPid) { in stopWifiDisplayScanInternal() argument
475 CallbackRecord record = mCallbacks.get(callingPid); in stopWifiDisplayScanInternal()
1251 final int callingPid = Binder.getCallingPid(); in registerCallback() local
1254 registerCallbackInternal(callback, callingPid); in registerCallback()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DActivityStarter.java233 IBinder resultTo, String resultWho, int requestCode, int callingPid, int callingUid, in startActivityLocked() argument
244 callingPid = callerApp.pid; in startActivityLocked()
248 + " (pid=" + callingPid + ") when starting: " in startActivityLocked()
377 … requestCode, callingPid, callingUid, callingPackage, ignoreTargetSecurity, callerApp, in startActivityLocked()
380 callingPid, resolvedType, aInfo.applicationInfo); in startActivityLocked()
395 mInterceptor.intercept(intent, rInfo, aInfo, resolvedType, inTask, callingPid, callingUid, in startActivityLocked()
402 callingPid = mInterceptor.mCallingPid; in startActivityLocked()
442 callingPid = realCallingPid; in startActivityLocked()
469 callingPid = realCallingPid; in startActivityLocked()
491 if (!mService.checkAppSwitchAllowedLocked(callingPid, callingUid, in startActivityLocked()
[all …]
DBroadcastRecord.java49 final int callingPid; // the pid of who sent this field in BroadcastRecord
114 pw.print(" pid="); pw.print(callingPid); in dump()
230 callingPid = _callingPid; in BroadcastRecord()
DActivityStartInterceptor.java98 TaskRecord inTask, int callingPid, int callingUid, ActivityOptions activityOptions) { in intercept() argument
101 mCallingPid = callingPid; in intercept()
DBroadcastQueue.java507 r.callingPid, r.callingUid, -1, true); in deliverToRegisteredReceiverLocked()
512 + r.callingPid + ", uid=" + r.callingUid + ")" in deliverToRegisteredReceiverLocked()
524 + r.callingPid + ", uid=" + r.callingUid + ")" in deliverToRegisteredReceiverLocked()
610 r.callingPid, r.resolvedType, filter.receiverList.uid)) { in deliverToRegisteredReceiverLocked()
989 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, in processNextBroadcast()
995 + " from " + r.callerPackage + " (pid=" + r.callingPid in processNextBroadcast()
1002 + " from " + r.callerPackage + " (pid=" + r.callingPid in processNextBroadcast()
1016 + r.callingPid + ", uid=" + r.callingUid + ")" in processNextBroadcast()
1078 r.callingPid, r.resolvedType, info.activityInfo.applicationInfo.uid); in processNextBroadcast()
DActivityStackSupervisor.java1424 String resultWho, int requestCode, int callingPid, int callingUid, in checkStartAnyActivityPermission() argument
1427 final int startAnyPerm = mService.checkPermission(START_ANY_ACTIVITY, callingPid, in checkStartAnyActivityPermission()
1433 aInfo, callingPackage, callingPid, callingUid, ignoreTargetSecurity); in checkStartAnyActivityPermission()
1435 intent.getAction(), callingPackage, callingPid, callingUid); in checkStartAnyActivityPermission()
1446 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1451 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1456 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1466 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1474 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1482 callingPid, callingUid); in checkStartAnyActivityPermission()
[all …]
DActiveServices.java307 int callingPid, int callingUid, String callingPackage, final int userId) in startServiceLocked() argument
329 callingPid, callingUid, userId, true, callerFg, false); in startServiceLocked()
351 r.appInfo.uid, r.packageName, callingPid, true); in startServiceLocked()
355 + " from pid=" + callingPid + " uid=" + callingUid in startServiceLocked()
443 + callingUid + " pid=" + callingPid + "): " + r); in startServiceLocked()
1266 String resolvedType, String callingPackage, int callingPid, int callingUid, int userId, in retrieveServiceLocked() argument
1272 userId = mAm.mUserController.handleIncomingUser(callingPid, callingUid, userId, false, in retrieveServiceLocked()
1379 callingPid, callingUid, r.appInfo.uid, r.exported) in retrieveServiceLocked()
1383 + " from pid=" + callingPid in retrieveServiceLocked()
1390 + " from pid=" + callingPid in retrieveServiceLocked()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmSessionManager.cpp141 bool DrmSessionManager::reclaimSession(int callingPid) { in reclaimSession() argument
142 ALOGV("reclaimSession(%d)", callingPid); in reclaimSession()
151 if (!mProcessInfo->getPriority(callingPid, &callingPriority)) { in reclaimSession()
/frameworks/av/services/camera/libcameraservice/
DCameraService.cpp927 int callingPid = getCallingPid(); in validateConnectLocked() local
935 "(don't trust clientUid %d)", callingPid, callingUid, clientUid); in validateConnectLocked()
939 callingPid, callingUid, cameraId.string(), in validateConnectLocked()
945 clientPid = callingPid; in validateConnectLocked()
948 "(don't trust clientPid %d)", callingPid, callingUid, clientPid); in validateConnectLocked()
952 callingPid, callingUid, cameraId.string(), in validateConnectLocked()
957 if (callingPid != getpid() && in validateConnectLocked()
968 clientPid = callingPid; in validateConnectLocked()
972 callingPid); in validateConnectLocked()
978 ALOGE("CameraService::connect X (PID %d) rejected (invalid camera ID %s)", callingPid, in validateConnectLocked()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDpmMockContext.java100 public int callingPid = CALLER_PID; field in DpmMockContext.MockBinder
103 final long token = (((long) callingUid) << 32) | (callingPid); in clearCallingIdentity()
105 callingPid = SYSTEM_PID; in clearCallingIdentity()
111 callingPid = (int) token; in restoreCallingIdentity()
119 return callingPid; in getCallingPid()
510 if (binder.callingPid != SYSTEM_PID) { in sendBroadcastAsUser()
/frameworks/av/include/media/
DIResourceManagerService.h49 int callingPid,
DDrmSessionManager.h54 bool reclaimSession(int callingPid);
/frameworks/av/services/audiopolicy/service/
DAudioPolicyInterfaceImpl.cpp297 const pid_t callingPid = IPCThreadState::self()->getCallingPid(); in getInputForAttr() local
298 ALOGW_IF(pid != (pid_t)-1 && pid != callingPid, in getInputForAttr()
300 __func__, callingUid, callingPid, pid); in getInputForAttr()
301 pid = callingPid; in getInputForAttr()
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
DVoiceInteractionManagerServiceImpl.java184 public int startVoiceActivityLocked(int callingPid, int callingUid, IBinder token, in startVoiceActivityLocked() argument
198 return mAm.startVoiceActivity(mComponent.getPackageName(), callingPid, callingUid, in startVoiceActivityLocked()
/frameworks/base/services/core/java/com/android/server/input/
DInputManagerService.java672 int callingPid = Binder.getCallingPid(); in registerInputDevicesChangedListener() local
673 if (mInputDevicesChangedListeners.get(callingPid) != null) { in registerInputDevicesChangedListener()
679 new InputDevicesChangedListenerRecord(callingPid, listener); in registerInputDevicesChangedListener()
688 mInputDevicesChangedListeners.put(callingPid, record); in registerInputDevicesChangedListener()
922 final int callingPid = Binder.getCallingPid(); in registerTabletModeChangedListener() local
923 if (mTabletModeChangedListeners.get(callingPid) != null) { in registerTabletModeChangedListener()
928 new TabletModeChangedListenerRecord(callingPid, listener); in registerTabletModeChangedListener()
935 mTabletModeChangedListeners.put(callingPid, record); in registerTabletModeChangedListener()

12