Searched defs:pid (Results 1 - 25 of 88) 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/core/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.cpp39 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument
44 data.writeInt32(pid);
65 int32_t pid = data.readInt32(); local
67 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.cpp61 pid_t pid = ipcState->getCallingPid(); local
63 if (outPid) *outPid = pid;
65 return checkPermission(permission, pid, uid);
68 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) argument
79 bool res = pc->checkPermission(permission, pid, uid);
82 ALOGI("Check passed after %d seconds for %s from uid=%d pid=%d",
84 String8(permission).string(), uid, pid);
91 ALOGW("Permission failure: %s from uid=%d pid=%d",
92 String8(permission).string(), uid, pid);
110 ALOGI("Waiting to check permission %s from uid=%d pid
[all...]
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessMemInfo.java21 final int pid; field in class:ProcessMemInfo
32 pid = _pid;
H A DReceiverList.java37 public final int pid; field in class:ReceiverList
50 pid = _pid;
70 pw.print(" pid="); pw.print(pid); pw.print(" uid="); pw.print(uid);
101 sb.append(pid);
/frameworks/base/core/java/android/app/
H A DAppImportanceMonitor.java50 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) {
54 public void onProcessStateChanged(int pid, int uid, int procState) {
56 updateImportanceLocked(pid, uid,
63 public void onProcessDied(int pid, int uid) {
65 updateImportanceLocked(pid, uid,
98 updateImportanceLocked(app.uid, app.pid, app.importance, false);
117 void updateImportanceLocked(int uid, int pid, int importance, boolean repChange) { argument
124 ent.procs.remove(pid);
126 ent.procs.put(pid, importance);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputBinding.java56 * @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 DRecord.java83 final int pid; field in class:Record
129 pid = Integer.parseInt(parts[1]);
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp45 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument
47 ALOGV("MetadataRetrieverClient constructor pid(%d)", pid);
48 mPid = pid;
66 snprintf(buffer, 255, " pid(%d)\n", mPid);
75 ALOGV("disconnect from pid %d", mPid);
H A DMediaRecorderClient.cpp304 MediaRecorderClient::MediaRecorderClient(const sp<MediaPlayerService>& service, pid_t pid) argument
307 mPid = pid;
/frameworks/base/cmds/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/base/core/java/android/os/
H A DSELinux.java96 * @param pid an int representing the process id to check.
97 * @return a String representing the security context of the given pid.
99 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);
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
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/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/av/services/camera/libcameraservice/api_pro/
H A DProCamera2Client.cpp394 const int pid = IPCThreadState::self()->getCallingPid(); local
420 if (pid == selfPid) {
435 "can't disable transmit LED pid=%d, uid=%d", pid, uid);
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java104 Uri uri, String readPermission, String writePermission, int pid,
110 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { argument
103 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);
/frameworks/av/media/libstagefright/
H A DOMXClient.cpp42 virtual bool livesLocally(node_id node, pid_t pid);
195 bool MuxOMX::livesLocally(node_id node, pid_t pid) { argument
196 return getOMX(node)->livesLocally(node, pid);

Completed in 1413 milliseconds

1234