Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 97) sorted by relevance

1234

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Drepeated_field.cc51 return &rep_->elements[current_size_]; in InternalExtend()
59 sizeof(old_rep->elements[0])) in InternalExtend()
63 new char[kRepHeaderSize + sizeof(old_rep->elements[0]) * new_size]); in InternalExtend()
67 kRepHeaderSize + sizeof(old_rep->elements[0]) * new_size)); in InternalExtend()
71 memcpy(rep_->elements, old_rep->elements, in InternalExtend()
72 old_rep->allocated_size * sizeof(rep_->elements[0])); in InternalExtend()
80 return &rep_->elements[current_size_]; in InternalExtend()
93 rep_->elements[i - num] = rep_->elements[i]; in CloseGap()
Drepeated_field.h133 void ExtractSubrange(int start, int num, Element* elements);
247 Element elements[1]; member
281 Element* e = &rep->elements[0]; in InternalDeallocate()
282 Element* limit = &rep->elements[size]; in InternalDeallocate()
295 reinterpret_cast<size_t>(&reinterpret_cast<Rep*>(16)->elements[0]) - 16;
524 void* elements[1];
892 void ExtractSubrange(int start, int num, Element** elements);
898 void UnsafeArenaExtractSubrange(int start, int num, Element** elements);
962 void ExtractSubrangeInternal(int start, int num, Element** elements,
964 void ExtractSubrangeInternal(int start, int num, Element** elements,
[all …]
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DRefactorClassAdapter.java71 private Object[] renameFrame(Object[] elements) { in renameFrame() argument
72 if (elements == null) { in renameFrame()
78 for (int i = 0; i < elements.length; i++) { in renameFrame()
79 if (!(elements[i] instanceof String)) { in renameFrame()
84 elements = Arrays.copyOf(elements, elements.length); in renameFrame()
88 String type = (String)elements[i]; in renameFrame()
90 elements[i] = renameTypeDesc(type); in renameFrame()
92 elements[i] = renameInternalType(type); in renameFrame()
96 return elements; in renameFrame()
/frameworks/base/core/java/android/hardware/camera2/params/
DColorSpaceTransform.java71 public ColorSpaceTransform(Rational[] elements) { in ColorSpaceTransform() argument
73 checkNotNull(elements, "elements must not be null"); in ColorSpaceTransform()
74 if (elements.length != COUNT) { in ColorSpaceTransform()
80 for (int i = 0; i < elements.length; ++i) { in ColorSpaceTransform()
81 checkNotNull(elements, "element[" + i + "] must not be null"); in ColorSpaceTransform()
82 mElements[i * RATIONAL_SIZE + OFFSET_NUMERATOR] = elements[i].getNumerator(); in ColorSpaceTransform()
83 mElements[i * RATIONAL_SIZE + OFFSET_DENOMINATOR] = elements[i].getDenominator(); in ColorSpaceTransform()
112 public ColorSpaceTransform(int[] elements) { in ColorSpaceTransform() argument
113 checkNotNull(elements, "elements must not be null"); in ColorSpaceTransform()
114 if (elements.length != COUNT_INT) { in ColorSpaceTransform()
[all …]
DLensShadingMap.java69 public LensShadingMap(final float[] elements, final int rows, final int columns) { in LensShadingMap() argument
73 mElements = checkNotNull(elements, "elements must not be null"); in LensShadingMap()
75 if (elements.length != getGainFactorCount()) { in LensShadingMap()
77 " length, received " + elements.length); in LensShadingMap()
81 checkArrayElementsInRange(elements, MINIMUM_GAIN_FACTOR, Float.MAX_VALUE, "elements"); in LensShadingMap()
/frameworks/base/core/java/com/google/android/collect/
DSets.java69 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() argument
70 int capacity = elements.length * 4 / 3 + 1; in newHashSet()
72 Collections.addAll(set, elements); in newHashSet()
93 public static <E> SortedSet<E> newSortedSet(E... elements) { in newSortedSet() argument
95 Collections.addAll(set, elements); in newSortedSet()
111 public static <E> ArraySet<E> newArraySet(E... elements) { in newArraySet() argument
112 int capacity = elements.length * 4 / 3 + 1; in newArraySet()
114 Collections.addAll(set, elements); in newArraySet()
DLists.java61 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList() argument
62 int capacity = (elements.length * 110) / 100 + 5; in newArrayList()
64 Collections.addAll(list, elements); in newArrayList()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/ext/google/protobuf_c/
Drepeated_field.c51 return ((uint8_t *)self->elements) + index * element_size; in RepeatedField_memoryat()
71 void* mem = ((uint8_t *)self->elements) + off; in RepeatedField_subarray()
94 void* memory = (void *) (((uint8_t *)self->elements) + off); in RepeatedField_each()
188 void* old_elems = self->elements; in RepeatedField_reserve()
199 self->elements = ALLOC_N(uint8_t, elem_size * self->capacity); in RepeatedField_reserve()
201 memcpy(self->elements, old_elems, self->size * elem_size); in RepeatedField_reserve()
219 memory = (void *) (((uint8_t *)self->elements) + self->size * element_size); in RepeatedField_push()
235 memory = (void *) (((uint8_t *)self->elements) + self->size * element_size); in RepeatedField_push_native()
343 void* to_mem = (uint8_t *)new_rptfield_self->elements + off; in RepeatedField_dup()
344 void* from_mem = (uint8_t *)self->elements + off; in RepeatedField_dup()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DConstants.java122 public static boolean hasBaseANQPElements(Collection<ANQPElementType> elements) { in hasBaseANQPElements() argument
123 if (elements == null) { in hasBaseANQPElements()
126 for (ANQPElementType element : elements) { in hasBaseANQPElements()
134 public static boolean hasR2Elements(List<ANQPElementType> elements) { in hasR2Elements() argument
135 return elements.contains(ANQPElementType.HSOSUProviders); in hasR2Elements()
/frameworks/base/core/java/android/provider/
DSettingsStringUtil.java84 public static String addAll(String delimitedElements, Collection<String> elements) { in addAll() argument
87 return set.addAll(elements) ? set.toString() : delimitedElements; in addAll()
111 final String[] elements = TextUtils.split(delimitedElements, DELIMITER); in contains() local
112 return ArrayUtils.indexOf(elements, element) != -1; in contains()
DSettingsValidators.java255 String[] elements = value.split(mSeparator); in validate() local
256 for (String element : elements) { in validate()
277 String[] elements = value.split(mSeparator); in validate() local
278 for (String element : elements) { in validate()
/frameworks/base/tools/aapt2/
DResourceValues_test.cpp73 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
77 b.elements.push_back(util::make_unique<String>(pool.MakeRef("une"))); in TEST()
78 b.elements.push_back(util::make_unique<String>(pool.MakeRef("deux"))); in TEST()
81 c.elements.push_back(util::make_unique<String>(pool.MakeRef("uno"))); in TEST()
84 d.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
85 d.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
97 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST()
98 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
DResourceValues.cpp990 if (elements.size() != other->elements.size()) { in Equals()
994 return std::equal(elements.begin(), elements.end(), other->elements.begin(), in Equals()
1004 for (auto& item : elements) { in Clone()
1005 array->elements.emplace_back(std::unique_ptr<Item>(item->Clone(new_pool))); in Clone()
1011 *out << "(array) [" << util::Joiner(elements, ", ") << "]"; in Print()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DANQPDataTest.java64 Map<Constants.ANQPElementType, ANQPElement> elements = data.getElements(); in createWithNullElements() local
65 assertTrue(elements.isEmpty()); in createWithNullElements()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DAnqpEvent.java56 public AnqpEvent(long bssid, Map<Constants.ANQPElementType, ANQPElement> elements) { in AnqpEvent() argument
58 mElements = elements; in AnqpEvent()
DPasspointEventHandler.java80 public boolean requestANQP(long bssid, List<Constants.ANQPElementType> elements) { in requestANQP() argument
81 Pair<Set<Integer>, Set<Integer>> querySets = buildAnqpIdSet(elements); in requestANQP()
/frameworks/base/core/java/com/android/internal/widget/
DAccountViewAdapter.java72 AccountElements elements = (AccountElements) getItem(position); in getView() local
73 view.setViewItem(elements); in getView()
/frameworks/compile/slang/tests/F_large_array/
Dstderr.txt.expect1 large_array.rs:5:15: error: array is too large (4294967296 elements)
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java678 Object[] elements = new V14().makeDexElements(additionalClassPathEntries); in install() local
680 expandFieldArray(dexPathList, "dexElements", elements); in install()
685 expandFieldArray(dexPathList, "pathElements", elements); in install()
713 Object[] elements = new Object[files.size()]; in makeDexElements() local
714 for (int i = 0; i < elements.length; i++) { in makeDexElements()
716 elements[i] = elementConstructor.newInstance( in makeDexElements()
720 return elements; in makeDexElements()
/frameworks/rs/
DrsElement.cpp44 auto& elements = mRSC->mStateElement.mElements; in preDestroy() local
45 for (uint32_t ct = 0; ct < elements.size(); ct++) { in preDestroy()
46 if (elements[ct] == this) { in preDestroy()
47 elements.erase(elements.begin() + ct); in preDestroy()
/frameworks/base/tools/processors/view_inspector/src/java/android/processor/view/inspector/
DPlatformInspectableProcessor.java98 @NonNull Set<? extends Element> elements, in processProperties()
103 for (Element element : elements) { in processProperties()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DProtobufArrayListTest.java281 private static ProtobufArrayList<Integer> newImmutableProtoArrayList(int... elements) { in newImmutableProtoArrayList() argument
283 for (int element : elements) { in newImmutableProtoArrayList()
/frameworks/base/samples/training/network-usage/
DREADME.txt8 -- Parses the XML feed, combines feed elements with HTML markup, and displays the resulting HTML in…
/frameworks/rs/script_api/include/
Drs_object_info.rsh59 * When creating Allocations of common elements, you can simply use one of the many predefined
248 * sub-elements, an invalid handle is returned.
264 * For complex Elements, sub-elements can be statically sized arrays. This function
280 * rsElementGetSubElementCount: Number of sub-elements
283 * sub-elements. This function returns zero for simple Elements and the number of
284 * sub-elements for complex Elements.
289 * Returns: Number of sub-elements.
/frameworks/native/vulkan/libvulkan/
Dapi.cpp67 allocator_.pfnFree(allocator_.pUserData, implicit_layers_.elements); in ~OverrideLayerNames()
115 ImplicitLayer* elements; member
139 std::sort(arr.elements, arr.elements + arr.count, in AddImplicitLayers()
213 auto& layer = arr.elements[arr.count++]; in AddImplicitLayer()
252 allocator_.pUserData, arr.elements, in GrowImplicitLayerArray()
263 arr.elements = reinterpret_cast<ImplicitLayer*>(new_mem); in GrowImplicitLayerArray()
297 return implicit_layers_.name_pool + arr.elements[index].name_offset; in GetImplicitLayerName()

1234