Searched refs:serviceEndpoint (Results 1 – 2 of 2) sorted by relevance
264 void AAudioEndpointManager::closeEndpoint(sp<AAudioServiceEndpoint>serviceEndpoint) { in closeEndpoint() argument265 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() argument273 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 …]
64 void closeEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);82 void closeExclusiveEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);83 void closeSharedEndpoint(android::sp<AAudioServiceEndpoint> serviceEndpoint);