Home
last modified time | relevance | path

Searched refs:handles_ (Results 1 – 16 of 16) sorted by relevance

/external/webrtc/webrtc/modules/audio_processing/
Dprocessing_component.cc29 while (!handles_.empty()) { in Destroy()
30 DestroyHandle(handles_.back()); in Destroy()
31 handles_.pop_back(); in Destroy()
60 return handles_[index]; in handle()
73 if (num_handles_ > handles_.size()) { in Initialize()
74 handles_.resize(num_handles_, NULL); in Initialize()
77 assert(handles_.size() >= num_handles_); in Initialize()
79 if (handles_[i] == NULL) { in Initialize()
80 handles_[i] = CreateHandle(); in Initialize()
81 if (handles_[i] == NULL) { in Initialize()
[all …]
Dprocessing_component.h61 std::vector<void*> handles_; variable
/external/libmojo/mojo/edk/system/
Dhandle_table.cc24 auto result = handles_.insert(std::make_pair(handle, Entry(dispatcher))); in AddDispatcher()
44 auto result = handles_.insert( in AddDispatchersFromTransit()
54 auto it = handles_.find(handle); in GetDispatcher()
55 if (it == handles_.end()) in GetDispatcher()
63 auto it = handles_.find(handle); in GetAndRemoveDispatcher()
64 if (it == handles_.end()) in GetAndRemoveDispatcher()
70 handles_.erase(it); in GetAndRemoveDispatcher()
81 auto it = handles_.find(handles[i]); in BeginTransit()
82 if (it == handles_.end()) in BeginTransit()
101 auto it = handles_.find(dispatcher.local_handle); in CompleteTransitAndClose()
[all …]
Dcore.cc166 return handles_.GetDispatcher(handle); in GetDispatcher()
196 return handles_.AddDispatcher(dispatcher); in AddDispatcher()
205 if (!handles_.AddDispatchersFromTransit(dispatchers, handles)) in AddDispatchersFromTransit()
232 MojoResult result = handles_.GetAndRemoveDispatcher(wrapper_handle, &d); in PassWrappedPlatformHandle()
285 dispatcher = handles_.GetDispatcher(mojo_handle); in PassSharedMemoryHandle()
289 result = handles_.GetAndRemoveDispatcher(mojo_handle, &dispatcher); in PassSharedMemoryHandle()
367 MojoResult rv = handles_.GetAndRemoveDispatcher(handle, &dispatcher); in Close()
464 MojoResult rv = handles_.BeginTransit(handles, num_handles, &dispatchers); in AllocMessage()
466 handles_.CancelTransit(dispatchers); in AllocMessage()
479 handles_.CompleteTransitAndClose(dispatchers); in AllocMessage()
[all …]
Dchannel_posix.cc44 handles_(message_->TakeHandlesForTransport()) { in MessageView()
53 handles_ = std::move(other.handles_); in operator =()
71 ScopedPlatformHandleVectorPtr TakeHandles() { return std::move(handles_); } in TakeHandles()
75 handles_ = std::move(handles); in SetHandles()
81 ScopedPlatformHandleVectorPtr handles_; member in mojo::edk::__anon24f20da50111::MessageView
Dchannel.cc100 handles_ = reinterpret_cast<HandleEntry*>(mutable_extra_header()); in Message()
103 handles_[i].handle = base::win::HandleToUint32(INVALID_HANDLE_VALUE); in Message()
196 static_cast<uintptr_t>(message->handles_[i].handle)); in Deserialize()
247 memset(handles_, 0, extra_header_size()); in SetHandles()
249 handles_[i].handle = base::win::HandleToUint32((*handle_vector_)[i].handle); in SetHandles()
Dhandle_table.h65 HandleMap handles_; variable
Dchannel.h174 HandleEntry* handles_ = nullptr; member
Dcore.h288 HandleTable handles_; variable
/external/libmojo/mojo/public/cpp/bindings/lib/
Dmessage.cc36 handles_.swap(*handles); in InitializeFromMojoMessage()
44 std::swap(destination->handles_, handles_); in MoveTo()
47 handles_.clear(); in MoveTo()
52 if (handles_.empty()) // Fast path for the common case: No handles. in TakeMojoMessage()
64 handles_.empty() ? nullptr in TakeMojoMessage()
65 : reinterpret_cast<const MojoHandle*>(handles_.data()), in TakeMojoMessage()
66 handles_.size(), in TakeMojoMessage()
70 handles_.clear(); in TakeMojoMessage()
87 for (std::vector<Handle>::iterator it = handles_.begin(); in CloseHandles()
88 it != handles_.end(); ++it) { in CloseHandles()
Dserialization_context.cc19 for (auto handle : handles_) { in ~SerializedHandleVector()
32 DCHECK_LT(handles_.size(), std::numeric_limits<uint32_t>::max()); in AddHandle()
33 data.value = static_cast<uint32_t>(handles_.size()); in AddHandle()
34 handles_.push_back(handle); in AddHandle()
43 DCHECK_LT(encoded_handle.value, handles_.size()); in TakeHandle()
44 return FetchAndReset(&handles_[encoded_handle.value]); in TakeHandle()
48 handles_.swap(*other); in Swap()
Dsync_handle_registry.cc37 if (ContainsKey(handles_, handle)) in RegisterHandle()
45 handles_[handle] = callback; in RegisterHandle()
51 if (!ContainsKey(handles_, handle)) in UnregisterHandle()
57 handles_.erase(handle); in UnregisterHandle()
90 const auto iter = handles_.find(Handle(ready_handle)); in WatchAllHandles()
Dserialization_context.h31 size_t size() const { return handles_.size(); } in size()
51 std::vector<mojo::Handle> handles_;
Dsync_handle_registry.h55 HandleMap handles_; variable
/external/libmojo/mojo/public/cpp/bindings/
Dmessage.h96 const std::vector<Handle>* handles() const { return &handles_; } in handles()
97 std::vector<Handle>* mutable_handles() { return &handles_; } in mutable_handles()
115 std::vector<Handle> handles_; variable
Dsync_handle_registry.h54 HandleMap handles_; variable