Home
last modified time | relevance | path

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

123456

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DArrayUtils.java60 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 …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DArrayUtilsTest.java106 Integer[] array = new Integer[0]; in testIsEmptyAndSize() local
127 Integer[] array = null; in testContains() local
139 Integer[] array = new Integer[]{1, 2}; in testIndexOf() local
147 Integer[] array = new Integer[]{1, 2}; in testContainsAll() local
155 Integer[] array = new Integer[]{1, 2}; in testContainsAny() local
162 int[] array = null; in testContainsInt() local
174 long[] array = null; in testContainsLong() local
186 char[] array = null; in testContainsChar() local
198 char[] array = null; in testContainsAllChar() local
215 long[] array = null; in testTotal() local
[all …]
/packages/modules/Bluetooth/system/osi/src/
Darray.cc46 array_t* array = static_cast<array_t*>( in array_new() local
55 void array_free(array_t* array) { in array_free()
63 void* array_ptr(const array_t* array) { return array_at(array, 0); } in array_ptr()
65 void* array_at(const array_t* array, size_t index) { in array_at()
71 size_t array_length(const array_t* array) { in array_length()
76 bool array_append_value(array_t* array, uint32_t value) { in array_append_value()
80 bool array_append_ptr(array_t* array, void* data) { in array_append_ptr()
97 static bool grow(array_t* array) { in grow()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DArrayUtils.java123 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty()
137 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
144 public static boolean isEmpty(@Nullable int[] array) { in isEmpty()
151 public static boolean isEmpty(@Nullable long[] array) { in isEmpty()
158 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty()
165 public static boolean isEmpty(@Nullable boolean[] array) { in isEmpty()
172 public static int size(@Nullable Object[] array) { in size()
197 public static <T> boolean contains(@Nullable T[] array, T value) { in contains()
205 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf()
216 public static <T> boolean containsAll(@Nullable T[] array, T[] check) { in containsAll()
[all …]
DLongArray.java39 private LongArray(long[] array, int size) { in LongArray()
66 public static LongArray wrap(long[] array) { in wrap()
73 public static LongArray fromArray(long[] array, int size) { in fromArray()
DIntArray.java35 private IntArray(int[] array, int size) { in IntArray()
62 public static IntArray wrap(int[] array) { in wrap()
69 public static IntArray fromArray(int[] array, int size) { in fromArray()
/packages/modules/Permission/service/java/com/android/permission/util/
DArrayUtils.java32 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()
/packages/modules/Bluetooth/system/osi/test/
Darray_test.cc13 array_t* array = array_new(4); in TEST_F() local
22 array_t* array = array_new(4); in TEST_F() local
34 array_t* array = array_new(4); in TEST_F() local
45 array_t* array = array_new(sizeof(int)); in TEST_F() local
57 array_t* array = array_new(sizeof(int)); in TEST_F() local
74 array_t* array = array_new(128); in TEST_F() local
/packages/modules/Bluetooth/tools/pdl/tests/canonical/
Dle_test_vectors.json1032 "array": [] array
1043 "array": [ array
1058 "array": [] array
1069 "array": [ array
1084 "array": [] array
1095 "array": [ array
1111 "array": [ array
1127 "array": [] array
1133 "array": [ array
1160 "array": [] array
[all …]
Dbe_test_vectors.json1032 "array": [] array
1043 "array": [ array
1058 "array": [] array
1069 "array": [ array
1084 "array": [] array
1095 "array": [ array
1111 "array": [ array
1127 "array": [] array
1133 "array": [ array
1160 "array": [] array
[all …]
/packages/services/Car/service/src/com/android/car/util/
DSparseArrayStream.java33 public static <E> IntStream keyStream(SparseArray<E> array) { in keyStream()
38 public static <E> Stream<E> valueStream(SparseArray<E> array) { in valueStream()
43 public static <E> Stream<Pair<Integer, E>> pairStream(SparseArray<E> array) { in pairStream()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSparseArrayStreamTest.java40 SparseArray<String> array = createSparseStringArray(); in testKeyStream() local
56 SparseArray<String> array = createSparseStringArray(); in testValueStream() local
72 SparseArray<String> array = createSparseStringArray(); in testPairStream() local
88 SparseArray<String> array = new SparseArray<>(); in createSparseStringArray() local
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/util/
DArrayUtils.java36 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
46 public static <T> boolean contains(T[] array, T value) { in contains()
54 public static <T> int indexOf(T[] array, T value) { in indexOf()
/packages/modules/Uwb/service/java/com/android/server/uwb/util/
DArrayUtils.java34 public static <T> int indexOf(@Nullable T[] array, T value) { in indexOf()
45 public static boolean isEmpty(@Nullable int[] array) { in isEmpty()
52 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty()
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/provider/
DUtilsTest.java126 FastPairAccountKeyDeviceMetadataParcel[] array = { in testHappyPathConvertToFastPairDevicesWithAccountKey() local
139 FastPairAccountKeyDeviceMetadataParcel[] array = null; in testConvertToFastPairDevicesWithAccountKeyWithNullArray() local
146 FastPairAccountKeyDeviceMetadataParcel[] array = {null}; in testConvertToFastPairDevicesWithAccountKeyWithNullElement() local
153 FastPairAccountKeyDeviceMetadataParcel[] array = { in testConvertToFastPairDevicesWithAccountKeyWithEmptyElementNoCrash() local
164 FastPairAccountKeyDeviceMetadataParcel[] array = { in testConvertToFastPairDevicesWithAccountKeyWithEmptyMetadataDiscoveryNoCrash() local
175 FastPairAccountKeyDeviceMetadataParcel[] array = { in testConvertToFastPairDevicesWithAccountKeyWithMixedArrayElements() local
187 FastPairEligibleAccountParcel[] array = {genHappyPathFastPairEligibleAccountParcel()}; in testHappyPathConvertToAccountList() local
197 FastPairEligibleAccountParcel[] array = null; in testConvertToAccountListNullArray() local
206 FastPairEligibleAccountParcel[] array = {null}; in testConvertToAccountListWithNullElement() local
215 FastPairEligibleAccountParcel[] array = in testConvertToAccountListWithEmptyElementNotCrash() local
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DArrayUtils.java35 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty()
45 public static <T> boolean contains(T[] array, T value) { in contains()
53 public static <T> int indexOf(T[] array, T value) { in indexOf()
/packages/apps/ThemePicker/src/com/android/customization/widget/
DDynamicAdaptiveIconDrawable.java328 final ChildDrawable[] array = state.mChildren; in applyTheme() local
467 final ChildDrawable[] array = mLayerState.mChildren; in setHotspot() local
478 final ChildDrawable[] array = mLayerState.mChildren; in setHotspotBounds() local
505 final ChildDrawable[] array = mLayerState.mChildren; in setVisible() local
519 final ChildDrawable[] array = mLayerState.mChildren; in setDither() local
540 final ChildDrawable[] array = mLayerState.mChildren; in setColorFilter() local
551 final ChildDrawable[] array = mLayerState.mChildren; in setTintList() local
563 final ChildDrawable[] array = mLayerState.mChildren; in setTintMode() local
586 final ChildDrawable[] array = mLayerState.mChildren; in setAutoMirrored() local
602 final ChildDrawable[] array = mLayerState.mChildren; in jumpToCurrentState() local
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DResizableIntArrayTests.java42 final int[] array = src.getPrimitiveArray(); in testNewInstance() local
51 final int[] array = src.getPrimitiveArray(); in testAdd() local
126 final int[] array = src.getPrimitiveArray(); in testReset() local
158 final int[] array = src.getPrimitiveArray(); in testSetLength() local
216 final int[] array = dst.getPrimitiveArray(); in testCopy() local
245 final int[] array = dst.getPrimitiveArray(); in testAppend() local
295 final int[] array = src.getPrimitiveArray(); in testFill() local
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DResourceUtilsTests.java51 final String[] array = { in testFindConstantForKeyValuePairsSimple() local
85 final String[] array = { in testFindConstantForKeyValuePairsCombined() local
130 final String[] array = { in testFindConstantForKeyValuePairsRegexp() local
DCollectionUtilsTests.java51 final String[] array = { "0", "1" }; in testArrayAsListFailure() local
83 final String[] array = { "0", "1", "2", "3", "4" }; in testArrayAsList() local
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DTlvBufferUtils.java109 public TlvConstructor wrap(@Nullable byte[] array) { in wrap()
197 public TlvConstructor putByteArray(int type, @Nullable byte[] array, int offset, in putByteArray()
218 public TlvConstructor putByteArray(int type, @Nullable byte[] array) { in putByteArray()
229 public TlvConstructor putRawByteArray(@Nullable byte[] array) { in putRawByteArray()
496 public TlvIterable(int typeSize, int lengthSize, @Nullable byte[] array) { in TlvIterable()
627 public static boolean isValid(@Nullable byte[] array, int typeSize, int lengthSize) { in isValid()
642 public static boolean isValidEndian(@Nullable byte[] array, int typeSize, int lengthSize, in isValidEndian()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.h34 static void jintarrayToVector(JNIEnv *env, jintArray array, std::vector<int> *const outVector) { in jintarrayToVector()
130 static void putBooleanToArray(JNIEnv *env, jbooleanArray array, const int index, in putBooleanToArray()
135 static void putIntToArray(JNIEnv *env, jintArray array, const int index, const int value) { in putIntToArray()
139 static void putFloatToArray(JNIEnv *env, jfloatArray array, const int index, in putFloatToArray()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/hal/test/
DUtils.java36 SparseArrayEntry(SparseArray<U> array, int index) { in SparseArrayEntry()
45 SparseArrayIterator(SparseArray<T> array) { in SparseArrayIterator()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DLongArray.java32 private LongArray(long[] array, int size) { in LongArray()
59 public static LongArray wrap(long[] array) { in wrap()
66 public static LongArray fromArray(long[] array, int size) { in fromArray()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DNotificationVisibilityLogger.java132 private static void recycleAllVisibilityObjects(ArraySet<NotificationVisibility> array) { in recycleAllVisibilityObjects()
143 NotificationVisibility[] array = new NotificationVisibility[c.size()]; in cloneVisibilitiesAsArr() local

123456