Searched defs:array (Results 1 - 25 of 114) sorted by path

12345

/frameworks/av/camera/tests/
H A DProCameraTests.cpp445 static bool ExistsItem(T needle, T* array, size_t count) { argument
446 if (!array) {
451 if (array[i] == needle) {
/frameworks/av/drm/mediadrm/plugins/mock/
H A DMockDrmCryptoPlugin.cpp669 if (memcmp(mSessions[i].array(), sessionId.array(), sessionId.size()) == 0) {
680 if (memcmp(mKeySets[i].array(), keySetId.array(), keySetId.size()) == 0) {
691 return arrayToString(vector.array(), vector.size());
694 String8 MockDrmPlugin::arrayToString(uint8_t const *array, size_t len) const argument
698 result.appendFormat("0x%02x ", array[i]);
715 return lhs.size() < rhs.size() || (memcmp(lhs.array(), rhs.array(), lhs.size()) < 0);
745 String8 MockCryptoPlugin::arrayToString(uint8_t const *array, size_ argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dlagconceal.cpp101 void insertion_sort(int16 array[], int16 n);
102 void insert(int16 array[], int16 num, int16 x);
333 void insertion_sort(int16 array[], int16 n) argument
339 insert(array, i, array[i]);
347 void insert(int16 array[], int16 n, int16 x) argument
354 if (x < array[i])
356 array[i + 1] = array[i];
363 array[
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DBluetoothLeAdvertiser.java225 private int byteLength(byte[] array) { argument
226 return array == null ? 0 : array.length;
H A DBluetoothLeUtils.java38 static String toString(SparseArray<byte[]> array) { argument
39 if (array == null) {
42 if (array.size() == 0) {
47 for (int i = 0; i < array.size(); ++i) {
48 buffer.append(array.keyAt(i)).append("=").append(Arrays.toString(array.valueAt(i)));
82 static boolean equals(SparseArray<byte[]> array, SparseArray<byte[]> otherArray) { argument
83 if (array == otherArray) {
86 if (array == null || otherArray == null) {
89 if (array
[all...]
/frameworks/base/core/java/android/hardware/camera2/dispatch/
H A DArgumentReplacingDispatcher.java77 private static Object[] arrayCopy(Object[] array) { argument
78 int length = array.length;
81 newArray[i] = array[i];
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableArray.java32 * Marshal any array {@code T}.
40 * @param <T> the type of the array (e.g. T = int[], or T = Rational[])
73 Object array;
89 "Attempting to unpack array (count = %d, element size = %d, bytes "
94 array = Array.newInstance(mComponentClass, arraySize);
97 Array.set(array, i, elem);
100 // Dynamic size, use an array list.
103 // Assumes array is packed tightly; no unused bytes allowed
110 array = copyListToArray(arrayList, Array.newInstance(mComponentClass, arraySize));
118 return mClass.cast(array);
150 marshalArrayElement(Marshaler<TElem> marshaler, ByteBuffer buffer, Object array, int index) argument
161 calculateElementMarshalSize(Marshaler<TElem> marshaler, Object array, int index) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/params/
H A DStreamConfigurationMap.java75 * <p>The array parameters ownership is passed to this object after creation; do not
78 * @param configurations a non-{@code null} array of {@link StreamConfiguration}
79 * @param minFrameDurations a non-{@code null} array of {@link StreamConfigurationDuration}
80 * @param stallDurations a non-{@code null} array of {@link StreamConfigurationDuration}
81 * @param highSpeedVideoConfigurations an array of {@link HighSpeedVideoConfiguration}, null if
147 * <p>Formats listed in this array are guaranteed to return true if queried with
150 * @return an array of integer format
165 * @return an array of integer format
183 * @return a non-empty array of sizes, or {@code null} if the format was not available.
362 * that class and this method will return an empty array (bu
1139 arrayContains(T[] array, T element) argument
[all...]
H A DTonemapCurve.java81 * <p>Values are stored as a contiguous array of {@code (Pin, Pout)} points.</p>
90 * <p>This constructor copies the array contents and does not retain ownership of the array.</p>
92 * @param red An array of elements whose length is divisible by {@value #POINT_SIZE}
93 * @param green An array of elements whose length is divisible by {@value #POINT_SIZE}
94 * @param blue An array of elements whose length is divisible by {@value #POINT_SIZE}
97 * if any of input array length is invalid,
98 * or if any of the elements in the array are not in the range of
127 private static void checkArgumentArrayLengthDivisibleBy(float[] array, argument
129 if (array
148 checkArgumentArrayLengthNoLessThan(float[] array, int minLength, String arrayName) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
H A DArrayUtils.java26 * Various assortment of array utilities.
33 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */
34 public static <T> int getArrayIndex(T[] array, T needle) { argument
35 if (array == null) {
40 for (T elem : array) {
50 /** Return the index of {@code needle} in the {@code array}, or else {@code -1} */
51 public static int getArrayIndex(int[] array, int needle) { argument
52 if (array == null) {
55 for (int i = 0; i < array.length; ++i) {
56 if (array[
166 contains(int[] array, int elem) argument
177 contains(T[] array, T elem) argument
[all...]
H A DHashCodeHelpers.java29 * @param array a non-{@code null} array of integers
33 public static int hashCode(int[] array) { argument
34 if (array == null) {
46 for (int x : array) {
59 * @param array a non-{@code null} array of floats
63 public static int hashCode(float[] array) { argument
64 if (array == null) {
69 for (float f : array) {
86 hashCode(T[] array) argument
[all...]
/frameworks/base/core/java/android/hardware/soundtrigger/
H A DKeyphraseEnrollmentInfo.java156 TypedArray array = res.obtainAttributes(attrs,
158 initializeKeyphrasesFromTypedArray(array);
159 array.recycle();
177 private void initializeKeyphrasesFromTypedArray(TypedArray array) { argument
179 int searchKeyphraseId = array.getInt(
188 String searchKeyphrase = array.getString(
197 String searchKeyphraseSupportedLocales = array.getString(
224 int recognitionModes = array.getInt(com.android.internal.R.styleable
241 * @return An array of available keyphrases that can be enrolled on the system.
/frameworks/base/core/java/android/net/
H A DNetworkStatsHistory.java650 private static long getLong(long[] array, int i, long value) { argument
651 return array != null ? array[i] : value;
654 private static void setLong(long[] array, int i, long value) { argument
655 if (array != null) array[i] = value;
658 private static void addLong(long[] array, int i, long value) { argument
659 if (array != null) array[i] += value;
674 if (size < 0) throw new ProtocolException("negative array siz
[all...]
H A DNetworkUtils.java234 * Masks a raw IP address byte array with the specified prefix length.
236 public static void maskRawAddress(byte[] array, int prefixLength) { argument
237 if (prefixLength < 0 || prefixLength > array.length * 8) {
238 throw new RuntimeException("IP address with " + array.length +
246 if (offset < array.length) array[offset] = (byte)(array[offset] & mask);
250 for (; offset < array.length; offset++) {
251 array[offset] = 0;
261 byte[] array
[all...]
/frameworks/base/core/java/android/text/
H A DTextDirectionHeuristic.java24 * Guess if a chars array is in the RTL direction or not.
26 * @param array the char array.
29 * {@code array.length - start}.
33 boolean isRtl(char[] array, int start, int count); argument
H A DTextDirectionHeuristics.java130 public boolean isRtl(char[] array, int start, int count) { argument
131 return isRtl(CharBuffer.wrap(array), start, count);
/frameworks/base/core/java/android/transition/
H A DTransition.java417 * @return An array of property names as described in the class documentation for
512 private static boolean alreadyContains(int[] array, int searchIndex) { argument
513 int value = array[searchIndex];
515 if (array[i] == value) {
/frameworks/base/core/java/android/util/
H A DArrayMap.java28 * It keeps its mappings in an array data structure -- an integer array of hash
29 * codes for each item, and an Object array of the key/value pairs. This allows it to
32 * (since growing them only requires copying the entries in the array, not rebuilding
38 * and deleting entries in the array. For containers holding up to hundreds of items,
42 * standard Java containers it will shrink its array as items are removed from it. Currently
58 * Maximum number of entries to have in array caches.
68 * Caches of small array objects to avoid spamming garbage. The cache
69 * Object[] variable is a pointer to a linked list of array objects.
70 * The first entry in the array i
202 freeArrays(final int[] hashes, final Object[] array, final int size) argument
553 putAll(ArrayMap<? extends K, ? extends V> array) argument
[all...]
H A DArraySet.java31 * separate from ArrayMap, however, so the Object array contains only one item for each
37 * and deleting entries in the array. For containers holding up to hundreds of items,
41 * standard Java containers it will shrink its array as items are removed from it. Currently
59 * Maximum number of entries to have in array caches.
64 * Caches of small array objects to avoid spamming garbage. The cache
65 * Object[] variable is a pointer to a linked list of array objects.
66 * The first entry in the array is a pointer to the next array in the
67 * list; the second entry is a pointer to the int[] hash code array for it.
112 // hash chain to reduce the number of array entrie
190 freeArrays(final int[] hashes, final Object[] array, final int size) argument
392 addAll(ArraySet<? extends E> array) argument
493 toArray(T[] array) argument
[all...]
H A DContainerHelpers.java22 static int binarySearch(int[] array, int size, int value) { argument
28 final int midVal = array[mid];
41 static int binarySearch(long[] array, int size, long value) { argument
47 final long midVal = array[mid];
H A DMapCollections.java245 public <T> T[] toArray(T[] array) { argument
335 public <T> T[] toArray(T[] array) { argument
336 return toArrayHelper(array, 0);
451 public <T> T[] toArray(T[] array) { argument
452 return toArrayHelper(array, 1);
495 public <T> T[] toArrayHelper(T[] array, int offset) { argument
497 if (array.length < N) {
499 = (T[]) Array.newInstance(array.getClass().getComponentType(), N);
500 array = newArray;
503 array[
[all...]
/frameworks/base/core/java/android/view/
H A DViewDebug.java111 * @return An array of int to String mappings
118 * A mapping can be defined to map array indices to specific strings.
120 * of an array:
131 * @return An array of int to String mappings
153 * @return An array of int to String mappings
861 * @return a String array containing pairs of adjacent Theme attribute data: name followed by
1198 final int[] array = (int[]) methodValue;
1202 exportUnrolledArray(context, out, property, array, valuePrefix, suffix);
1206 final String[] array = (String[]) methodValue;
1207 if (property.hasAdjacentMapping() && array !
1355 exportUnrolledArray(Context context, BufferedWriter out, ExportedProperty property, int[] array, String prefix, String suffix) argument
[all...]
H A DViewTreeObserver.java852 // the array from being modified while we iterate it.
870 // the array from being modified while we iterate it.
887 // the array from being modified while we iterate it.
905 // the array from being modified while we iterate it.
1009 // the array from being modified while we iterate it.
1040 // the array from being modified while we iterate it.
1063 // the array from being modified while we iterate it.
1074 * Copy on write array. This array is not thread safe, and only one loop can
1075 * iterate over this array a
1149 addAll(CopyOnWriteArray<T> array) argument
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSubtypeArray.java34 * An array-like container that stores multiple instances of {@link InputMethodSubtype}.
122 Slog.i(TAG, "Unexpected state. Behaving as an empty array.");
176 private static byte[] marshall(final InputMethodSubtype[] array) { argument
180 parcel.writeTypedArray(array, 0);
/frameworks/base/core/java/com/android/internal/app/
H A DProcessStats.java206 // Where the "which array" part of the data appears in an offset integer.
209 // Where the "index into array" part of the data appears in an offset integer.
1215 static int printArrayEntry(PrintWriter pw, String[] array, int value, int mod) { argument
1217 if (index >= 0 && index < array.length) {
1218 pw.print(array[index]);
1456 private void writeCompactedLongArray(Parcel out, long[] array, int num) { argument
1458 long val = array[i];
1474 private void readCompactedLongArray(Parcel in, int version, long[] array, int num) { argument
1476 in.readLongArray(array);
1479 final int alen = array
2009 binarySearch(int[] array, int size, int value) argument
[all...]

Completed in 615 milliseconds

12345