summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2012-11-08 13:13:24 -0800
committerYorke Lee <yorkelee@google.com>2012-11-09 14:05:51 -0800
commit678aa6530062e4db2afc5eadea82681e4ba49a1a (patch)
tree639715708219ee67f6c03fd2cb3a1bf8bb2fe8bc /tests
parentac834156f56a4d4edcf207865f8235647fa26980 (diff)
Use a custom character map instead of name normalizer
Instead of normalizing names during caching, add a function that that maps accented characters to their alphabetic equivalents using switch statements. This character map is used in the on-the-fly matching algorithm. This speeds up the caching process(11k contacts) from 800-1500ms to about 600-1000ms since we no longer perform the normalizing step during caching. Bug: 6977981 Change-Id: I98dfc3cba00258bb7ff03b346eab7ca7dc1065be
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/android/dialer/SmartDialNameMatcherTest.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/src/com/android/dialer/SmartDialNameMatcherTest.java b/tests/src/com/android/dialer/SmartDialNameMatcherTest.java
index babae55fa..492e5b422 100644
--- a/tests/src/com/android/dialer/SmartDialNameMatcherTest.java
+++ b/tests/src/com/android/dialer/SmartDialNameMatcherTest.java
@@ -106,7 +106,6 @@ public class SmartDialNameMatcherTest extends TestCase {
final SmartDialNameMatcher matcher = new SmartDialNameMatcher(query);
final ArrayList<SmartDialMatchPosition> matchPositions =
new ArrayList<SmartDialMatchPosition>();
- displayName = SmartDialNameMatcher.stripDiacritics(displayName);
final boolean matches = matcher.matchesCombination(
displayName, query, matchPositions);
Log.d(TAG, "query=" + query + " text=" + displayName