Home
last modified time | relevance | path

Searched refs:container_ (Results 1 – 25 of 39) sorted by relevance

12

/external/libbrillo/brillo/streams/
Dmemory_containers_unittest.cc63 MockContiguousBuffer container_; member in brillo::MemoryContainerTest
69 EXPECT_CALL(container_, GetSize()).WillOnce(Return(100)); in TEST_F()
70 EXPECT_CALL(container_, GetReadOnlyBuffer(10, _)) in TEST_F()
72 EXPECT_CALL(container_, in TEST_F()
77 EXPECT_TRUE(container_.Read(test_read_buffer_, 50, 10, &read, &error)); in TEST_F()
85 EXPECT_CALL(container_, GetSize()).WillOnce(Return(100)); in TEST_F()
86 EXPECT_CALL(container_, GetReadOnlyBuffer(80, _)) in TEST_F()
88 EXPECT_CALL(container_, in TEST_F()
92 EXPECT_TRUE(container_.Read(test_read_buffer_, 50, 80, &read, nullptr)); in TEST_F()
97 EXPECT_CALL(container_, GetSize()).WillOnce(Return(100)); in TEST_F()
[all …]
Dmemory_stream.cc19 : container_{std::move(container)}, stream_position_{stream_position} {} in MemoryStream()
85 bool MemoryStream::IsOpen() const { return container_ != nullptr; } in IsOpen()
89 return IsOpen() && !container_->IsReadOnly(); in CanWrite()
96 return IsOpen() ? container_->GetSize() : 0; in GetSize()
102 return container_->Resize(size, error); in SetSizeBlocking()
148 if (!container_->Read(buffer, size_to_read, stream_position_, &read, error)) in ReadNonBlocking()
163 if (!container_->Write(buffer, size_to_write, stream_position_, size_written, in WriteNonBlocking()
177 container_.reset(); in CloseBlocking()
182 return container_ || stream_utils::ErrorStreamClosed(FROM_HERE, error); in CheckContainer()
/external/swiftshader/third_party/SPIRV-Tools/source/opt/
Diterator.h57 : container_(container), iterator_(it) {} in UptrVectorIterator()
108 return UptrVectorIterator(container_, container_->end()); in End()
112 UptrVector* container_; // The container we are manipulating.
298 return container_ == that.container_ && iterator_ == that.iterator_;
310 assert(container_ == that.container_);
317 assert(container_ == that.container_);
326 auto index = iterator_ - container_->begin(); in InsertBefore()
327 container_->insert(iterator_, std::move(value)); in InsertBefore()
328 return UptrVectorIterator(container_, container_->begin() + index); in InsertBefore()
336 const auto pos = iterator_ - container_->begin(); in InsertBefore()
[all …]
/external/angle/third_party/spirv-tools/src/source/opt/
Diterator.h57 : container_(container), iterator_(it) {} in UptrVectorIterator()
108 return UptrVectorIterator(container_, container_->end()); in End()
112 UptrVector* container_; // The container we are manipulating.
298 return container_ == that.container_ && iterator_ == that.iterator_;
310 assert(container_ == that.container_);
317 assert(container_ == that.container_);
326 auto index = iterator_ - container_->begin(); in InsertBefore()
327 container_->insert(iterator_, std::move(value)); in InsertBefore()
328 return UptrVectorIterator(container_, container_->begin() + index); in InsertBefore()
336 const auto pos = iterator_ - container_->begin(); in InsertBefore()
[all …]
/external/deqp-deps/SPIRV-Tools/source/opt/
Diterator.h57 : container_(container), iterator_(it) {} in UptrVectorIterator()
108 return UptrVectorIterator(container_, container_->end()); in End()
112 UptrVector* container_; // The container we are manipulating.
298 return container_ == that.container_ && iterator_ == that.iterator_;
310 assert(container_ == that.container_);
317 assert(container_ == that.container_);
326 auto index = iterator_ - container_->begin(); in InsertBefore()
327 container_->insert(iterator_, std::move(value)); in InsertBefore()
328 return UptrVectorIterator(container_, container_->begin() + index); in InsertBefore()
336 const auto pos = iterator_ - container_->begin(); in InsertBefore()
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dtopk_v2.cc86 container_.reserve(std::min(k, row_size) + 1); in TopContainer()
91 container_.clear(); in start_collecting()
95 if (container_.size() <= k_) { in push()
96 container_.push_back(a); in push()
97 if (container_.size() == k_ + 1) { in push()
98 std::make_heap(container_.begin(), container_.end(), comparator); in push()
99 std::pop_heap(container_.begin(), container_.end(), comparator); in push()
101 } else if (comparator(a, container_.front())) { in push()
112 container_.back() = a; in push()
117 std::pop_heap(container_.begin(), container_.end(), comparator); in push()
[all …]
/external/sfntly/cpp/src/sfntly/port/
Djava_iterator.h43 explicit PODIterator(Container* container) : container_(container) {} in PODIterator()
46 return static_cast<ContainerBase*>(container_); in container_base()
59 Container* container() { return container_; } in container()
62 Container* container_; // Dumb pointer is used to avoid circular ref-counting
70 explicit RefIterator(Container* container) : container_(container) {} in RefIterator()
73 return static_cast<ContainerBase*>(container_); in container_base()
86 Container* container() { return container_; } in container()
89 Container* container_; // Dumb pointer is used to avoid circular ref-counting
/external/libchrome/base/task_scheduler/
Dpriority_queue.cc70 outer_queue_->container_.emplace(std::move(sequence), sequence_sort_key); in Push()
75 return outer_queue_->container_.top().sort_key(); in PeekSortKey()
87 outer_queue_->container_.top()) in PopSequence()
89 outer_queue_->container_.pop(); in PopSequence()
94 return outer_queue_->container_.empty(); in IsEmpty()
98 return outer_queue_->container_.size(); in Size()
Dpriority_queue.h96 ContainerType container_; variable
/external/libchrome/base/containers/
Dstack_container.h148 StackContainer() : allocator_(&stack_data_), container_(allocator_) { in StackContainer()
151 container_.reserve(stack_capacity); in StackContainer()
160 ContainerType& container() { return container_; } in container()
161 const ContainerType& container() const { return container_; } in container()
166 ContainerType* operator->() { return &container_; }
167 const ContainerType* operator->() const { return &container_; }
180 ContainerType container_; variable
/external/autotest/client/site_tests/security_Libcontainer/src/
Dlibcontainer_target_unittest.cc81 container_ = container_new("containerUT", rootfs.value().c_str()); in SetUp()
82 ASSERT_NE(nullptr, container_); in SetUp()
86 container_destroy(container_); in TearDown()
87 container_ = nullptr; in TearDown()
94 return container_; in container()
102 struct container* container_ = nullptr; member in libcontainer::LibcontainerTargetTest
/external/webrtc/webrtc/system_wrappers/include/
Dstl_util.h180 STLElementDeleter<T>(T* container) : container_(container) {} in container_() function
181 ~STLElementDeleter<T>() { STLDeleteElements(container_); }
184 T* container_;
192 STLValueDeleter<T>(T* container) : container_(container) {} in container_() function
193 ~STLValueDeleter<T>() { STLDeleteValues(container_); }
196 T* container_;
/external/tensorflow/tensorflow/core/common_runtime/
Dscoped_allocator.cc31 container_(container), in ScopedAllocator()
94 container_->Drop(f.scope_id, this); in AllocateRaw()
96 container_->Drop(id_, this); in AllocateRaw()
97 container_->Unref(); in AllocateRaw()
98 container_ = nullptr; in AllocateRaw()
Dscoped_allocator.h75 ScopedAllocatorContainer* container_; variable
/external/tensorflow/tensorflow/core/framework/
Dresource_handle.h45 const string& container() const { return container_; } in container()
46 void set_container(const string& container) { container_ = container; } in set_container()
88 string container_; variable
Dresource_mgr.h96 : container_(strings::StrCat("__per_step_", step_id)), in ScopedStepContainer()
104 : container_(strings::StrCat("__", prefix, "_per_step_", step_id)), in ScopedStepContainer()
116 cleanup_(container_); in CleanUp()
149 const string container_;
416 const string& container() const { return container_; } in container()
427 string container_; variable
477 string container_;
811 OP_REQUIRES_OK(context, context->GetAttr("container", &container_));
824 MakeResourceHandle<T>(ctx, container_, name_);
836 MakeResourceHandle<T>(ctx, container_, name_);
[all …]
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_rpc_factory.cc39 : container_(container), in GrpcCall()
50 DCHECK(container_ != nullptr); in Done()
57 container_->Done(s, index_); in Done()
66 CallContainer<GrpcCall>* const container_; member in tensorflow::internal::GrpcCall
/external/tensorflow/tensorflow/core/kernels/
Dbatch_kernels.cc695 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in BatchFunctionKernel()
735 container_, shared_name_, &br, creator), in ComputeAsync()
767 string container_; member in tensorflow::BatchFunctionKernel
784 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in BatchKernel()
815 container_, shared_name_, &br, creator), in ComputeAsync()
847 string container_; member in tensorflow::BatchKernel
1056 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in UnbatchKernel()
1075 container_, shared_name_, &ubr, creator), in ComputeAsync()
1084 string container_; member in tensorflow::UnbatchKernel
1243 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in UnbatchGradKernel()
[all …]
Dresource_variable_ops.h34 string container_; variable
/external/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-param-util.h272 : container_(begin, end) {} in ValuesInIteratorRangeGenerator()
276 return new Iterator(this, container_.begin()); in Begin()
279 return new Iterator(this, container_.end()); in End()
345 const ContainerType container_; variable
/external/google-breakpad/src/testing/gtest/include/gtest/internal/
Dgtest-param-util.h272 : container_(begin, end) {} in ValuesInIteratorRangeGenerator()
276 return new Iterator(this, container_.begin()); in Begin()
279 return new Iterator(this, container_.end()); in End()
345 const ContainerType container_; variable
/external/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/include/gtest/internal/
Dgtest-param-util.h296 : container_(begin, end) {} in ValuesInIteratorRangeGenerator()
300 return new Iterator(this, container_.begin()); in Begin()
303 return new Iterator(this, container_.end()); in End()
369 const ContainerType container_; variable
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-param-util.h292 : container_(begin, end) {} in ValuesInIteratorRangeGenerator()
296 return new Iterator(this, container_.begin()); in Begin()
299 return new Iterator(this, container_.end()); in End()
365 const ContainerType container_; variable
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-param-util.h294 : container_(begin, end) {} in ValuesInIteratorRangeGenerator()
298 return new Iterator(this, container_.begin()); in Begin()
301 return new Iterator(this, container_.end()); in End()
366 const ContainerType container_; variable
/external/googletest/googletest/include/gtest/internal/
Dgtest-param-util.h296 : container_(begin, end) {} in ValuesInIteratorRangeGenerator()
300 return new Iterator(this, container_.begin()); in Begin()
303 return new Iterator(this, container_.end()); in End()
368 const ContainerType container_; variable

12