Home
last modified time | relevance | path

Searched refs:serviceEndpoint (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/oboeservice/
DAAudioEndpointManager.cpp265 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()
[all …]
DAAudioEndpointManager.h66 void closeEndpoint(const android::sp<AAudioServiceEndpoint>& serviceEndpoint)
90 void closeExclusiveEndpoint(const android::sp<AAudioServiceEndpoint>& serviceEndpoint);
91 void closeSharedEndpoint(const android::sp<AAudioServiceEndpoint>& serviceEndpoint);