Lines Matching refs:channel
118 char channel[kChannelSize] = {0}; in ReadChannelFromMisc() local
121 fd, channel, kChannelSize - 1, kChannelOffset, &bytes_read) || in ReadChannelFromMisc()
126 if (channel[0] == '\0') { in ReadChannelFromMisc()
130 if (!base::EndsWith(channel, "-channel", base::CompareCase::SENSITIVE)) { in ReadChannelFromMisc()
131 LOG(ERROR) << "Channel " << channel << " doesn't end with -channel."; in ReadChannelFromMisc()
134 out_channel->assign(channel); in ReadChannelFromMisc()
148 char channel[kChannelSize] = {0}; in WriteChannelToMisc() local
149 memcpy(channel, in_channel.data(), in_channel.size()); in WriteChannelToMisc()
150 if (!utils::PWriteAll(fd, channel, kChannelSize, kChannelOffset)) { in WriteChannelToMisc()
158 string channel; in GetTargetChannel() local
159 if (!ReadChannelFromMisc(&channel)) in GetTargetChannel()
160 channel = GetProperty(kPropDefaultChannel, "stable-channel"); in GetTargetChannel()
161 return channel; in GetTargetChannel()