Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/hardware/camera2/params/
DDeviceStateSensorOrientationMap.java98 public DeviceStateSensorOrientationMap(@NonNull final long[] elements) { in DeviceStateSensorOrientationMap() argument
99 mElements = Objects.requireNonNull(elements, "elements must not be null"); in DeviceStateSensorOrientationMap()
101 if ((elements.length % 2) != 0) { in DeviceStateSensorOrientationMap()
103 elements.length + " is not even!"); in DeviceStateSensorOrientationMap()
106 for (int i = 0; i < elements.length; i += 2) { in DeviceStateSensorOrientationMap()
107 if ((elements[i+1] % 90) != 0) { in DeviceStateSensorOrientationMap()
109 elements[i+1]); in DeviceStateSensorOrientationMap()
112 mDeviceStateOrientationMap.put(elements[i], Math.toIntExact(elements[i + 1])); in DeviceStateSensorOrientationMap()
121 private DeviceStateSensorOrientationMap(@NonNull final ArrayList<Long> elements, in DeviceStateSensorOrientationMap() argument
123 mElements = new long[elements.size()]; in DeviceStateSensorOrientationMap()
[all …]
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[%d] must not be null", i); 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 …]
DDynamicRangeProfiles.java198 public DynamicRangeProfiles(@NonNull final long[] elements) { in DynamicRangeProfiles() argument
199 if ((elements.length % 3) != 0) { in DynamicRangeProfiles()
201 elements.length + " is not even!"); in DynamicRangeProfiles()
204 for (int i = 0; i < elements.length; i += 3) { in DynamicRangeProfiles()
205 checkProfileValue(elements[i]); in DynamicRangeProfiles()
207 if (elements[i] == STANDARD) { in DynamicRangeProfiles()
213 if (elements[i+1] != 0) { in DynamicRangeProfiles()
215 if ((elements[i+1] & profile) != 0) { in DynamicRangeProfiles()
221 mProfileMap.put(elements[i], profiles); in DynamicRangeProfiles()
222 mLookahedLatencyMap.put(elements[i], elements[i+2] != 0L); in DynamicRangeProfiles()
DColorSpaceProfiles.java77 public ColorSpaceProfiles(@NonNull final long[] elements) { in ColorSpaceProfiles() argument
78 if ((elements.length % 3) != 0) { in ColorSpaceProfiles()
80 + elements.length + " is not divisible by 3!"); in ColorSpaceProfiles()
83 for (int i = 0; i < elements.length; i += 3) { in ColorSpaceProfiles()
84 int colorSpace = (int) elements[i]; in ColorSpaceProfiles()
87 int imageFormat = (int) elements[i + 1]; in ColorSpaceProfiles()
88 long dynamicRangeProfileBitmap = elements[i + 2]; in ColorSpaceProfiles()
DLensShadingMap.java69 public LensShadingMap(final float[] elements, final int rows, final int columns) { in LensShadingMap() argument
73 mElements = Objects.requireNonNull(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.java71 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() argument
72 int capacity = elements.length * 4 / 3 + 1; in newHashSet()
74 Collections.addAll(set, elements); in newHashSet()
95 public static <E> SortedSet<E> newSortedSet(E... elements) { in newSortedSet() argument
97 Collections.addAll(set, elements); in newSortedSet()
113 public static <E> ArraySet<E> newArraySet(E... elements) { in newArraySet() argument
114 int capacity = elements.length * 4 / 3 + 1; in newArraySet()
116 Collections.addAll(set, elements); in newArraySet()
DLists.java63 public static <E> ArrayList<E> newArrayList(E... elements) { in newArrayList() argument
64 int capacity = (elements.length * 110) / 100 + 5; in newArrayList()
66 Collections.addAll(list, elements); in newArrayList()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DFavoritesModel.kt83 get() = elements.take(dividerPosition).map { in <lambda>()
87 override val elements: List<ElementWrapper> = favorites.map { in <lambda>() constant
94 private var dividerPosition = elements.size - 1
97 val position = elements.indexOfFirst { it is ControlInterface && it.controlId == controlId } in changeFavoriteStatus()
107 onMoveItemInternal(position, elements.size - 1) in changeFavoriteStatus()
116 (elements[oldDividerPosition] as DividerWrapper).showNone = show in updateDividerNone()
121 (elements[oldDividerPosition] as DividerWrapper).showDivider = show in updateDividerShow()
146 (elements[from] as ControlInfoWrapper).favorite = false in onMoveItemInternal()
149 (elements[from] as ControlInfoWrapper).favorite = true in onMoveItemInternal()
174 if (dividerPosition == elements.size - 2) { in updateDivider()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DFavoritesModelTest.kt72 dividerWrapper = model.elements.first { it is DividerWrapper } as DividerWrapper in <lambda>()
77 assertEquals(INITIAL_FAVORITES.size + 1, model.elements.toSet().size) in <lambda>()
79 model.elements.forEachIndexed { index, element -> in <lambda>()
87 assertEquals(model.favorites, model.elements.take(dividerIndex).map { in <lambda>()
97 assertEquals(expected, model.elements) in <lambda>()
124 TEST_COMPONENT, INITIAL_FAVORITES[4], false), model.elements.last()) in <lambda>()
134 val lastPos = model.elements.size - 1 in <lambda>()
190 ), model.elements.takeLast(2)) in <lambda>()
200 assertEquals(dividerWrapper, model.elements.first()) in <lambda>()
255 inOrder.verify(adapter).notifyItemChanged(model.elements.size - 1) in <lambda>()
[all …]
/frameworks/base/tools/app_metadata_bundles/src/lib/java/com/android/asllib/marshallable/
DThirdPartyVerificationFactory.java32 public ThirdPartyVerification createFromHrElements(List<Element> elements) in createFromHrElements() argument
34 Element ele = XmlUtils.getSingleElement(elements); in createFromHrElements()
46 public ThirdPartyVerification createFromOdElements(List<Element> elements) in createFromOdElements() argument
48 Element ele = XmlUtils.getSingleElement(elements); in createFromOdElements()
DSystemAppSafetyLabelFactory.java31 public SystemAppSafetyLabel createFromHrElements(List<Element> elements) in createFromHrElements() argument
33 Element systemAppSafetyLabelEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
46 public SystemAppSafetyLabel createFromOdElements(List<Element> elements) in createFromOdElements() argument
48 Element systemAppSafetyLabelEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
DSecurityLabelsFactory.java31 public SecurityLabels createFromHrElements(List<Element> elements) in createFromHrElements() argument
33 Element ele = XmlUtils.getSingleElement(elements); in createFromHrElements()
47 public SecurityLabels createFromOdElements(List<Element> elements) in createFromOdElements() argument
49 Element ele = XmlUtils.getSingleElement(elements); in createFromOdElements()
DTransparencyInfoFactory.java31 public TransparencyInfo createFromHrElements(List<Element> elements) in createFromHrElements() argument
33 Element transparencyInfoEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
55 public TransparencyInfo createFromOdElements(List<Element> elements) in createFromOdElements() argument
57 Element transparencyInfoEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
DSafetyLabelsFactory.java31 public SafetyLabels createFromHrElements(List<Element> elements) throws MalformedXmlException { in createFromHrElements() argument
32 Element safetyLabelsEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
68 public SafetyLabels createFromOdElements(List<Element> elements) throws MalformedXmlException { in createFromOdElements() argument
69 Element safetyLabelsEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
DDeveloperInfoFactory.java31 public DeveloperInfo createFromHrElements(List<Element> elements) throws MalformedXmlException { in createFromHrElements() argument
32 Element developerInfoEle = XmlUtils.getSingleElement(elements); in createFromHrElements()
63 public DeveloperInfo createFromOdElements(List<Element> elements) throws MalformedXmlException { in createFromOdElements() argument
64 Element developerInfoEle = XmlUtils.getSingleElement(elements); in createFromOdElements()
DAslMarshallableFactory.java28 T createFromHrElements(List<Element> elements) throws MalformedXmlException; in createFromHrElements() argument
31 T createFromOdElements(List<Element> elements) throws MalformedXmlException; in createFromOdElements() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DAutoAddableSettingList.kt34 val elements = it.split(SETTING_SEPARATOR, limit = 2) in parseSettingsResource() constant
35 if (elements.size == 2) { in parseSettingsResource()
36 val setting = elements[0] in parseSettingsResource()
37 val spec = elements[1] in parseSettingsResource()
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/utils/
DClassFilter.kt44 private val elements: MutableList<FilterElement> = mutableListOf() in <lambda>() constant in com.android.hoststubgen.utils.ClassFilter
59 elements.forEach { e -> in <lambda>()
116 ret.elements.add(FilterElement(allow, "", true)) in <lambda>()
122 ret.elements.add(FilterElement( in <lambda>()
135 ret.elements.add(FilterElement(allow, line.toJvmClassName(), false)) in <lambda>()
/frameworks/base/tools/aapt2/format/binary/
DResEntryWriter_test.cpp85 array1->elements.push_back( in TEST_F()
87 array1->elements.push_back( in TEST_F()
90 array2->elements.push_back( in TEST_F()
92 array2->elements.push_back( in TEST_F()
154 array1->elements.push_back( in TEST_F()
156 array1->elements.push_back( in TEST_F()
159 array2->elements.push_back( in TEST_F()
161 array2->elements.push_back( in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DSparseArrayUtils.kt103 override fun containsAll(elements: Collection<Map.Entry<Int, T>>): Boolean = in asMap()
104 elements.all { contains(it) } in asMap()
119 override fun containsAll(elements: Collection<Int>): Boolean = in asMap()
120 elements.all { contains(it) } in asMap()
137 override fun containsAll(elements: Collection<T>): Boolean = in asMap()
138 elements.all { contains(it) } in asMap()
DNamedListenerSet.kt48 override fun containsAll(elements: Collection<E>) = in containsAll()
49 listeners.count { it.listener in elements } == elements.size in containsAll()
/frameworks/base/core/tests/coretests/src/android/hardware/camera2/impl/
DCaptureMetadataNativeTest.java42 final float[] elements = new float[400]; in setLensShadingMap() local
43 Arrays.fill(elements, 42); in setLensShadingMap()
46 new LensShadingMap(elements, s.getHeight(), s.getWidth()); in setLensShadingMap()
/frameworks/native/libs/binder/tests/
DbinderParcelBenchmark.cpp70 const size_t elements = state.range(0); in BM_ParcelVector() local
72 std::vector<T> v1(elements); in BM_ParcelVector()
73 std::vector<T> v2(elements); in BM_ParcelVector()
85 state.SetComplexityN(elements); in BM_ParcelVector()
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyDialogController.kt256 val elements = filterAndSelect(items) in showDialog() constant
257 if (elements.isNotEmpty()) { in showDialog()
258 val d = dialogProvider.makeDialog(context, elements, this::startActivity) in showDialog()
262 privacyLogger.logShowDialogContents(elements) in showDialog()
321 return list.groupBy { it.type }.toSortedMap().flatMap { (_, elements) -> in filterAndSelect() method
322 val actives = elements.filter { it.active } in filterAndSelect()
326 elements.maxByOrNull { it.lastActiveTimestamp }?.let { in filterAndSelect()
/frameworks/base/tools/app_metadata_bundles/src/lib/java/com/android/asllib/util/
DXmlUtils.java130 var elements = XmlUtils.asElementList(parentEle.getChildNodes()); in getChildrenByTagName() local
131 return elements.stream().filter(e -> e.getTagName().equals(tagName)).toList(); in getChildrenByTagName()
141 var elements = getChildrenByTagName(parentEle, tagName); in getSingleChildElement() local
143 if (elements.size() > 1) { in getSingleChildElement()
147 tagName, parentTagNameForErrorMsg, elements.size())); in getSingleChildElement()
148 } else if (elements.isEmpty()) { in getSingleChildElement()
158 return elements.get(0); in getSingleChildElement()
162 public static Element getSingleElement(List<Element> elements) { in getSingleElement() argument
163 if (elements.size() != 1) { in getSingleElement()
165 String.format("Expected 1 element in list but got %s.", elements.size())); in getSingleElement()
[all …]

123456