Home
last modified time | relevance | path

Searched refs:getCallingPid (Results 1 – 25 of 192) sorted by relevance

12345678

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DBinderUtilTest.java60 final int pid = Binder.getCallingPid(); in setUid()
66 assertEquals(pid, Binder.getCallingPid()); in setUid()
72 assertEquals(pid, Binder.getCallingPid()); in setUid()
82 final int pid = Binder.getCallingPid(); in setUidAndRestoreCallingIdentity()
88 assertEquals(pid, Binder.getCallingPid()); in setUidAndRestoreCallingIdentity()
93 assertEquals(pid, Binder.getCallingPid()); in setUidAndRestoreCallingIdentity()
DBinderUtil.java30 Binder.restoreCallingIdentity((((long) uid) << 32) | Binder.getCallingPid()); in setUid()
/frameworks/base/core/java/android/content/
DPermissionChecker.java264 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForDataDelivery()
267 return checkPermissionForDataDelivery(context, permission, Binder.getCallingPid(), in checkCallingPermissionForDataDelivery()
302 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForPreflight()
305 return checkPermissionForPreflight(context, permission, Binder.getCallingPid(), in checkCallingPermissionForPreflight()
336 String packageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForDataDelivery()
338 return checkPermissionForDataDelivery(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermissionForDataDelivery()
371 String packageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForPreflight()
373 return checkPermissionForPreflight(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermissionForPreflight()
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java101 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
110 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
119 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
128 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
138 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
149 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
/frameworks/native/libs/gui/
DBufferQueueThreadState.cpp31 pid_t BufferQueueThreadState::getCallingPid() { in getCallingPid() function in android::BufferQueueThreadState
33 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
35 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
/frameworks/av/services/camera/libcameraservice/api1/
DCameraClient.cpp45 int callingPid = CameraThreadState::getCallingPid(); in CameraClient()
63 int callingPid = CameraThreadState::getCallingPid(); in initialize()
104 int callingPid = CameraThreadState::getCallingPid(); in ~CameraClient()
147 int callingPid = CameraThreadState::getCallingPid(); in checkPid()
158 CameraThreadState::getCallingPid()); in checkPidAndHardware()
167 int callingPid = CameraThreadState::getCallingPid(); in lock()
182 int callingPid = CameraThreadState::getCallingPid(); in unlock()
204 int callingPid = CameraThreadState::getCallingPid(); in connect()
240 int callingPid = CameraThreadState::getCallingPid(); in disconnect()
334 CameraThreadState::getCallingPid()); in setPreviewTarget()
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DCameraThreadState.cpp31 int CameraThreadState::getCallingPid() { in getCallingPid() function in android::CameraThreadState
33 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
35 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
DCameraThreadState.h28 static int getCallingPid();
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java837 int pid = Binder.getCallingPid(); in setFlags()
1236 mSessionCb.sendCommand(packageName, Binder.getCallingPid(), Binder.getCallingUid(), in sendCommand()
1243 return mSessionCb.sendMediaButton(packageName, Binder.getCallingPid(), in sendMediaButton()
1317 int pid = Binder.getCallingPid(); in adjustVolume()
1331 int pid = Binder.getCallingPid(); in setVolumeTo()
1344 mSessionCb.prepare(packageName, Binder.getCallingPid(), Binder.getCallingUid(), caller); in prepare()
1350 mSessionCb.prepareFromMediaId(packageName, Binder.getCallingPid(), in prepareFromMediaId()
1357 mSessionCb.prepareFromSearch(packageName, Binder.getCallingPid(), in prepareFromSearch()
1364 mSessionCb.prepareFromUri(packageName, Binder.getCallingPid(), Binder.getCallingUid(), in prepareFromUri()
1370 mSessionCb.play(packageName, Binder.getCallingPid(), Binder.getCallingUid(), caller); in play()
[all …]
DMediaSessionService.java1004 final int pid = Binder.getCallingPid(); in createSession()
1023 final int pid = Binder.getCallingPid(); in notifySession2Created()
1049 final int pid = Binder.getCallingPid(); in getSessions()
1070 final int pid = Binder.getCallingPid(); in getSession2Tokens()
1093 final int pid = Binder.getCallingPid(); in addSessionsListener()
1139 final int pid = Binder.getCallingPid(); in addSession2TokensListener()
1164 final int pid = Binder.getCallingPid(); in removeSession2TokensListener()
1214 final int pid = Binder.getCallingPid(); in dispatchMediaKeyEvent()
1284 final int pid = Binder.getCallingPid(); in dispatchMediaKeyEventToSessionAsSystemService()
1309 final int pid = Binder.getCallingPid(); in setCallback()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java852 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputList()
871 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputInfo()
897 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in updateTvInputInfo()
921 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputState()
943 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvContentRatingSystemList()
990 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in sendTvInputNotifyIntent()
1002 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in registerCallback()
1033 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in unregisterCallback()
1049 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in isParentalControlsEnabled()
1065 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in setParentalControlsEnabled()
[all …]
/frameworks/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp71 int callingPid = CameraThreadState::getCallingPid(); in checkPid()
186 int callingPid = CameraThreadState::getCallingPid(); in disconnect()
217 CameraThreadState::getCallingPid() != TClientBase::mClientPid) { in connect()
223 CameraThreadState::getCallingPid(), in connect()
228 TClientBase::mClientPid = CameraThreadState::getCallingPid(); in connect()
/frameworks/base/core/java/com/android/internal/util/
DDumpUtils.java98 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkDumpPermission()
129 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkUsageStatsPermission()
155 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkUsageStatsPermission()
/frameworks/av/services/oboeservice/
DAAudioService.cpp62 << IPCThreadState::self()->getCallingPid() << ", uid=" in dump()
77 pid_t pid = IPCThreadState::self()->getCallingPid(); in registerClient()
108 if (mAudioClient.clientPid == IPCThreadState::self()->getCallingPid() && in openStream()
276 const pid_t ownerPid = IPCThreadState::self()->getCallingPid(); // TODO review in registerAudioThread()
/frameworks/base/services/core/java/com/android/server/webkit/
DWebViewUpdateService.java190 if (Binder.getCallingPid() == Process.myPid()) { in waitForAndGetProvider()
206 + Binder.getCallingPid() in changeProviderAndSetting()
254 + Binder.getCallingPid() in enableMultiProcess()
/frameworks/native/libs/gui/include/private/gui/
DBufferQueueThreadState.h26 static pid_t getCallingPid();
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadService.cpp104 const pid_t pid = ipc->getCallingPid(); in dump()
134 *out_pid = ipc->getCallingPid(); in CheckTouchPermission()
/frameworks/base/services/core/java/com/android/server/os/
DSchedulingPolicyService.java120 if (Binder.getCallingPid() != Process.myPid() && in requestCpusetBoost()
209 if (Binder.getCallingPid() == Process.myPid()) { in isPermitted()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java808 if (checkNetworkSettingsPermission(Binder.getCallingPid(), Binder.getCallingUid())) { in enforceChangePermission()
876 boolean isPrivileged = isPrivileged(Binder.getCallingPid(), Binder.getCallingUid()); in setWifiEnabled()
1398 final int pid = Binder.getCallingPid(); in startLocalOnlyHotspot()
1488 final int pid = Binder.getCallingPid(); in stopLocalOnlyHotspot()
1659 packageName, Binder.getCallingPid(), Binder.getCallingUid())) { in disconnect()
1678 packageName, Binder.getCallingPid(), Binder.getCallingUid())) { in reconnect()
1697 packageName, Binder.getCallingPid(), Binder.getCallingUid())) { in reassociate()
1826 packageName, Binder.getCallingPid(), callingUid); in getConfiguredNetworks()
1840 if (isPrivileged(getCallingPid(), callingUid) || isDeviceOrProfileOwner(callingUid)) { in getConfiguredNetworks()
1919 if (!isSettingsOrSuw(Binder.getCallingPid(), Binder.getCallingUid())) { in getAllMatchingFqdnsForScanResults()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DAppTaskImpl.java98 final int callingPid = Binder.getCallingPid(); in moveToFront()
102 + Binder.getCallingPid() + " as package " + callingPackage; in moveToFront()
/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp91 IPCThreadState::self()->getCallingPid(), in listModules()
115 IPCThreadState::self()->getCallingPid(), in attach()
948 IPCThreadState::self()->getCallingPid(), in detach()
973 IPCThreadState::self()->getCallingPid(), in loadSoundModel()
992 IPCThreadState::self()->getCallingPid(), in unloadSoundModel()
1009 IPCThreadState::self()->getCallingPid(), in startRecognition()
1028 IPCThreadState::self()->getCallingPid(), in stopRecognition()
1044 IPCThreadState::self()->getCallingPid(), in getModelState()
/frameworks/av/media/utils/
DProcessInfo.cpp57 int callingPid = IPCThreadState::self()->getCallingPid(); in isValidPid()
/frameworks/native/services/inputflinger/host/
DInputFlinger.cpp51 const int pid = ipc->getCallingPid(); in dump()
/frameworks/base/telephony/java/com/android/internal/telephony/
DTelephonyPermissions.java99 return checkReadPhoneState(context, subId, Binder.getCallingPid(), Binder.getCallingUid(), in checkCallingOrSelfReadPhoneState()
275 Binder.getCallingPid(), Binder.getCallingUid(), callingPackage, message); in checkCallingOrSelfReadDeviceIdentifiers()
297 Binder.getCallingPid(), Binder.getCallingUid(), callingPackage, message); in checkCallingOrSelfReadSubscriberIdentifiers()
464 context, TELEPHONY_SUPPLIER, subId, Binder.getCallingPid(), Binder.getCallingUid(), in checkCallingOrSelfReadPhoneNumber()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DRcsPermissions.java26 int pid = Binder.getCallingPid(); in checkReadPermissions()

12345678