/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
H A D | ArrayUtils.java | 60 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty() 67 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty() 74 public static boolean isEmpty(@Nullable int[] array) { in isEmpty() 81 public static boolean isEmpty(@Nullable long[] array) { in isEmpty() 88 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty() 95 public static boolean isEmpty(@Nullable boolean[] array) { in isEmpty() 102 public static int size(@Nullable Object[] array) { in size() 120 public static <T> boolean contains(@Nullable T[] array, T value) { in contains() 131 public static boolean contains(@Nullable int[] array, int value) { in contains() 148 public static boolean contains(@Nullable long[] array, long value) { in contains() [all …]
|
/aosp12/art/test/449-checker-bce/src/ |
H A D | Main.java | 615 static void loopPattern1(int[] array) { in loopPattern1() 678 static void loopPattern2(int[] array) { in loopPattern2() 714 static void loopPattern3(int[] array) { in loopPattern3() 752 int[] array = new int[10]; in constantNewArray() local 802 static void pyramid1(int[] array) { in pyramid1() 823 static void pyramid2(int[] array) { in pyramid2() 844 static void pyramid3(int[] array) { in pyramid3() 864 static boolean isPyramid(int[] array) { in isPyramid() 957 int[] array = new int[20]; in modArrayIndex4() local 1022 static void bubbleSort(int[] array) { in bubbleSort() [all …]
|
/aosp12/frameworks/base/telephony/common/com/android/internal/telephony/util/ |
H A D | ArrayUtils.java | 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() 226 public static boolean isEmpty(@Nullable long[] array) { in isEmpty() 233 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty() [all …]
|
/aosp12/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ByteArrayHelpers.java | 40 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()
|
/aosp12/system/bt/osi/src/ |
H A D | array.cc | 45 array_t* array = static_cast<array_t*>( in array_new() local 54 void array_free(array_t* array) { in array_free() 62 void* array_ptr(const array_t* array) { return array_at(array, 0); } in array_ptr() 64 void* array_at(const array_t* array, size_t index) { in array_at() 70 size_t array_length(const array_t* array) { in array_length() 75 bool array_append_value(array_t* array, uint32_t value) { in array_append_value() 79 bool array_append_ptr(array_t* array, void* data) { in array_append_ptr() 96 static bool grow(array_t* array) { in grow()
|
/aosp12/frameworks/base/core/tests/utiltests/src/android/util/ |
H A D | MemoryIntArrayTest.java | 49 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
|
/aosp12/art/test/527-checker-array-access-split/src/ |
H A D | Main.java | 52 public static int constantIndexGet(int array[]) { in constantIndexGet() 87 public static void constantIndexSet(int array[]) { in constantIndexSet() 120 public static int get(int array[], int index) { in get() 165 public static void set(int array[], int index, int value) { in set() 233 public static void getSet(int array[], int index) { in getSet() 309 public static int[] accrossGC(int array[], int index) { in accrossGC() 403 int[] array = {0, 7, 14, 21, 28, 35, 42}; in canMergeAfterBCE1() local 516 int[] array = {128, 64, 32, 8, 4, 2 }; in canMergeAfterBCE2() local 647 int[] array = {123, 456, 789}; in main() local
|
/aosp12/frameworks/native/opengl/tools/glgen/stubs/gles11/ |
H A D | common.cpp | 47 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 …]
|
/aosp12/frameworks/libs/net/common/framework/com/android/net/module/util/ |
H A D | CollectionUtils.java | 38 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 int[] array, int value) { in contains() 139 public static <T> boolean contains(@Nullable T[] array, @Nullable T value) { in contains() 146 public static <T> int indexOf(@Nullable T[] array, @Nullable T value) { in indexOf()
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | GrowingArrayUtils.java | 44 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()
|
H A D | ArrayUtils.java | 150 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() 234 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf() 312 public static long total(@Nullable long[] array) { in total() 327 int[] array = new int[list.size()]; in convertToIntArray() local [all …]
|
H A D | HexDump.java | 27 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()
|
/aosp12/packages/modules/Permission/service/java/com/android/permission/util/ |
H A D | ArrayUtils.java | 32 public static <T> boolean contains(@Nullable T[] array, T value) { in contains() 43 public static <T> T firstOrNull(@Nullable T[] array) { in firstOrNull() 50 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf() 67 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
|
/aosp12/system/bt/osi/test/ |
H A D | array_test.cc | 10 array_t* array = array_new(4); in TEST_F() local 18 array_t* array = array_new(4); in TEST_F() local 24 array_t* array = array_new(4); in TEST_F() local 30 array_t* array = array_new(sizeof(int)); in TEST_F() local 42 array_t* array = array_new(sizeof(int)); in TEST_F() local 59 array_t* array = array_new(128); in TEST_F() local
|
/aosp12/art/test/712-varhandle-invocations/src/ |
H A D | VarHandleUnitTestHelpers.java | 60 public static byte getBytesAs_byte(byte[] array, int index, ByteOrder order) { in getBytesAs_byte() 64 public static char getBytesAs_char(byte[] array, int index, ByteOrder order) { in getBytesAs_char() 68 public static short getBytesAs_short(byte[] array, int index, ByteOrder order) { in getBytesAs_short() 72 public static int getBytesAs_int(byte[] array, int index, ByteOrder order) { in getBytesAs_int() 76 public static long getBytesAs_long(byte[] array, int index, ByteOrder order) { in getBytesAs_long() 247 public static int alignedOffset_char(byte[] array, int start) { in alignedOffset_char() 251 public static int alignedOffset_short(byte[] array, int start) { in alignedOffset_short() 255 public static int alignedOffset_int(byte[] array, int start) { in alignedOffset_int() 259 public static int alignedOffset_long(byte[] array, int start) { in alignedOffset_long() 263 public static int alignedOffset_float(byte[] array, int start) { in alignedOffset_float() [all …]
|
/aosp12/art/test/011-array-copy/src/ |
H A D | Main.java | 52 static void initByteArray(byte[] array) { in initByteArray() 57 static void initShortArray(short[] array) { in initShortArray() 62 static void initIntArray(int[] array) { in initIntArray() 67 static void initLongArray(long[] array) { in initLongArray() 72 static void initCharArray(char[] array) { in initCharArray()
|
/aosp12/frameworks/base/services/core/java/com/android/server/biometrics/ |
H A D | HardwareAuthTokenUtils.java | 47 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()
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_opengl_GLES10Ext.cpp | 72 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 …]
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | SparseArrayStream.java | 32 public static <E> IntStream keyStream(SparseArray<E> array) { in keyStream() 36 public static <E> Stream<E> valueStream(SparseArray<E> array) { in valueStream() 40 public static <E> Stream<Pair<Integer, E>> pairStream(SparseArray<E> array) { in pairStream()
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | HwBlob.java | 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() 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() 390 public static Short[] wrapArray(@NonNull short[] array) { in wrapArray() 405 public static Integer[] wrapArray(@NonNull int[] array) { in wrapArray() 420 public static Float[] wrapArray(@NonNull float[] array) { in wrapArray() [all …]
|
/aosp12/frameworks/libs/net/common/device/com/android/net/module/util/ |
H A D | HexDump.java | 35 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()
|
/aosp12/art/test/535-deopt-and-inlining/src/ |
H A D | Main.java | 30 public static void doCall(int[] array) { in doCall() 38 public static void deopt(int[] array) { in deopt() 49 public static void $inline$deopt(int[] array) { in $inline$deopt()
|
/aosp12/frameworks/base/libs/androidfw/tests/data/appaslib/ |
H A D | R.h | 35 struct array { struct 36 enum : uint32_t { 53 struct array { struct 54 enum : uint32_t {
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
H A D | SparseArrayStreamTest.java | 38 SparseArray<String> array = createSparseStringArray(); in testKeyStream() local 54 SparseArray<String> array = createSparseStringArray(); in testValueStream() local 70 SparseArray<String> array = createSparseStringArray(); in testPairStream() local 86 SparseArray<String> array = new SparseArray<>(); in createSparseStringArray() local
|
/aosp12/frameworks/base/keystore/java/android/security/keystore/ |
H A D | ArrayUtils.java | 29 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()
|