Searched defs:pid (Results 1 - 25 of 63) 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/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 DPermission.cpp55 pid_t pid = ipcState->getCallingPid(); local
57 return doCheckPermission(pid, uid);
60 bool Permission::check(pid_t pid, uid_t uid) const argument
62 return doCheckPermission(pid, uid);
65 bool Permission::doCheckPermission(pid_t pid, uid_t uid) const argument
67 if ((uid == 0) || (pid == mPid)) {
77 bool granted = checkPermission(mPermissionName, pid, uid);
H A DIServiceManager.cpp60 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/include/private/ui/
H A Dsw_gralloc_handle.h41 int pid; member in struct:android::sw_gralloc_handle_t
48 fd(-1), magic(sMagic), size(0), base(0), prot(0), pid(getpid())
/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.cpp153 static void load_maps(int pid, int *sharedPages, int *privatePages) argument
158 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);
204 jint pid, jobject object)
209 load_maps(pid, &stats);
203 android_os_Debug_getDirtyPagesPid(JNIEnv *env, jobject clazz, jint pid, jobject object) argument
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.java53 final int pid; field in class:Record
99 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/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp61 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument
63 LOGV("MetadataRetrieverClient constructor pid(%d)", pid);
64 mPid = pid;
82 snprintf(buffer, 255, " pid(%d)\n", mPid);
91 LOGV("disconnect from pid %d", mPid);
H A DMediaRecorderClient.cpp292 MediaRecorderClient::MediaRecorderClient(const sp<MediaPlayerService>& service, pid_t pid) argument
295 mPid = pid;
H A DMediaPlayerService.h184 virtual sp<IMediaRecorder> createMediaRecorder(pid_t pid);
186 virtual sp<IMediaMetadataRetriever> createMetadataRetriever(pid_t pid);
190 pid_t pid, const sp<IMediaPlayerClient>& client, const char* url,
193 virtual sp<IMediaPlayer> create(pid_t pid, const sp<IMediaPlayerClient>& client, int fd, int64_t offset, int64_t length, int audioSessionId);
241 pid_t pid() const { return mPid; } function in class:android::MediaPlayerService::Client
249 pid_t pid,
/frameworks/base/tools/localize/
H A DPerforce.cpp24 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 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);
472 * After the zygote process reads these it will write the pid of
753 * @param pid !
761 handleParentProc(int pid, FileDescriptor[] descriptors, Arguments parsedArgs) argument
[all...]
H A DZygoteInit.java522 int pid;
537 pid = Zygote.forkSystemServer(
547 if (pid == 0) {
617 int pid;
619 pid = Zygote.fork();
621 if (pid == 0) {
635 } else if (pid > 0) {
724 * @param pid pid to change
725 * @param pgid new process group of pid
728 setpgid(int pid, int pgid) argument
737 getpgid(int pid) argument
779 capgetPermitted(int pid) argument
[all...]
/frameworks/base/libs/surfaceflinger_client/
H A DISurfaceComposerClient.cpp86 int pid,
96 data.writeInt32(pid);
157 const int pid = ipc->getCallingPid(); local
160 if (UNLIKELY(pid != self_pid && uid != AID_GRAPHICS)) {
166 "can't openGlobalTransaction pid=%d, uid=%d", pid, uid);
175 int32_t pid = data.readInt32(); local
182 sp<ISurface> s = createSurface(&params, pid, name, display, w, h,
85 createSurface( surface_data_t* params, int pid, const String8& name, DisplayID display, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags) argument
/frameworks/base/media/libmedia/
H A DIMediaPlayerService.cpp49 virtual sp<IMediaMetadataRetriever> createMetadataRetriever(pid_t pid) argument
53 data.writeInt32(pid);
59 pid_t pid, const sp<IMediaPlayerClient>& client,
63 data.writeInt32(pid);
84 virtual sp<IMediaRecorder> createMediaRecorder(pid_t pid) argument
88 data.writeInt32(pid);
93 virtual sp<IMediaPlayer> create(pid_t pid, const sp<IMediaPlayerClient>& client, int fd, argument
98 data.writeInt32(pid);
154 pid_t pid = data.readInt32(); local
169 pid, clien
58 create( pid_t pid, const sp<IMediaPlayerClient>& client, const char* url, const KeyedVector<String8, String8> *headers, int audioSessionId) argument
176 pid_t pid = data.readInt32(); local
217 pid_t pid = data.readInt32(); local
224 pid_t pid = data.readInt32(); local
[all...]
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java101 Uri uri, String readPermission, String writePermission, int pid,
107 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { argument
100 checkUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
/frameworks/base/cmds/dumpstate/
H A Dutils.c51 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);
144 pid_t pid = fork(); local
147 if (pid < 0) {
149 return pid;
380 int pid = atoi(d->d_name); local
[all...]
/frameworks/base/services/java/com/android/server/
H A DWatchdog.java204 public void processStarted(String name, int pid) { argument
207 mPhonePid = pid;
/frameworks/base/cmds/am/src/com/android/commands/am/
H A DAm.java482 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument
487 System.out.println("processPid: " + pid);
494 int result = waitControllerLocked(pid, STATE_CRASHED);
500 public int appEarlyNotResponding(String processName, int pid, String annotation) argument
505 System.out.println("processPid: " + pid);
507 int result = waitControllerLocked(pid, STATE_EARLY_ANR);
514 public int appNotResponding(String processName, int pid, String processStats) argument
519 System.out.println("processPid: " + pid);
523 int result = waitControllerLocked(pid, STATE_ANR);
543 int waitControllerLocked(int pid, in argument
[all...]

Completed in 408 milliseconds

123