Home
last modified time | relevance | path

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

1234

/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/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/services/Car/service/src/com/android/car/
DSparseArrayStream.java32 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()
DCarServiceUtils.java158 final float[] array = new float[size]; in toFloatArray() local
167 final int[] array = new int[size]; in toIntArray() local
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DSparseArrayStreamTest.java38 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
/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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DCollectionUtilsTests.java51 final String[] array = { "0", "1" }; in testArrayAsListFailure() local
83 final String[] array = { "0", "1", "2", "3", "4" }; in testArrayAsList() local
DResourceUtilsTests.java51 final String[] array = { in testFindConstantForKeyValuePairsSimple() local
85 final String[] array = { in testFindConstantForKeyValuePairsCombined() local
130 final String[] array = { in testFindConstantForKeyValuePairsRegexp() local
/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/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DUtils.java32 SparseArrayEntry(SparseArray<U> array, int index) { in SparseArrayEntry()
41 SparseArrayIterator(SparseArray<T> array) { in SparseArrayIterator()
/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/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DNotificationVisibilityLogger.java129 private static void recycleAllVisibilityObjects(ArraySet<NotificationVisibility> array) { in recycleAllVisibilityObjects()
140 NotificationVisibility[] array = new NotificationVisibility[c.size()]; in cloneVisibilitiesAsArr() local
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DIntArrayTest.java32 int[] array = new int[] {0, 2, 3, 9}; in concatAndParseString() local
/packages/apps/SecureElement/src/com/android/se/internal/
DByteArrayConverter.java82 public static String byteArrayToHexString(byte[] array, int offset, int length) { in byteArrayToHexString()
97 public static String byteArrayToHexString(byte[] array, int offset) { in byteArrayToHexString()
/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/Launcher3/src/com/android/launcher3/util/
DIntArray.java34 private IntArray(int[] array, int size) { in IntArray()
61 public static IntArray wrap(int... array) { in wrap()
254 int[] array = new int[tokenizer.countTokens()]; in fromConcatString() local
DIntSet.java75 public static IntSet wrap(IntArray array) { in wrap()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/helper/
DSelectableSubscriptionsTest.java52 AtomicIntegerArray array = new AtomicIntegerArray(3); in atomicToList_subIdInArray_getList() local
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DCollectionUtils.java44 public static <E> ArrayList<E> arrayAsList(@Nonnull final E[] array, final int start, in arrayAsList()
/packages/services/Car/tests/obd2_test/src/com/android/car/obd2/test/
DUtils.java43 int[] array = arrays[i]; in concatIntArrays() local
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DHex.java58 public static String encodeHex(byte[] array, boolean zeroTerminated) { in encodeHex()
/packages/apps/Dialer/java/com/android/contacts/common/model/account/
DAccountWithDataSet.java105 final String[] array = STRINGIFY_SEPARATOR_PAT.split(s, 3); in unstringify() local
138 final String[] array = ARRAY_STRINGIFY_SEPARATOR_PAT.split(s); in unstringifyList() local
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DUserData.java159 private static String toHexString(byte[] array) { in toHexString()
163 private static String toHexString(byte[] array, int offset, int length, boolean upperCase) { in toHexString()

1234