/external/libbrillo/brillo/streams/ |
D | memory_containers_unittest.cc | 63 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 …]
|
D | memory_stream.cc | 19 : 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/tensorflow/tensorflow/lite/kernels/ |
D | topk_v2.cc | 87 container_.reserve(std::min(k, row_size) + 1); in TopContainer() 92 container_.clear(); in start_collecting() 96 if (container_.size() <= k_) { in push() 97 container_.push_back(a); in push() 98 if (container_.size() == k_ + 1) { in push() 99 std::make_heap(container_.begin(), container_.end(), comparator); in push() 100 std::pop_heap(container_.begin(), container_.end(), comparator); in push() 102 } else if (comparator(a, container_.front())) { in push() 103 container_.back() = a; in push() 104 std::push_heap(container_.begin(), container_.end(), comparator); in push() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | iterator.h | 57 : 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/ |
D | iterator.h | 57 : 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/sfntly/cpp/src/sfntly/port/ |
D | java_iterator.h | 43 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/containers/ |
D | stack_container.h | 148 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/ |
D | libcontainer_target_unittest.cc | 81 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/ |
D | stl_util.h | 180 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/ |
D | scoped_allocator.cc | 29 container_(container), in ScopedAllocator() 89 container_->Drop(f.scope_id, this); in AllocateRaw() 91 container_->Drop(id_, this); in AllocateRaw() 92 container_->Unref(); in AllocateRaw() 93 container_ = nullptr; in AllocateRaw()
|
D | scoped_allocator.h | 74 ScopedAllocatorContainer* container_; variable
|
/external/tensorflow/tensorflow/core/framework/ |
D | resource_handle.h | 43 const string& container() const { return container_; } in container() 44 void set_container(const string& container) { container_ = container; } in set_container() 77 string container_; variable
|
D | resource_mgr.h | 329 const string& container() const { return container_; } in container() 340 string container_; variable 390 string container_; 637 OP_REQUIRES_OK(context, context->GetAttr("container", &container_)); 650 MakeResourceHandle<T>(ctx, container_, name_); 662 MakeResourceHandle<T>(ctx, container_, name_);
|
D | resource_mgr.cc | 269 container_ = attr_container; in Init() 271 container_ = rmgr_->default_container(); in Init()
|
/external/tensorflow/tensorflow/core/distributed_runtime/rpc/ |
D | grpc_rpc_factory.cc | 39 : 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/ |
D | batch_kernels.cc | 694 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in BatchFunctionKernel() 734 container_, shared_name_, &br, creator), in ComputeAsync() 766 string container_; member in tensorflow::BatchFunctionKernel 783 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in BatchKernel() 814 container_, shared_name_, &br, creator), in ComputeAsync() 846 string container_; member in tensorflow::BatchKernel 1055 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in UnbatchKernel() 1074 container_, shared_name_, &ubr, creator), in ComputeAsync() 1083 string container_; member in tensorflow::UnbatchKernel 1242 OP_REQUIRES_OK(c, c->GetAttr("container", &container_)); in UnbatchGradKernel() [all …]
|
/external/google-breakpad/src/testing/gtest/include/gtest/internal/ |
D | gtest-param-util.h | 272 : 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/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-param-util.h | 272 : 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/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-param-util.h | 272 : 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/v8/src/ |
D | json-parser.cc | 34 : container_(*container), begin_(container->size()) {} in VectorSegment() 35 ~VectorSegment() { container_.resize(begin_); } in ~VectorSegment() 38 return Vector<const value_type>(container_.data() + begin_, in GetVector() 39 container_.size() - begin_); in GetVector() 44 container_.push_back(std::forward<T>(value)); in push_back() 48 Container& container_; member in v8::internal::__anon2825480d0111::VectorSegment
|
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/ |
D | gtest-param-util.h | 296 : 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/swiftshader/third_party/llvm-7.0/llvm/utils/unittest/googletest/include/gtest/internal/ |
D | gtest-param-util.h | 296 : 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/ |
D | gtest-param-util.h | 292 : 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/ |
D | gtest-param-util.h | 296 : 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/googletest/googletest/include/gtest/internal/ |
D | gtest-param-util.h | 294 : 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
|