Home
last modified time | relevance | path

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

/frameworks/av/services/oboeservice/
DAAudioEndpointManager.cpp239 void AAudioEndpointManager::closeEndpoint(sp<AAudioServiceEndpoint>serviceEndpoint) { in closeEndpoint() argument
240 if (serviceEndpoint->getSharingMode() == AAUDIO_SHARING_MODE_EXCLUSIVE) { in closeEndpoint()
241 return closeExclusiveEndpoint(serviceEndpoint); in closeEndpoint()
243 return closeSharedEndpoint(serviceEndpoint); in closeEndpoint()
247 void AAudioEndpointManager::closeExclusiveEndpoint(sp<AAudioServiceEndpoint> serviceEndpoint) { in closeExclusiveEndpoint() argument
248 if (serviceEndpoint.get() == nullptr) { in closeExclusiveEndpoint()
254 int32_t newRefCount = serviceEndpoint->getOpenCount() - 1; in closeExclusiveEndpoint()
255 serviceEndpoint->setOpenCount(newRefCount); in closeExclusiveEndpoint()
260 std::remove(mExclusiveStreams.begin(), mExclusiveStreams.end(), serviceEndpoint), in closeExclusiveEndpoint()
263 serviceEndpoint->close(); in closeExclusiveEndpoint()
[all …]
DAAudioEndpointManager.h62 void closeEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);
77 void closeExclusiveEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);
78 void closeSharedEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);