Home
last modified time | relevance | path

Searched defs:array (Results 1 – 25 of 318) sorted by relevance

12345678910>>...13

/frameworks/base/telephony/common/com/android/internal/telephony/util/
DArrayUtils.java40 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element) { in appendElement()
55 public static <T> T[] appendElement(Class<T> kind, @Nullable T[] array, T element, in appendElement()
133 public static boolean contains(@Nullable char[] array, char value) { in contains()
153 public static boolean contains(@Nullable int[] array, int value) { in contains()
166 public static boolean contains(@Nullable long[] array, long value) { in contains()
179 public static <T> boolean contains(@Nullable T[] array, T value) { in contains()
187 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf()
198 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty()
212 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
219 public static boolean isEmpty(@Nullable int[] array) { in isEmpty()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DByteArrayHelpers.java40 public static byte[] toByteArray(byte[] array) { in toByteArray()
50 public static byte[] toByteArray(short[] array) { in toByteArray()
60 public static byte[] toByteArray(char[] array) { in toByteArray()
69 public static byte[] toByteArray(int[] array) { in toByteArray()
78 public static byte[] toByteArray(long[] array) { in toByteArray()
87 public static byte[] toByteArray(float[] array) { in toByteArray()
96 public static byte[] toByteArray(double[] array) { in toByteArray()
111 public static <T> byte[] toByteArray(T array) { in toByteArray()
213 private static <T> byte[] toByteArray(T array, int sizeOfTBits) { in toByteArray()
/frameworks/base/core/tests/utiltests/src/android/util/
DMemoryIntArrayTest.java49 MemoryIntArray array = null; in testSize() local
60 MemoryIntArray array = null; in testGetSet() local
78 MemoryIntArray array = null; in testWritable() local
89 MemoryIntArray array = null; in testClose() local
131 MemoryIntArray array = null; in testInteractOnceClosed() local
174 MemoryIntArray array = null; in testInteractPutOfBounds() local
212 MemoryIntArray array = null; in testOverMaxSize() local
257 MemoryIntArray array = new MemoryIntArray(1); in testAshmemSizeMatchesMemoryIntArraySize() local
/frameworks/libs/net/common/framework/com/android/net/module/util/
DCollectionUtils.java38 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
54 int[] array = new int[list.size()]; in toIntArray() local
68 long[] array = new long[list.size()]; in toLongArray() local
114 public static <T> boolean any(@NonNull SparseArray<T> array, @NonNull Predicate<T> predicate) { in any()
126 public static boolean contains(@Nullable short[] array, short value) { in contains()
139 public static boolean contains(@Nullable int[] array, int value) { in contains()
152 public static <T> boolean contains(@Nullable T[] array, @Nullable T value) { in contains()
159 public static <T> int indexOf(@Nullable T[] array, @Nullable T value) { in indexOf()
187 public static long total(@Nullable long[] array) { in total()
/frameworks/native/opengl/tools/glgen/stubs/gles11/
Dcommon.cpp47 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) in getPointer()
69 static void* Get(JNIEnv* _env, jbyteArray array, jboolean* is_copy) { in Get()
75 static void* Get(JNIEnv* _env, jbooleanArray array, jboolean* is_copy) { in Get()
81 static void* Get(JNIEnv* _env, jcharArray array, jboolean* is_copy) { in Get()
87 static void* Get(JNIEnv* _env, jshortArray array, jboolean* is_copy) { in Get()
93 static void* Get(JNIEnv* _env, jintArray array, jboolean* is_copy) { in Get()
99 static void* Get(JNIEnv* _env, jlongArray array, jboolean* is_copy) { in Get()
105 static void* Get(JNIEnv* _env, jfloatArray array, jboolean* is_copy) { in Get()
111 static void* Get(JNIEnv* _env, jdoubleArray array, jboolean* is_copy) { in Get()
118 getArrayPointer(JNIEnv *_env, JTYPEARRAY array, jboolean* is_copy) { in getArrayPointer()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DGrowingArrayUtils.java44 public static <T> T[] append(T[] array, int currentSize, T element) { in append()
62 public static int[] append(int[] array, int currentSize, int element) { in append()
77 public static long[] append(long[] array, int currentSize, long element) { in append()
92 public static boolean[] append(boolean[] array, int currentSize, boolean element) { in append()
107 public static float[] append(float[] array, int currentSize, float element) { in append()
130 public static <T> T[] insert(T[] array, int currentSize, int index, T element) { in insert()
151 public static int[] insert(int[] array, int currentSize, int index, int element) { in insert()
170 public static long[] insert(long[] array, int currentSize, int index, long element) { in insert()
189 public static boolean[] insert(boolean[] array, int currentSize, int index, boolean element) { in insert()
DArrayUtils.java150 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty()
165 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
172 public static boolean isEmpty(@Nullable int[] array) { in isEmpty()
179 public static boolean isEmpty(@Nullable long[] array) { in isEmpty()
186 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty()
193 public static boolean isEmpty(@Nullable boolean[] array) { in isEmpty()
200 public static int size(@Nullable Object[] array) { in size()
225 public static <T> boolean contains(@Nullable T[] array, T value) { in contains()
234 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf()
245 public static <T> boolean containsAll(@Nullable T[] array, T[] check) { in containsAll()
[all …]
DHexDump.java27 public static String dumpHexString(@Nullable byte[] array) { in dumpHexString()
32 public static String dumpHexString(@Nullable byte[] array, int offset, int length) in dumpHexString()
105 public static String toHexString(byte[] array) in toHexString()
111 public static String toHexString(byte[] array, boolean upperCase) in toHexString()
117 public static String toHexString(byte[] array, int offset, int length) in toHexString()
122 public static String toHexString(byte[] array, int offset, int length, boolean upperCase) in toHexString()
/frameworks/base/services/core/java/com/android/server/biometrics/
DHardwareAuthTokenUtils.java47 writeInt(flipIfNativelyLittle(hat.authenticatorType), array, 25 /* offset */); in toByteArray() local
50 writeLong(flipIfNativelyLittle(hat.timestamp.milliSeconds), array, 29 /* offset */); in toByteArray() local
58 public static HardwareAuthToken toHardwareAuthToken(byte[] array) { in toHardwareAuthToken()
121 private static long getLong(byte[] array, int offset) { in getLong()
130 private static int getInt(byte[] array, int offset) { in getInt()
/frameworks/base/core/jni/
Dandroid_opengl_GLES10Ext.cpp72 getPointer(JNIEnv *_env, jobject buffer, jarray *array, jint *remaining, jint *offset) in getPointer()
94 static void* Get(JNIEnv* _env, jbyteArray array, jboolean* is_copy) { in Get()
100 static void* Get(JNIEnv* _env, jbooleanArray array, jboolean* is_copy) { in Get()
106 static void* Get(JNIEnv* _env, jcharArray array, jboolean* is_copy) { in Get()
112 static void* Get(JNIEnv* _env, jshortArray array, jboolean* is_copy) { in Get()
118 static void* Get(JNIEnv* _env, jintArray array, jboolean* is_copy) { in Get()
124 static void* Get(JNIEnv* _env, jlongArray array, jboolean* is_copy) { in Get()
130 static void* Get(JNIEnv* _env, jfloatArray array, jboolean* is_copy) { in Get()
136 static void* Get(JNIEnv* _env, jdoubleArray array, jboolean* is_copy) { in Get()
143 getArrayPointer(JNIEnv *_env, JTYPEARRAY array, jboolean* is_copy) { in getArrayPointer()
[all …]
/frameworks/base/core/java/android/os/
DHwBlob.java112 public native final void copyToBoolArray(long offset, boolean[] array, int size); in copyToBoolArray()
123 public native final void copyToInt8Array(long offset, byte[] array, int size); in copyToInt8Array()
134 public native final void copyToInt16Array(long offset, short[] array, int size); in copyToInt16Array()
145 public native final void copyToInt32Array(long offset, int[] array, int size); in copyToInt32Array()
156 public native final void copyToInt64Array(long offset, long[] array, int size); in copyToInt64Array()
167 public native final void copyToFloatArray(long offset, float[] array, int size); in copyToFloatArray()
178 public native final void copyToDoubleArray(long offset, double[] array, int size); in copyToDoubleArray()
345 public static Boolean[] wrapArray(@NonNull boolean[] array) { in wrapArray()
360 public static Long[] wrapArray(@NonNull long[] array) { in wrapArray()
375 public static Byte[] wrapArray(@NonNull byte[] array) { in wrapArray()
[all …]
DHwParcel.java238 short[] array = new short[n]; in writeInt16Vector() local
252 int[] array = new int[n]; in writeInt32Vector() local
266 long[] array = new long[n]; in writeInt64Vector() local
280 float[] array = new float[n]; in writeFloatVector() local
294 double[] array = new double[n]; in writeDoubleVector() local
495 Boolean[] array = HwBlob.wrapArray(readBoolVectorAsArray()); in readBoolVector() local
506 Byte[] array = HwBlob.wrapArray(readInt8VectorAsArray()); in readInt8Vector() local
517 Short[] array = HwBlob.wrapArray(readInt16VectorAsArray()); in readInt16Vector() local
528 Integer[] array = HwBlob.wrapArray(readInt32VectorAsArray()); in readInt32Vector() local
539 Long[] array = HwBlob.wrapArray(readInt64VectorAsArray()); in readInt64Vector() local
[all …]
/frameworks/base/libs/androidfw/tests/data/appaslib/
DR.h35 struct array { struct
36 enum : uint32_t {
53 struct array { struct
54 enum : uint32_t {
/frameworks/libs/net/common/device/com/android/net/module/util/
DHexDump.java35 public static String dumpHexString(@Nullable byte[] array) { in dumpHexString()
47 public static String dumpHexString(@Nullable byte[] array, int offset, int length) { in dumpHexString()
115 public static String toHexString(byte[] array) { in toHexString()
125 public static String toHexString(byte[] array, boolean upperCase) { in toHexString()
136 public static String toHexString(byte[] array, int offset, int length) { in toHexString()
148 public static String toHexString(byte[] array, int offset, int length, boolean upperCase) { in toHexString()
/frameworks/base/core/java/android/hardware/camera2/utils/
DHashCodeHelpers.java37 public static int hashCode(int... array) { in hashCode()
67 public static int hashCode(float... array) { in hashCode()
90 public static <T> int hashCodeGeneric(T... array) { in hashCodeGeneric()
DArrayUtils.java34 public static <T> int getArrayIndex(T[] array, T needle) { in getArrayIndex()
51 public static int getArrayIndex(int[] array, int needle) { in getArrayIndex()
166 public static boolean contains(int[] array, int elem) { in contains()
177 public static <T> boolean contains(T[] array, T elem) { in contains()
/frameworks/base/keystore/java/android/security/keystore/
DArrayUtils.java29 public static String[] nullToEmpty(String[] array) { in nullToEmpty()
33 public static String[] cloneIfNotEmpty(String[] array) { in cloneIfNotEmpty()
41 public static int[] cloneIfNotEmpty(int[] array) { in cloneIfNotEmpty()
45 public static byte[] cloneIfNotEmpty(byte[] array) { in cloneIfNotEmpty()
127 public static void forEach(int[] array, Consumer<Integer> consumer) { in forEach()
/frameworks/base/graphics/java/android/graphics/
DColorMatrixColorFilter.java52 public ColorMatrixColorFilter(@NonNull float[] array) { in ColorMatrixColorFilter()
112 public void setColorMatrixArray(@Nullable float[] array) { in setColorMatrixArray()
130 private static native long nativeColorMatrixFilter(float[] array); in nativeColorMatrixFilter()
/frameworks/base/core/tests/coretests/src/android/util/
DLongSparseLongArrayTest.java36 final LongSparseLongArray array = new LongSparseLongArray(5); in testSimplePut() local
49 final LongSparseLongArray array = new LongSparseLongArray(5); in testSimplePutBackwards() local
62 final LongSparseLongArray array = new LongSparseLongArray(5); in testMiddleInsert() local
81 final LongSparseLongArray array = new LongSparseLongArray(r.nextInt(128)); in testFuzz() local
DSparseSetArrayTest.java37 final ArraySet<Integer> array = new ArraySet<>(); in testAddAll() local
65 final ArraySet<Integer> array = sparseSetArray.get(i); in testCopyConstructor() local
/frameworks/base/apct-tests/perftests/core/src/android/perftests/
DSystemPerfTest.java110 private static native void jintarrayArgumentNoop(int[] array, int length); in jintarrayArgumentNoop()
112 private static native int jintarrayGetLength(int[] array); in jintarrayGetLength()
114 private static native int jintarrayCriticalAccess(int[] array, int index); in jintarrayCriticalAccess()
116 private static native int jintarrayBasicAccess(int[] array, int index); in jintarrayBasicAccess()
/frameworks/av/media/libstagefright/
DACodecBufferChannel.cpp61 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findClientBuffer()
69 const std::shared_ptr<const std::vector<const BufferInfo>> &array, in findBufferId()
97 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueInputBuffer() local
134 std::shared_ptr<const std::vector<const BufferInfo>> array( in queueSecureInputBuffer() local
343 std::shared_ptr<const std::vector<const BufferInfo>> array( in attachEncryptedBuffer() local
463 std::shared_ptr<const std::vector<const BufferInfo>> array( in renderOutputBuffer() local
481 std::shared_ptr<const std::vector<const BufferInfo>> array( in discardBuffer() local
502 void ACodecBufferChannel::getInputBufferArray(Vector<sp<MediaCodecBuffer>> *array) { in getInputBufferArray()
511 void ACodecBufferChannel::getOutputBufferArray(Vector<sp<MediaCodecBuffer>> *array) { in getOutputBufferArray()
548 void ACodecBufferChannel::setInputBufferArray(const std::vector<BufferAndId> &array) { in setInputBufferArray()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DAdaptiveIconDrawable.java249 final ChildDrawable[] array = state.mChildren; in inflate() local
453 final ChildDrawable[] array = state.mChildren; in applyTheme() local
653 final ChildDrawable[] array = mLayerState.mChildren; in setHotspot() local
664 final ChildDrawable[] array = mLayerState.mChildren; in setHotspotBounds() local
691 final ChildDrawable[] array = mLayerState.mChildren; in setVisible() local
705 final ChildDrawable[] array = mLayerState.mChildren; in setDither() local
726 final ChildDrawable[] array = mLayerState.mChildren; in setColorFilter() local
737 final ChildDrawable[] array = mLayerState.mChildren; in setTintList() local
749 final ChildDrawable[] array = mLayerState.mChildren; in setTintBlendMode() local
772 final ChildDrawable[] array = mLayerState.mChildren; in setAutoMirrored() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DTilesStatesTextTest.kt42 val array = mContext.resources.getStringArray(resId) in <lambda>() constant
50 val array = mContext.resources.getStringArray(R.array.tile_states_default) in <lambda>() constant
/frameworks/base/core/java/com/android/internal/app/procstats/
DSparseMappingTable.java132 long[] array = list.get(whichArray); in getOrAddKey() local
196 final long[] array = mParent.mLongs.get(getArrayFromKey(key)); in getValue() local
230 final long[] array = mParent.mLongs.get(getArrayFromKey(key)); in getValueForId() local
282 final long[] array = mParent.mLongs.get(getArrayFromKey(key)); in setValue() local
506 final long[] array = mLongs.get(i); in writeToParcel() local
527 final long[] array = new long[size]; in readFromParcel() local
555 final long[] array = mLongs.get(i); in dumpInternalState() local
572 private static void writeCompactedLongArray(Parcel out, long[] array, int num) { in writeCompactedLongArray()
593 private static void readCompactedLongArray(Parcel in, long[] array, int num) { in readCompactedLongArray()

12345678910>>...13