Lines Matching refs:serviceStream
112 sp<AAudioServiceStreamBase> serviceStream; in openStream() local
146 serviceStream = new AAudioServiceStreamMMAP(*this, inService); in openStream()
147 result = serviceStream->open(request); in openStream()
151 serviceStream.clear(); in openStream()
157 serviceStream = new AAudioServiceStreamShared(*this); in openStream()
158 result = serviceStream->open(request); in openStream()
159 } else if (serviceStream.get() == nullptr && !sharingModeMatchRequired) { in openStream()
163 serviceStream = new AAudioServiceStreamShared(*this); in openStream()
164 result = serviceStream->open(modifiedRequest); in openStream()
168 serviceStream.clear(); in openStream()
171 const aaudio_handle_t handle = mStreamTracker.addStreamForHandle(serviceStream.get()); in openStream()
172 serviceStream->setHandle(handle); in openStream()
173 AAudioClientTracker::getInstance().registerClientStream(pid, serviceStream); in openStream()
174 paramsOut.copyFrom(*serviceStream); in openStream()
178 serviceStream->logOpen(handle); in openStream()
188 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in closeStream() local
189 if (serviceStream.get() == nullptr) { in closeStream()
193 AIDL_RETURN(closeStream(serviceStream)); in closeStream()
200 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in getStreamDescription() local
201 if (serviceStream.get() == nullptr) { in getStreamDescription()
206 const aaudio_result_t result = serviceStream->getDescription(endpointParcelable); in getStreamDescription()
216 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in startStream() local
217 if (serviceStream.get() == nullptr) { in startStream()
221 AIDL_RETURN(serviceStream->start()); in startStream()
227 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in pauseStream() local
228 if (serviceStream.get() == nullptr) { in pauseStream()
232 AIDL_RETURN(serviceStream->pause()); in pauseStream()
238 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in stopStream() local
239 if (serviceStream.get() == nullptr) { in stopStream()
243 AIDL_RETURN(serviceStream->stop()); in stopStream()
249 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in flushStream() local
250 if (serviceStream.get() == nullptr) { in flushStream()
254 AIDL_RETURN(serviceStream->flush()); in flushStream()
261 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in registerAudioThread() local
262 if (serviceStream.get() == nullptr) { in registerAudioThread()
268 AIDL_RETURN(serviceStream->registerAudioThread(clientThreadId, priority)); in registerAudioThread()
275 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in unregisterAudioThread() local
276 if (serviceStream.get() == nullptr) { in unregisterAudioThread()
280 AIDL_RETURN(serviceStream->unregisterAudioThread(clientThreadId)); in unregisterAudioThread()
286 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in exitStandby() local
287 if (serviceStream.get() == nullptr) { in exitStandby()
292 const aaudio_result_t result = serviceStream->exitStandby(&endpointParcelable); in exitStandby()
308 aaudio_result_t AAudioService::closeStream(const sp<AAudioServiceStreamBase>& serviceStream) { in closeStream() argument
311 const pid_t pid = serviceStream->getOwnerProcessId(); in closeStream()
312 AAudioClientTracker::getInstance().unregisterClientStream(pid, serviceStream); in closeStream()
315 mStreamTracker.removeStreamByHandle(serviceStream->getHandle()); in closeStream()
317 return serviceStream->close(); in closeStream()
322 sp<AAudioServiceStreamBase> serviceStream = mStreamTracker.getStreamByHandle( in convertHandleToServiceStream() local
324 if (serviceStream.get() != nullptr) { in convertHandleToServiceStream()
327 const uid_t ownerUserId = serviceStream->getOwnerUserId(); in convertHandleToServiceStream()
337 serviceStream.clear(); in convertHandleToServiceStream()
340 return serviceStream; in convertHandleToServiceStream()
347 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in startClient() local
348 if (serviceStream.get() == nullptr) { in startClient()
352 return serviceStream->startClient(client, attr, clientHandle); in startClient()
357 const sp<AAudioServiceStreamBase> serviceStream = convertHandleToServiceStream(streamHandle); in stopClient() local
358 if (serviceStream.get() == nullptr) { in stopClient()
362 return serviceStream->stopClient(portHandle); in stopClient()
369 const sp<AAudioServiceStreamBase> serviceStream = in disconnectStreamByPortHandle() local
371 if (serviceStream.get() == nullptr) { in disconnectStreamByPortHandle()
376 const aaudio_result_t result = serviceStream->stop(); in disconnectStreamByPortHandle()
377 serviceStream->disconnect(); in disconnectStreamByPortHandle()