/frameworks/base/core/java/android/util/ |
H A D | ContainerHelpers.java | 22 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 D | ColorMatrixColorFilter_Delegate.java | 53 /*package*/ static long nativeColorMatrixFilter(float[] array) { argument
|
H A D | NinePatch_Delegate.java | 94 // 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 D | ACodecBufferChannel.cpp | 54 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 D | HashCodeHelpers.java | 29 * @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 D | ArrayUtils.java | 26 * 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 D | TextDirectionHeuristic.java | 24 * 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 D | R.h | 35 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 D | TextDirectionHeuristicCompat.java | 24 * 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 D | ArrayUtils.java | 31 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 D | R$array.class | ... android.layoutlib.test.myapplication.R$array extends java.lang.Object {
public static final int ... |
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | NuPlayer2Drm.h | 57 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 D | BluetoothLeUtils.java | 38 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 D | GrowingArrayUtils.java | 21 * 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 D | ColorMatrixColorFilter.java | 45 * @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 D | ByteArrayHelpers.java | 32 * 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 D | VerticalGridView.java | 65 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 D | GrowingArrayUtils.java | 23 * 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 D | ArrayCreatingInputMerger.java | 32 * <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 D | SystemPerfTest.java | 109 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 D | ArrayUtils.java | 27 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 D | UnmodifiableSparseArray.java | 29 public UnmodifiableSparseArray(SparseArray<E> array) { argument 30 mArray = array;
|
H A D | UnmodifiableSparseIntArray.java | 29 public UnmodifiableSparseIntArray(SparseIntArray array) { argument 30 mArray = array;
|
/frameworks/opt/net/wifi/service/jni/ |
H A D | jni_helper.cpp | 64 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 D | ContainerHelpers.java | 45 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];
|