/frameworks/base/core/java/android/net/ |
H A D | Credentials.java | 24 /** pid of process. root peers may lie. */ 25 private final int pid; field in class:Credentials 31 public Credentials (int pid, int uid, int gid) { argument 32 this.pid = pid; 38 return pid;
|
/frameworks/av/media/utils/ |
H A D | SchedulingPolicyService.cpp | 31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool isForApp, bool asynchronous) argument 50 ret = sps->requestPriority(pid, tid, prio, isForApp, asynchronous);
|
H A D | ISchedulingPolicyService.cpp | 40 virtual int requestPriority(int32_t pid, int32_t tid, argument 45 data.writeInt32(pid);
|
H A D | ProcessInfo.cpp | 31 bool ProcessInfo::getPriority(int pid, int* priority) { argument 40 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score); 45 ALOGV("pid %d state %d score %d", pid, state, score); 47 ALOGE("pid %d invalid OOM adjustments value %d", pid, score); 56 bool ProcessInfo::isValidPid(int pid) { argument 58 // Trust it if this is called from the same process otherwise pid has to match the calling pid. 59 return (callingPid == getpid()) || (callingPid == pid); [all...] |
/frameworks/base/core/java/android/content/ |
H A D | PermissionChecker.java | 83 * @param pid The process id for which to check. 92 int pid, int uid, @Nullable String packageName) { 93 if (context.checkPermission(permission, pid, uid) == PackageManager.PERMISSION_DENIED) { 91 checkPermission(@onNull Context context, @NonNull String permission, int pid, int uid, @Nullable String packageName) argument
|
/frameworks/base/core/java/android/hardware/location/ |
H A D | GeofenceHardwareService.java | 59 private void checkPermission(int pid, int uid, int monitoringType) { argument 60 if (mGeofenceHardwareImpl.getAllowedResolutionLevel(pid, uid) <
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaResourceMonitorService.java | 54 public void notifyResourceGranted(int pid, int type) argument 57 Slog.d(TAG, "notifyResourceGranted(pid=" + pid + ", type=" + type + ")"); 61 String pkgNames[] = getPackageNamesFromPid(pid); 83 private String[] getPackageNamesFromPid(int pid) { argument 87 if (proc.pid == pid) {
|
/frameworks/base/services/core/java/com/android/server/os/ |
H A D | SchedulingPolicyService.java | 43 public int requestPriority(int pid, int tid, int prio, boolean isForApp) { argument 44 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")"); 49 // Once we've verified that the caller uid is permitted, we can trust the pid but 50 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0, 53 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
|
/frameworks/native/libs/binder/ |
H A D | IMediaResourceMonitor.cpp | 31 virtual void notifyResourceGranted(/*in*/ int32_t pid, /*in*/ const int32_t type) argument 35 data.writeInt32(pid); 50 int32_t pid = data.readInt32(); local 52 notifyResourceGranted(/*in*/ pid, /*in*/ type);
|
H A D | IPermissionController.cpp | 39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument 44 data.writeInt32(pid); 94 int32_t pid = data.readInt32(); local 96 bool res = checkPermission(permission, pid, uid);
|
H A D | PermissionCache.cpp | 62 // note, we don't need to store the pid, which is not actually used in 84 pid_t pid = ipcState->getCallingPid(); local 86 if (outPid) *outPid = pid; 88 return PermissionCache::checkPermission(permission, pid, uid); 92 const String16& permission, pid_t pid, uid_t uid) { 93 if ((uid == 0) || (pid == getpid())) { 102 granted = android::checkPermission(permission, pid, uid); 91 checkPermission( const String16& permission, pid_t pid, uid_t uid) argument
|
/frameworks/native/services/inputflinger/host/ |
H A D | InputFlinger.cpp | 51 const int pid = ipc->getCallingPid(); local 54 && !PermissionCache::checkPermission(sDumpPermission, pid, uid)) { 56 "can't dump SurfaceFlinger from pid=%d, uid=%d\n", pid, uid);
|
/frameworks/native/services/nativeperms/ |
H A D | nativeperms.cpp | 38 const ::android::String16& permission, int32_t pid, int32_t uid, 41 (void)pid; 37 checkPermission( const ::android::String16& permission, int32_t pid, int32_t uid, bool* _aidl_return) argument
|
/frameworks/native/services/schedulerservice/ |
H A D | SchedulingPolicyService.cpp | 35 Return<bool> SchedulingPolicyService::requestPriority(int32_t pid, int32_t tid, int32_t priority) { argument 47 int value = ::android::requestPriority(pid, tid, priority, false /* isForApp */);
|
/frameworks/av/services/audioflinger/ |
H A D | ServiceUtilities.cpp | 51 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { argument 57 // We specify a pid and uid here as mediaserver (aka MediaRecorder or StageFrightRecorder) 58 // may open a record track on behalf of a client. Note that pid may be a tid. 60 const bool ok = checkPermission(sRecordAudio, pid, uid); 108 bool captureAudioOutputAllowed(pid_t pid, uid_t uid) { argument 111 bool ok = checkPermission(sCaptureAudioOutput, pid, uid); 116 bool captureHotwordAllowed(pid_t pid, uid_t uid) { argument 118 bool ok = recordingAllowed(String16(""), pid, uid); 147 // don't optimize for same pid, since mediaserver never dumps itself
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessMemInfo.java | 21 final int pid; field in class:ProcessMemInfo 32 pid = _pid;
|
/frameworks/native/services/vr/hardware_composer/ |
H A D | vr_composer.cpp | 12 const pid_t pid = ipc->getCallingPid(); local 15 String16("android.permission.RESTRICTED_VR_ACCESS"), pid, uid); 17 ALOGE("permission denied to pid=%d uid=%u", pid, uid);
|
/frameworks/rs/cpp/ |
H A D | rsCppUtils.cpp | 58 pid_t pid = fork(); local 60 switch (pid) { 84 pid_t w = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0));
|
/frameworks/rs/ |
H A D | rsCppUtils.cpp | 58 pid_t pid = fork(); local 60 switch (pid) { 84 pid_t w = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0));
|
/frameworks/support/core-utils/java/android/support/v4/content/ |
H A D | PermissionChecker.java | 85 * @param pid The process id for which to check. 94 int pid, int uid, String packageName) { 95 if (context.checkPermission(permission, pid, uid) == PackageManager.PERMISSION_DENIED) { 93 checkPermission(@onNull Context context, @NonNull String permission, int pid, int uid, String packageName) argument
|
/frameworks/av/services/oboeservice/ |
H A D | AAudioClientTracker.cpp | 65 aaudio_result_t AAudioClientTracker::registerClient(pid_t pid, argument 67 ALOGV("AAudioClientTracker::registerClient(), calling pid = %d, getpid() = %d\n", 68 pid, getpid()); 71 if (mNotificationClients.count(pid) == 0) { 72 sp<NotificationClient> notificationClient = new NotificationClient(pid); 73 mNotificationClients[pid] = notificationClient; 81 ALOGW("AAudioClientTracker::registerClient(%d) already registered!", pid); 86 void AAudioClientTracker::unregisterClient(pid_t pid) { argument 87 ALOGV("AAudioClientTracker::unregisterClient(), calling pid = %d, getpid() = %d\n", 88 pid, getpi 93 getStreamCount(pid_t pid) argument 104 registerClientStream(pid_t pid, sp<AAudioServiceStreamBase> serviceStream) argument 121 unregisterClientStream(pid_t pid, sp<AAudioServiceStreamBase> serviceStream) argument 137 NotificationClient(pid_t pid) argument [all...] |
/frameworks/base/core/java/android/service/vr/ |
H A D | VrListenerService.java | 74 ComponentName component, boolean running2dInVr, int pid) { 76 pid, component).sendToTarget(); 136 * @param pid the process the component is running in. 143 ComponentName component, boolean running2dInVr, int pid) { 142 onCurrentVrActivityChanged( ComponentName component, boolean running2dInVr, int pid) argument
|
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputBinding.java | 56 * @param pid The process id of where the binding came from. 59 int uid, int pid) { 63 mPid = pid; 120 + " / uid " + mUid + " / pid " + mPid + "}"; 58 InputBinding(InputConnection conn, IBinder connToken, int uid, int pid) argument
|
/frameworks/base/tools/preload/ |
H A D | Record.java | 83 final int pid; field in class:Record 129 pid = Integer.parseInt(parts[1]);
|
/frameworks/native/libs/vr/libvrflinger/ |
H A D | vsync_service.h | 39 VSyncChannel(pdx::Service& service, int pid, int cid) argument 40 : service_(service), pid_(pid), cid_(cid) {}
|