Lines Matching refs:ResultStatus
98 ResultStatus registerSender(const sp<IAccessor> &accessor,
102 ResultStatus registerSender(const sp<IClientManager> &receiver,
106 ResultStatus create(const std::shared_ptr<BufferPoolAllocator> &allocator,
109 ResultStatus close(ConnectionId connectionId);
111 ResultStatus flush(ConnectionId connectionId);
113 ResultStatus allocate(ConnectionId connectionId,
118 ResultStatus receive(ConnectionId connectionId,
125 ResultStatus postSend(ConnectionId receiverId,
130 ResultStatus getAccessor(ConnectionId connectionId,
168 ResultStatus ClientManager::Impl::registerSender( in registerSender()
183 return ResultStatus::ALREADY_EXISTS; in registerSender()
193 ResultStatus result = ResultStatus::OK; in registerSender()
198 result = ResultStatus::NO_MEMORY; in registerSender()
200 result = ResultStatus::CRITICAL_ERROR; in registerSender()
202 if (result == ResultStatus::OK) { in registerSender()
224 return ResultStatus::CRITICAL_ERROR; in registerSender()
227 ResultStatus ClientManager::Impl::registerSender( in registerSender()
237 return ResultStatus::NOT_FOUND; in registerSender()
242 ResultStatus rs = ResultStatus::CRITICAL_ERROR; in registerSender()
247 ResultStatus status, in registerSender()
253 return ResultStatus::CRITICAL_ERROR; in registerSender()
254 } else if (local && rs == ResultStatus::OK) { in registerSender()
270 ResultStatus ClientManager::Impl::create( in create()
275 return ResultStatus::CRITICAL_ERROR; in create()
281 return ResultStatus::CRITICAL_ERROR; in create()
300 return ResultStatus::OK; in create()
303 ResultStatus ClientManager::Impl::close(ConnectionId connectionId) { in close()
324 return ResultStatus::OK; in close()
326 return ResultStatus::NOT_FOUND; in close()
329 ResultStatus ClientManager::Impl::flush(ConnectionId connectionId) { in flush()
335 return ResultStatus::NOT_FOUND; in flush()
342 ResultStatus ClientManager::Impl::allocate( in allocate()
350 return ResultStatus::NOT_FOUND; in allocate()
356 ResultStatus res = client->allocate(params, &origHandle, buffer); in allocate()
357 if (res != ResultStatus::OK) { in allocate()
363 return ResultStatus::NO_MEMORY; in allocate()
365 return ResultStatus::OK; in allocate()
371 ResultStatus ClientManager::Impl::receive( in receive()
380 return ResultStatus::NOT_FOUND; in receive()
386 ResultStatus res = client->receive( in receive()
388 if (res != ResultStatus::OK) { in receive()
394 return ResultStatus::NO_MEMORY; in receive()
396 return ResultStatus::OK; in receive()
402 ResultStatus ClientManager::Impl::postSend( in postSend()
411 return ResultStatus::NOT_FOUND; in postSend()
418 ResultStatus ClientManager::Impl::getAccessor( in getAccessor()
425 return ResultStatus::NOT_FOUND; in getAccessor()
469 ResultStatus status = mImpl->registerSender(bufferPool, &connectionId); in registerSender()
472 _hidl_cb(ResultStatus::CRITICAL_ERROR, -1); in registerSender()
495 ResultStatus ClientManager::create( in create()
501 return ResultStatus::CRITICAL_ERROR; in create()
504 ResultStatus ClientManager::registerSender( in registerSender()
511 return ResultStatus::CRITICAL_ERROR; in registerSender()
514 ResultStatus ClientManager::close(ConnectionId connectionId) { in close()
518 return ResultStatus::CRITICAL_ERROR; in close()
521 ResultStatus ClientManager::flush(ConnectionId connectionId) { in flush()
525 return ResultStatus::CRITICAL_ERROR; in flush()
528 ResultStatus ClientManager::allocate( in allocate()
534 return ResultStatus::CRITICAL_ERROR; in allocate()
537 ResultStatus ClientManager::receive( in receive()
545 return ResultStatus::CRITICAL_ERROR; in receive()
548 ResultStatus ClientManager::postSend( in postSend()
554 return ResultStatus::CRITICAL_ERROR; in postSend()