Home
last modified time | relevance | path

Searched refs:overlapPoint (Results 1 – 2 of 2) sorted by relevance

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
DFormatUtilsTests.java30 assertEquals(2, FormatUtils.overlapPoint("abcde", "cdefg")); in testOverlapPoint()
31 assertEquals(-1, FormatUtils.overlapPoint("John Doe", "John Doe")); in testOverlapPoint()
32 assertEquals(5, FormatUtils.overlapPoint("John Doe", "Doe, John")); in testOverlapPoint()
33 assertEquals(-1, FormatUtils.overlapPoint("Mr. John Doe", "Mr. Doe, John")); in testOverlapPoint()
34 assertEquals(13, FormatUtils.overlapPoint("John Herbert Doe", "Doe, John Herbert")); in testOverlapPoint()
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DFormatUtils.java36 public static int overlapPoint(CharArrayBuffer buffer1, CharArrayBuffer buffer2) { in overlapPoint() method in FormatUtils
40 return overlapPoint(Arrays.copyOfRange(buffer1.data, 0, buffer1.sizeCopied), in overlapPoint()
49 public static int overlapPoint(String string1, String string2) { in overlapPoint() method in FormatUtils
53 return overlapPoint(string1.toCharArray(), string2.toCharArray()); in overlapPoint()
60 public static int overlapPoint(char[] array1, char[] array2) { in overlapPoint() method in FormatUtils