Searched refs:pid (Results 1 - 25 of 199) sorted by relevance

12345678

/frameworks/base/core/java/android/app/
H A DIProcessObserver.aidl22 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities);
23 void onProcessStateChanged(int pid, int uid, int procState);
24 void onProcessDied(int pid, int uid);
H A DIActivityController.aidl46 boolean appCrashed(String processName, int pid,
53 int appEarlyNotResponding(String processName, int pid, String annotation);
60 int appNotResponding(String processName, int pid, String processStats);
H A DAppImportanceMonitor.java48 public void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) {
52 public void onProcessStateChanged(int pid, int uid, int procState) {
54 updateImportanceLocked(pid, uid,
61 public void onProcessDied(int pid, int uid) {
63 updateImportanceLocked(pid, uid,
96 updateImportanceLocked(app.uid, app.pid, app.importance, false);
115 void updateImportanceLocked(int uid, int pid, int importance, boolean repChange) { argument
122 ent.procs.remove(pid);
124 ent.procs.put(pid, importance);
/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/core/java/android/os/
H A DISchedulingPolicyService.aidl29 * The thread group leader of tid must be pid.
32 int requestPriority(int pid, int tid, int prio);
H A DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid);
/frameworks/av/include/media/stagefright/
H A DProcessInfoInterface.h25 virtual bool getPriority(int pid, int* priority) = 0;
26 virtual bool isValidPid(int pid) = 0;
H A DProcessInfo.h29 virtual bool getPriority(int pid, int* priority);
30 virtual bool isValidPid(int pid);
/frameworks/base/media/java/android/media/
H A DIMediaResourceMonitor.aidl22 oneway void notifyResourceGranted(in int pid, in int type);
/frameworks/av/media/utils/include/mediautils/
H A DSchedulingPolicyService.h22 // Request elevated priority for thread tid, whose thread group leader must be pid.
27 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool asynchronous = false);
/frameworks/av/services/audioflinger/
H A DServiceUtilities.h23 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid);
24 bool captureAudioOutputAllowed(pid_t pid, uid_t uid);
/frameworks/base/services/core/java/com/android/server/am/
H A DProcessMemInfo.java21 final int pid; field in class:ProcessMemInfo
32 pid = _pid;
/frameworks/av/media/libstagefright/
H A DProcessInfo.cpp31 bool ProcessInfo::getPriority(int pid, int* priority) { argument
40 status_t err = service->getProcessStatesAndOomScoresFromPids(length, &pid, &state, &score);
45 ALOGV("pid %d state %d score %d", pid, state, score);
47 ALOGE("pid %d invalid OOM adjustments value %d", pid, score);
56 bool ProcessInfo::isValidPid(int pid) { argument
58 // Trust it if this is called from the same process otherwise pid has to match the calling pid.
59 return (callingPid == getpid()) || (callingPid == pid);
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DBinderUtilTest.java59 final int pid = Binder.getCallingPid();
63 // Verify that setUid() can be used to fake the Binder uid without affecting the pid.
65 assertEquals(pid, Binder.getCallingPid());
69 // pid.
71 assertEquals(pid, Binder.getCallingPid());
81 final int pid = Binder.getCallingPid();
85 // Verify that setUid() can be used to fake the Binder uid without affecting the pid.
87 assertEquals(pid, Binder.getCallingPid());
92 assertEquals(pid, Binder.getCallingPid());
/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 + ")");
46 // Once we've verified that the caller uid is permitted, we can trust the pid but
47 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
50 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
55 Process.setThreadGroup(tid, Binder.getCallingPid() == pid ?
/frameworks/base/core/java/com/android/internal/os/
H A DZygote.java88 * @return 0 if this is the child, pid of the child
95 int pid = nativeForkAndSpecialize(
99 if (pid == 0) {
106 return pid;
115 * common actions performed in forkAndSpecialize, the pid of the child
133 * @return 0 if this is the child, pid of the child
139 int pid = nativeForkSystemServer(
142 if (pid == 0) {
146 return pid;
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaResourceMonitorService.java54 public void notifyResourceGranted(int pid, int type) argument
57 Slog.d(TAG, "notifyResourceGranted(pid=" + pid + ", type=" + type + ")");
61 String pkgNames[] = getPackageNamesFromPid(pid);
75 private String[] getPackageNamesFromPid(int pid) { argument
79 if (proc.pid == pid) {
/frameworks/base/libs/hwui/tests/scripts/
H A Dprep_volantis.sh22 for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do
23 adb shell kill $pid
/frameworks/native/libs/binder/
H A DIMediaResourceMonitor.cpp31 virtual void notifyResourceGranted(/*in*/ int32_t pid, /*in*/ const int32_t type) argument
35 data.writeInt32(pid);
50 int32_t pid = data.readInt32(); local
52 notifyResourceGranted(/*in*/ pid, /*in*/ type);
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
84 bool res = pc->checkPermission(permission, pid, uid);
87 ALOGI("Check passed after %d seconds for %s from uid=%d pid=%d",
89 String8(permission).string(), uid, pid);
96 ALOGW("Permission failure: %s from uid=%d pid=%d",
97 String8(permission).string(), uid, pid);
115 ALOGI("Waiting to check permission %s from uid=%d pid
[all...]
/frameworks/av/services/mediaresourcemanager/
H A DResourceManagerService.h61 int pid,
66 virtual void removeResource(int pid, int64_t clientId);
93 bool getLowestPriorityPid_l(MediaResource::Type type, int *pid, int *priority);
95 // Gets the client who owns biggest piece of specified resource type from pid.
97 bool getBiggestClient_l(int pid, MediaResource::Type type, sp<IResourceManagerClient> *client);
99 bool isCallingPriorityHigher_l(int callingPid, int pid);
/frameworks/av/drm/libmediadrm/
H A DDrmSessionManager.cpp68 int pid, sp<DrmSessionClientInterface> drm, const Vector<uint8_t> &sessionId) {
69 ALOGV("addSession(pid %d, drm %p, sessionId %s)", pid, drm.get(),
77 ssize_t index = mSessionMap.indexOfKey(pid);
79 // new pid
82 mSessionMap.add(pid, infosForPid);
170 ALOGV("reclaim session(%s) opened by pid %d",
181 int pid = -1; local
194 if (pid == -1) {
195 pid
67 addSession( int pid, sp<DrmSessionClientInterface> drm, const Vector<uint8_t> &sessionId) argument
211 getLeastUsedSession_l( int pid, sp<DrmSessionClientInterface>* drm, Vector<uint8_t>* sessionId) argument
[all...]
/frameworks/av/media/libmedia/
H A DIResourceManagerService.cpp74 int pid,
80 data.writeInt32(pid);
88 virtual void removeResource(int pid, int64_t clientId) { argument
91 data.writeInt32(pid);
131 int pid = data.readInt32(); local
140 addResource(pid, clientId, client, resources);
146 int pid = data.readInt32(); local
148 removeResource(pid, clientId);
73 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
/frameworks/av/media/utils/
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);

Completed in 916 milliseconds

12345678