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

1234567891011>>

/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/app/
H A DIProcessObserver.aidl21 void onForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities);
22 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);
/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/av/media/libstagefright/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/core/java/android/os/
H A DChildZygoteProcess.java33 ChildZygoteProcess(LocalSocketAddress socketAddress, int pid) { argument
35 mPid = pid;
H A DISchedulingPolicyService.aidl29 * The thread group leader of tid must be pid.
32 int requestPriority(int pid, int tid, int prio, boolean isForApp);
/frameworks/base/media/java/android/media/
H A DIMediaResourceMonitor.aidl22 oneway void notifyResourceGranted(in int pid, in int type);
/frameworks/native/libs/dumputils/include/dumputils/
H A Ddump_utils.h26 bool IsZygote(int pid);
/frameworks/base/media/java/android/media/session/
H A DISessionCallback.aidl29 void onCommand(String packageName, int pid, int uid, ISessionControllerCallback caller,
31 void onMediaButton(String packageName, int pid, int uid, in Intent mediaButtonIntent,
33 void onMediaButtonFromController(String packageName, int pid, int uid,
37 void onPrepare(String packageName, int pid, int uid, ISessionControllerCallback caller);
38 void onPrepareFromMediaId(String packageName, int pid, int uid,
40 void onPrepareFromSearch(String packageName, int pid, int uid,
42 void onPrepareFromUri(String packageName, int pid, int uid, ISessionControllerCallback caller,
44 void onPlay(String packageName, int pid, int uid, ISessionControllerCallback caller);
45 void onPlayFromMediaId(String packageName, int pid, int uid, ISessionControllerCallback caller,
47 void onPlayFromSearch(String packageName, int pid, in
[all...]
/frameworks/av/services/audioflinger/
H A DServiceUtilities.h25 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid);
26 bool startRecording(const String16& opPackageName, pid_t pid, uid_t uid);
28 bool captureAudioOutputAllowed(pid_t pid, uid_t uid);
29 bool captureHotwordAllowed(pid_t pid, uid_t uid);
33 bool modifyPhoneStateAllowed(pid_t pid, uid_t uid);
H A DServiceUtilities.cpp79 static bool checkRecordingInternal(const String16& opPackageName, pid_t pid, argument
85 // We specify a pid and uid here as mediaserver (aka MediaRecorder or StageFrightRecorder)
86 // may open a record track on behalf of a client. Note that pid may be a tid.
89 const bool ok = permissionController.checkPermission(sAndroidPermissionRecordAudio, pid, uid);
119 bool recordingAllowed(const String16& opPackageName, pid_t pid, uid_t uid) { argument
120 return checkRecordingInternal(opPackageName, pid, uid, /*start*/ false);
123 bool startRecording(const String16& opPackageName, pid_t pid, uid_t uid) { argument
124 return checkRecordingInternal(opPackageName, pid, uid, /*start*/ true);
144 bool captureAudioOutputAllowed(pid_t pid, uid_t uid) { argument
147 bool ok = PermissionCache::checkPermission(sCaptureAudioOutput, pid, ui
152 captureHotwordAllowed(pid_t pid, uid_t uid) argument
192 modifyPhoneStateAllowed(pid_t pid, uid_t uid) argument
[all...]
/frameworks/native/cmds/lshal/libprocpartition/
H A Dprocpartition.cpp35 std::string getExe(pid_t pid) { argument
38 if (!android::base::Readlink("/proc/" + std::to_string(pid) + "/exe", &exe)) {
47 std::string getCmdline(pid_t pid) { argument
49 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &content,
81 Partition getPartitionFromCmdline(pid_t pid) { argument
82 const auto& cmdline = getCmdline(pid);
92 Partition getPartitionFromExe(pid_t pid) { argument
93 const auto& real = getExe(pid);
101 Partition getPartition(pid_t pid) { argument
102 Partition partition = getPartitionFromExe(pid);
[all...]
/frameworks/base/core/java/android/service/vr/
H A DIVrListener.aidl23 void focusedActivityChanged(in ComponentName component, boolean running2dInVr, int pid);
/frameworks/native/services/nativeperms/android/os/
H A DIPermissionController.aidl22 boolean checkPermission(String permission, int pid, int uid);
/frameworks/native/cmds/lshal/libprocpartition/include/procpartition/
H A Dprocpartition.h38 // Return the path that /proc/<pid>/exe points to.
39 std::string getExe(pid_t pid);
40 // Return the content of /proc/<pid>/cmdline.
41 std::string getCmdline(pid_t pid);
42 // Infer the partition of a process from /proc/<pid>/exe and /proc/<pid>/cmdline.
43 Partition getPartition(pid_t pid);
/frameworks/base/libs/hwui/tests/scripts/
H A Dstopruntime.sh21 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 DProcessMemInfo.java21 final int pid; field in class:ProcessMemInfo
32 pid = _pid;
/frameworks/av/media/utils/
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/av/services/oboeservice/
H A DAAudioClientTracker.cpp66 aaudio_result_t AAudioClientTracker::registerClient(pid_t pid, argument
68 ALOGV("registerClient(), calling pid = %d, getpid() = %d\n", pid, getpid());
71 if (mNotificationClients.count(pid) == 0) {
72 sp<NotificationClient> notificationClient = new NotificationClient(pid);
73 mNotificationClients[pid] = notificationClient;
80 ALOGW("registerClient(%d) already registered!", pid);
85 void AAudioClientTracker::unregisterClient(pid_t pid) { argument
86 ALOGV("unregisterClient(), calling pid = %d, getpid() = %d\n", pid, getpi
91 getStreamCount(pid_t pid) argument
102 registerClientStream(pid_t pid, sp<AAudioServiceStreamBase> serviceStream) argument
119 unregisterClientStream(pid_t pid, sp<AAudioServiceStreamBase> serviceStream) argument
135 NotificationClient(pid_t pid) argument
[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/native/services/vr/virtual_touchpad/
H A DVirtualTouchpadService.cpp29 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/base/services/core/java/com/android/server/os/
H A DSchedulingPolicyService.java83 public int requestPriority(int pid, int tid, int prio, boolean isForApp) { argument
84 //Log.i(TAG, "requestPriority(pid=" + pid + ", tid=" + tid + ", prio=" + prio + ")");
89 // Once we've verified that the caller uid is permitted, we can trust the pid but
90 // we can't trust the tid. No need to explicitly check for pid == 0 || tid == 0,
93 prio > PRIORITY_MAX || Process.getThreadGroupLeader(tid) != pid) {
140 private int enableCpusetBoost(int pid, IBinder client) { argument
141 if (mBoostedPid == pid) {
145 // The mediacodec process has changed, clean up the old pid and
161 Log.i(TAG, "Moving " + pid
179 disableCpusetBoost(int pid) argument
[all...]

Completed in 3857 milliseconds

1234567891011>>