Searched defs:pid (Results 1 - 25 of 79) sorted by relevance

1234

/frameworks/base/core/java/android/net/
H A DCredentials.java24 /** 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/services/audioflinger/
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, int32_t prio, bool asynchronous) argument
44 data.writeInt32(pid);
H A DSchedulingPolicyService.cpp31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous) argument
50 ret = sps->requestPriority(pid, tid, prio, asynchronous);
/frameworks/base/core/java/android/hardware/location/
H A DGeofenceHardwareService.java59 private void checkPermission(int pid, int uid, int monitoringType) { argument
60 if (mGeofenceHardwareImpl.getAllowedResolutionLevel(pid, uid) <
/frameworks/base/services/java/com/android/server/os/
H A DSchedulingPolicyService.java40 public int requestPriority(int pid, int tid, int prio) { argument
41 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
45 // Once we've verified that the caller is mediaserver, we can trust the pid but
46 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
49 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
54 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ?
/frameworks/native/libs/binder/
H A DIPermissionController.cpp40 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument
45 data.writeInt32(pid);
66 int32_t pid = data.readInt32(); local
68 bool res = checkPermission(permission, pid, uid);
H A DPermissionCache.cpp62 // 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
H A DIServiceManager.cpp62 pid_t pid = ipcState->getCallingPid(); local
64 if (outPid) *outPid = pid;
66 return checkPermission(permission, pid, uid);
69 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) argument
80 bool res = pc->checkPermission(permission, pid, uid);
83 ALOGI("Check passed after %d seconds for %s from uid=%d pid=%d",
85 String8(permission).string(), uid, pid);
92 ALOGW("Permission failure: %s from uid=%d pid=%d",
93 String8(permission).string(), uid, pid);
111 ALOGI("Waiting to check permission %s from uid=%d pid
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DProcessMemInfo.java21 final int pid; field in class:ProcessMemInfo
31 pid = _pid;
H A DReceiverList.java40 public final int pid; field in class:ReceiverList
53 pid = _pid;
73 pw.print(" pid="); pw.print(pid); pw.print(" uid="); pw.print(uid);
104 sb.append(pid);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputBinding.java57 * @param pid The process id of where the binding came from.
60 int uid, int pid) {
64 mPid = pid;
121 + " / uid " + mUid + " / pid " + mPid + "}";
59 InputBinding(InputConnection conn, IBinder connToken, int uid, int pid) argument
/frameworks/base/tools/preload/
H A DRecord.java83 final int pid; field in class:Record
129 pid = Integer.parseInt(parts[1]);
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp44 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument
46 ALOGV("MetadataRetrieverClient constructor pid(%d)", pid);
47 mPid = pid;
65 snprintf(buffer, 255, " pid(%d)\n", mPid);
74 ALOGV("disconnect from pid %d", mPid);
H A DMediaRecorderClient.cpp303 MediaRecorderClient::MediaRecorderClient(const sp<MediaPlayerService>& service, pid_t pid) argument
306 mPid = pid;
/frameworks/base/core/java/android/os/
H A DSELinux.java92 * @param pid an int representing the process id to check.
93 * @return a String representing the security context of the given pid.
95 public static final native String getPidContext(int pid); argument
/frameworks/base/core/jni/
H A Dcom_android_internal_os_ZygoteInit.cpp66 JNIEnv* env, jobject clazz, jint pid, jint pgid)
68 if (setpgid(pid, pgid) < 0) {
76 * private static native int getpgid(int pid)
79 JNIEnv* env, jobject clazz, jint pid)
82 ret = getpgid(pid);
163 jobject clazz, jint pid)
173 capheader.pid = pid;
65 com_android_internal_os_ZygoteInit_setpgid( JNIEnv* env, jobject clazz, jint pid, jint pgid) argument
78 com_android_internal_os_ZygoteInit_getpgid( JNIEnv* env, jobject clazz, jint pid) argument
162 com_android_internal_os_ZygoteInit_capgetPermitted(JNIEnv *env, jobject clazz, jint pid) argument
H A Dandroid_os_SELinux.cpp242 * Purpose: Get the context of a process identified by its pid
244 * pid: a jint representing the process
245 * Returns: a jstring representing the security context of the pid,
249 static jstring getPidCon(JNIEnv *env, jobject, jint pid) { argument
255 int ret = getpidcon(static_cast<pid_t>(pid), &tmp);
263 ALOGV("getPidCon(%d) => %s", pid, context.get());
/frameworks/native/cmds/screenshot/
H A Dscreenshot.c92 pid_t pid = fork(); local
93 if (pid == 0) {
/frameworks/native/services/surfaceflinger/
H A DClient.cpp93 const int pid = ipc->getCallingPid(); local
96 if (CC_UNLIKELY(pid != self_pid && uid != AID_GRAPHICS && uid != 0)) {
101 "can't openGlobalTransaction pid=%d, uid=%d", pid, uid);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DUsimDataDownloadHandler.java115 int pid = smsMessage.getProtocolIdentifier();
170 EVENT_SEND_ENVELOPE_RESPONSE, new int[]{ dcs, pid }));
199 private void sendSmsAckForEnvelopeResponse(IccIoResult response, int dcs, int pid) { argument
244 smsAckPdu[index++] = (byte) pid;
/frameworks/testing/uiautomator/library/testrunner-src/com/android/uiautomator/core/
H A DUiAutomationShellWrapper.java100 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument
107 public int appEarlyNotResponding(String processName, int pid, String annotation) argument
114 public int appNotResponding(String processName, int pid, String processStats) argument
/frameworks/av/services/camera/libcameraservice/api_pro/
H A DProCamera2Client.cpp397 const int pid = IPCThreadState::self()->getCallingPid(); local
423 if (pid == selfPid) {
438 "can't disable transmit LED pid=%d, uid=%d", pid, uid);
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteConnection.java194 int pid = -1;
223 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, parsedArgs.gids,
238 if (pid == 0) {
248 // in parent...pid of < 0 means failure
251 return handleParentProc(pid, descriptors, serverPipeFd, parsedArgs);
543 * After the zygote process reads these it will write the pid of
946 * @param pid != 0; pid of child if &gt; 0 or indication of failed fork
955 private boolean handleParentProc(int pid, argument
958 if (pid >
1013 setChildPgid(int pid) argument
[all...]
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java106 Uri uri, String readPermission, String writePermission, int pid,
112 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { argument
105 checkUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp102 long pid = getpid(); local
104 snprintf(procPath, 128, "/proc/%ld/cmdline", pid);

Completed in 986 milliseconds

1234