Home
last modified time | relevance | path

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

1234

/frameworks/libs/net/common/hostdevice/com/android/net/module/util/
DTrackRecord.kt58 private val elements = ArrayList<E>() constant
78 override val size get() = lock.withLock { elements.size } in hasNext()
79 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>()
80 override fun containsAll(elements: Collection<E>) = lock.withLock { in <lambda>()
81 this.elements.containsAll(elements) in <lambda>()
83 override operator fun get(index: Int) = lock.withLock { elements[index] } in <lambda>()
84 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>()
85 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>()
86 override fun isEmpty() = lock.withLock { elements.isEmpty() } in <lambda>()
87 override fun listIterator(index: Int) = ArrayTrackRecordIterator(elements, index, size) in listIterator()
[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.java62 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList() argument
63 int capacity = (elements.length * 110) / 100 + 5; in newArrayList()
65 Collections.addAll(list, elements); in newArrayList()
/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/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/compile/slang/tests/F_large_array/
Dstderr.txt.expect1 large_array.rscript:5:15: error: array is too large (4294967296 elements)
/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/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/base/core/java/android/text/
DHtml.java295 String elements = " "; in encodeTextAlignmentByDiv() local
304 elements = "align=\"center\" " + elements; in encodeTextAlignmentByDiv()
306 elements = "align=\"right\" " + elements; in encodeTextAlignmentByDiv()
308 elements = "align=\"left\" " + elements; in encodeTextAlignmentByDiv()
313 out.append("<div ").append(elements).append(">"); in encodeTextAlignmentByDiv()
/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()
/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/native/libs/gui/sysprop/
DLibGuiProperties.sysprop18 # Indicates how many elements should be present in the frame event histories.
/frameworks/base/core/jni/
Dandroid_media_AudioRecord.cpp230 jint elements[1]; in android_media_AudioRecord_setup() local
231 env->GetIntArrayRegion(jSampleRate, 0, 1, elements); in android_media_AudioRecord_setup()
232 int sampleRateInHertz = elements[0]; in android_media_AudioRecord_setup()
344 const jint elements[1] = { (jint) lpRecorder->getSampleRate() }; in android_media_AudioRecord_setup() local
345 env->SetIntArrayRegion(jSampleRate, 0, 1, elements); in android_media_AudioRecord_setup()

1234