Lines Matching refs:endpoint
109 sp<AAudioServiceEndpoint> endpoint; in findExclusiveEndpoint_l() local
114 endpoint = ep; in findExclusiveEndpoint_l()
120 endpoint.get(), configuration.getDeviceId(), configuration.getSessionId()); in findExclusiveEndpoint_l()
121 return endpoint; in findExclusiveEndpoint_l()
127 sp<AAudioServiceEndpointShared> endpoint; in findSharedEndpoint_l() local
132 endpoint = ep; in findSharedEndpoint_l()
138 endpoint.get(), configuration.getDeviceId(), configuration.getSessionId()); in findSharedEndpoint_l()
139 return endpoint; in findSharedEndpoint_l()
160 sp<AAudioServiceEndpoint> endpoint = findExclusiveEndpoint_l(configuration); in openExclusiveEndpoint() local
163 if (endpoint.get() != nullptr) { in openExclusiveEndpoint()
171 endpoint = endpointMMap; in openExclusiveEndpoint()
173 aaudio_result_t result = endpoint->open(request); in openExclusiveEndpoint()
176 endpoint.clear(); in openExclusiveEndpoint()
183 if (endpoint.get() != nullptr) { in openExclusiveEndpoint()
185 endpoint->setOpenCount(endpoint->getOpenCount() + 1); in openExclusiveEndpoint()
187 return endpoint; in openExclusiveEndpoint()
200 sp<AAudioServiceEndpointShared> endpoint = findSharedEndpoint_l(configuration); in openSharedEndpoint() local
203 if (endpoint.get() == nullptr) { in openSharedEndpoint()
208 endpoint = new AAudioServiceEndpointCapture(aaudioService); in openSharedEndpoint()
211 endpoint = new AAudioServiceEndpointPlay(aaudioService); in openSharedEndpoint()
217 if (endpoint.get() != nullptr) { in openSharedEndpoint()
218 aaudio_result_t result = endpoint->open(request); in openSharedEndpoint()
220 endpoint.clear(); in openSharedEndpoint()
222 mSharedStreams.push_back(endpoint); in openSharedEndpoint()
227 __func__, endpoint.get(), configuration.getDeviceId(), (int)direction); in openSharedEndpoint()
231 if (endpoint.get() != nullptr) { in openSharedEndpoint()
233 endpoint->setOpenCount(endpoint->getOpenCount() + 1); in openSharedEndpoint()
235 return endpoint; in openSharedEndpoint()