/frameworks/base/core/java/android/hardware/camera2/params/ |
D | DeviceStateSensorOrientationMap.java | 98 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 …]
|
D | ColorSpaceTransform.java | 71 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 …]
|
D | DynamicRangeProfiles.java | 198 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()
|
D | ColorSpaceProfiles.java | 77 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()
|
D | LensShadingMap.java | 69 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/libs/net/common/testutils/hostdevice/com/android/net/module/util/ |
D | TrackRecord.kt | 59 private val elements = ArrayList<E>() constant 79 override val size get() = lock.withLock { elements.size } in hasNext() 80 override fun contains(element: E) = lock.withLock { elements.contains(element) } in <lambda>() 81 override fun containsAll(elements: Collection<E>) = lock.withLock { in <lambda>() 82 this.elements.containsAll(elements) in <lambda>() 84 override operator fun get(index: Int) = lock.withLock { elements[index] } in <lambda>() 85 override fun indexOf(element: E): Int = lock.withLock { elements.indexOf(element) } in <lambda>() 86 override fun lastIndexOf(element: E): Int = lock.withLock { elements.lastIndexOf(element) } in <lambda>() 87 override fun isEmpty() = lock.withLock { elements.isEmpty() } in <lambda>() 88 override fun listIterator(index: Int) = ArrayTrackRecordIterator(elements, index, size) in listIterator() [all …]
|
/frameworks/base/core/java/com/google/android/collect/ |
D | Sets.java | 70 public static <E> HashSet<E> newHashSet(E... elements) { in newHashSet() argument 71 int capacity = elements.length * 4 / 3 + 1; in newHashSet() 73 Collections.addAll(set, elements); in newHashSet() 94 public static <E> SortedSet<E> newSortedSet(E... elements) { in newSortedSet() argument 96 Collections.addAll(set, elements); in newSortedSet() 112 public static <E> ArraySet<E> newArraySet(E... elements) { in newArraySet() argument 113 int capacity = elements.length * 4 / 3 + 1; in newArraySet() 115 Collections.addAll(set, elements); in newArraySet()
|
D | Lists.java | 62 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/base/packages/SystemUI/src/com/android/systemui/controls/management/ |
D | FavoritesModel.kt | 83 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/ |
D | FavoritesModelTest.kt | 72 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 …]
|
D | AllModelTest.kt | 117 expected.zip(model.elements).forEachIndexed { index, it -> in <lambda>() 139 expected.zip(new_model.elements).forEachIndexed { index, it -> in <lambda>() 174 (model.elements.first { in <lambda>() 223 (model.elements.first { in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/autoaddable/ |
D | AutoAddableSettingList.kt | 34 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/aapt2/format/binary/ |
D | ResEntryWriter_test.cpp | 85 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/ |
D | SparseArrayUtils.kt | 103 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()
|
D | NamedListenerSet.kt | 47 override fun containsAll(elements: Collection<E>) = in containsAll() 48 listeners.count { it.listener in elements } == elements.size in containsAll()
|
/frameworks/base/core/tests/coretests/src/android/hardware/camera2/impl/ |
D | CaptureMetadataNativeTest.java | 42 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/ |
D | binderParcelBenchmark.cpp | 70 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/ |
D | PrivacyDialogController.kt | 249 val elements = filterAndSelect(items) in showDialog() constant 250 if (elements.isNotEmpty()) { in showDialog() 251 val d = dialogProvider.makeDialog(context, elements, this::startActivity) in showDialog() 255 privacyLogger.logShowDialogContents(elements) in showDialog() 314 return list.groupBy { it.type }.toSortedMap().flatMap { (_, elements) -> in filterAndSelect() method 315 val actives = elements.filter { it.active } in filterAndSelect() 319 elements.maxByOrNull { it.lastActiveTimestamp }?.let { in filterAndSelect()
|
D | PrivacyDialogControllerV2.kt | 268 val elements = filterAndSelect(items) in showDialog() constant 269 if (elements.isNotEmpty()) { in showDialog() 273 elements, in showDialog() 285 privacyLogger.logShowDialogV2Contents(elements) in showDialog() 341 .flatMap { (_, elements) -> in filterAndSelect() method 342 val actives = elements.filter { it.isActive } in filterAndSelect() 346 elements.maxByOrNull { it.lastActiveTimestamp }?.let { listOf(it) } in filterAndSelect()
|
/frameworks/base/tools/aapt2/ |
D | ResourceValues_test.cpp | 74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST() 75 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST() 78 b.elements.push_back(util::make_unique<String>(pool.MakeRef("une"))); in TEST() 79 b.elements.push_back(util::make_unique<String>(pool.MakeRef("deux"))); in TEST() 82 c.elements.push_back(util::make_unique<String>(pool.MakeRef("uno"))); in TEST() 85 d.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST() 86 d.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST() 98 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST() 99 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/collection/ |
D | IndexedListSet.kt | 33 override fun containsAll(elements: Collection<T>): Boolean { in <lambda>() 55 override fun addAll(elements: Collection<T>): Boolean { in <lambda>() 59 override fun removeAll(elements: Collection<T>): Boolean { in <lambda>() 63 override fun retainAll(elements: Collection<T>): Boolean { in <lambda>()
|
D | IndexedSet.kt | 112 inline fun <T> indexedSetOf(vararg elements: T): IndexedSet<T> = IndexedSet(elements.asList())
|
/frameworks/base/core/java/android/provider/ |
D | SettingsStringUtil.java | 84 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()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AccountViewAdapter.java | 72 AccountElements elements = (AccountElements) getItem(position); in getView() local 73 view.setViewItem(elements); in getView()
|
/frameworks/compile/slang/tests/F_large_array/ |
D | stderr.txt.expect | 1 large_array.rscript:5:15: error: array is too large (4294967296 elements)
|