Searched defs:array (Results 1 - 25 of 181) sorted by relevance

12345678

/frameworks/base/core/java/android/util/
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];
/frameworks/layoutlib/bridge/src/android/graphics/
H A DColorMatrixColorFilter_Delegate.java53 /*package*/ static long nativeColorMatrixFilter(float[] array) { argument
H A DNinePatch_Delegate.java94 // get the array and add it to the cache
95 byte[] array = baos.toByteArray();
96 sChunkCache.put(array, new SoftReference<>(chunk));
97 return array;
104 * the array is deserialized into a {@link NinePatchChunk} object.
106 * @param array the serialized representation of the chunk.
109 public static NinePatchChunk getChunk(byte[] array) { argument
110 SoftReference<NinePatchChunk> chunkRef = sChunkCache.get(array);
113 ByteArrayInputStream bais = new ByteArrayInputStream(array);
121 sChunkCache.put(array, ne
[all...]
/frameworks/av/media/libstagefright/
H A DACodecBufferChannel.cpp54 const std::shared_ptr<const std::vector<const BufferInfo>> &array,
57 array->begin(), array->end(),
62 const std::shared_ptr<const std::vector<const BufferInfo>> &array,
65 array->begin(), array->end(),
93 std::shared_ptr<const std::vector<const BufferInfo>> array(
95 BufferInfoIterator it = findClientBuffer(array, buffer);
96 if (it == array->end()) {
115 std::shared_ptr<const std::vector<const BufferInfo>> array(
53 findClientBuffer( const std::shared_ptr<const std::vector<const BufferInfo>> &array, const sp<MediaCodecBuffer> &buffer) argument
61 findBufferId( const std::shared_ptr<const std::vector<const BufferInfo>> &array, IOMX::buffer_id bufferId) argument
[all...]
/frameworks/base/core/java/android/hardware/camera2/utils/
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 hashCodeGeneric(T... array) argument
[all...]
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...]
/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
/frameworks/base/libs/androidfw/tests/data/appaslib/
H A DR.h35 struct array { struct in namespace:com::android::appaslib::lib
53 struct array { struct in namespace:com::app
/frameworks/support/compat/src/main/java/androidx/core/text/
H A DTextDirectionHeuristicCompat.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
/frameworks/support/slices/core/src/main/java/androidx/slice/
H A DArrayUtils.java31 public static <T> boolean contains(T[] array, T item) { argument
32 for (T t : array) {
40 public static <T> T[] appendElement(Class<T> kind, T[] array, T element) { argument
43 if (array != null) {
44 end = array.length;
46 System.arraycopy(array, 0, result, 0, end);
55 public static <T> T[] removeElement(Class<T> kind, T[] array, T element) { argument
56 if (array != null) {
57 if (!contains(array, element)) {
58 return array;
[all...]
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
H A DR$array.class ... android.layoutlib.test.myapplication.R$array extends java.lang.Object { public static final int ...
/frameworks/av/media/libmediaplayer2/nuplayer2/
H A DNuPlayer2Drm.h57 static String8 arrayToHex(const uint8_t *array, int bytes) { argument
60 result.appendFormat("%02x", array[i]);
/frameworks/base/core/java/android/bluetooth/le/
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/com/android/internal/util/
H A DGrowingArrayUtils.java21 * arrays. Common array operations are implemented for efficient use in dynamic containers.
23 * All methods in this class assume that the length of an array is equivalent to its capacity and
24 * NOT the number of elements in the array. The current size of the array is always passed in as a
32 * Appends an element to the end of the array, growing the array if there is no more room.
33 * @param array The array to which to append the element. This must NOT be null.
34 * @param currentSize The number of elements in the array. Must be less than or equal to
35 * array
40 append(T[] array, int currentSize, T element) argument
57 append(int[] array, int currentSize, int element) argument
72 append(long[] array, int currentSize, long element) argument
87 append(boolean[] array, int currentSize, boolean element) argument
102 append(float[] array, int currentSize, float element) argument
125 insert(T[] array, int currentSize, int index, T element) argument
146 insert(int[] array, int currentSize, int index, int element) argument
165 insert(long[] array, int currentSize, int index, long element) argument
184 insert(boolean[] array, int currentSize, int index, boolean element) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DColorMatrixColorFilter.java45 * @param array Array of floats used to transform colors, treated as a 4x5
46 * matrix. The first 20 entries of the array are copied into
49 public ColorMatrixColorFilter(@NonNull float[] array) { argument
50 if (array.length < 20) {
53 mMatrix.set(array);
94 * @param array Array of floats used to transform colors, treated as a 4x5
95 * matrix. The first 20 entries of the array are copied into
102 * @throws ArrayIndexOutOfBoundsException if the specified array's
107 public void setColorMatrixArray(@Nullable float[] array) { argument
110 if (array
125 nativeColorMatrixFilter(float[] array) argument
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DByteArrayHelpers.java32 * Convert an array of byte primitives to a {@code byte[]} using native endian order.
37 * @param array array of primitives
38 * @return array
40 public static byte[] toByteArray(byte[] array) { argument
41 return array;
45 * Convert an array of shorts to a {@code byte[]} using native endian order.
47 * @param array array of shorts
48 * @return array converte
50 toByteArray(short[] array) argument
60 toByteArray(char[] array) argument
69 toByteArray(int[] array) argument
78 toByteArray(long[] array) argument
87 toByteArray(float[] array) argument
96 toByteArray(double[] array) argument
111 toByteArray(T array) argument
213 toByteArray(T array, int sizeOfTBits) argument
[all...]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DVerticalGridView.java65 void setColumnWidth(TypedArray array) { argument
66 TypedValue typedValue = array.peekValue(R.styleable.lbVerticalGridView_columnWidth);
68 int size = array.getLayoutDimension(R.styleable.lbVerticalGridView_columnWidth, 0);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/content/res/
H A DGrowingArrayUtils.java23 * arrays. Common array operations are implemented for efficient use in dynamic containers.
25 * All methods in this class assume that the length of an array is equivalent to its capacity and
26 * NOT the number of elements in the array. The current size of the array is always passed in as a
32 * Appends an element to the end of the array, growing the array if there is no more room.
33 * @param array The array to which to append the element. This must NOT be null.
34 * @param currentSize The number of elements in the array. Must be less than or equal to
35 * array
40 append(T[] array, int currentSize, T element) argument
56 append(int[] array, int currentSize, int element) argument
71 append(long[] array, int currentSize, long element) argument
86 append(boolean[] array, int currentSize, boolean element) argument
109 insert(T[] array, int currentSize, int index, T element) argument
129 insert(int[] array, int currentSize, int index, int element) argument
148 insert(long[] array, int currentSize, int index, long element) argument
167 insert(boolean[] array, int currentSize, int index, boolean element) argument
[all...]
/frameworks/support/work/workmanager/src/main/java/androidx/work/
H A DArrayCreatingInputMerger.java32 * <li>If it's an array, put it in the output</li>
33 * <li>If it's a primitive, turn it into a size 1 array and put it in the output</li>
40 * <li>If they are primitives, turn them into a size 2 array</li>
42 * <li>Else if one is an array and the other is a primitive</li>
44 * <li>Make a longer array and concatenate them</li>
88 // We have an existing array of the same type.
92 // We have an existing array of the same type.
124 private Object concatenateArrayAndNonArray(Object array, Object obj) { argument
125 int arrayLength = Array.getLength(array);
127 System.arraycopy(array,
[all...]
/frameworks/base/apct-tests/perftests/core/src/android/perftests/
H A DSystemPerfTest.java109 private static native void jintarrayArgumentNoop(int[] array, int length); argument
111 private static native int jintarrayGetLength(int[] array); argument
113 private static native int jintarrayCriticalAccess(int[] array, int index); argument
115 private static native int jintarrayBasicAccess(int[] array, int index); argument
/frameworks/base/keystore/java/android/security/keystore/
H A DArrayUtils.java27 public static String[] nullToEmpty(String[] array) { argument
28 return (array != null) ? array : EmptyArray.STRING;
31 public static String[] cloneIfNotEmpty(String[] array) { argument
32 return ((array != null) && (array.length > 0)) ? array.clone() : array;
35 public static byte[] cloneIfNotEmpty(byte[] array) { argument
36 return ((array !
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DUnmodifiableSparseArray.java29 public UnmodifiableSparseArray(SparseArray<E> array) { argument
30 mArray = array;
H A DUnmodifiableSparseIntArray.java29 public UnmodifiableSparseIntArray(SparseIntArray array) { argument
30 mArray = array;
/frameworks/opt/net/wifi/service/jni/
H A Djni_helper.cpp64 void JNIHelper::setByteArrayRegion(jbyteArray array, int from, int to, const jbyte *bytes) { argument
65 mEnv->SetByteArrayRegion(array, from, to, bytes);
/frameworks/support/collection/src/main/java/androidx/collection/
H A DContainerHelpers.java45 static int binarySearch(int[] array, int size, int value) { argument
51 int midVal = array[mid];
64 static int binarySearch(long[] array, int size, long value) { argument
70 final long midVal = array[mid];

Completed in 4960 milliseconds

12345678