Searched defs:pid (Results 26 - 50 of 151) sorted by path

1234567

/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...]
H A DSchedulingPolicyService.cpp31 int requestPriority(pid_t pid, pid_t tid, int32_t prio, bool isForApp, bool asynchronous) argument
50 ret = sps->requestPriority(pid, tid, prio, isForApp, asynchronous);
/frameworks/av/services/audioflinger/
H A DAudioFlinger.cpp387 snprintf(buffer, SIZE, " pid: %d\n", client->pid());
394 snprintf(buffer, SIZE, " pid: %d\n", mNotificationClients.keyAt(i));
399 result.append(" session pid count\n");
430 "can't dump AudioFlinger from pid=%d, uid=%d\n",
567 sp<AudioFlinger::Client> AudioFlinger::registerPid(pid_t pid) argument
570 // If pid is already in the mClients wp<> map, then use that entry
572 sp<Client> client = mClients.valueFor(pid).promote();
574 client = new Client(this, pid);
575 mClients.add(pid, clien
639 createTrack( 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, const sp<IMemory>& sharedBuffer, audio_io_handle_t output, pid_t pid, pid_t tid, audio_session_t *sessionId, int clientUid, status_t *status, audio_port_handle_t portId) argument
1393 pid_t pid = IPCThreadState::self()->getCallingPid(); local
1422 removeNotificationClient(pid_t pid) argument
1451 ioConfigChanged(audio_io_config_event event, const sp<AudioIoDescriptor>& ioDesc, pid_t pid) argument
1465 removeClient_l(pid_t pid) argument
1492 Client(const sp<AudioFlinger>& audioFlinger, pid_t pid) argument
1523 NotificationClient(const sp<AudioFlinger>& audioFlinger, const sp<IAudioFlingerClient>& client, pid_t pid) argument
1578 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t *frameCount, audio_input_flags_t *flags, pid_t pid, pid_t tid, int clientUid, audio_session_t *sessionId, size_t *notificationFrames, sp<IMemory>& cblk, sp<IMemory>& buffers, status_t *status, audio_port_handle_t portId) argument
2500 acquireAudioSessionId(audio_session_t audioSession, pid_t pid) argument
2534 releaseAudioSessionId(audio_session_t audioSession, pid_t pid) argument
2847 createEffect( effect_descriptor_t *pDesc, const sp<IEffectClient>& effectClient, int32_t priority, audio_io_handle_t io, audio_session_t sessionId, const String16& opPackageName, pid_t pid, status_t *status, int *id, int *enabled) argument
[all...]
H A DAudioFlinger.h124 pid_t pid,
139 pid_t pid,
221 virtual void acquireAudioSessionId(audio_session_t audioSession, pid_t pid);
223 virtual void releaseAudioSessionId(audio_session_t audioSession, pid_t pid);
239 pid_t pid,
441 Client(const sp<AudioFlinger>& audioFlinger, pid_t pid);
444 pid_t pid() const { return mPid; } function in class:android::AudioFlinger::Client
460 pid_t pid);
640 pid_t pid = 0);
670 void removeClient_l(pid_t pid);
712 AudioSessionRef(audio_session_t sessionid, pid_t pid) argument
[all...]
H A DServiceUtilities.cpp51 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);
142 // don't optimize for same pid, since mediaserver never dumps itself
H A DThreads.cpp606 void AudioFlinger::ThreadBase::sendIoConfigEvent(audio_io_config_event event, pid_t pid) argument
609 sendIoConfigEvent_l(event, pid);
613 void AudioFlinger::ThreadBase::sendIoConfigEvent_l(audio_io_config_event event, pid_t pid) argument
615 sp<ConfigEvent> configEvent = (ConfigEvent *)new IoConfigEvent(event, pid);
619 void AudioFlinger::ThreadBase::sendPrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp) argument
622 sendPrioConfigEvent_l(pid, tid, prio, forApp);
627 pid_t pid, pid_t tid, int32_t prio, bool forApp)
629 sp<ConfigEvent> configEvent = (ConfigEvent *)new PrioConfigEvent(pid, tid, prio, forApp);
692 ALOGW("Policy SCHED_FIFO priority %d is unavailable for pid %d tid %d; error %d",
2246 void AudioFlinger::PlaybackThread::ioConfigChanged(audio_io_config_event event, pid_t pid) { argument
626 sendPrioConfigEvent_l( pid_t pid, pid_t tid, int32_t prio, bool forApp) argument
7210 ioConfigChanged(audio_io_config_event event, pid_t pid) argument
7885 ioConfigChanged(audio_io_config_event event, pid_t pid) argument
[all...]
H A DThreads.h109 IoConfigEventData(audio_io_config_event event, pid_t pid) : argument
110 mEvent(event), mPid(pid) {}
122 IoConfigEvent(audio_io_config_event event, pid_t pid) : argument
124 mData = new IoConfigEventData(event, pid);
131 PrioConfigEventData(pid_t pid, pid_t tid, int32_t prio, bool forApp) : argument
132 mPid(pid), mTid(tid), mPrio(prio), mForApp(forApp) {}
135 snprintf(buffer, size, "Prio event: pid %d, tid %d, prio %d, for app? %d\n",
147 PrioConfigEvent(pid_t pid, pid_t tid, int32_t prio, bool forApp) : argument
149 mData = new PrioConfigEventData(pid, tid, prio, forApp);
267 virtual void ioConfigChanged(audio_io_config_event event, pid_t pid
[all...]
/frameworks/av/services/audiopolicy/service/
H A DAudioPolicyInterfaceImpl.cpp276 pid_t pid,
299 bool updatePid = (pid == -1);
310 ALOGW_IF(pid != (pid_t)-1 && pid != callingPid,
311 "%s uid %d pid %d tried to pass itself off as pid %d",
312 __func__, callingUid, callingPid, pid);
313 pid = callingPid;
333 if (!captureAudioOutputAllowed(pid, uid)) {
273 getInputForAttr(const audio_attributes_t *attr, audio_io_handle_t *input, audio_session_t session, pid_t pid, uid_t uid, const audio_config_base_t *config, audio_input_flags_t flags, audio_port_handle_t selectedDeviceId, audio_port_handle_t *portId) argument
/frameworks/av/services/camera/libcameraservice/
H A DCameraService.cpp171 ALOGI("CameraService started (pid=%d)", getpid());
914 ALOGE("Permission Denial: can't use the camera pid=%d, uid=%d", clientPid, clientUid);
1951 const int pid = getCallingPid(); local
1957 if (pid != selfPid) {
1964 " events from pid=%d, uid=%d", pid, uid);
2045 LOG1("Client::Client E (pid %d, id %d)", callingPid, mCameraId);
2051 LOG1("Client::Client X (pid %d, id %d)", callingPid, mCameraId);
2403 int32_t pid = i->getOwnerId(); local
2416 PRId32 ", State: %" PRId32, key.string(), cost, pid, scor
[all...]
/frameworks/av/services/camera/libcameraservice/api2/
H A DCameraDeviceClient.cpp1452 const int pid = IPCThreadState::self()->getCallingPid(); local
1478 if (pid == selfPid) {
1493 "can't disable transmit LED pid=%d, uid=%d", pid, uid);
/frameworks/av/services/mediaanalytics/
H A DMediaAnalyticsService.cpp204 int pid = IPCThreadState::self()->getCallingPid(); local
226 item->setPid(pid);
231 item->setPid(pid);
327 "can't dump MediaAnalyticsService from pid=%d, uid=%d\n",
/frameworks/av/services/mediadrm/tests/
H A DDrmSessionManager_test.cpp35 virtual bool getPriority(int pid, int* priority) { argument
36 // For testing, use pid as priority.
38 *priority = pid;
121 int pid; local
123 EXPECT_FALSE(mDrmSessionManager->getLowestPriority_l(&pid, &priority));
126 EXPECT_TRUE(mDrmSessionManager->getLowestPriority_l(&pid, &priority));
128 EXPECT_EQ(kTestPid1, pid);
219 // calling pid priority is too low
/frameworks/av/services/mediaresourcemanager/
H A DResourceManagerService.cpp41 DeathNotifier(const wp<ResourceManagerService> &service, int pid, int64_t clientId) argument
42 : mService(service), mPid(pid), mClientId(clientId) {}
45 // Don't check for pid validity since we know it's already dead.
90 int pid,
92 ssize_t index = map.indexOfKey(pid);
94 // new pid
96 map.add(pid, infosForPid);
99 return map.editValueFor(pid);
118 static void notifyResourceGranted(int pid, const Vector<MediaResource> &resources) { argument
125 service->notifyResourceGranted(pid, IMediaResourceMonito
89 getResourceInfosForEdit( int pid, PidResourceInfosMap& map) argument
224 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
249 removeResource(int pid, int64_t clientId) argument
253 removeResource(int pid, int64_t clientId, bool checkValid) argument
463 int pid = -1; local
494 isCallingPriorityHigher_l(int callingPid, int pid) argument
508 getBiggestClient_l( int pid, MediaResource::Type type, sp<IResourceManagerClient> *client) argument
[all...]
/frameworks/av/services/mediaresourcemanager/test/
H A DResourceManagerService_test.cpp40 virtual bool getPriority(int pid, int *priority) { argument
41 // For testing, use pid as priority.
43 *priority = pid;
47 virtual bool isValidPid(int /* pid */) {
56 TestClient(int pid, sp<ResourceManagerService> service) argument
57 : mReclaimed(false), mPid(pid), mService(service) {}
140 // pid priority client type number
461 int pid; local
466 EXPECT_FALSE(mService->getLowestPriorityPid_l(type, &pid, &priority));
470 EXPECT_TRUE(mService->getLowestPriorityPid_l(type, &pid,
[all...]
/frameworks/av/services/oboeservice/
H A DAAudioServiceStreamBase.h96 void setRegisteredThread(pid_t pid) { argument
97 mRegisteredClientThread = pid;
/frameworks/base/cmds/hid/jni/
H A Dcom_android_commands_hid_Device.cpp85 Device* Device::open(int32_t id, const char* name, int32_t vid, int32_t pid, argument
103 ev.u.create.product = pid;
186 static jlong openDevice(JNIEnv* env, jclass /* clazz */, jstring rawName, jint id, jint vid, jint pid, argument
200 id, reinterpret_cast<const char*>(name.c_str()), vid, pid,
/frameworks/base/cmds/hid/src/com/android/commands/hid/
H A DDevice.java55 private static native long nativeOpenDevice(String name, int id, int vid, int pid, argument
60 public Device(int id, String name, int vid, int pid, byte[] descriptor, byte[] report) { argument
68 args.argi3 = pid;
72 args.arg1 = id + ":" + vid + ":" + pid;
H A DEvent.java82 + ", pid=" + mPid
119 public void setPid(int pid) { argument
120 mEvent.mPid = pid;
182 case "pid":
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
H A DUiAutomationShellWrapper.java99 public boolean appCrashed(String processName, int pid, String shortMsg, String longMsg, argument
106 public int appEarlyNotResponding(String processName, int pid, String annotation) argument
113 public int appNotResponding(String processName, int pid, String processStats) argument
/frameworks/base/core/java/android/app/
H A DActivityManager.java2467 public int pid; field in class:ActivityManager.RunningServiceInfo
2571 dest.writeInt(pid);
2588 pid = source.readInt();
2978 * The pid of this process; 0 if none
2980 public int pid; field in class:ActivityManager.ProcessErrorStateInfo
3026 dest.writeInt(pid);
3037 pid = source.readInt();
3086 * The pid of this process; 0 if none
3088 public int pid; field in class:ActivityManager.RunningAppProcessInfo
3375 * content providers is being used by another process. The pid o
[all...]
H A DActivityManagerInternal.java234 * Sets if the given pid has an overlay UI or not.
236 * @param pid The pid we are setting overlay UI for.
240 public abstract void setHasOverlayUi(int pid, boolean hasOverlayUi); argument
H A DActivityThread.java862 + Binder.getCallingUid() + " pid=" + Binder.getCallingPid());
2271 int pid, String processName,
2282 pw.print(pid); pw.print(',');
2269 dumpMemInfoTable(PrintWriter pw, Debug.MemoryInfo memInfo, boolean checkin, boolean dumpFullInfo, boolean dumpDalvik, boolean dumpSummaryOnly, int pid, String processName, long nativeMax, long nativeAllocated, long nativeFree, long dalvikMax, long dalvikAllocated, long dalvikFree) argument
H A DContextImpl.java1660 public int checkPermission(String permission, int pid, int uid) { argument
1678 return am.checkPermission(permission, pid, uid);
1686 public int checkPermission(String permission, int pid, int uid, IBinder callerToken) { argument
1693 permission, pid, uid, callerToken);
1705 int pid = Binder.getCallingPid();
1706 if (pid != Process.myPid()) {
1707 return checkPermission(permission, pid, Binder.getCallingUid());
1747 String permission, int pid, int uid, String message) {
1749 checkPermission(permission, pid, uid),
1808 public int checkUriPermission(Uri uri, int pid, in argument
1746 enforcePermission( String permission, int pid, int uid, String message) argument
1820 checkUriPermission(Uri uri, int pid, int uid, int modeFlags, IBinder callerToken) argument
1851 checkUriPermission(Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags) argument
1916 enforceUriPermission( Uri uri, int pid, int uid, int modeFlags, String message) argument
1942 enforceUriPermission( Uri uri, String readPermission, String writePermission, int pid, int uid, int modeFlags, String message) argument
[all...]
/frameworks/base/core/java/android/content/
H A DContentProvider.java530 boolean checkUser(int pid, int uid, Context context) { argument
533 || context.checkPermission(INTERACT_ACROSS_USERS, pid, uid)
560 final int pid = Binder.getCallingPid();
569 if (mExported && checkUser(pid, uid, context)) {
614 if (context.checkUriPermission(userUri, pid, uid, Intent.FLAG_GRANT_READ_URI_PERMISSION,
634 + ContentProvider.this.getClass().getName() + " uri " + uri + " from pid=" + pid
642 final int pid = Binder.getCallingPid();
651 if (mExported && checkUser(pid, uid, context)) {
693 if (context.checkUriPermission(uri, pid, ui
[all...]
H A DContext.java3985 * @param pid The process ID being checked against. Must be > 0.
3990 * pid/uid is allowed that permission, or
3998 public abstract int checkPermission(@NonNull String permission, int pid, int uid); argument
4002 public abstract int checkPermission(@NonNull String permission, int pid, int uid, argument
4008 * {@link #checkPermission(String, int, int)} with the pid and uid returned
4019 * pid/uid is allowed that permission, or
4039 * pid/uid is allowed that permission, or
4069 * @param pid The process ID being checked against. Must be &gt; 0.
4077 @NonNull String permission, int pid, int uid, @Nullable String message);
4084 * pid an
4076 enforcePermission( @onNull String permission, int pid, int uid, @Nullable String message) argument
4223 checkUriPermission(Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags) argument
4228 checkUriPermission(Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, IBinder callerToken) argument
4296 checkUriPermission(@ullable Uri uri, @Nullable String readPermission, @Nullable String writePermission, int pid, int uid, @Intent.AccessUriMode int modeFlags) argument
4317 enforceUriPermission( Uri uri, int pid, int uid, @Intent.AccessUriMode int modeFlags, String message) argument
4376 enforceUriPermission( @ullable Uri uri, @Nullable String readPermission, @Nullable String writePermission, int pid, int uid, @Intent.AccessUriMode int modeFlags, @Nullable String message) argument
[all...]

Completed in 1904 milliseconds

1234567