Home
last modified time | relevance | path

Searched refs:SmartDialMatchPosition (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialNameMatcher.java47 private final ArrayList<SmartDialMatchPosition> mMatchPositions = Lists.newArrayList();
83 private void replaceBitInMask(StringBuilder builder, SmartDialMatchPosition matchPos) { in replaceBitInMask()
128 public SmartDialMatchPosition matchesNumber(String phoneNumber, String query, boolean useNanp) { in matchesNumber()
137 SmartDialMatchPosition matchPos = matchesNumberWithOffset(phoneNumber, query, 0); in matchesNumber()
169 public SmartDialMatchPosition matchesNumber(String phoneNumber) { in matchesNumber()
182 public SmartDialMatchPosition matchesNumber(String phoneNumber, String query) { in matchesNumber()
196 private SmartDialMatchPosition matchesNumberWithOffset(String phoneNumber, String query, in matchesNumberWithOffset()
231 return new SmartDialMatchPosition(0 + offset, numberAt); in matchesNumberWithOffset()
263 ArrayList<SmartDialMatchPosition> matchList) { in matchesCombination()
294 ArrayList<SmartDialMatchPosition> partial = new ArrayList<SmartDialMatchPosition>(); in matchesCombination()
[all …]
DSmartDialMatchPosition.java29 public class SmartDialMatchPosition { class
30 private static final String TAG = SmartDialMatchPosition.class.getSimpleName();
35 public SmartDialMatchPosition(int start, int end) { in SmartDialMatchPosition() method in SmartDialMatchPosition
52 public static void advanceMatchPositions(ArrayList<SmartDialMatchPosition> inList, in advanceMatchPositions()
64 public static void print(ArrayList<SmartDialMatchPosition> list) { in print()
66 SmartDialMatchPosition m = list.get(i); in print()
/packages/apps/Dialer/src/com/android/dialer/list/
DSmartDialNumberListAdapter.java32 import com.android.dialer.dialpad.SmartDialMatchPosition;
83 final ArrayList<SmartDialMatchPosition> nameMatches = mNameMatcher.getMatchPositions(); in setHighlight()
84 for (SmartDialMatchPosition match:nameMatches) { in setHighlight()
93 final SmartDialMatchPosition numberMatch = mNameMatcher.matchesNumber(cursor.getString( in setHighlight()
/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/
DSmartDialNameMatcherTest.java243 final SmartDialMatchPosition pos = matcher.matchesNumber(number, query, matchNanp); in checkMatchesNumber()
254 final ArrayList<SmartDialMatchPosition> matchPositions = in checkMatches()
255 new ArrayList<SmartDialMatchPosition>(); in checkMatches()