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

12345

/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/base/tools/layoutlib/bridge/src/android/graphics/
H A DColorMatrixColorFilter_Delegate.java53 /*package*/ static long nativeColorMatrixFilter(float[] array) { argument
H A DNinePatch_Delegate.java98 // get the array and add it to the cache
99 byte[] array = baos.toByteArray();
100 sChunkCache.put(array, new SoftReference<NinePatchChunk>(chunk));
101 return array;
108 * the array is deserialized into a {@link NinePatchChunk} object.
110 * @param array the serialized representation of the chunk.
113 public static NinePatchChunk getChunk(byte[] array) { argument
114 SoftReference<NinePatchChunk> chunkRef = sChunkCache.get(array);
117 ByteArrayInputStream bais = new ByteArrayInputStream(array);
125 sChunkCache.put(array, ne
[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/graphics/java/android/graphics/
H A DColorMatrixColorFilter.java43 * @param array Array of floats used to transform colors, treated as a 4x5
44 * matrix. The first 20 entries of the array are copied into
47 public ColorMatrixColorFilter(float[] array) { argument
48 if (array.length < 20) {
51 mMatrix.set(array);
95 * @param array Array of floats used to transform colors, treated as a 4x5
96 * matrix. The first 20 entries of the array are copied into
103 * @throws ArrayIndexOutOfBoundsException if the specified array's
108 public void setColorMatrix(float[] array) { argument
109 if (array
127 nativeColorMatrixFilter(float[] array) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/text/
H A DStaticLayout_Delegate.java24 * Fills the recycle array with positions that are suitable to break the text at. The array
52 private static int[] doubleSize(int[] array) { argument
53 return Arrays.copyOf(array, array.length * 2);
/frameworks/support/v4/java/android/support/v4/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/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/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/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 hashCode(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/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
110 insert(T[] array, int currentSize, int index, T element) argument
131 insert(int[] array, int currentSize, int index, int element) argument
150 insert(long[] array, int currentSize, int index, long element) argument
169 insert(boolean[] array, int currentSize, int index, boolean element) argument
[all...]
H A DHexDump.java23 public static String dumpHexString(byte[] array) argument
25 return dumpHexString(array, 0, array.length);
28 public static String dumpHexString(byte[] array, int offset, int length) argument
61 byte b = array[i];
99 public static String toHexString(byte[] array) argument
101 return toHexString(array, 0, array.length);
104 public static String toHexString(byte[] array, int offset, int length) argument
111 byte b = array[
[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/v17/leanback/src/android/support/v17/leanback/widget/
H A DVerticalGridView.java51 void setColumnWidth(TypedArray array) { argument
52 TypedValue typedValue = array.peekValue(R.styleable.lbVerticalGridView_columnWidth);
55 size = array.getDimensionPixelSize(R.styleable.lbVerticalGridView_columnWidth, 0);
57 size = array.getInt(R.styleable.lbVerticalGridView_columnWidth, 0);
/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/support/v4/java/android/support/v4/util/
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];
/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/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/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp71 * and return the array.
94 jbyteArray array = env->NewByteArray(sizeof(Header) + header.mapSize + header.allocSize); local
95 if (array != NULL) {
96 env->SetByteArrayRegion(array, 0,
98 env->SetByteArrayRegion(array, sizeof(header),
100 env->SetByteArrayRegion(array, sizeof(header) + maps.size(),
105 return array;
H A Dandroid_util_StringBlock.cpp123 jintArray array = env->NewIntArray((num*sizeof(ResStringPool_span))/sizeof(jint)); local
124 if (array == NULL) { // NewIntArray already threw OutOfMemoryError.
131 env->SetIntArrayRegion(array,
138 return array;
/frameworks/base/libs/androidfw/tests/data/basic/
H A DR.h63 namespace array { namespace in namespace:base::R
/frameworks/base/libs/hwui/utils/
H A DSortedList.h67 inline const TYPE* array() const;
138 inline const TYPE* SortedList<TYPE>::array() const { function in class:android::uirenderer::SortedList
150 return *(array() + index);
161 return *(array() + ((index < 0) ? (size() - index) : index));
166 return *(array() + size() - 1);
/frameworks/base/services/core/java/com/android/server/
H A DAttributeCache.java56 public final TypedArray array; field in class:AttributeCache.Entry
60 array = ta;

Completed in 1139 milliseconds

12345