Home
last modified time | relevance | path

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

12

/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/libchrome/mojo/core/
Dhandle_table.cc58 handles_.insert(std::make_pair(handle, Entry(std::move(dispatcher)))); in AddDispatcher()
80 auto result = handles_.insert( in AddDispatchersFromTransit()
91 auto it = handles_.find(handle); in GetDispatcher()
92 if (it == handles_.end()) in GetDispatcher()
100 auto it = handles_.find(handle); in GetAndRemoveDispatcher()
101 if (it == handles_.end()) in GetAndRemoveDispatcher()
107 handles_.erase(it); in GetAndRemoveDispatcher()
117 auto it = handles_.find(handles[i]); in BeginTransit()
118 if (it == handles_.end()) in BeginTransit()
137 auto it = handles_.find(dispatcher.local_handle); in CompleteTransitAndClose()
[all …]
Dcore.cc129 handles_.reset(new HandleTable); in Core()
161 base::AutoLock lock(handles_->GetLock()); in GetDispatcher()
162 return handles_->GetDispatcher(handle); in GetDispatcher()
167 base::AutoLock lock(handles_->GetLock()); in GetAndRemoveDispatcher()
168 handles_->GetAndRemoveDispatcher(handle, &dispatcher); in GetAndRemoveDispatcher()
229 base::AutoLock lock(handles_->GetLock()); in AddDispatcher()
230 return handles_->AddDispatcher(dispatcher); in AddDispatcher()
238 base::AutoLock lock(handles_->GetLock()); in AddDispatchersFromTransit()
239 if (!handles_->AddDispatchersFromTransit(dispatchers, handles)) in AddDispatchersFromTransit()
256 base::AutoLock lock(handles_->GetLock()); in AcquireDispatchersForTransit()
[all …]
Dchannel_fuchsia.cc135 handles_(message_->TakeHandlesForTransport()) { in MessageView()
144 handles_ = std::move(other.handles_); in operator =()
163 if (handles_.empty()) in TakeHandles()
173 std::vector<PlatformHandleInTransit> in_handles = std::move(handles_); in TakeHandles()
174 handles_.reserve(in_handles.size()); in TakeHandles()
177 &handles_)) in TakeHandles()
180 return std::move(handles_); in TakeHandles()
186 std::vector<PlatformHandleInTransit> handles_; member in mojo::core::__anonb02869e90111::MessageView
Dchannel_posix.cc50 handles_(message_->TakeHandlesForTransport()) { in MessageView()
59 handles_ = std::move(other.handles_); in operator =()
78 return std::move(handles_); in TakeHandles()
83 handles_ = std::move(handles); in SetHandles()
89 std::vector<PlatformHandleInTransit> handles_; member in mojo::core::__anon7bef9a390111::MessageView
Dchannel.cc143 handles_ = reinterpret_cast<HandleEntry*>(mutable_extra_header()); in Message()
146 handles_[i].handle = base::win::HandleToUint32(INVALID_HANDLE_VALUE); in Message()
256 HANDLE handle = base::win::Uint32ToHandle(message->handles_[i].handle); in Deserialize()
294 handles_ = reinterpret_cast<HandleEntry*>(mutable_extra_header()); in ExtendPayload()
405 memset(handles_, 0, extra_header_size()); in SetHandles()
410 handles_[i].handle = base::win::HandleToUint32(handle); in SetHandles()
Dmessage_unittest.cc134 handles_.emplace_back(std::move(handle)); in AddMessagePipe()
137 std::vector<mojo::ScopedMessagePipeHandle>& handles() { return handles_; } in handles()
143 *num_handles = handles_.size(); in GetSerializedSize()
147 ASSERT_TRUE(!handles_.empty()); in SerializeHandles()
148 for (size_t i = 0; i < handles_.size(); ++i) in SerializeHandles()
149 handles[i] = handles_[i].release().value(); in SerializeHandles()
150 handles_.clear(); in SerializeHandles()
159 std::vector<mojo::ScopedMessagePipeHandle> handles_; member in mojo::core::__anon2b539ad20111::SimpleMessage
/external/libchrome/mojo/public/cpp/bindings/lib/
Dserialization_context.cc25 DCHECK_LT(handles_.size(), std::numeric_limits<uint32_t>::max()); in AddHandle()
26 out_data->value = static_cast<uint32_t>(handles_.size()); in AddHandle()
27 handles_.emplace_back(std::move(handle)); in AddHandle()
62 handles_.swap(*message->mutable_handles()); in TakeHandlesFromMessage()
71 DCHECK_LT(encoded_handle.value, handles_.size()); in TakeHandle()
72 return std::move(handles_[encoded_handle.value]); in TakeHandle()
Dsync_handle_registry.cc46 if (base::ContainsKey(handles_, handle)) in RegisterHandle()
53 handles_[handle] = callback; in RegisterHandle()
59 if (!base::ContainsKey(handles_, handle)) in UnregisterHandle()
64 handles_.erase(handle); in UnregisterHandle()
144 const auto iter = handles_.find(ready_handle); in Wait()
Dserialization_context.h54 const std::vector<mojo::ScopedHandle>* handles() { return &handles_; } in COMPONENT_EXPORT()
55 std::vector<mojo::ScopedHandle>* mutable_handles() { return &handles_; } in COMPONENT_EXPORT()
87 std::vector<mojo::ScopedHandle> handles_; in COMPONENT_EXPORT()
Dmessage.cc181 handles_(std::move(other.handles_)), in Message()
223 handles_.resize(num_handles); in Message()
225 reinterpret_cast<MojoHandle*>(handles_.data()), in Message()
263 handles_ = std::move(other.handles_); in operator =()
279 handles_.clear(); in Reset()
/external/tensorflow/tensorflow/core/framework/
Dfunction_handle_cache.cc42 h = gtl::FindWithDefault(handles_, key, kInvalidHandle); in Instantiate()
49 handles_[key] = *handle; in Instantiate()
58 for (auto entry : handles_) { in Clear()
61 handles_.clear(); in Clear()
Dfunction_handle_cache.h46 std::unordered_map<string, FunctionLibraryRuntime::Handle> handles_
/external/minigbm/cros_gralloc/
Dcros_gralloc_driver.cc21 handles_.clear(); in ~cros_gralloc_driver()
160 handles_.emplace(hnd, std::make_pair(buffer, 1)); in allocate()
178 handles_[hnd].second++; in retain()
219 handles_.emplace(hnd, std::make_pair(buffer, 1)); in retain()
239 if (!--handles_[hnd].second) in release()
240 handles_.erase(hnd); in release()
323 if (handles_.count(hnd)) in get_buffer()
324 return handles_[hnd].first; in get_buffer()
Dcros_gralloc_driver.h44 handles_; variable
/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.h219 handles_.reset(new ChunkHandle[n_handles]); in AllocationRegion()
221 handles_[i] = kInvalidChunkHandle; in AllocationRegion()
236 return handles_[IndexFor(p)]; in get_handle()
238 void set_handle(const void* p, ChunkHandle h) { handles_[IndexFor(p)] = h; } in set_handle()
246 std::swap(handles_, other.handles_); in Swap()
265 std::unique_ptr<ChunkHandle[]> handles_; variable
/external/libchrome/ipc/
Dmessage_view.cc17 handles_(std::move(handles)) {} in MessageView()
22 : buffer_view_(std::move(buffer_view)), handles_(std::move(handles)) {} in MessageView()
Dmessage_view.h44 return std::move(handles_); in COMPONENT_EXPORT()
49 base::Optional<std::vector<mojo::native::SerializedHandlePtr>> handles_; in COMPONENT_EXPORT() local
/external/tensorflow/tensorflow/core/kernels/
Dpartitioned_function_ops.cc71 for (const auto& it : handles_) { in ~PartitionedCallOp()
106 auto it = handles_.find(lib); in ComputeAsync()
107 if (it == handles_.end()) { in ComputeAsync()
110 handles_[lib] = handle; in ComputeAsync()
Dpartitioned_function_ops.h66 gtl::FlatMap<FunctionLibraryRuntime*, FunctionLibraryRuntime::Handle> handles_
/external/libchrome/mojo/public/cpp/bindings/
Dmessage.h160 const std::vector<ScopedHandle>* handles() const { return &handles_; } in COMPONENT_EXPORT()
161 std::vector<ScopedHandle>* mutable_handles() { return &handles_; } in COMPONENT_EXPORT()
231 std::vector<ScopedHandle> handles_; in COMPONENT_EXPORT() local
Dsync_handle_registry.h72 std::map<Handle, HandleCallback> handles_; variable
/external/libchrome/libchrome_tools/patch/
Dmojom_disable_trace_and_mem_dump.patch17 handles_.reset(new HandleTable);
19 - handles_.get(), "MojoHandleTable", nullptr);
21 + // handles_.get(), "MojoHandleTable", nullptr);
30 - ->UnregisterAndDeleteDumpProviderSoon(std::move(handles_));
32 + // ->UnregisterAndDeleteDumpProviderSoon(std::move(handles_));
/external/tensorflow/tensorflow/compiler/tf2xla/
Dtf2xla_util.cc692 auto iter = handles_.find(canonicalized_name); in GetOrInstantiate()
693 if (iter != handles_.end()) { in GetOrInstantiate()
699 handles_[canonicalized_name] = *handle; in GetOrInstantiate()
705 for (auto iter : handles_) { in ReleaseAllHandles()
708 handles_.clear(); in ReleaseAllHandles()

12