/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | AnyTest.java | 45 TestAny container = TestAny.newBuilder().setValue(Any.pack(message)).build(); in testAnyGeneratedApi() 47 assertTrue(container.getValue().is(TestAllTypes.class)); in testAnyGeneratedApi() 48 assertFalse(container.getValue().is(TestAny.class)); in testAnyGeneratedApi() 50 TestAllTypes result = container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi() 56 container.getValue().unpack(TestAny.class); in testAnyGeneratedApi() 63 TestAny.Builder containerBuilder = container.toBuilder(); in testAnyGeneratedApi() 65 container = containerBuilder.build(); in testAnyGeneratedApi() 67 container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi() 79 TestAny container = TestAny.newBuilder().setValue(Any.pack(message, "xxx.com")).build(); in testCustomTypeUrls() 82 "xxx.com/" + TestAllTypes.getDescriptor().getFullName(), container in testCustomTypeUrls() [all...] |
/third_party/gn/src/base/ |
H A D | stl_util.h | 32 void IterateAndEraseIf(Container& container, Predicate pred) { in IterateAndEraseIf() argument 33 for (auto it = container.begin(); it != container.end();) { in IterateAndEraseIf() 35 it = container.erase(it); in IterateAndEraseIf() 78 // Returns true if the container is sorted. 81 // Note: Use reverse iterator on container to ensure we only require in STLIsSorted() 122 // Returns true if the sorted container |a1| contains all elements of the sorted 123 // container |a2|. 133 // They provide a generic way to erase elements from a container. 142 void Erase(std::basic_string<CharT, Traits, Allocator>& container, in Erase() argument 149 EraseIf(std::basic_string<CharT, Traits, Allocator>& container, Predicate pred) EraseIf() argument 156 Erase(std::deque<T, Allocator>& container, const Value& value) Erase() argument 162 EraseIf(std::deque<T, Allocator>& container, Predicate pred) EraseIf() argument 168 Erase(std::vector<T, Allocator>& container, const Value& value) Erase() argument 174 EraseIf(std::vector<T, Allocator>& container, Predicate pred) EraseIf() argument 180 Erase(std::forward_list<T, Allocator>& container, const Value& value) Erase() argument 188 EraseIf(std::forward_list<T, Allocator>& container, Predicate pred) EraseIf() argument 193 Erase(std::list<T, Allocator>& container, const Value& value) Erase() argument 201 EraseIf(std::list<T, Allocator>& container, Predicate pred) EraseIf() argument 206 EraseIf(std::map<Key, T, Compare, Allocator>& container, Predicate pred) EraseIf() argument 211 EraseIf(std::multimap<Key, T, Compare, Allocator>& container, Predicate pred) EraseIf() argument 217 EraseIf(std::set<Key, Compare, Allocator>& container, Predicate pred) EraseIf() argument 222 EraseIf(std::multiset<Key, Compare, Allocator>& container, Predicate pred) EraseIf() argument 233 EraseIf(std::unordered_map<Key, T, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument 244 EraseIf( std::unordered_multimap<Key, T, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument 255 EraseIf(std::unordered_set<Key, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument 265 EraseIf(std::unordered_multiset<Key, Hash, KeyEqual, Allocator>& container, Predicate pred) EraseIf() argument [all...] |
/third_party/libuv/test/ |
H A D | benchmark-million-async.c | 33 static struct async_container* container; variable 47 i = fastrand() % ARRAY_SIZE(container->async_handles); in thread_cb() 48 uv_async_send(container->async_handles + i); in thread_cb() 54 container->async_events++; in async_cb() 65 for (i = 0; i < ARRAY_SIZE(container->async_handles); i++) { in timer_cb() 66 uv_async_t* handle = container->async_handles + i; in timer_cb() 69 container->handles_seen++; in timer_cb() 89 container = malloc(sizeof(*container)); in BENCHMARK_IMPL() 90 ASSERT_NOT_NULL(container); in BENCHMARK_IMPL() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
H A D | test_struct_namevalue.c | 107 struct SPDY_NameValue *container; in main() local 114 if(NULL == (container = SPDY_name_value_create ())) in main() 119 if(NULL != SPDY_name_value_lookup (container, "anything", &ret)) in main() 124 if(SPDY_name_value_iterate (container, NULL, NULL) != 0) in main() 131 if(SPDY_YES != SPDY_name_value_add(container,pairs[i],pairs[i+1])) in main() 136 if(SPDY_name_value_iterate (container, NULL, NULL) != ((i / 2) + 1)) in main() 142 if(NULL != SPDY_name_value_lookup (container, "anything", &ret)) in main() 149 value = SPDY_name_value_lookup(container,pairs[i], &ret); in main() 158 SPDY_name_value_iterate (container, &iterate_cb, &cls); in main() 161 if(SPDY_name_value_iterate (container, in main() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
H A D | structures.c | 35 SPDYF_name_value_is_empty(struct SPDY_NameValue *container) in SPDYF_name_value_is_empty() argument 37 SPDYF_ASSERT(NULL != container, "NULL is not an empty container!"); in SPDYF_name_value_is_empty() 38 return (NULL == container->name && NULL == container->value) ? SPDY_YES : SPDY_NO; in SPDYF_name_value_is_empty() 56 SPDY_name_value_add (struct SPDY_NameValue *container, in SPDY_name_value_add() argument 67 if(NULL == container || NULL == name || NULL == value || 0 == (len = strlen(name))) in SPDY_name_value_add() 78 if(SPDYF_name_value_is_empty(container)) in SPDY_name_value_add() 80 //container is empty/just created in SPDY_name_value_add() 81 if (NULL == (container in SPDY_name_value_add() 190 SPDY_name_value_lookup(struct SPDY_NameValue *container, const char *name, int *num_values) SPDY_name_value_lookup() argument 218 SPDY_name_value_destroy(struct SPDY_NameValue *container) SPDY_name_value_destroy() argument 237 SPDY_name_value_iterate(struct SPDY_NameValue *container, SPDY_NameValueIterator iterator, void *iterator_cls) SPDY_name_value_iterate() argument 457 SPDYF_name_value_to_stream(struct SPDY_NameValue * container[], int num_containers, void **stream) SPDYF_name_value_to_stream() argument 554 SPDYF_name_value_from_stream(void *stream, size_t size, struct SPDY_NameValue ** container) SPDYF_name_value_from_stream() argument [all...] |
/third_party/json/tests/src/ |
H A D | unit-byte_container_with_subtype.cpp | 19 SECTION("empty container") 21 nlohmann::byte_container_with_subtype<std::vector<std::uint8_t>> container; variable 23 CHECK(!container.has_subtype()); 24 CHECK(container.subtype() == static_cast<subtype_type>(-1)); 26 container.clear_subtype(); 27 CHECK(!container.has_subtype()); 28 CHECK(container.subtype() == static_cast<subtype_type>(-1)); 30 container.set_subtype(42); 31 CHECK(container.has_subtype()); 32 CHECK(container [all...] |
/third_party/skia/tests/ |
H A D | TemplatesTest.cpp | 88 TContainer container; in test_container_apis() local 89 // The default constructor may or may not init to empty, depending on the type of container. in test_container_apis() 91 container.reset((TCount)1); in test_container_apis() 92 REPORTER_ASSERT(reporter, container.get()); in test_container_apis() 93 REPORTER_ASSERT(reporter, container.get() == container.data()); in test_container_apis() 95 container.reset((TCount)kStackPreallocCount); in test_container_apis() 96 REPORTER_ASSERT(reporter, container.get()); in test_container_apis() 97 REPORTER_ASSERT(reporter, container.get() == container in test_container_apis() [all...] |
/third_party/skia/third_party/externals/dawn/src/common/ |
H A D | ityp_stack_vec.h | 35 this->container().resize(static_cast<I>(size)); in stack_vec() 49 this->container().resize(static_cast<I>(size)); 53 this->container().reserve(static_cast<I>(size)); 57 return this->container().data(); in data() 61 return this->container().data(); in data() 65 return this->container().begin(); 69 return this->container().begin(); 73 return this->container().end(); 77 return this->container().end(); 81 return this->container() in front() [all...] |
H A D | StackContainer.h | 30 // be sure to reserve() in the container up to the stack buffer size. Otherwise 31 // the container will allocate a small array which will "use up" the stack 39 // Backing store for the allocator. The container owner is responsible for 127 // initial capacity of the vector is based on. Growing the container beyond the 128 // stack capacity will transparently overflow onto the heap. The container must 145 // Allocator must be constructed before the container! 147 // Make the container use the stack allocation by reserving our buffer size in StackContainer() 152 // Getters for the actual container. 157 // copy into a "real" container for longer-lived objects. 158 ContainerType& container() { in container() function in StackContainer 161 const ContainerType& container() const { container() function in StackContainer [all...] |
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | MapFieldIter.php | 50 private $container; variable 60 public function __construct($container, $key_type) 62 $this->container = $container; variable 73 return reset($this->container); 83 return current($this->container); 93 $key = key($this->container); 122 return next($this->container); 132 return key($this->container) !== null;
|
H A D | RepeatedField.php | 53 private $container; variable 76 $this->container = []; variable 126 return $this->container[$offset]; 189 $this->container[] = $value; 191 $count = count($this->container); 198 $this->container[$offset] = $value; 215 $count = count($this->container); 222 array_pop($this->container); 236 return isset($this->container[$offset]); 244 return new RepeatedFieldIter($this->container); [all...] |
H A D | RepeatedFieldIter.php | 54 private $container; variable 63 public function __construct($container) 66 $this->container = $container; variable 86 return $this->container[$this->position]; 116 return isset($this->container[$this->position]);
|
H A D | MapField.php | 49 private $container; variable 78 $this->container = []; variable 139 return $this->container[$key]; 200 $this->container[$key] = $value; 215 unset($this->container[$key]); 230 return isset($this->container[$key]); 238 return new MapFieldIter($this->container, $this->key_type); 250 return count($this->container);
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deSTLUtil.hpp | 40 //! Test whether `item` is a member of `container`. The type `C` must be an 44 inline bool contains (const C& container, const typename C::key_type& item) in contains() argument 46 const typename C::const_iterator it = container.find(item); in contains() 47 return (it != container.end()); in contains() 75 // Utilities for map-like container types 121 size_t dataSize (const T& container) in dataSize() argument 123 return (container.size() * sizeof(typename T::value_type)); in dataSize() 128 T* dataOrNull (std::vector<T>& container) in dataOrNull() argument 130 return (container.empty() ? nullptr : container in dataOrNull() 135 dataOrNull(const std::vector<T>& container) dataOrNull() argument 142 sizeU32(const T& container) sizeU32() argument [all...] |
/third_party/mesa3d/.gitlab-ci/container/debian/ |
H A D | x86_test-vk.sh | 66 apt-key add .gitlab-ci/container/debian/winehq.gpg.key 140 . .gitlab-ci/container/install-wine-apitrace.sh 151 . .gitlab-ci/container/container_pre_build.sh 155 . .gitlab-ci/container/build-libdrm.sh 159 . .gitlab-ci/container/build-wayland.sh 163 . .gitlab-ci/container/build-hang-detection.sh 167 PIGLIT_BUILD_TARGETS="piglit_replayer" . .gitlab-ci/container/build-piglit.sh 171 . .gitlab-ci/container/build-fossilize.sh 175 . .gitlab-ci/container/build-deqp.sh 179 . .gitlab-ci/container/buil [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/ |
H A D | btree_benchmark.cc | 31 #include "absl/container/btree_map.h" 32 #include "absl/container/btree_set.h" 33 #include "absl/container/btree_test.h" 34 #include "absl/container/flat_hash_map.h" 35 #include "absl/container/flat_hash_set.h" 36 #include "absl/container/internal/hashtable_debug.h" 62 // Benchmark insertion of values into a container. 72 T container(values.begin(), values.end()); in BM_InsertImpl() 82 container.erase(key_of_value(values[x])); in BM_InsertImpl() 89 container in BM_InsertImpl() 112 T container; BM_InsertSmall() local 237 T container; BM_QueueAddRem() local 299 T container; BM_MixedAddRem() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 22 protected ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource) { in ICUResourceBundleImpl() argument 23 super(container, key); in ICUResourceBundleImpl() 76 ResourceBinary(ICUResourceBundleImpl container, String key, int resource) { in ResourceBinary() argument 77 super(container, key, resource); in ResourceBinary() 93 ResourceInt(ICUResourceBundleImpl container, String key, int resource) { in ResourceInt() argument 94 super(container, key, resource); in ResourceInt() 110 ResourceString(ICUResourceBundleImpl container, String key, int resource) { in ResourceString() argument 111 super(container, key, resource); in ResourceString() 129 ResourceIntVector(ICUResourceBundleImpl container, String key, int resource) { in ResourceIntVector() argument 130 super(container, ke in ResourceIntVector() 167 ResourceContainer(ICUResourceBundleImpl container, String key, int resource) ResourceContainer() argument 208 ResourceArray(ICUResourceBundleImpl container, String key, int resource) ResourceArray() argument 297 ResourceTable(ICUResourceBundleImpl container, String key, int resource) ResourceTable() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | ICUResourceBundleImpl.java | 23 protected ICUResourceBundleImpl(ICUResourceBundleImpl container, String key, int resource) { in ICUResourceBundleImpl() argument 24 super(container, key); in ICUResourceBundleImpl() 77 ResourceBinary(ICUResourceBundleImpl container, String key, int resource) { in ResourceBinary() argument 78 super(container, key, resource); in ResourceBinary() 94 ResourceInt(ICUResourceBundleImpl container, String key, int resource) { in ResourceInt() argument 95 super(container, key, resource); in ResourceInt() 111 ResourceString(ICUResourceBundleImpl container, String key, int resource) { in ResourceString() argument 112 super(container, key, resource); in ResourceString() 130 ResourceIntVector(ICUResourceBundleImpl container, String key, int resource) { in ResourceIntVector() argument 131 super(container, ke in ResourceIntVector() 168 ResourceContainer(ICUResourceBundleImpl container, String key, int resource) ResourceContainer() argument 209 ResourceArray(ICUResourceBundleImpl container, String key, int resource) ResourceArray() argument 298 ResourceTable(ICUResourceBundleImpl container, String key, int resource) ResourceTable() argument [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | opaque_in_struct.rs | 30 pub struct container { structure names 35 const UNINIT: ::std::mem::MaybeUninit<container> = in bindgen_test_layout_container() 39 ::std::mem::size_of::<container>(), in bindgen_test_layout_container() 41 concat!("Size of: ", stringify!(container)) in bindgen_test_layout_container() 44 ::std::mem::align_of::<container>(), in bindgen_test_layout_container() 46 concat!("Alignment of ", stringify!(container)) in bindgen_test_layout_container() 55 stringify!(container), in bindgen_test_layout_container()
|
H A D | class_use_as.rs | 44 pub struct container { structure names 49 const UNINIT: ::std::mem::MaybeUninit<container> = in bindgen_test_layout_container() 53 ::std::mem::size_of::<container>(), in bindgen_test_layout_container() 55 concat!("Size of: ", stringify!(container)) in bindgen_test_layout_container() 58 ::std::mem::align_of::<container>(), in bindgen_test_layout_container() 60 concat!("Alignment of ", stringify!(container)) in bindgen_test_layout_container() 67 stringify!(container), in bindgen_test_layout_container()
|
/third_party/mesa3d/.gitlab-ci/container/ |
H A D | lava_build.sh | 20 . .gitlab-ci/container/container_pre_build.sh 23 . .gitlab-ci/container/build-rust.sh 51 . .gitlab-ci/container/create-cross-file.sh armhf 140 . .gitlab-ci/container/build-apitrace.sh 147 . .gitlab-ci/container/build-deqp-runner.sh 153 DEQP_TARGET=surfaceless . .gitlab-ci/container/build-deqp.sh 161 . .gitlab-ci/container/build-skqp.sh 166 PIGLIT_OPTS="-DPIGLIT_BUILD_DMA_BUF_TESTS=ON" . .gitlab-ci/container/build-piglit.sh 171 . .gitlab-ci/container/build-va-tools.sh 177 . .gitlab-ci/container/buil [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | asiPreventsParsingAsAmbientExternalModule02.js | 5 module container { 15 var container;
variable 16 (function (container) {
21 })(container || (container = {}));
|
H A D | asiPreventsParsingAsNamespace03.js | 5 namespace container { 14 var container;
variable 15 (function (container) {
19 })(container || (container = {}));
|
H A D | asiPreventsParsingAsTypeAlias02.js | 6 namespace container { 15 var container;
variable 16 (function (container) {
19 })(container || (container = {}));
|
H A D | parserRealSource8.js | 180 var container: Symbol = null; variable 209 if (context.scopeChain.previous.scope.container && 210 context.scopeChain.previous.scope.container.declAST && 211 context.scopeChain.previous.scope.container.declAST.nodeType == NodeType.FuncDecl && 212 (<FuncDecl>context.scopeChain.previous.scope.container.declAST).isConstructor) { 225 container = instType.symbol; 228 // sets the container to the class type's symbol (which is shared by the instance type) 229 container = context.scopeChain.thisType.symbol; 234 container = context.scopeChain.fnc.type.symbol; 246 if (outerFnc.type.members == null && container [all...] |