Searched refs:pid (Results 51 - 75 of 123) sorted by relevance

12345

/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java106 Uri uri, String readPermission, String writePermission, int pid,
112 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { argument
105 checkUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
/frameworks/native/cmds/screenshot/
H A Dscreenshot.c92 pid_t pid = fork(); local
93 if (pid == 0) {
/frameworks/av/media/libmediaplayerservice/
H A DMediaRecorderClient.h66 pid_t pid);
H A DMetadataRetrieverClient.cpp44 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument
46 ALOGV("MetadataRetrieverClient constructor pid(%d)", pid);
47 mPid = pid;
65 snprintf(buffer, 255, " pid(%d)\n", mPid);
74 ALOGV("disconnect from pid %d", mPid);
H A DMediaRecorderClient.cpp303 MediaRecorderClient::MediaRecorderClient(const sp<MediaPlayerService>& service, pid_t pid) argument
306 mPid = pid;
/frameworks/base/core/java/android/os/
H A DINetworkManagementService.aidl406 * Set a process (pid) to use the name servers associated with the specified interface.
408 void setDnsInterfaceForPid(String iface, int pid);
411 * Clear a process (pid) from being associated with an interface.
413 void clearDnsInterfaceForPid(int pid);
426 * Clear the mappings from pid to Dns interface and from uid range to Dns interface.
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp262 snprintf(buffer, SIZE, " pid: %d\n", client->pid());
269 snprintf(buffer, SIZE, " pid: %d\n", mNotificationClients.keyAt(i));
274 result.append(" session pid count\n");
305 "can't dump AudioFlinger from pid=%d, uid=%d\n",
391 sp<AudioFlinger::Client> AudioFlinger::registerPid_l(pid_t pid) argument
393 // If pid is already in the mClients wp<> map, then use that entry
395 sp<Client> client = mClients.valueFor(pid).promote();
397 client = new Client(this, pid);
398 mClients.add(pid, clien
486 pid_t pid = IPCThreadState::self()->getCallingPid(); local
1067 pid_t pid = IPCThreadState::self()->getCallingPid(); local
1091 removeNotificationClient(pid_t pid) argument
1129 removeClient_l(pid_t pid) argument
1155 Client(const sp<AudioFlinger>& audioFlinger, pid_t pid) argument
1204 NotificationClient(const sp<AudioFlinger>& audioFlinger, const sp<IAudioFlingerClient>& client, pid_t pid) argument
1277 pid_t pid = IPCThreadState::self()->getCallingPid(); local
2093 pid_t pid = IPCThreadState::self()->getCallingPid(); local
[all...]
/frameworks/base/services/java/com/android/server/am/
H A DBroadcastQueue.java175 public boolean isPendingBroadcastProcessLocked(int pid) { argument
176 return mPendingBroadcast != null && mPendingBroadcast.curApp.pid == pid;
257 if (br != null && br.curApp.pid == app.pid) {
277 public void skipPendingBroadcastLocked(int pid) { argument
279 if (br != null && br.curApp.pid == pid) {
438 + " from " + r.callerPackage + " (pid="
447 filter.receiverList.pid, filte
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DZygoteInit.java521 int pid;
529 pid = Zygote.forkSystemServer(
541 if (pid == 0) {
690 * @param pid pid to change
691 * @param pgid new process group of pid
694 static native int setpgid(int pid, int pgid); argument
699 * @param pid pid to query
700 * @return pgid of pid i
703 getpgid(int pid) argument
736 capgetPermitted(int pid) argument
[all...]
/frameworks/av/services/camera/libcameraservice/api_pro/
H A DProCamera2Client.cpp397 const int pid = IPCThreadState::self()->getCallingPid(); local
423 if (pid == selfPid) {
438 "can't disable transmit LED pid=%d, uid=%d", pid, uid);
/frameworks/base/core/jni/
H A Dandroid_os_SELinux.cpp242 * Purpose: Get the context of a process identified by its pid
244 * pid: a jint representing the process
245 * Returns: a jstring representing the security context of the pid,
249 static jstring getPidCon(JNIEnv *env, jobject, jint pid) { argument
255 int ret = getpidcon(static_cast<pid_t>(pid), &tmp);
263 ALOGV("getPidCon(%d) => %s", pid, context.get());
/frameworks/base/services/java/com/android/server/wifi/
H A DWifiService.java374 final int pid; field in class:WifiService.BatchedScanRequest
381 this.pid = getCallingPid();
385 stopBatchedScan(settings, uid, pid);
391 public boolean isSameApp(int uid, int pid) { argument
392 return (this.uid == uid && this.pid == pid);
460 private void stopBatchedScan(BatchedScanSettings settings, int uid, int pid) { argument
464 if (r.isSameApp(uid, pid) && (settings == null || settings.equals(r.settings))) {
593 Slog.d(TAG, "setWifiEnabled: " + enable + " pid=" + Binder.getCallingPid()
1193 pw.println("Permission Denial: can't dump WifiService from from pid
1322 enforceWakeSourcePermission(int uid, int pid) argument
[all...]
/frameworks/base/tests/SmokeTest/tests/src/com/android/smoketest/
H A DProcessErrorsTest.java345 && (info.pid == peOther.info.pid)
366 code += info.pid;
/frameworks/testing/app-tests/AppLaunchTest/src/com/android/applaunchtest/
H A DAppLaunchTest.java289 && (info.pid == peOther.info.pid)
310 code += info.pid;
/frameworks/base/cmds/am/src/com/android/commands/am/
H A DAm.java166 " may be either a process name or pid. Options are:\n" +
171 " be either a process name or pid. Options are:\n" +
1118 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument
1123 System.out.println("processPid: " + pid);
1130 int result = waitControllerLocked(pid, STATE_CRASHED);
1136 public int appEarlyNotResponding(String processName, int pid, String annotation) { argument
1140 System.out.println("processPid: " + pid);
1142 int result = waitControllerLocked(pid, STATE_EARLY_ANR);
1149 public int appNotResponding(String processName, int pid, String processStats) { argument
1153 System.out.println("processPid: " + pid);
1188 waitControllerLocked(int pid, int state) argument
[all...]
/frameworks/base/core/java/android/app/
H A DContextImpl.java1653 public int checkPermission(String permission, int pid, int uid) { argument
1660 permission, pid, uid);
1672 int pid = Binder.getCallingPid();
1673 if (pid != Process.myPid()) {
1674 return checkPermission(permission, pid, Binder.getCallingUid());
1704 String permission, int pid, int uid, String message) {
1706 checkPermission(permission, pid, uid),
1750 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { argument
1753 uri, pid, uid, modeFlags);
1761 int pid
1703 enforcePermission( String permission, int pid, int uid, String message) argument
1776 checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
1831 enforceUriPermission( Uri uri, int pid, int uid, int modeFlags, String message) argument
1854 enforceUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags, String message) argument
[all...]
H A DActivityManager.java998 public int pid; field in class:ActivityManager.RunningServiceInfo
1102 dest.writeInt(pid);
1119 pid = source.readInt();
1501 * The pid of this process; 0 if none
1503 public int pid; field in class:ActivityManager.ProcessErrorStateInfo
1549 dest.writeInt(pid);
1560 pid = source.readInt();
1609 * The pid of this process; 0 if none
1611 public int pid; field in class:ActivityManager.RunningAppProcessInfo
1741 * content providers is being used by another process. The pid o
[all...]
/frameworks/base/core/java/com/android/internal/view/
H A DIInputMethodManager.aidl44 in IInputContext inputContext, int uid, int pid);
/frameworks/native/cmds/installd/
H A Dcommands.c621 static int wait_dexopt(pid_t pid, const char* apk_path) argument
630 got_pid = waitpid(pid, &status, 0);
637 if (got_pid != pid) {
639 (int) pid, (int) got_pid, strerror(errno));
714 pid_t pid; local
715 pid = fork();
716 if (pid == 0) {
750 res = wait_dexopt(pid, apk_path);
/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp102 long pid = getpid(); local
104 snprintf(procPath, 128, "/proc/%ld/cmdline", pid);
/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp531 pid_t pid = fork(); local
532 if (pid < 0) {
536 } else if (pid > 0) {
540 pid_t actualPid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0));
541 if (actualPid != pid) {
/frameworks/base/services/java/com/android/server/
H A DLocationManagerService.java474 final int mPid; // pid of receiver
493 Receiver(ILocationListener listener, PendingIntent intent, int pid, int uid, argument
502 mAllowedResolutionLevel = getAllowedResolutionLevel(pid, uid);
504 mPid = pid;
889 * @param pid the PID
891 * @return resolution level allowed to the pid/uid pair
893 private int getAllowedResolutionLevel(int pid, int uid) { argument
895 pid, uid) == PackageManager.PERMISSION_GRANTED) {
898 pid, uid) == PackageManager.PERMISSION_GRANTED) {
1331 private Receiver getReceiverLocked(ILocationListener listener, int pid, in argument
1350 getReceiverLocked(PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
1416 checkListenerOrIntentLocked(ILocationListener listener, PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
1467 requestLocationUpdatesLocked(LocationRequest request, Receiver receiver, int pid, int uid, String packageName) argument
[all...]
/frameworks/base/services/java/com/android/server/input/
H A DInputManagerService.java517 final int pid = Binder.getCallingPid();
522 result = nativeInjectInputEvent(mPtr, event, pid, uid, mode,
529 Slog.w(TAG, "Input event injection from pid " + pid + " permission denied.");
535 Slog.w(TAG, "Input event injection from pid " + pid + " timed out.");
539 Slog.w(TAG, "Input event injection from pid " + pid + " failed.");
616 private void onInputDevicesChangedListenerDied(int pid) { argument
618 mInputDevicesChangedListeners.remove(pid);
1597 InputDevicesChangedListenerRecord(int pid, IInputDevicesChangedListener listener) argument
[all...]
/frameworks/av/media/libstagefright/
H A DOMXClient.cpp37 virtual bool livesLocally(node_id node, pid_t pid);
179 bool MuxOMX::livesLocally(node_id node, pid_t pid) { argument
180 return getOMX(node)->livesLocally(node, pid);
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DSinkActivity.java466 final int pid = device.getProductId();
468 && (pid == UsbAccessoryConstants.USB_ACCESSORY_PRODUCT_ID
469 || pid == UsbAccessoryConstants.USB_ACCESSORY_ADB_PRODUCT_ID);

Completed in 7316 milliseconds

12345