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

123

/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/base/libs/utils/
H A DIPermissionController.cpp40 virtual bool checkPermission(const String16& permission, int32_t pid, int32_t uid) argument
45 data.writeInt32(pid);
72 int32_t pid = data.readInt32(); local
74 bool res = checkPermission(permission, pid, uid);
H A DIServiceManager.cpp59 int32_t pid = ipcState->getCallingPid(); local
61 if (outPid) *outPid = pid;
73 bool res = pc->checkPermission(permission, pid, uid);
76 LOGI("Check passed after %d seconds for %s from uid=%d pid=%d",
78 String8(permission).string(), uid, pid);
85 LOGW("Permission failure: %s from uid=%d pid=%d",
86 String8(permission).string(), uid, pid);
104 LOGI("Waiting to check permission %s from uid=%d pid=%d",
105 String8(permission).string(), uid, pid);
/frameworks/base/cmds/dumpstate/
H A Ddumpstate.c167 pid_t pid; local
247 if ((pid = fork()) < 0)
253 if (pid) {
H A Dutils.c105 pid_t pid; local
108 pid = fork();
110 if (pid < 0)
111 return pid;
114 if (pid == 0) {
130 alarm_pid = pid;
134 waitpid(pid, &status, 0);
/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/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp59 // get the info in /proc/[pid]/map
63 pid_t pid = getpid(); local
66 sprintf(path, "/proc/%d/maps", pid);
H A Dandroid_database_SQLiteDebug.cpp161 static void load_maps(int pid, int *sharedPages, int *privatePages) argument
166 sprintf(tmp, "/proc/%d/smaps", pid);
H A Dandroid_os_Debug.cpp190 static void load_maps(int pid, stats_t* stats) argument
195 sprintf(tmp, "/proc/%d/smaps", pid);
H A Dandroid_os_Exec.cpp47 pid_t pid; local
62 pid = fork();
63 if(pid < 0) {
68 if(pid == 0){
85 *pProcessId = (int) pid;
H A Dcom_android_internal_os_ZygoteInit.cpp80 JNIEnv* env, jobject clazz, jint pid, jint pgid)
86 err = setpgid(pid, pgid);
93 * private static native int getpgid(int pid)
96 JNIEnv* env, jobject clazz, jint pid)
99 ret = getpgid(pid);
213 capheader.pid = 0;
230 jobject clazz, jint pid)
243 capheader.pid = pid;
79 com_android_internal_os_ZygoteInit_setpgid( JNIEnv* env, jobject clazz, jint pid, jint pgid) argument
95 com_android_internal_os_ZygoteInit_getpgid( JNIEnv* env, jobject clazz, jint pid) argument
229 com_android_internal_os_ZygoteInit_capgetPermitted(JNIEnv *env, jobject clazz, jint pid) argument
/frameworks/base/services/java/com/android/server/am/
H A DReceiverList.java40 public final int pid; field in class:ReceiverList
52 pid = _pid;
71 pw.print(" pid="); pw.print(pid); pw.print(" uid="); pw.println(uid);
101 sb.append(pid);
/frameworks/base/tools/preload/
H A DRecord.java40 final int pid; field in class:Record
82 pid = Integer.parseInt(parts[1]);
/frameworks/base/cmds/runtime/
H A DSignalHandler.cpp76 LOGD("SIGCHLD: pid=%d, handle index=%d", entry.info.si_pid, i);
81 "Received SIGCHLD, but pid %d is not yet stopped",
87 LOGW("Unhandled SIGCHLD for pid %d", entry.info.si_pid);
137 // Note: this replaces an existing entry for this pid, if there already
139 LOGD("setChildHandler adding pid %d, tag %d, handler %p, data %p",
157 const pid_t pid = ch.childPid; local
158 LOGI("Killing child %d (tag %d)\n", pid, ch.tag);
159 kill(pid, SIGKILL);
208 LOGV("Signal %d: signo=%d, errno=%d, code=%d, pid=%d\n",
/frameworks/base/libs/ui/
H A DISurfaceFlingerClient.cpp76 int pid,
85 data.writeInt32(pid);
145 const int pid = ipc->getCallingPid(); local
148 if (UNLIKELY(pid != self_pid && uid != AID_GRAPHICS)) {
154 "can't openGlobalTransaction pid=%d, uid=%d", pid, uid);
163 int32_t pid = data.readInt32(); local
169 sp<ISurface> s = createSurface(&params, pid, display, w, h, format, flags);
75 createSurface( surface_data_t* params, int pid, DisplayID display, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
/frameworks/base/media/libmedia/
H A DIMediaPlayerService.cpp45 virtual sp<IMediaMetadataRetriever> createMetadataRetriever(pid_t pid) argument
49 data.writeInt32(pid);
54 virtual sp<IMediaPlayer> create(pid_t pid, const sp<IMediaPlayerClient>& client, const char* url) argument
58 data.writeInt32(pid);
65 virtual sp<IMediaRecorder> createMediaRecorder(pid_t pid) argument
69 data.writeInt32(pid);
74 virtual sp<IMediaPlayer> create(pid_t pid, const sp<IMediaPlayerClient>& client, int fd, int64_t offset, int64_t length) argument
78 data.writeInt32(pid);
130 pid_t pid = data.readInt32(); local
133 sp<IMediaPlayer> player = create(pid, clien
139 pid_t pid = data.readInt32(); local
178 pid_t pid = data.readInt32(); local
185 pid_t pid = data.readInt32(); local
[all...]
/frameworks/base/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp43 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument
45 LOGV("MetadataRetrieverClient constructor pid(%d)", pid);
46 mPid = pid;
70 snprintf(buffer, 255, " pid(%d)\n", mPid);
79 LOGV("disconnect from pid %d", mPid);
H A DMediaRecorderClient.cpp278 MediaRecorderClient::MediaRecorderClient(pid_t pid) argument
281 mPid = pid;
/frameworks/base/test-runner/android/test/
H A DIsolatedContext.java70 Uri uri, String readPermission, String writePermission, int pid,
76 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { argument
69 checkUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
/frameworks/base/tools/localize/
H A DPerforce.cpp21 pid_t pid; local
33 pid = fork();
34 if (pid == -1) {
39 else if (pid == 0) {
83 waitpid(pid, &err, 0);
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteConnection.java196 int pid;
212 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid,
216 pid = -1;
220 pid = -1;
223 if (pid == 0) {
228 } else { /* pid != 0 */
229 // in parent...pid of < 0 means failure
230 return handleParentProc(pid, descriptors, parsedArgs);
467 * After the zygote process reads these it will write the pid of
761 * @param pid !
769 handleParentProc(int pid, FileDescriptor[] descriptors, Arguments parsedArgs) argument
[all...]
H A DZygoteInit.java486 int pid;
501 pid = Zygote.forkSystemServer(
509 if (pid == 0) {
569 int pid;
571 pid = Zygote.fork();
573 if (pid == 0) {
587 } else if (pid > 0) {
676 * @param pid pid to change
677 * @param pgid new process group of pid
680 setpgid(int pid, int pgid) argument
689 getpgid(int pid) argument
731 capgetPermitted(int pid) argument
[all...]
/frameworks/base/cmds/installd/
H A Dcommands.c432 static int wait_dexopt(pid_t pid, const char* apk_path) argument
441 got_pid = waitpid(pid, &status, 0);
448 if (got_pid != pid) {
450 (int) pid, (int) got_pid, strerror(errno));
524 pid_t pid; local
525 pid = fork();
526 if (pid == 0) {
544 res = wait_dexopt(pid, apk_path);
/frameworks/base/core/java/android/app/
H A DActivityManager.java289 public int pid; field in class:ActivityManager.RunningServiceInfo
344 dest.writeInt(pid);
357 pid = source.readInt();
504 * The pid of this process; 0 if none
506 public int pid; field in class:ActivityManager.ProcessErrorStateInfo
545 dest.writeInt(pid);
557 pid = source.readInt();
612 * The pid of this process; 0 if none
614 public int pid; field in class:ActivityManager.RunningAppProcessInfo
675 pid
[all...]
/frameworks/base/libs/surfaceflinger/GPUHardware/
H A DGPUHardware.cpp82 virtual void revoke(int pid);
83 virtual sp<MemoryDealer> request(int pid);
84 virtual status_t request(int pid,
110 pid_t pid; member in struct:android::GPUHardware::Client
118 Client& getClientLocked(pid_t pid);
119 status_t requestLocked(int pid);
271 //LOGD("pid %d voluntarily revoking gpu", callingPid);
337 status_t GPUHardware::requestLocked(int pid) argument
340 if (pid == self_pid) {
345 if (mOwner != pid) {
376 request(int pid) argument
389 request(int pid, const sp<IGPUCallback>& callback, ISurfaceComposer::gpu_info_t* gpu) argument
420 revoke(int pid) argument
472 getClientLocked(pid_t pid) argument
544 pid_t pid = mRegisteredClients.valueFor(who); local
[all...]

Completed in 320 milliseconds

123