/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/core/java/android/app/ |
H A D | IProcessObserver.aidl | 21 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities); 22 void onProcessDied(int pid, int uid);
|
H A D | IActivityController.aidl | 46 boolean appCrashed(String processName, int pid, 53 int appEarlyNotResponding(String processName, int pid, String annotation); 60 int appNotResponding(String processName, int pid, String processStats);
|
/frameworks/av/include/media/stagefright/ |
H A D | ProcessInfoInterface.h | 25 virtual bool getPriority(int pid, int* priority) = 0; 26 virtual bool isValidPid(int pid) = 0;
|
H A D | ProcessInfo.h | 29 virtual bool getPriority(int pid, int* priority); 30 virtual bool isValidPid(int pid);
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
H A D | ProcessInfoInterface.h | 25 virtual bool getPriority(int pid, int* priority) = 0; 26 virtual bool isValidPid(int pid) = 0;
|
H A D | ProcessInfo.h | 29 virtual bool getPriority(int pid, int* priority); 30 virtual bool isValidPid(int pid);
|
/frameworks/base/core/java/android/os/ |
H A D | ISchedulingPolicyService.aidl | 29 * The thread group leader of tid must be pid. 32 int requestPriority(int pid, int tid, int prio, boolean isForApp);
|
H A D | IPermissionController.aidl | 22 boolean checkPermission(String permission, int pid, int uid);
|
H A D | Process.java | 598 * @param pid the process id 602 public static final int getUidForPid(int pid) { argument 606 Process.readProcLines("/proc/" + pid + "/status", procStatusLabels, procStatusValues); 612 * @param pid the process id 616 public static final int getParentPid(int pid) { argument 620 Process.readProcLines("/proc/" + pid + "/status", procStatusLabels, procStatusValues); 702 * @param pid The identifier of the process to change. 719 public static final native void setProcessGroup(int pid, int group) argument 727 public static final native int getProcessGroup(int pid) argument 842 * @param pid Th 850 setSwappiness(int pid, boolean is_increased) argument 873 killProcess(int pid) argument 889 sendSignal(int pid, int signal) argument 897 killProcessQuiet(int pid) argument 907 sendSignalQuiet(int pid, int signal) argument 964 getPss(int pid) argument 975 public int pid; field in class:Process.ProcessStartResult 988 killProcessGroup(int uid, int pid) argument 1003 isThreadInProcess(int tid, int pid) argument [all...] |
/frameworks/base/media/java/android/media/ |
H A D | IMediaResourceMonitor.aidl | 22 oneway void notifyResourceGranted(in int pid, in int type);
|
/frameworks/av/services/audioflinger/ |
H A D | ServiceUtilities.h | 23 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid); 24 bool captureAudioOutputAllowed(pid_t pid, uid_t uid); 25 bool captureHotwordAllowed(pid_t pid, uid_t uid);
|
H A D | ServiceUtilities.cpp | 51 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { argument 57 // We specify a pid and uid here as mediaserver (aka MediaRecorder or StageFrightRecorder) 58 // may open a record track on behalf of a client. Note that pid may be a tid. 60 const bool ok = checkPermission(sRecordAudio, pid, uid); 108 bool captureAudioOutputAllowed(pid_t pid, uid_t uid) { argument 111 bool ok = checkPermission(sCaptureAudioOutput, pid, uid); 116 bool captureHotwordAllowed(pid_t pid, uid_t uid) { argument 118 bool ok = recordingAllowed(String16(""), pid, uid); 147 // don't optimize for same pid, since mediaserver never dumps itself
|
/frameworks/av/media/utils/include/mediautils/ |
H A D | SchedulingPolicyService.h | 22 // 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 isForApp, bool asynchronous = false);
|
/frameworks/base/core/java/android/service/vr/ |
H A D | IVrListener.aidl | 23 void focusedActivityChanged(in ComponentName component, boolean running2dInVr, int pid);
|
/frameworks/native/services/nativeperms/android/os/ |
H A D | IPermissionController.aidl | 22 boolean checkPermission(String permission, int pid, int uid);
|
/frameworks/base/libs/hwui/tests/scripts/ |
H A D | stopruntime.sh | 21 for pid in $( adb shell ps | awk '{ if ( $9 == "surfaceflinger" ) { print $2 } }' ); do 22 adb shell kill $pid
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessMemInfo.java | 21 final int pid; field in class:ProcessMemInfo 32 pid = _pid;
|
/frameworks/av/media/utils/ |
H A D | ProcessInfo.cpp | 31 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/av/services/oboeservice/ |
H A D | AAudioClientTracker.cpp | 65 aaudio_result_t AAudioClientTracker::registerClient(pid_t pid, argument 67 ALOGV("AAudioClientTracker::registerClient(), calling pid = %d, getpid() = %d\n", 68 pid, getpid()); 71 if (mNotificationClients.count(pid) == 0) { 72 sp<NotificationClient> notificationClient = new NotificationClient(pid); 73 mNotificationClients[pid] = notificationClient; 81 ALOGW("AAudioClientTracker::registerClient(%d) already registered!", pid); 86 void AAudioClientTracker::unregisterClient(pid_t pid) { argument 87 ALOGV("AAudioClientTracker::unregisterClient(), calling pid = %d, getpid() = %d\n", 88 pid, getpi 93 getStreamCount(pid_t pid) argument 104 registerClientStream(pid_t pid, sp<AAudioServiceStreamBase> serviceStream) argument 121 unregisterClientStream(pid_t pid, sp<AAudioServiceStreamBase> serviceStream) argument 137 NotificationClient(pid_t pid) argument [all...] |
H A D | AAudioClientTracker.h | 49 aaudio_result_t registerClient(pid_t pid, const android::sp<android::IAAudioClient>& client); 51 void unregisterClient(pid_t pid); 53 int32_t getStreamCount(pid_t pid); 55 aaudio_result_t registerClientStream(pid_t pid, 58 aaudio_result_t unregisterClientStream(pid_t pid, 76 NotificationClient(pid_t pid);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
H A D | BinderUtilTest.java | 59 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/native/services/vr/virtual_touchpad/ |
H A D | VirtualTouchpadService.cpp | 29 pid_t pid; local 30 if (!CheckTouchPermission(&pid)) { 33 if (client_pid_ == pid) { 38 ALOGE("pid=%ld attached twice", static_cast<long>(pid)); 46 ALOGE("pid=%ld replaces %ld", static_cast<long>(pid), 48 client_pid_ = pid; 51 client_pid_ = pid; 104 const pid_t pid local 121 pid_t pid; local [all...] |
/frameworks/av/services/mediaresourcemanager/ |
H A D | ResourceManagerService.h | 62 int pid, 67 virtual void removeResource(int pid, int64_t clientId); 74 void removeResource(int pid, int64_t clientId, bool checkValid); 96 bool getLowestPriorityPid_l(MediaResource::Type type, int *pid, int *priority); 98 // Gets the client who owns biggest piece of specified resource type from pid. 100 bool getBiggestClient_l(int pid, MediaResource::Type type, sp<IResourceManagerClient> *client); 102 bool isCallingPriorityHigher_l(int callingPid, int pid);
|
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | MediaResourceMonitorService.java | 54 public void notifyResourceGranted(int pid, int type) argument 57 Slog.d(TAG, "notifyResourceGranted(pid=" + pid + ", type=" + type + ")"); 61 String pkgNames[] = getPackageNamesFromPid(pid); 83 private String[] getPackageNamesFromPid(int pid) { argument 87 if (proc.pid == pid) {
|