Home
last modified time | relevance | path

Searched refs:handles_ (Results 1 – 18 of 18) 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.cc25 handles_.insert(std::make_pair(handle, Entry(std::move(dispatcher)))); in AddDispatcher()
45 auto result = handles_.insert( in AddDispatchersFromTransit()
55 auto it = handles_.find(handle); in GetDispatcher()
56 if (it == handles_.end()) in GetDispatcher()
64 auto it = handles_.find(handle); in GetAndRemoveDispatcher()
65 if (it == handles_.end()) in GetAndRemoveDispatcher()
71 handles_.erase(it); in GetAndRemoveDispatcher()
82 auto it = handles_.find(handles[i]); in BeginTransit()
83 if (it == handles_.end()) in BeginTransit()
102 auto it = handles_.find(dispatcher.local_handle); in CompleteTransitAndClose()
[all …]
Dcore.cc166 return handles_.GetDispatcher(handle); in GetDispatcher()
218 return handles_.AddDispatcher(dispatcher); in AddDispatcher()
227 if (!handles_.AddDispatchersFromTransit(dispatchers, handles)) in AddDispatchersFromTransit()
254 MojoResult result = handles_.GetAndRemoveDispatcher(wrapper_handle, &d); in PassWrappedPlatformHandle()
307 dispatcher = handles_.GetDispatcher(mojo_handle); in PassSharedMemoryHandle()
311 result = handles_.GetAndRemoveDispatcher(mojo_handle, &dispatcher); in PassSharedMemoryHandle()
381 MojoResult rv = handles_.GetAndRemoveDispatcher(handle, &dispatcher); in Close()
478 MojoResult rv = handles_.BeginTransit(handles, num_handles, &dispatchers); in AllocMessage()
480 handles_.CancelTransit(dispatchers); in AllocMessage()
493 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::__anona552ed230111::MessageView
Dchannel.cc121 handles_ = reinterpret_cast<HandleEntry*>(mutable_extra_header()); in Message()
124 handles_[i].handle = base::win::HandleToUint32(INVALID_HANDLE_VALUE); in Message()
231 base::win::Uint32ToHandle(message->handles_[i].handle); in Deserialize()
330 memset(handles_, 0, extra_header_size()); in SetHandles()
332 handles_[i].handle = base::win::HandleToUint32((*handle_vector_)[i].handle); in SetHandles()
Dhandle_table.h65 HandleMap handles_; variable
Dchannel.h185 HandleEntry* handles_ = nullptr; member
Dcore.h303 HandleTable handles_; variable
/external/libmojo/mojo/public/cpp/bindings/lib/
Dserialization_context.cc18 for (auto handle : handles_) { in ~SerializedHandleVector()
31 DCHECK_LT(handles_.size(), std::numeric_limits<uint32_t>::max()); in AddHandle()
32 data.value = static_cast<uint32_t>(handles_.size()); in AddHandle()
33 handles_.push_back(handle); in AddHandle()
42 DCHECK_LT(encoded_handle.value, handles_.size()); in TakeHandle()
43 return FetchAndReset(&handles_[encoded_handle.value]); in TakeHandle()
47 handles_.swap(*other); in Swap()
Dmessage.cc43 handles_(std::move(other.handles_)), in Message()
54 std::swap(other.handles_, handles_); in operator =()
61 handles_.clear(); in Reset()
76 handles_.swap(*handles); in InitializeFromMojoMessage()
125 if (handles_.empty()) // Fast path for the common case: No handles. in TakeMojoMessage()
137 handles_.empty() ? nullptr in TakeMojoMessage()
138 : reinterpret_cast<const MojoHandle*>(handles_.data()), in TakeMojoMessage()
139 handles_.size(), in TakeMojoMessage()
143 handles_.clear(); in TakeMojoMessage()
161 for (std::vector<Handle>::iterator it = handles_.begin(); in CloseHandles()
[all …]
Dsync_handle_registry.cc37 if (base::ContainsKey(handles_, handle)) in RegisterHandle()
45 handles_[handle] = callback; in RegisterHandle()
51 if (!base::ContainsKey(handles_, handle)) in UnregisterHandle()
57 handles_.erase(handle); in UnregisterHandle()
90 const auto iter = handles_.find(Handle(ready_handle)); in WatchAllHandles()
Dserialization_context.h29 size_t size() const { return handles_.size(); } in size()
49 std::vector<mojo::Handle> handles_;
/external/tensorflow/tensorflow/core/common_runtime/
Dbfc_allocator.h194 handles_ = new ChunkHandle[n_handles]; in AllocationRegion()
196 handles_[i] = kInvalidChunkHandle; in AllocationRegion()
202 ~AllocationRegion() { delete[] handles_; } in ~AllocationRegion()
215 return handles_[IndexFor(p)]; in get_handle()
217 void set_handle(const void* p, ChunkHandle h) { handles_[IndexFor(p)] = h; } in set_handle()
225 std::swap(handles_, other.handles_); in Swap()
244 ChunkHandle* handles_ = nullptr; variable
/external/libmojo/mojo/public/cpp/bindings/
Dmessage.h124 const std::vector<Handle>* handles() const { return &handles_; } in handles()
125 std::vector<Handle>* mutable_handles() { return &handles_; } in mutable_handles()
162 std::vector<Handle> handles_; variable
Dsync_handle_registry.h56 HandleMap handles_; variable
/external/tensorflow/tensorflow/core/kernels/
Dfunctional_ops.cc211 const auto iter = handles_.find(lib); in ComputeAsync()
212 if (iter == handles_.end()) { in ComputeAsync()
217 handles_[lib] = {cond_handle, body_handle}; in ComputeAsync()
233 handles_ GUARDED_BY(mu_);
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_dnn.cc1331 handles_.assign(seq_length, handle); in CudnnRnnSequenceTensorDescriptor()
1337 wrap::cudnnDestroyTensorDescriptor(parent_, handles_[0]); in ~CudnnRnnSequenceTensorDescriptor()
1344 CHECK(!handles_.empty()) << "handles cannot be empty"; in handles()
1345 return handles_.data(); in handles()
1358 std::vector<cudnnTensorDescriptor_t> handles_; member in perftools::gputools::cuda::CudnnRnnSequenceTensorDescriptor