Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/tests/coretests/src/android/content/
DPermissionCheckerTest.java58 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
70 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
82 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted()
94 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_packageNameIsNull_returnsGranted()
106 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied()
118 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForPreflight_appOpPermission_modeErrored_returnsHardDenied()
131 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForDataDelivery_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
143 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForDataDelivery_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
155 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForDataDelivery_appOpPermission_modeAllowed_returnsGranted()
167 mContext, INTERACT_ACROSS_PROFILES_PERMISSION, Binder.getCallingPid(), in testCheckPermissionForDataDelivery_appOpPermission_packageNameIsNull_returnsGranted()
[all …]
/frameworks/native/libs/gui/
DBufferQueueThreadState.cpp38 pid_t BufferQueueThreadState::getCallingPid() { in getCallingPid() function in android::BufferQueueThreadState
41 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
43 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
45 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationEnforcer.java74 Binder.getCallingPid(), callingUid, in assertApprovedQuerent()
81 Binder.getCallingPid(), callingUid, in assertApprovedQuerent()
101 final int callingPid = Binder.getCallingPid(); in assertApprovedVerifier()
140 Binder.getCallingPid(), callingUid, in assertApprovedUserStateQuerent()
161 Binder.getCallingPid(), callingUid, in assertApprovedUserSelector()
167 Binder.getCallingPid(), callingUid, in assertApprovedUserSelector()
187 Binder.getCallingPid(), callingUid, in callerIsLegacyUserSelector()
193 Binder.getCallingPid(), callingUid) != PackageManager.PERMISSION_GRANTED) { in callerIsLegacyUserSelector()
214 Binder.getCallingPid(), callingUid, in callerIsLegacyUserQuerent()
235 final int callingPid = Binder.getCallingPid(); in assertOwnerQuerent()
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java104 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
114 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
124 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
134 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
145 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
157 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
/frameworks/base/core/java/android/content/
DPermissionChecker.java689 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForDataDelivery()
692 return checkPermissionForDataDelivery(context, permission, Binder.getCallingPid(), in checkCallingPermissionForDataDelivery()
728 if (Binder.getCallingPid() == Process.myPid()) { in checkCallingPermissionForPreflight()
731 return checkPermissionForPreflight(context, permission, Binder.getCallingPid(), in checkCallingPermissionForPreflight()
770 callingPackageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForDataDelivery()
772 callingAttributionTag = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForDataDelivery()
774 return checkPermissionForDataDelivery(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermissionForDataDelivery()
808 String packageName = (Binder.getCallingPid() == Process.myPid()) in checkCallingOrSelfPermissionForPreflight()
810 return checkPermissionForPreflight(context, permission, Binder.getCallingPid(), in checkCallingOrSelfPermissionForPreflight()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DActivityInterceptorInfoWrapper.java77 public int getCallingPid() { in getCallingPid() method in ActivityInterceptorInfoWrapper
78 int callingPid = mActivityInterceptorInfo.getCallingPid() != -1 in getCallingPid()
79 ? mActivityInterceptorInfo.getCallingPid() in getCallingPid()
/frameworks/base/services/core/java/com/android/server/tv/interactive/
DTvInteractiveAppManagerService.java918 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvAdServiceList()
941 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in sendAppLinkCommand()
978 final int callingPid = Binder.getCallingPid(); in createSession()
1045 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, in releaseSession()
1060 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, in setSurface()
1087 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, in dispatchSurfaceChanged()
1112 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, in startAdService()
1137 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, in stopAdService()
1162 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, in resetAdService()
1187 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), callingUid, in sendCurrentVideoBounds()
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DAttributionAndPermissionUtils.cpp60 int AttributionAndPermissionUtils::getCallingPid() { in getCallingPid() function in android::AttributionAndPermissionUtils
62 return hardware::IPCThreadState::self()->getCallingPid(); in getCallingPid()
64 return IPCThreadState::self()->getCallingPid(); in getCallingPid()
186 return (getCallingPid() == getpid()); in isCallerCameraServerNotDelegating()
DAttributionAndPermissionUtils.h46 virtual int getCallingPid();
151 int getCallingPid() const { in getCallingPid() function
152 return mAttributionAndPermissionUtils->getCallingPid(); in getCallingPid()
/frameworks/base/services/core/java/com/android/server/location/
DLocationPermissions.java93 getPermissionLevel(context, Binder.getCallingUid(), Binder.getCallingPid()), in enforceCallingOrSelfLocationPermission()
131 enforceBypassPermission(context, Binder.getCallingUid(), Binder.getCallingPid()); in enforceCallingOrSelfBypassPermission()
180 return getPermissionLevel(context, Binder.getCallingUid(), Binder.getCallingPid()); in getCallingOrSelfPermissionLevel()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionRecord.java596 int callingPid = Binder.getCallingPid(); in close()
1182 int callingPid = Binder.getCallingPid();
1208 int pid = Binder.getCallingPid();
1775 mSessionCb.sendCommand(packageName, Binder.getCallingPid(), Binder.getCallingUid(),
1781 return mSessionCb.sendMediaButton(packageName, Binder.getCallingPid(),
1874 int pid = Binder.getCallingPid();
1887 int pid = Binder.getCallingPid();
1900 mSessionCb.prepare(packageName, Binder.getCallingPid(), Binder.getCallingUid());
1905 mSessionCb.prepareFromMediaId(packageName, Binder.getCallingPid(),
1911 mSessionCb.prepareFromSearch(packageName, Binder.getCallingPid(),
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputManagerService.java1186 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputList()
1205 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputInfo()
1231 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in updateTvInputInfo()
1255 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvInputState()
1273 final int callingPid = Binder.getCallingPid(); in getAvailableExtensionInterfaceNames()
1319 final int callingPid = Binder.getCallingPid(); in getExtensionInterface()
1364 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in getTvContentRatingSystemList()
1411 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in sendTvInputNotifyIntent()
1423 int callingPid = Binder.getCallingPid(); in registerCallback()
1445 final int resolvedUserId = resolveCallingUserId(Binder.getCallingPid(), in unregisterCallback()
[all …]
/frameworks/av/services/tuner/
DTunerFilter.cpp65 int32_t callingPid = ipc->getCallingPid(); in getQueueDesc()
195 int32_t callingPid = ipc->getCallingPid(); in start()
214 int32_t callingPid = ipc->getCallingPid(); in stop()
232 int32_t callingPid = ipc->getCallingPid(); in flush()
247 int32_t callingPid = ipc->getCallingPid(); in close()
285 mClientPid = ipc->getCallingPid(); in acquireSharedFilterToken()
/frameworks/av/services/audioflinger/datapath/
DTrackMetrics.h79 IPCThreadState::self() -> getCallingPid()); in logBeginInterval()
83 IPCThreadState::self() -> getCallingPid()); in logBeginInterval()
120 IPCThreadState::self() -> getCallingPid()); in logEndInterval()
124 IPCThreadState::self() -> getCallingPid()); in logEndInterval()
/frameworks/base/media/java/android/media/permission/
DPermissionUtil.java108 middlemanIdentity.pid = Binder.getCallingPid(); in establishIdentityIndirect()
157 originatorIdentity.pid = Binder.getCallingPid(); in establishIdentityDirect()
/frameworks/base/services/flags/java/com/android/server/flags/
DFeatureFlagsBinder.java53 mDynamicFlagDelegate.registerCallback(getCallingPid(), callback); in registerCallback()
58 mDynamicFlagDelegate.unregisterCallback(getCallingPid(), callback); in unregisterCallback()
67 int pid = getCallingPid(); in syncFlags()
/frameworks/base/services/searchui/java/com/android/server/searchui/
DSearchUiManagerService.java160 final int userId = am.handleIncomingUser(Binder.getCallingPid(), Binder.getCallingUid(), in runForUserLocked()
164 Slog.d(TAG, "runForUserLocked:" + func + " from pid=" + Binder.getCallingPid() in runForUserLocked()
170 String msg = "Permission Denial: " + func + " from pid=" + Binder.getCallingPid() in runForUserLocked()
/frameworks/base/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/
DWallpaperEffectsGenerationManagerService.java156 final int userId = am.handleIncomingUser(Binder.getCallingPid(), Binder.getCallingUid(), in runForUser()
160 Slog.d(TAG, "runForUser:" + func + " from pid=" + Binder.getCallingPid() in runForUser()
173 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid(); in runForUser()
/frameworks/native/libs/gui/include/private/gui/
DBufferQueueThreadState.h26 static pid_t getCallingPid();
/frameworks/base/services/smartspace/java/com/android/server/smartspace/
DSmartspaceManagerService.java160 final int userId = am.handleIncomingUser(Binder.getCallingPid(), Binder.getCallingUid(), in runForUserLocked()
164 Slog.d(TAG, "runForUserLocked:" + func + " from pid=" + Binder.getCallingPid() in runForUserLocked()
175 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid(); in runForUserLocked()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPermissionsUtils.java33 import static android.os.Binder.getCallingPid;
107 if (context.checkPermission(permission, getCallingPid(), packageUid) in enforcePermissionForRequestingProfile()
119 if (context.checkPermission(REQUEST_COMPANION_SELF_MANAGED, getCallingPid(), packageUid) in enforcePermissionForRequestingSelfManaged()
/frameworks/native/services/vr/virtual_touchpad/
DVirtualTouchpadService.cpp104 const pid_t pid = ipc->getCallingPid(); in dump()
134 *out_pid = ipc->getCallingPid(); in CheckTouchPermission()
/frameworks/native/services/gpuservice/
DGpuService.cpp111 const int pid = ipc->getCallingPid(); in toggleAngleAsSystemDriver()
134 const int pid = ipc->getCallingPid(); in setUpdatableDriverPath()
173 const int pid = ipc->getCallingPid(); in doDump()
/frameworks/av/services/camera/libcameraservice/common/
DCamera2ClientBase.cpp89 int callingPid = TClientBase::getCallingPid(); in checkPid()
276 int callingPid = TClientBase::getCallingPid(); in disconnectImpl()
315 TClientBase::getCallingPid() != TClientBase::mClientPid) { in connect()
321 TClientBase::getCallingPid(), in connect()
326 TClientBase::mClientPid = TClientBase::getCallingPid(); in connect()
/frameworks/base/services/core/java/com/android/server/os/
DSchedulingPolicyService.java125 if (Binder.getCallingPid() != Process.myPid() && in requestCpusetBoost()
214 if (Binder.getCallingPid() == Process.myPid()) { in isPermitted()

1234567891011