Lines Matching refs:serviceEndpoint
265 void AAudioEndpointManager::closeEndpoint(const sp<AAudioServiceEndpoint>& serviceEndpoint) { in closeEndpoint() argument
266 if (serviceEndpoint->getSharingMode() == AAUDIO_SHARING_MODE_EXCLUSIVE) { in closeEndpoint()
267 return closeExclusiveEndpoint(serviceEndpoint); in closeEndpoint()
269 return closeSharedEndpoint(serviceEndpoint); in closeEndpoint()
274 const sp<AAudioServiceEndpoint>& serviceEndpoint) { in closeExclusiveEndpoint() argument
275 if (serviceEndpoint.get() == nullptr) { in closeExclusiveEndpoint()
281 const int32_t newRefCount = serviceEndpoint->getOpenCount() - 1; in closeExclusiveEndpoint()
282 serviceEndpoint->setOpenCount(newRefCount); in closeExclusiveEndpoint()
287 std::remove(mExclusiveStreams.begin(), mExclusiveStreams.end(), serviceEndpoint), in closeExclusiveEndpoint()
290 serviceEndpoint->close(); in closeExclusiveEndpoint()
293 __func__, serviceEndpoint.get(), serviceEndpoint->getDeviceId()); in closeExclusiveEndpoint()
297 void AAudioEndpointManager::closeSharedEndpoint(const sp<AAudioServiceEndpoint>& serviceEndpoint) { in closeSharedEndpoint() argument
298 if (serviceEndpoint.get() == nullptr) { in closeSharedEndpoint()
304 const int32_t newRefCount = serviceEndpoint->getOpenCount() - 1; in closeSharedEndpoint()
305 serviceEndpoint->setOpenCount(newRefCount); in closeSharedEndpoint()
310 std::remove(mSharedStreams.begin(), mSharedStreams.end(), serviceEndpoint), in closeSharedEndpoint()
313 serviceEndpoint->close(); in closeSharedEndpoint()
317 __func__, serviceEndpoint.get(), serviceEndpoint->getDeviceId()); in closeSharedEndpoint()