Searched refs:NameLookupType (Results 1 – 10 of 10) sorted by relevance
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
D | ContactMatcher.java | 18 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 88 new int[NameLookupType.TYPE_COUNT * NameLookupType.TYPE_COUNT]; 90 new int[NameLookupType.TYPE_COUNT * NameLookupType.TYPE_COUNT]; 101 setScoreRange(NameLookupType.NAME_EXACT, in setScoreRange() 102 NameLookupType.NAME_EXACT, 99, 99); in setScoreRange() 103 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange() 104 NameLookupType.NAME_COLLATION_KEY, 50, 80); in setScoreRange() 106 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange() 107 NameLookupType.EMAIL_BASED_NICKNAME, 30, 60); in setScoreRange() 108 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange() [all …]
|
D | RawContactMatcher.java | 20 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 92 new int[NameLookupType.TYPE_COUNT * NameLookupType.TYPE_COUNT]; 94 new int[NameLookupType.TYPE_COUNT * NameLookupType.TYPE_COUNT]; 105 setScoreRange(NameLookupType.NAME_EXACT, in setScoreRange() 106 NameLookupType.NAME_EXACT, 99, 99); in setScoreRange() 107 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange() 108 NameLookupType.NAME_COLLATION_KEY, 50, 80); in setScoreRange() 110 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange() 111 NameLookupType.EMAIL_BASED_NICKNAME, 30, 60); in setScoreRange() 112 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/ |
D | ContactMatcherTest.java | 20 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 30 matcher.matchName(1, NameLookupType.NAME_COLLATION_KEY, "InvalidHex", in testMatchName_invalidHexDecimal() 31 NameLookupType.NAME_COLLATION_KEY, "InvalidHex2", in testMatchName_invalidHexDecimal()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameLookupBuilder.java | 21 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 100 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true); in insertNameLookup() 226 initiallyExact ? NameLookupType.NAME_EXACT : NameLookupType.NAME_VARIANT, in insertNameVariants() 277 insertNameLookup(rawContactId, dataId, NameLookupType.NAME_COLLATION_KEY, in insertCollationKey()
|
D | ContactsDatabaseHelper.java | 874 public final static class NameLookupType { class in ContactsDatabaseHelper 885 return nameLookupType == NameLookupType.NAME_EXACT in isBasedOnStructuredName() 886 || nameLookupType == NameLookupType.NAME_COLLATION_KEY; in isBasedOnStructuredName() 2899 NameLookupType.EMAIL_BASED_NICKNAME, address); in insertEmailLookup() 2920 NameLookupType.NICKNAME, nickname); in insertNicknameLookup() 3537 NameLookupColumns.NAME_TYPE + " = " + NameLookupType.NAME_VARIANT); in upgradeToVersion1700() 5136 NameLookupType.EMAIL_BASED_NICKNAME, NameNormalizer.normalize(address)); in insertNameLookupForEmail() 5146 NameLookupType.NICKNAME, NameNormalizer.normalize(nickname)); in insertNameLookupForNickname()
|
D | LegacyApiSupport.java | 62 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 1950 + NameLookupType.NAME_COLLATION_KEY + "," in getRawContactsByFilterAsNestedQuery() 1951 + NameLookupType.NICKNAME); in getRawContactsByFilterAsNestedQuery() 1953 sb.append("," + NameLookupType.EMAIL_BASED_NICKNAME); in getRawContactsByFilterAsNestedQuery()
|
D | ContactsProvider2.java | 159 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 617 NameLookupType.NAME_COLLATION_KEY + "," + 618 NameLookupType.EMAIL_BASED_NICKNAME + "," + 619 NameLookupType.NICKNAME; 8334 sb.append(") AND " + NameLookupColumns.NAME_TYPE + "=" + NameLookupType.NAME_COLLATION_KEY in lookupContactIdByDisplayNames() 8595 sb.append(NameLookupType.NAME_COLLATION_KEY + " AND "); in appendSearchIndexJoin()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregator2.java | 39 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 597 if (nameTypeA == NameLookupType.NICKNAME && in updateMatchScoresBasedOnNameMatches() 598 nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches() 655 if (nameTypeA == NameLookupType.NICKNAME && nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches() 716 + NameLookupType.NAME_COLLATION_KEY + "," in lookupApproximateNameMatches() 717 + NameLookupType.EMAIL_BASED_NICKNAME + "," in lookupApproximateNameMatches() 718 + NameLookupType.NICKNAME + ")) AND " in lookupApproximateNameMatches() 1063 + " AND " + NameLookupColumns.NAME_TYPE + " = " + NameLookupType.NAME_EXACT;
|
D | ContactAggregator.java | 33 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 772 if (nameTypeA == NameLookupType.NICKNAME && in updateMatchScoresBasedOnNameMatches() 773 nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches() 846 + NameLookupType.NAME_COLLATION_KEY + "," in lookupApproximateNameMatches() 847 + NameLookupType.EMAIL_BASED_NICKNAME + "," in lookupApproximateNameMatches() 848 + NameLookupType.NICKNAME + ")) AND " in lookupApproximateNameMatches()
|
D | AbstractContactAggregator.java | 27 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 95 + NameLookupType.NAME_EXACT + "," 96 + NameLookupType.NAME_COLLATION_KEY + ")"; 1136 if (nameTypeA == NameLookupType.NICKNAME && nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches()
|