From 14b5dc80abc65855be0eef3f5baf17ef719a66d7 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 21 May 2013 17:32:28 -0700 Subject: Added SmartDialMap interface All character validation, remap and index calculations in both SmartDialTrie and SmartDialNameMatcher now go through a SmartDialMap. The LatinSmartDialMap is used by default. Bug: 8769026 Change-Id: I4ff90acc380e802f035ca1fbc55c022bf3b76aa3 --- tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java b/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java index eb6f05087..47edaf371 100644 --- a/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java +++ b/tests/src/com/android/dialer/dialpad/SmartDialNameMatcherTest.java @@ -236,7 +236,8 @@ public class SmartDialNameMatcherTest extends TestCase { private void checkMatchesNumber(String number, String query, boolean expectedMatches, boolean matchNanp, int matchStart, int matchEnd) { - final SmartDialMatchPosition pos = SmartDialNameMatcher.matchesNumber(number, query, + final SmartDialNameMatcher matcher = new SmartDialNameMatcher(query); + final SmartDialMatchPosition pos = matcher.matchesNumber(number, query, matchNanp); assertEquals(expectedMatches, pos != null); if (expectedMatches) { -- cgit v1.2.3