/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | NameDistance.java | 65 byte[] array1, array2; in getDistance() 68 array2 = bytes1; in getDistance() 71 array2 = bytes2; in getDistance() 79 if (array1[i] != array2[i]) { in getDistance() 97 int length2 = array2.length; in getDistance() 125 if (!mMatchFlags2[j] && c1 == array2[j]) { in getDistance() 144 if (array1[i] != array2[j]) { in getDistance()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/ |
D | ArrayUtilsTest.java | 37 byte[] array2 = new byte[]{(byte) 1, (byte) 2, (byte) 3}; in testEquals() 38 assertThat(ArrayUtils.equals(array1, array2, 2)).isTrue(); in testEquals() 39 assertThat(ArrayUtils.equals(array1, array2, 3)).isFalse(); in testEquals() 58 byte[] array2 = new byte[]{(byte) 1, (byte) 2, (byte) 3}; in testEqualsLengthTooSmall() 59 assertThat(ArrayUtils.equals(array1, array2, 4)).isFalse(); in testEqualsLengthTooSmall() 73 Integer[] array2 = ArrayUtils.emptyArray(Integer.class); in testEmptyArray() local 77 assertThat(ArrayUtils.isEmpty(array2)).isTrue(); in testEmptyArray() 84 Integer[] array2 = ArrayUtils.emptyIfNull(new Integer[]{1, 2}, Integer.class); in testEmptyIfNull() local 87 assertThat(ArrayUtils.isEmpty(array2)).isFalse(); in testEmptyIfNull() 243 Integer[] array2 = new Integer[]{3, 4}; in testConcatElements() local [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | ArrayUtils.java | 38 public static boolean equals(byte[] array1, byte[] array2, int length) { in equals() argument 43 if (array1 == array2) { in equals() 46 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { in equals() 50 if (array1[i] != array2[i]) { in equals()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | ResizableIntArrayTests.java | 52 int[] array2 = null, array3 = null; in testAdd() local 59 array2 = src.getPrimitiveArray(); in testAdd() 67 assertSame("array after add " + i, array2, src.getPrimitiveArray()); in testAdd() 135 final int[] array2 = src.getPrimitiveArray(); in testReset() local 137 assertNotSame("array after reset", array, array2); in testReset() 148 assertSame("array after add " + i, array2, src.getPrimitiveArray()); in testReset() 167 final int[] array2 = src.getPrimitiveArray(); in testSetLength() local 169 assertNotSame("array after larger setLength", array, array2); in testSetLength() 170 assertEquals("array length after larger setLength", largerLength, array2.length); in testSetLength() 184 assertSame("array after smaller setLength", array2, array3); in testSetLength() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/format/ |
D | FormatUtils.java | 60 public static int overlapPoint(char[] array1, char[] array2) { in overlapPoint() argument 61 if (array1 == null || array2 == null) { in overlapPoint() 65 int count2 = array2.length; in overlapPoint() 68 while (count1 > 0 && count2 > 0 && array1[count1 - 1] == array2[count2 - 1]) { in overlapPoint() 80 if (array1[i+j] != array2[j]) { in overlapPoint()
|
/packages/modules/AppSearch/testing/coretests/src/android/app/appsearch/external/util/ |
D | BundleUtilTest.java | 133 SparseArray<Parcelable> array2 = new SparseArray<>(); in testDeepEquals_sparseArray() local 134 array2.put(1, parcelable1); in testDeepEquals_sparseArray() 135 array2.put(10, parcelable3); // Different in testDeepEquals_sparseArray() 142 b2.putSparseParcelableArray("array1", array2); in testDeepEquals_sparseArray() 188 SparseArray<Parcelable> array2 = new SparseArray<>(); in testHashCode_sparseArray() local 189 array2.put(1, parcelable1); in testHashCode_sparseArray() 190 array2.put(10, parcelable3); // Different in testHashCode_sparseArray() 197 b2.putSparseParcelableArray("array1", array2); in testHashCode_sparseArray()
|
/packages/apps/SecureElement/src/com/android/se/internal/ |
D | Util.java | 37 public static byte[] mergeBytes(byte[] array1, byte[] array2) { in mergeBytes() argument 38 byte[] data = new byte[array1.length + array2.length]; in mergeBytes() 40 System.arraycopy(array2, 0, data, array1.length, array2.length); in mergeBytes()
|
/packages/services/Car/car-lib/src/com/android/car/internal/util/ |
D | ArrayUtils.java | 70 public static boolean equals(byte[] array1, byte[] array2, int length) { in equals() argument 75 if (array1 == array2) { in equals() 78 if (array1 == null || array2 == null || array1.length < length || array2.length < length) { in equals() 82 if (array1[i] != array2[i]) { in equals()
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpGateway.java | 286 private static byte[] concatByteArrays(byte[] array1, byte[] array2) throws IOException { in concatByteArrays() argument 289 outputStream.write(array2); in concatByteArrays()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCarrierInfoManager.java | 1304 private static byte[] concatHex(byte[] array1, byte[] array2) { in concatHex() argument 1306 int len = array1.length + array2.length; in concatHex() 1318 if (array2.length != 0) { in concatHex() 1319 for (byte b : array2) { in concatHex()
|