Searched defs:pid (Results 1 - 25 of 151) sorted by path

1234567

/frameworks/av/cmds/screenrecord/
H A Dscreenrecord.cpp764 pid_t pid = fork(); local
765 if (pid < 0) {
769 } else if (pid > 0) {
773 pid_t actualPid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0));
774 if (actualPid != pid) {
775 ALOGW("waitpid(%d) returned %d (errno=%d)", pid, actualPid, errno);
/frameworks/av/drm/libmediadrm/
H A DDrmSessionManager.cpp68 int pid, const sp<DrmSessionClientInterface>& drm, const Vector<uint8_t> &sessionId) {
69 ALOGV("addSession(pid %d, drm %p, sessionId %s)", pid, drm.get(),
77 ssize_t index = mSessionMap.indexOfKey(pid);
79 // new pid
82 mSessionMap.add(pid, infosForPid);
170 ALOGV("reclaim session(%s) opened by pid %d",
181 int pid = -1; local
194 if (pid == -1) {
195 pid
67 addSession( int pid, const sp<DrmSessionClientInterface>& drm, const Vector<uint8_t> &sessionId) argument
211 getLeastUsedSession_l( int pid, sp<DrmSessionClientInterface>* drm, Vector<uint8_t>* sessionId) argument
[all...]
/frameworks/av/media/libaaudio/src/binding/
H A DIAAudioService.cpp243 pid_t pid; local
329 data.readInt32(&pid);
332 result = registerAudioThread(stream, pid, tid, nanoseconds);
341 data.readInt32(&pid);
343 result = unregisterAudioThread(stream, pid, tid);
/frameworks/av/media/libaudioclient/
H A DAudioRecord.cpp90 pid_t pid,
104 uid, pid, pAttributes);
131 AudioSystem::releaseAudioSessionId(mSessionId, -1 /*pid*/);
149 pid_t pid,
154 "uid %d, pid %d",
156 sessionId, transferType, flags, String8(mOpPackageName).string(), uid, pid);
246 if (pid == -1 || (callingpid != mypid)) {
249 mClientPid = pid;
76 AudioRecord( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, audio_session_t sessionId, transfer_type transferType, audio_input_flags_t flags, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes) argument
135 set( audio_source_t inputSource, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t frameCount, callback_t cbf, void* user, uint32_t notificationFrames, bool threadCanCallJava, audio_session_t sessionId, transfer_type transferType, audio_input_flags_t flags, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes) argument
H A DAudioSystem.cpp407 void AudioSystem::acquireAudioSessionId(audio_session_t audioSession, pid_t pid) argument
411 af->acquireAudioSessionId(audioSession, pid);
415 void AudioSystem::releaseAudioSessionId(audio_session_t audioSession, pid_t pid) argument
419 af->releaseAudioSessionId(audioSession, pid);
862 pid_t pid,
872 attr, input, session, pid, uid,
859 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
H A DAudioTrack.cpp209 pid_t pid,
224 offloadInfo, uid, pid, pAttributes, doNotReconnect, maxRequiredSpeed);
241 pid_t pid,
256 uid, pid, pAttributes, doNotReconnect, maxRequiredSpeed);
303 pid_t pid,
309 "flags #%x, notificationFrames %d, sessionId %d, transferType %d, uid %d, pid %d",
311 sessionId, transferType, uid, pid);
506 if (pid == -1 || (callingpid != mypid)) {
509 mClientPid = pid;
195 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, int32_t notificationFrames, audio_session_t sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect, float maxRequiredSpeed) argument
227 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, int32_t notificationFrames, audio_session_t sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect, float maxRequiredSpeed) argument
287 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, int32_t notificationFrames, const sp<IMemory>& sharedBuffer, bool threadCanCallJava, audio_session_t sessionId, transfer_type transferType, const audio_offload_info_t *offloadInfo, uid_t uid, pid_t pid, const audio_attributes_t* pAttributes, bool doNotReconnect, float maxRequiredSpeed) argument
H A DIAudioFlinger.cpp107 pid_t pid,
133 data.writeInt32((int32_t) pid);
186 pid_t pid,
208 data.writeInt32((int32_t) pid);
639 virtual void acquireAudioSessionId(audio_session_t audioSession, int pid) argument
644 data.writeInt32(pid);
648 virtual void releaseAudioSessionId(audio_session_t audioSession, int pid) argument
653 data.writeInt32(pid);
723 pid_t pid,
745 data.writeInt32((int32_t) pid);
98 createTrack( audio_stream_type_t streamType, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, size_t *pFrameCount, 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
178 openRecord( audio_io_handle_t input, uint32_t sampleRate, audio_format_t format, audio_channel_mask_t channelMask, const String16& opPackageName, size_t *pFrameCount, 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
716 createEffect( effect_descriptor_t *pDesc, const sp<IEffectClient>& client, int32_t priority, audio_io_handle_t output, audio_session_t sessionId, const String16& opPackageName, pid_t pid, status_t *status, int *id, int *enabled) argument
985 pid_t pid = (pid_t) data.readInt32(); local
1019 pid_t pid = (pid_t) data.readInt32(); local
1273 int pid = data.readInt32(); local
1280 int pid = data.readInt32(); local
1327 pid_t pid = (pid_t)data.readInt32(); local
[all...]
H A DIAudioPolicyService.cpp293 pid_t pid,
316 data.writeInt32(pid);
1001 pid_t pid = (pid_t)data.readInt32(); local
1010 status_t status = getInputForAttr(&attr, &input, session, pid, uid,
290 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/media/libmedia/
H A DIResourceManagerService.cpp74 int pid,
80 data.writeInt32(pid);
88 virtual void removeResource(int pid, int64_t clientId) { argument
91 data.writeInt32(pid);
131 int pid = data.readInt32(); local
140 addResource(pid, clientId, client, resources);
146 int pid = data.readInt32(); local
148 removeResource(pid, clientId);
73 addResource( int pid, int64_t clientId, const sp<IResourceManagerClient> client, const Vector<MediaResource> &resources) argument
/frameworks/av/media/libmediametrics/
H A DMediaAnalyticsItem.cpp186 MediaAnalyticsItem &MediaAnalyticsItem::setPid(pid_t pid) { argument
187 mPid = pid;
/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerFactory.cpp131 pid_t pid) {
145 p = factory->createPlayer(pid);
218 virtual sp<MediaPlayerBase> createPlayer(pid_t pid) { argument
220 return new NuPlayerDriver(pid);
236 virtual sp<MediaPlayerBase> createPlayer(pid_t /* pid */) {
127 createPlayer( player_type playerType, void* cookie, notify_callback_f notifyFunc, pid_t pid) argument
H A DMediaPlayerService.cpp288 pid_t pid = IPCThreadState::self()->getCallingPid(); local
289 sp<MediaRecorderClient> recorder = new MediaRecorderClient(this, pid, opPackageName);
293 ALOGV("Create new media recorder client from pid %d", pid);
306 pid_t pid = IPCThreadState::self()->getCallingPid(); local
307 sp<MetadataRetrieverClient> retriever = new MetadataRetrieverClient(pid);
308 ALOGV("Create new media retriever from pid %d", pid);
315 pid_t pid = IPCThreadState::self()->getCallingPid(); local
319 this, pid, connI
554 Client( const sp<MediaPlayerService>& service, pid_t pid, int32_t connId, const sp<IMediaPlayerClient>& client, audio_session_t audioSessionId, uid_t uid) argument
1536 AudioOutput(audio_session_t sessionId, uid_t uid, int pid, const audio_attributes_t* attr) argument
[all...]
H A DMediaPlayerService.h81 AudioOutput(audio_session_t sessionId, uid_t uid, int pid,
371 pid_t pid() const { return mPid; } function in class:android::MediaPlayerService::Client
411 pid_t pid,
H A DMediaRecorderClient.cpp346 MediaRecorderClient::MediaRecorderClient(const sp<MediaPlayerService>& service, pid_t pid, argument
350 mPid = pid;
H A DMetadataRetrieverClient.cpp46 MetadataRetrieverClient::MetadataRetrieverClient(pid_t pid) argument
48 ALOGV("MetadataRetrieverClient constructor pid(%d)", pid);
49 mPid = pid;
67 snprintf(buffer, 255, " pid(%d)\n", mPid);
76 ALOGV("disconnect from pid %d", mPid);
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayer.cpp175 NuPlayer::NuPlayer(pid_t pid) argument
177 mPID(pid),
H A DNuPlayerDecoder.cpp61 pid_t pid,
71 mPid(pid),
58 Decoder( const sp<AMessage> &notify, const sp<Source> &source, pid_t pid, uid_t uid, const sp<Renderer> &renderer, const sp<Surface> &surface, const sp<CCDecoder> &ccDecoder) argument
H A DNuPlayerDriver.cpp59 NuPlayerDriver::NuPlayerDriver(pid_t pid) argument
69 mPlayer(new NuPlayer(pid)),
75 ALOGD("NuPlayerDriver(%p) created, clientPid(%d)", this, pid);
/frameworks/av/media/libmediaplayerservice/tests/
H A DDrmSessionManager_test.cpp35 virtual bool getPriority(int pid, int* priority) { argument
36 // For testing, use pid as priority.
38 *priority = pid;
42 virtual bool isValidPid(int /* pid */) {
125 int pid; local
127 EXPECT_FALSE(mDrmSessionManager->getLowestPriority_l(&pid, &priority));
130 EXPECT_TRUE(mDrmSessionManager->getLowestPriority_l(&pid, &priority));
132 EXPECT_EQ(kTestPid1, pid);
223 // calling pid priority is too low
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp55 uid_t uid, pid_t pid)
101 pid);
52 AudioSource( audio_source_t inputSource, const String16 &opPackageName, uint32_t sampleRate, uint32_t channelCount, uint32_t outSampleRate, uid_t uid, pid_t pid) argument
H A DMediaCodec.cpp137 MediaCodec::ResourceManagerServiceProxy::ResourceManagerServiceProxy(pid_t pid) argument
138 : mPid(pid) {
407 const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid,
409 sp<MediaCodec> codec = new MediaCodec(looper, pid, uid);
420 const sp<ALooper> &looper, const AString &name, status_t *err, pid_t pid, uid_t uid) {
421 sp<MediaCodec> codec = new MediaCodec(looper, pid, uid);
469 MediaCodec::MediaCodec(const sp<ALooper> &looper, pid_t pid, uid_t uid) argument
479 mResourceManagerService(new ResourceManagerServiceProxy(pid)),
406 CreateByType( const sp<ALooper> &looper, const AString &mime, bool encoder, status_t *err, pid_t pid, uid_t uid) argument
419 CreateByComponentName( const sp<ALooper> &looper, const AString &name, status_t *err, pid_t pid, uid_t uid) argument
/frameworks/av/media/libstagefright/mpeg2ts/
H A DATSParser.cpp58 unsigned pid, ABitReader *br, status_t *err);
60 // Pass to appropriate stream according to pid, and set event if it's a PES
64 unsigned pid, unsigned continuity_counter,
143 unsigned pid() const { return mElementaryPID; } function in struct:android::ATSParser::Stream
144 void setPID(unsigned pid) { mElementaryPID = pid; } argument
298 unsigned pid, ABitReader *br, status_t *err) {
301 if (pid != mProgramMapPID) {
311 unsigned pid, unsigned continuity_counter,
318 ssize_t index = mStreams.indexOfKey(pid);
297 parsePSISection( unsigned pid, ABitReader *br, status_t *err) argument
310 parsePID( unsigned pid, unsigned continuity_counter, unsigned payload_unit_start_indicator, unsigned transport_scrambling_control, unsigned random_access_indicator, ABitReader *br, status_t *err, SyncEvent *event) argument
[all...]
H A DCasManager.cpp310 bool ATSParser::CasManager::isCAPid(unsigned pid) { argument
311 return mCAPidSet.find(pid) != mCAPidSet.end();
314 bool ATSParser::CasManager::parsePID(ABitReader *br, unsigned pid) { argument
315 ssize_t index = mCAPidToSessionIdMap.indexOfKey(pid);
/frameworks/av/media/libstagefright/omx/
H A DOMXMaster.cpp35 pid_t pid = getpid(); local
37 snprintf(filename, sizeof(filename), "/proc/%d/comm", pid);
/frameworks/av/media/utils/
H A DISchedulingPolicyService.cpp40 virtual int requestPriority(int32_t pid, int32_t tid, argument
45 data.writeInt32(pid);

Completed in 305 milliseconds

1234567