Home
last modified time | relevance | path

Searched refs:NameLookupType (Results 1 – 10 of 10) sorted by relevance

/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactMatcher.java18 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_VARIANT, in setScoreRange()
104 NameLookupType.NAME_VARIANT, 90, 90); in setScoreRange()
105 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange()
106 NameLookupType.NAME_COLLATION_KEY, 50, 80); in setScoreRange()
108 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange()
[all …]
DRawContactMatcher.java20 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_VARIANT, in setScoreRange()
108 NameLookupType.NAME_VARIANT, 90, 90); in setScoreRange()
109 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange()
110 NameLookupType.NAME_COLLATION_KEY, 50, 80); in setScoreRange()
112 setScoreRange(NameLookupType.NAME_COLLATION_KEY, in setScoreRange()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DNameLookupBuilder.java21 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
111 insertNameVariant(rawContactId, dataId, tokenCount, NameLookupType.NAME_EXACT, true); in insertNameLookup()
243 initiallyExact ? NameLookupType.NAME_EXACT : NameLookupType.NAME_VARIANT, in insertNameVariants()
294 insertNameLookup(rawContactId, dataId, NameLookupType.NAME_COLLATION_KEY, in insertCollationKey()
DContactsDatabaseHelper.java880 public final static class NameLookupType { class in ContactsDatabaseHelper
891 return nameLookupType == NameLookupType.NAME_EXACT in isBasedOnStructuredName()
892 || nameLookupType == NameLookupType.NAME_VARIANT in isBasedOnStructuredName()
893 || nameLookupType == NameLookupType.NAME_COLLATION_KEY; in isBasedOnStructuredName()
2875 NameLookupType.EMAIL_BASED_NICKNAME, address); in insertEmailLookup()
2896 NameLookupType.NICKNAME, nickname); in insertNicknameLookup()
4907 NameLookupType.EMAIL_BASED_NICKNAME, NameNormalizer.normalize(address)); in insertNameLookupForEmail()
4917 NameLookupType.NICKNAME, NameNormalizer.normalize(nickname)); in insertNameLookupForNickname()
DLegacyApiSupport.java62 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
1940 + NameLookupType.NAME_COLLATION_KEY + "," in getRawContactsByFilterAsNestedQuery()
1941 + NameLookupType.NICKNAME); in getRawContactsByFilterAsNestedQuery()
1943 sb.append("," + NameLookupType.EMAIL_BASED_NICKNAME); in getRawContactsByFilterAsNestedQuery()
DContactsProvider2.java136 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
594 NameLookupType.NAME_COLLATION_KEY + "," +
595 NameLookupType.EMAIL_BASED_NICKNAME + "," +
596 NameLookupType.NICKNAME;
7822 sb.append(") AND " + NameLookupColumns.NAME_TYPE + "=" + NameLookupType.NAME_COLLATION_KEY in lookupContactIdByDisplayNames()
8083 sb.append(NameLookupType.NAME_COLLATION_KEY + " AND "); in appendSearchIndexJoin()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/
DContactMatcherTest.java18 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/aggregation/
DContactAggregator2.java39 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
599 if (nameTypeA == NameLookupType.NICKNAME && in updateMatchScoresBasedOnNameMatches()
600 nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches()
657 if (nameTypeA == NameLookupType.NICKNAME && nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches()
704 + NameLookupType.NAME_COLLATION_KEY + "," in lookupApproximateNameMatches()
705 + NameLookupType.EMAIL_BASED_NICKNAME + "," in lookupApproximateNameMatches()
706 + NameLookupType.NICKNAME + ")) AND " in lookupApproximateNameMatches()
1046 + " AND " + NameLookupColumns.NAME_TYPE + " = " + NameLookupType.NAME_EXACT;
DContactAggregator.java33 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
774 if (nameTypeA == NameLookupType.NICKNAME && in updateMatchScoresBasedOnNameMatches()
775 nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches()
834 + NameLookupType.NAME_COLLATION_KEY + "," in lookupApproximateNameMatches()
835 + NameLookupType.EMAIL_BASED_NICKNAME + "," in lookupApproximateNameMatches()
836 + NameLookupType.NICKNAME + ")) AND " in lookupApproximateNameMatches()
DAbstractContactAggregator.java27 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType;
95 + NameLookupType.NAME_EXACT + ","
96 + NameLookupType.NAME_VARIANT + ","
97 + NameLookupType.NAME_COLLATION_KEY + ")";
1144 if (nameTypeA == NameLookupType.NICKNAME && nameTypeB == NameLookupType.NICKNAME) { in updateMatchScoresBasedOnNameMatches()