/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/base/libs/binder/ |
H A D | IPermissionController.cpp | 40 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 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
|
H A D | IServiceManager.cpp | 60 pid_t pid = ipcState->getCallingPid(); local 62 if (outPid) *outPid = pid; 64 return checkPermission(permission, pid, uid); 67 bool checkPermission(const String16& permission, pid_t pid, uid_t uid) argument 78 bool res = pc->checkPermission(permission, pid, uid); 81 LOGI("Check passed after %d seconds for %s from uid=%d pid=%d", 83 String8(permission).string(), uid, pid); 90 LOGW("Permission failure: %s from uid=%d pid=%d", 91 String8(permission).string(), uid, pid); 109 LOGI("Waiting to check permission %s from uid=%d pid [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | InputBinding.java | 57 * @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 D | android_ddm_DdmHandleNativeHeap.cpp | 59 // get the info in /proc/[pid]/map 63 pid_t pid = getpid(); local 66 sprintf(path, "/proc/%d/maps", pid);
|
H A D | com_android_internal_os_ZygoteInit.cpp | 70 JNIEnv* env, jobject clazz, jint pid, jint pgid) 72 if (setpgid(pid, pgid) < 0) { 80 * private static native int getpgid(int pid) 83 JNIEnv* env, jobject clazz, jint pid) 86 ret = getpgid(pid); 177 capheader.pid = 0; 193 jobject clazz, jint pid) 203 capheader.pid = pid; 69 com_android_internal_os_ZygoteInit_setpgid( JNIEnv* env, jobject clazz, jint pid, jint pgid) argument 82 com_android_internal_os_ZygoteInit_getpgid( JNIEnv* env, jobject clazz, jint pid) argument 192 com_android_internal_os_ZygoteInit_capgetPermitted(JNIEnv *env, jobject clazz, jint pid) argument
|
H A D | android_database_SQLiteDebug.cpp | 153 static void load_maps(int pid, int *sharedPages, int *privatePages) argument 158 sprintf(tmp, "/proc/%d/smaps", pid);
|
/frameworks/base/services/java/com/android/server/am/ |
H A D | ReceiverList.java | 40 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 D | Record.java | 55 final int pid; field in class:Record 101 pid = Integer.parseInt(parts[1]);
|
/frameworks/base/cmds/screenshot/ |
H A D | screenshot.c | 92 pid_t pid = fork(); local 93 if (pid == 0) {
|
/frameworks/base/media/libmediaplayerservice/ |
H A D | MetadataRetrieverClient.cpp | 47 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument 49 LOGV("MetadataRetrieverClient constructor pid(%d)", pid); 50 mPid = pid; 68 snprintf(buffer, 255, " pid(%d)\n", mPid); 77 LOGV("disconnect from pid %d", mPid);
|
H A D | MediaRecorderClient.cpp | 306 MediaRecorderClient::MediaRecorderClient(const sp<MediaPlayerService>& service, pid_t pid) argument 309 mPid = pid;
|
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
H A D | UsimDataDownloadHandler.java | 77 int pid = smsMessage.getProtocolIdentifier(); 132 EVENT_SEND_ENVELOPE_RESPONSE, new int[]{ dcs, pid })); 161 private void sendSmsAckForEnvelopeResponse(IccIoResult response, int dcs, int pid) { argument 206 smsAckPdu[index++] = (byte) pid;
|
/frameworks/base/tools/localize/ |
H A D | Perforce.cpp | 24 pid_t pid; local 36 pid = fork(); 37 if (pid == -1) { 42 else if (pid == 0) { 86 waitpid(pid, &err, 0);
|
/frameworks/base/core/java/com/android/internal/os/ |
H A D | ZygoteConnection.java | 203 int pid = -1; 231 pid = Zygote.forkAndSpecialize(parsedArgs.uid, parsedArgs.gid, 245 if (pid == 0) { 255 // in parent...pid of < 0 means failure 258 return handleParentProc(pid, descriptors, serverPipeFd, parsedArgs); 542 * After the zygote process reads these it will write the pid of 881 * @param pid != 0; pid of child if > 0 or indication of failed fork 890 private boolean handleParentProc(int pid, argument 893 if (pid > 960 setChildPgid(int pid) argument [all...] |
H A D | ZygoteInit.java | 485 int pid; 493 pid = Zygote.forkSystemServer( 505 if (pid == 0) { 571 int pid; 573 pid = Zygote.fork(); 575 if (pid == 0) { 589 } else if (pid > 0) { 678 * @param pid pid to change 679 * @param pgid new process group of pid 682 setpgid(int pid, int pgid) argument 691 getpgid(int pid) argument 724 capgetPermitted(int pid) argument [all...] |
/frameworks/base/media/libmedia/ |
H A D | IMediaPlayerService.cpp | 51 virtual sp<IMediaMetadataRetriever> createMetadataRetriever(pid_t pid) argument 55 data.writeInt32(pid); 61 pid_t pid, const sp<IMediaPlayerClient>& client, int audioSessionId) { 64 data.writeInt32(pid); 72 virtual sp<IMediaRecorder> createMediaRecorder(pid_t pid) argument 76 data.writeInt32(pid); 138 pid_t pid = data.readInt32(); local 142 sp<IMediaPlayer> player = create(pid, client, audioSessionId); 176 pid_t pid = data.readInt32(); local 177 sp<IMediaRecorder> recorder = createMediaRecorder(pid); 60 create( pid_t pid, const sp<IMediaPlayerClient>& client, int audioSessionId) argument 183 pid_t pid = data.readInt32(); local [all...] |
H A D | IOMX.cpp | 62 virtual bool livesLocally(pid_t pid) { argument 65 data.writeInt32(pid);
|
/frameworks/base/opengl/libs/EGL/ |
H A D | egl.cpp | 88 long pid = getpid(); local 90 sprintf(procPath, "/proc/%ld/cmdline", pid);
|
/frameworks/base/test-runner/src/android/test/ |
H A D | IsolatedContext.java | 106 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/base/cmds/dumpstate/ |
H A D | utils.c | 51 int pid; local 56 if (!(pid = atoi(de->d_name))) { 60 sprintf(cmdpath,"/proc/%d/cmdline", pid); 68 func(pid, cmdline); 74 void show_wchan(int pid, const char *name) { argument 81 sprintf(path, "/proc/%d/wchan", pid); 92 printf("%-7d %-32s %s\n", pid, name, buffer); 99 void do_showmap(int pid, const char *name) { argument 103 sprintf(title, "SHOW MAP %d (%s)", pid, name); 104 sprintf(arg, "%d", pid); 153 pid_t pid = fork(); local 390 int pid = atoi(d->d_name); local [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | Watchdog.java | 203 public void processStarted(String name, int pid) { argument 206 mPhonePid = pid;
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
H A D | Am.java | 774 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument 779 System.out.println("processPid: " + pid); 786 int result = waitControllerLocked(pid, STATE_CRASHED); 792 public int appEarlyNotResponding(String processName, int pid, String annotation) argument 797 System.out.println("processPid: " + pid); 799 int result = waitControllerLocked(pid, STATE_EARLY_ANR); 806 public int appNotResponding(String processName, int pid, String processStats) argument 811 System.out.println("processPid: " + pid); 815 int result = waitControllerLocked(pid, STATE_ANR); 835 int waitControllerLocked(int pid, in argument [all...] |
/frameworks/base/cmds/installd/ |
H A D | commands.c | 449 static int wait_dexopt(pid_t pid, const char* apk_path) argument 458 got_pid = waitpid(pid, &status, 0); 465 if (got_pid != pid) { 467 (int) pid, (int) got_pid, strerror(errno)); 541 pid_t pid; local 542 pid = fork(); 543 if (pid == 0) { 561 res = wait_dexopt(pid, apk_path);
|