Searched refs:getCallingPid (Results 1 - 25 of 171) sorted by relevance

1234567

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DBinderUtil.java30 Binder.restoreCallingIdentity((((long) uid) << 32) | Binder.getCallingPid());
H A DBinderUtilTest.java59 final int pid = Binder.getCallingPid();
65 assertEquals(pid, Binder.getCallingPid());
71 assertEquals(pid, Binder.getCallingPid());
81 final int pid = Binder.getCallingPid();
87 assertEquals(pid, Binder.getCallingPid());
92 assertEquals(pid, Binder.getCallingPid());
/frameworks/base/core/java/android/hardware/location/
H A 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/base/core/java/android/content/
H A DPermissionChecker.java149 if (Binder.getCallingPid() == Process.myPid()) {
152 return checkPermission(context, permission, Binder.getCallingPid(),
168 String packageName = (Binder.getCallingPid() == Process.myPid())
170 return checkPermission(context, permission, Binder.getCallingPid(),
/frameworks/support/compat/src/main/java/androidx/core/content/
H A DPermissionChecker.java152 if (Binder.getCallingPid() == Process.myPid()) {
155 return checkPermission(context, permission, Binder.getCallingPid(),
171 String packageName = (Binder.getCallingPid() == Process.myPid())
173 return checkPermission(context, permission, Binder.getCallingPid(),
/frameworks/av/services/camera/libcameraservice/api1/
H A DCameraClient.cpp34 static int getCallingPid() { function in namespace:android
35 return IPCThreadState::self()->getCallingPid();
48 int callingPid = getCallingPid();
67 int callingPid = getCallingPid();
108 int callingPid = getCallingPid();
151 int callingPid = getCallingPid();
161 ALOGE("attempt to use a camera after disconnect() (pid %d)", getCallingPid());
170 int callingPid = getCallingPid();
185 int callingPid = getCallingPid();
207 int callingPid = getCallingPid();
[all...]
/frameworks/av/services/camera/libcameraservice/common/
H A DCamera2ClientBase.cpp39 static int getCallingPid() { function in namespace:android
40 return IPCThreadState::self()->getCallingPid();
74 int callingPid = getCallingPid();
189 int callingPid = getCallingPid();
222 getCallingPid() != TClientBase::mClientPid) {
228 getCallingPid(),
233 TClientBase::mClientPid = getCallingPid();
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionRecord.java760 int pid = getCallingPid();
1147 mSessionCb.sendCommand(packageName, Binder.getCallingPid(), Binder.getCallingUid(),
1154 return mSessionCb.sendMediaButton(packageName, Binder.getCallingPid(),
1238 int pid = Binder.getCallingPid();
1252 int pid = Binder.getCallingPid();
1264 mSessionCb.prepare(packageName, Binder.getCallingPid(), Binder.getCallingUid(), caller);
1270 mSessionCb.prepareFromMediaId(packageName, Binder.getCallingPid(),
1277 mSessionCb.prepareFromSearch(packageName, Binder.getCallingPid(),
1284 mSessionCb.prepareFromUri(packageName, Binder.getCallingPid(), Binder.getCallingUid(),
1290 mSessionCb.play(packageName, Binder.getCallingPid(), Binde
[all...]
/frameworks/av/media/utils/
H A DProcessInfo.cpp57 int callingPid = IPCThreadState::self()->getCallingPid();
/frameworks/base/core/java/android/view/
H A DRemoteAnimationAdapter.java55 /** @see #getCallingPid */
99 public int getCallingPid() { method in class:RemoteAnimationAdapter
/frameworks/base/services/core/java/com/android/server/webkit/
H A DWebViewUpdateService.java190 if (Binder.getCallingPid() == Process.myPid()) {
206 + Binder.getCallingPid()
254 + Binder.getCallingPid()
280 + Binder.getCallingPid()
/frameworks/native/services/inputflinger/host/
H A DInputFlinger.cpp51 const int pid = ipc->getCallingPid();
/frameworks/av/services/audioflinger/
H A DServiceUtilities.cpp145 if (getpid_cached == IPCThreadState::self()->getCallingPid()) return true;
166 if (getpid_cached == IPCThreadState::self()->getCallingPid()) return true;
/frameworks/base/services/core/java/com/android/server/os/
H A DSchedulingPolicyService.java120 if (Binder.getCallingPid() != Process.myPid() &&
209 if (Binder.getCallingPid() == Process.myPid()) {
/frameworks/native/services/vr/virtual_touchpad/
H A DVirtualTouchpadService.cpp104 const pid_t pid = ipc->getCallingPid();
134 *out_pid = ipc->getCallingPid();
/frameworks/av/services/oboeservice/
H A DAAudioService.cpp62 << IPCThreadState::self()->getCallingPid() << ", uid="
77 pid_t pid = IPCThreadState::self()->getCallingPid();
108 if (mAudioClient.clientPid == IPCThreadState::self()->getCallingPid() &&
273 const pid_t ownerPid = IPCThreadState::self()->getCallingPid(); // TODO review
/frameworks/native/services/sensorservice/
H A DSensorRegistrationInfo.h47 mPid = (thread != nullptr) ? thread->getCallingPid() : -1;
/frameworks/native/services/vr/hardware_composer/
H A Dvr_composer.cpp12 const pid_t pid = ipc->getCallingPid();
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DLocalOnlyHotspotRequestInfo.java55 mPid = Binder.getCallingPid();
/frameworks/base/core/java/com/android/internal/util/
H A DDumpUtils.java89 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid()
120 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid()
146 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid()
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputManagerService.java846 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
865 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
891 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
915 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
937 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
984 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
996 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
1025 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
1040 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
1056 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(),
[all...]
/frameworks/av/media/libmediametrics/
H A DIMediaAnalyticsService.cpp122 int clientPid = ipc->getCallingPid();
/frameworks/base/services/core/java/com/android/server/
H A DUpdateLockService.java112 + " pid=" + Binder.getCallingPid() + '}';
/frameworks/native/include/binder/
H A DIPCThreadState.h42 pid_t getCallingPid() const;
/frameworks/native/libs/binder/
H A DPermissionCache.cpp84 pid_t pid = ipcState->getCallingPid();

Completed in 672 milliseconds

1234567