Home
last modified time | relevance | path

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

/frameworks/av/services/oboeservice/
DAAudioEndpointManager.cpp264 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()
[all …]
DAAudioEndpointManager.h64 void closeEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);
82 void closeExclusiveEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);
83 void closeSharedEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);