Searched defs:pid (Results 51 - 75 of 88) sorted by relevance

1234

/frameworks/base/services/core/java/com/android/server/am/
H A DBatteryStatsService.java250 public void noteStartWakelock(int uid, int pid, String name, String historyName, int type, argument
254 mStats.noteStartWakeLocked(uid, pid, name, historyName, type, unimportantForLogging,
259 public void noteStopWakelock(int uid, int pid, String name, String historyName, int type) { argument
262 mStats.noteStopWakeLocked(uid, pid, name, historyName, type,
267 public void noteStartWakelockFromSource(WorkSource ws, int pid, String name, argument
271 mStats.noteStartWakeFromSourceLocked(ws, pid, name, historyName,
276 public void noteChangeWakelockFromSource(WorkSource ws, int pid, String name, argument
281 mStats.noteChangeWakelockFromSourceLocked(ws, pid, name, historyName, type,
286 public void noteStopWakelockFromSource(WorkSource ws, int pid, String name, String historyName, argument
290 mStats.noteStopWakeFromSourceLocked(ws, pid, nam
[all...]
H A DProcessRecord.java66 int pid; // The process of this application; 0 if none field in class:ProcessRecord
240 pw.print(prefix); pw.print("pid="); pw.print(pid); pw.print(" starting=");
306 pid, SystemClock.elapsedRealtime());
408 pid = _pid;
528 EventLog.writeEvent(EventLogTags.AM_KILL, userId, pid, processName, setAdj, reason);
529 Process.killProcessQuiet(pid);
530 Process.killProcessGroup(info.uid, pid);
548 sb.append(pid);
/frameworks/base/services/core/java/com/android/server/content/
H A DContentService.java124 int pid = sorted.get(i);
125 pw.print(" pid "); pw.print(pid); pw.print(": ");
126 pw.print(pidCounts.get(pid)); pw.println(" observers");
904 public final int pid; field in class:ContentService.ObserverNode.ObserverEntry
914 pid = _pid;
932 pidCounts.put(pid, pidCounts.get(pid)+1);
933 pw.print(prefix); pw.print(name); pw.print(": pid=");
934 pw.print(pid); p
1005 addObserverLocked(Uri uri, IContentObserver observer, boolean notifyForDescendants, Object observersLock, int uid, int pid, int userHandle) argument
1012 addObserverLocked(Uri uri, int index, IContentObserver observer, boolean notifyForDescendants, Object observersLock, int uid, int pid, int userHandle) argument
[all...]
/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionService.java211 protected void enforcePhoneStatePermission(int pid, int uid) { argument
212 if (getContext().checkPermission(android.Manifest.permission.MODIFY_PHONE_STATE, pid, uid)
334 private void enforceMediaPermissions(ComponentName compName, int pid, int uid, argument
337 .checkPermission(android.Manifest.permission.MEDIA_CONTENT_CONTROL, pid, uid)
345 private void enforceStatusBarPermission(String action, int pid, int uid) { argument
347 pid, uid) != PackageManager.PERMISSION_GRANTED) {
570 int userId, int pid, int uid) {
574 mPid = pid;
616 final int pid = Binder.getCallingPid();
621 int resolvedUserId = ActivityManager.handleIncomingUser(pid, ui
568 SessionsListenerRecord(IActiveSessionsListener listener, ComponentName componentName, int userId, int pid, int uid) argument
807 verifySessionsRequest(ComponentName componentName, int userId, final int pid, final int uid) argument
[all...]
H A DMediaRouterService.java128 final int pid = Binder.getCallingPid();
129 final int resolvedUserId = ActivityManager.handleIncomingUser(pid, uid, userId,
137 registerClientLocked(client, pid, packageName, resolvedUserId, trusted);
263 pw.println("Permission Denial: can't dump MediaRouterService from from pid="
312 int pid, String packageName, int userId, boolean trusted) {
322 clientRecord = new ClientRecord(userRecord, client, pid, packageName, trusted);
507 int pid, String packageName, boolean trusted) {
510 mPid = pid;
540 return "Client " + mPackageName + " (pid " + mPid + ")";
311 registerClientLocked(IMediaRouterClient client, int pid, String packageName, int userId, boolean trusted) argument
506 ClientRecord(UserRecord userRecord, IMediaRouterClient client, int pid, String packageName, boolean trusted) argument
/frameworks/base/test-runner/src/android/test/mock/
H A DMockContext.java483 public int checkPermission(String permission, int pid, int uid) { argument
489 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { argument
490 return checkPermission(permission, pid, uid);
505 String permission, int pid, int uid, String message) {
530 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags) { argument
536 public int checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) { argument
537 return checkUriPermission(uri, pid, uid, modeFlags);
552 String writePermission, int pid, int uid, int modeFlags) {
558 Uri uri, int pid, int uid, int modeFlags, String message) {
576 int pid, in
504 enforcePermission( String permission, int pid, int uid, String message) argument
551 checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
557 enforceUriPermission( Uri uri, int pid, int uid, int modeFlags, String message) argument
574 enforceUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags, String message) argument
[all...]
/frameworks/av/media/libmedia/
H A DAudioSystem.cpp433 void AudioSystem::acquireAudioSessionId(int audioSession, pid_t pid) argument
437 af->acquireAudioSessionId(audioSession, pid);
441 void AudioSystem::releaseAudioSessionId(int audioSession, pid_t pid) argument
445 af->releaseAudioSessionId(audioSession, pid);
H A DAudioTrack.cpp142 pid_t pid,
153 offloadInfo, uid, pid, pAttributes);
170 pid_t pid,
181 uid, pid, pAttributes);
224 pid_t pid,
394 if (pid == -1 || (callingpid != mypid)) {
397 mClientPid = pid;
128 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
156 AudioTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const sp<IMemory>& sharedBuffer, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
208 set( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, audio_output_flags_t flags, callback_t cbf, void* user, uint32_t notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, int sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, int uid, pid_t pid, const audio_attributes_t* pAttributes) argument
H A DIAudioFlinger.cpp620 virtual void acquireAudioSessionId(int audioSession, int pid) argument
625 data.writeInt32(pid);
629 virtual void releaseAudioSessionId(int audioSession, int pid) argument
634 data.writeInt32(pid);
1197 int pid = data.readInt32(); local
1198 acquireAudioSessionId(audioSession, pid);
1204 int pid = data.readInt32(); local
1205 releaseAudioSessionId(audioSession, pid);
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp308 pid_t pid = IPCThreadState::self()->getCallingPid(); local
309 sp<MediaRecorderClient> recorder = new MediaRecorderClient(this, pid);
313 ALOGV("Create new media recorder client from pid %d", pid);
326 pid_t pid = IPCThreadState::self()->getCallingPid(); local
327 sp<MetadataRetrieverClient> retriever = new MetadataRetrieverClient(pid);
328 ALOGV("Create new media retriever from pid %d", pid);
335 pid_t pid = IPCThreadState::self()->getCallingPid(); local
339 this, pid, connI
574 Client( const sp<MediaPlayerService>& service, pid_t pid, int32_t connId, const sp<IMediaPlayerClient>& client, int audioSessionId, uid_t uid) argument
1409 AudioOutput(int sessionId, int uid, int pid, const audio_attributes_t* attr) argument
[all...]
/frameworks/av/services/audioflinger/
H A DThreads.h123 PrioConfigEventData(pid_t pid, pid_t tid, int32_t prio) : argument
124 mPid(pid), mTid(tid), mPrio(prio) {}
127 snprintf(buffer, size, "Prio event: pid %d, tid %d, prio %d\n", mPid, mTid, mPrio);
137 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio) : argument
139 mData = new PrioConfigEventData(pid, tid, prio);
258 void sendPrioConfigEvent_l(pid_t pid, pid_t tid, int32_t prio);
H A DAudioFlinger.cpp314 snprintf(buffer, SIZE, " pid: %d\n", client->pid());
321 snprintf(buffer, SIZE, " pid: %d\n", mNotificationClients.keyAt(i));
326 result.append(" session pid count\n");
357 "can't dump AudioFlinger from pid=%d, uid=%d\n",
459 sp<AudioFlinger::Client> AudioFlinger::registerPid(pid_t pid) argument
462 // If pid is already in the mClients wp<> map, then use that entry
464 sp<Client> client = mClients.valueFor(pid).promote();
466 client = new Client(this, pid);
467 mClients.add(pid, clien
597 pid_t pid = IPCThreadState::self()->getCallingPid(); local
1205 pid_t pid = IPCThreadState::self()->getCallingPid(); local
1235 removeNotificationClient(pid_t pid) argument
1276 removeClient_l(pid_t pid) argument
1302 Client(const sp<AudioFlinger>& audioFlinger, pid_t pid) argument
1351 NotificationClient(const sp<AudioFlinger>& audioFlinger, const sp<IAudioFlingerClient>& client, pid_t pid) argument
1436 pid_t pid = IPCThreadState::self()->getCallingPid(); local
2192 acquireAudioSessionId(int audioSession, pid_t pid) argument
2226 releaseAudioSessionId(int audioSession, pid_t pid) argument
2429 pid_t pid = IPCThreadState::self()->getCallingPid(); local
[all...]
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp100 ALOGI("CameraService started (pid=%d)", getpid());
471 int pid = getCallingPid(); local
495 pid);
577 ALOGE("CameraService::connect X (pid %d) rejected (don't trust clientUid)",
589 ALOGE("CameraService::connect X (pid %d) rejected (invalid cameraId %d).",
598 ALOGI("Camera is disabled. connect X (pid %d) rejected", callingPid);
605 " connect X (pid %d) rejected", callingPid);
609 " connect X (pid %d) rejected", callingPid);
629 LOG1("CameraService::connect X (pid %d) (the same client)",
635 ALOGW("CameraService::connect X (pid
1275 const int pid = getCallingPid(); local
[all...]
/frameworks/base/core/java/android/content/
H A DContext.java2923 * @param pid The process ID being checked against. Must be > 0.
2928 * pid/uid is allowed that permission, or
2935 public abstract int checkPermission(@NonNull String permission, int pid, int uid); argument
2939 public abstract int checkPermission(@NonNull String permission, int pid, int uid, argument
2945 * {@link #checkPermission(String, int, int)} with the pid and uid returned
2956 * pid/uid is allowed that permission, or
2975 * pid/uid is allowed that permission, or
2990 * @param pid The process ID being checked against. Must be &gt; 0.
2998 @NonNull String permission, int pid, int uid, @Nullable String message);
3005 * pid an
2997 enforcePermission( @onNull String permission, int pid, int uid, @Nullable String message) argument
3126 checkUriPermission(Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags) argument
3130 checkUriPermission(Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, IBinder callerToken) argument
3198 checkUriPermission(@ullable Uri uri, @Nullable String readPermission, @Nullable String writePermission, int pid, int uid, @Intent.AccessUriMode int modeFlags) argument
3221 enforceUriPermission( Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, String message) argument
3286 enforceUriPermission( @ullable Uri uri, @Nullable String readPermission, @Nullable String writePermission, int pid, int uid, @Intent.AccessUriMode int modeFlags, @Nullable String message) argument
[all...]
/frameworks/base/core/java/android/os/
H A DDebug.java1062 * Note: currently only works when the requested pid has the same UID
1066 public static native void getMemoryInfo(int pid, MemoryInfo memoryInfo); argument
1080 public static native long getPss(int pid, long[] outUss, long[] outMemtrack); argument
1619 public static native void dumpNativeBacktraceToFile(int pid, String file); argument
/frameworks/base/core/jni/
H A Dandroid_os_Debug.cpp169 * Any graphics memory reported in /proc/pid/smaps is not included here.
171 static int read_memtrack_memory(struct memtrack_proc* p, int pid, argument
174 int err = memtrack_proc_get(p, pid);
205 * Retrieves the graphics memory that is unaccounted for in /proc/pid/smaps.
207 static int read_memtrack_memory(int pid, struct graphics_memory_pss* graphics_mem) argument
219 int err = read_memtrack_memory(p, pid, graphics_mem);
420 static void load_maps(int pid, stats_t* stats) argument
425 sprintf(tmp, "/proc/%d/smaps", pid);
434 jint pid, jobject object)
439 load_maps(pid, stat
433 android_os_Debug_getDirtyPagesPid(JNIEnv *env, jobject clazz, jint pid, jobject object) argument
498 android_os_Debug_getPssPid(JNIEnv *env, jobject clazz, jint pid, jlongArray outUss, jlongArray outMemtrack) argument
932 android_os_Debug_dumpNativeBacktraceToFile(JNIEnv* env, jobject clazz, jint pid, jstring fileName) argument
[all...]
H A Dandroid_util_AssetManager.cpp123 pid_t pid; local
128 switch (pid = fork()) {
141 capheader.pid = 0;
172 waitpid(pid, NULL, 0);
H A Dandroid_util_Binder.cpp976 static int getprocname(pid_t pid, char *buf, size_t len) { argument
980 snprintf(filename, sizeof(filename), "/proc/%d/cmdline", pid);
/frameworks/base/services/core/java/com/android/server/
H A DLocationManagerService.java586 final int mPid; // pid of receiver
605 Receiver(ILocationListener listener, PendingIntent intent, int pid, int uid, argument
614 mAllowedResolutionLevel = getAllowedResolutionLevel(pid, uid);
616 mPid = pid;
1001 * @param pid the PID
1003 * @return resolution level allowed to the pid/uid pair
1005 private int getAllowedResolutionLevel(int pid, int uid) { argument
1007 pid, uid) == PackageManager.PERMISSION_GRANTED) {
1010 pid, uid) == PackageManager.PERMISSION_GRANTED) {
1448 private Receiver getReceiverLocked(ILocationListener listener, int pid, in argument
1467 getReceiverLocked(PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
1533 checkListenerOrIntentLocked(ILocationListener listener, PendingIntent intent, int pid, int uid, String packageName, WorkSource workSource, boolean hideFromAppOps) argument
1584 requestLocationUpdatesLocked(LocationRequest request, Receiver receiver, int pid, int uid, String packageName) argument
[all...]
H A DInputMethodManagerService.java221 return "SessionState{uid " + client.uid + " pid " + client.pid
243 final int pid; field in class:InputMethodManagerService.ClientState
253 + " pid " + pid + "}";
261 pid = _pid;
262 binding = new InputBinding(null, inputContext.asBinder(), uid, pid);
960 + mSettings.getCurrentUserId() + ", calling pid = " + Binder.getCallingPid()
1059 IInputContext inputContext, int uid, int pid) {
1065 inputContext, uid, pid));
1058 addClient(IInputMethodClient client, IInputContext inputContext, int uid, int pid) argument
[all...]
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayManagerService.java1079 public CallbackRecord(int pid, IDisplayManagerCallback callback) { argument
1080 mPid = pid;
1087 Slog.d(TAG, "Display listener for pid " + mPid + " died.");
1380 pw.println("Permission Denial: can't dump DisplayManager from from pid="
/frameworks/native/cmds/installd/
H A Dcommands.c848 static int wait_child(pid_t pid) argument
854 got_pid = waitpid(pid, &status, 0);
861 if (got_pid != pid) {
863 (int) pid, (int) got_pid, strerror(errno));
1016 pid_t pid; local
1017 pid = fork();
1018 if (pid == 0) {
1065 res = wait_child(pid);
1517 pid_t pid; local
1518 pid
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiServiceImpl.java444 final int pid; field in class:WifiServiceImpl.BatchedScanRequest
451 this.pid = getCallingPid();
455 stopBatchedScan(settings, uid, pid);
461 public boolean isSameApp(int uid, int pid) { argument
462 return (this.uid == uid && this.pid == pid);
533 private void stopBatchedScan(BatchedScanSettings settings, int uid, int pid) { argument
537 if (r.isSameApp(uid, pid) && (settings == null || settings.equals(r.settings))) {
675 Slog.d(TAG, "setWifiEnabled: " + enable + " pid=" + Binder.getCallingPid()
1390 pw.println("Permission Denial: can't dump WifiService from from pid
1531 enforceWakeSourcePermission(int uid, int pid) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManager.java1408 public int pid; field in class:ActivityManager.RunningServiceInfo
1512 dest.writeInt(pid);
1529 pid = source.readInt();
1824 * The pid of this process; 0 if none
1826 public int pid; field in class:ActivityManager.ProcessErrorStateInfo
1872 dest.writeInt(pid);
1883 pid = source.readInt();
1932 * The pid of this process; 0 if none
1934 public int pid; field in class:ActivityManager.RunningAppProcessInfo
2079 * content providers is being used by another process. The pid o
[all...]
H A DContextImpl.java1859 public int checkPermission(String permission, int pid, int uid) { argument
1866 permission, pid, uid);
1874 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { argument
1881 permission, pid, uid, callerToken);
1893 int pid = Binder.getCallingPid();
1894 if (pid != Process.myPid()) {
1895 return checkPermission(permission, pid, Binder.getCallingUid());
1925 String permission, int pid, int uid, String message) {
1927 checkPermission(permission, pid, uid),
1971 public int checkUriPermission(Uri uri, int pid, in argument
1924 enforcePermission( String permission, int pid, int uid, String message) argument
1983 checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) argument
2014 checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
2078 enforceUriPermission( Uri uri, int pid, int uid, int modeFlags, String message) argument
2101 enforceUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags, String message) argument
[all...]

Completed in 299 milliseconds

1234