• Home
  • Raw
  • Download

Lines Matching refs:serviceEndpoint

264 void AAudioEndpointManager::closeEndpoint(sp<AAudioServiceEndpoint>serviceEndpoint) {  in closeEndpoint()  argument
265 if (serviceEndpoint->getSharingMode() == AAUDIO_SHARING_MODE_EXCLUSIVE) { in closeEndpoint()
266 return closeExclusiveEndpoint(serviceEndpoint); in closeEndpoint()
268 return closeSharedEndpoint(serviceEndpoint); in closeEndpoint()
272 void AAudioEndpointManager::closeExclusiveEndpoint(sp<AAudioServiceEndpoint> serviceEndpoint) { in closeExclusiveEndpoint() argument
273 if (serviceEndpoint.get() == nullptr) { in closeExclusiveEndpoint()
279 int32_t newRefCount = serviceEndpoint->getOpenCount() - 1; in closeExclusiveEndpoint()
280 serviceEndpoint->setOpenCount(newRefCount); in closeExclusiveEndpoint()
285 std::remove(mExclusiveStreams.begin(), mExclusiveStreams.end(), serviceEndpoint), in closeExclusiveEndpoint()
288 serviceEndpoint->close(); in closeExclusiveEndpoint()
291 __func__, serviceEndpoint.get(), serviceEndpoint->getDeviceId()); in closeExclusiveEndpoint()
295 void AAudioEndpointManager::closeSharedEndpoint(sp<AAudioServiceEndpoint> serviceEndpoint) { in closeSharedEndpoint() argument
296 if (serviceEndpoint.get() == nullptr) { in closeSharedEndpoint()
302 int32_t newRefCount = serviceEndpoint->getOpenCount() - 1; in closeSharedEndpoint()
303 serviceEndpoint->setOpenCount(newRefCount); in closeSharedEndpoint()
308 std::remove(mSharedStreams.begin(), mSharedStreams.end(), serviceEndpoint), in closeSharedEndpoint()
311 serviceEndpoint->close(); in closeSharedEndpoint()
315 __func__, serviceEndpoint.get(), serviceEndpoint->getDeviceId()); in closeSharedEndpoint()