/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 | ChildZygoteProcess.java | 33 ChildZygoteProcess(LocalSocketAddress socketAddress, int pid) { argument 35 mPid = pid;
|
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);
|
/frameworks/base/media/java/android/media/ |
H A D | IMediaResourceMonitor.aidl | 22 oneway void notifyResourceGranted(in int pid, in int type);
|
/frameworks/native/libs/dumputils/include/dumputils/ |
H A D | dump_utils.h | 26 bool IsZygote(int pid);
|
/frameworks/base/media/java/android/media/session/ |
H A D | ISessionCallback.aidl | 29 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 D | ServiceUtilities.h | 25 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 D | ServiceUtilities.cpp | 79 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 D | procpartition.cpp | 35 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 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/native/cmds/lshal/libprocpartition/include/procpartition/ |
H A D | procpartition.h | 38 // 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 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 | 66 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 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/base/services/core/java/com/android/server/os/ |
H A D | SchedulingPolicyService.java | 83 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...] |