Lines Matching refs:channel

16   return info.channel ? info.channel->shared_from_this()
379 int flags, const std::shared_ptr<Channel>& channel, int* channel_id) {
382 return svc->PushChannel(this, flags, channel, channel_id);
389 Service* service, int flags, const std::shared_ptr<Channel>& channel,
392 return service->PushChannel(this, flags, channel, channel_id);
396 std::shared_ptr<Channel>* channel) const {
399 return svc->CheckChannel(this, ref, channel);
406 std::shared_ptr<Channel>* channel) const {
408 return service->CheckChannel(this, ref, channel);
477 const std::shared_ptr<Channel>& /*channel*/) {}
480 const std::shared_ptr<Channel>& channel) {
484 const auto status = endpoint_->SetChannel(channel_id, channel.get());
486 ALOGE("%s::SetChannel: Failed to set channel context: %s\n", name_.c_str(),
490 // API directly. Since we know the channel id isn't valid, make sure we
495 if (channel != nullptr)
496 channels_[channel_id] = channel;
534 Message* message, int flags, const std::shared_ptr<Channel>& channel,
542 endpoint_->PushChannel(message, flags, channel.get(), &channel_id_temp);
543 ALOGE_IF(!ret.ok(), "%s::PushChannel: Failed to push channel: %s",
546 if (channel && channel_id_temp != -1)
547 channels_[channel_id_temp] = channel;
555 std::shared_ptr<Channel>* channel) const {
558 // Synchronization to maintain consistency between the kernel's channel
560 // to modify the map at the same time, which could cause the channel context
566 message, ref, channel ? &channel_context : nullptr);
567 if (ret && channel) {
569 *channel = channel_context->shared_from_this();
571 *channel = nullptr;