Home | History | Annotate | Download | only in system

Lines Matching defs:num_handles

113     legacy_header()->num_handles = static_cast<uint16_t>(max_handles);
196 const uint16_t num_handles =
197 header ? header->num_handles : legacy_header->num_handles;
198 if (num_handles > max_handles || max_handles > kMaxAttachedHandles) {
199 DLOG(ERROR) << "Decoding invalid message: " << num_handles << " > "
222 message->header()->num_handles = header->num_handles;
224 message->legacy_header()->num_handles = legacy_header->num_handles;
228 ScopedPlatformHandleVectorPtr handles(new PlatformHandleVector(num_handles));
229 for (size_t i = 0; i < num_handles; i++) {
271 size_t Channel::Message::num_handles() const {
272 return is_legacy_message() ? legacy_header()->num_handles
273 : header()->num_handles;
277 return (is_legacy_message() ? legacy_header()->num_handles
278 : header()->num_handles) > 0;
312 if (legacy_header()->num_handles == 0) {
316 CHECK(new_handles && new_handles->size() == legacy_header()->num_handles);
327 header()->num_handles = static_cast<uint16_t>(new_handles->size());
367 legacy_header()->num_handles = 0;
369 header()->num_handles = 0;
635 const uint16_t num_handles =
636 header ? header->num_handles : legacy_header->num_handles;
638 if (num_handles > 0) {
639 if (!GetReadPlatformHandles(num_handles, extra_header, extra_header_size,