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_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 …]
|
D | RawContactMatcher.java | 19 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/ |
D | NameLookupBuilder.java | 21 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()
|
D | ContactsDatabaseHelper.java | 882 public final static class NameLookupType { class in ContactsDatabaseHelper 893 return nameLookupType == NameLookupType.NAME_EXACT in isBasedOnStructuredName() 894 || nameLookupType == NameLookupType.NAME_VARIANT in isBasedOnStructuredName() 895 || nameLookupType == NameLookupType.NAME_COLLATION_KEY; in isBasedOnStructuredName() 2878 NameLookupType.EMAIL_BASED_NICKNAME, address); in insertEmailLookup() 2899 NameLookupType.NICKNAME, nickname); in insertNicknameLookup() 4901 NameLookupType.EMAIL_BASED_NICKNAME, NameNormalizer.normalize(address)); in insertNameLookupForEmail() 4911 NameLookupType.NICKNAME, NameNormalizer.normalize(nickname)); in insertNameLookupForNickname()
|
D | LegacyApiSupport.java | 61 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()
|
D | ContactsProvider2.java | 135 import com.android.providers.contacts.ContactsDatabaseHelper.NameLookupType; 652 NameLookupType.NAME_COLLATION_KEY + "," + 653 NameLookupType.EMAIL_BASED_NICKNAME + "," + 654 NameLookupType.NICKNAME; 7951 sb.append(") AND " + NameLookupColumns.NAME_TYPE + "=" + NameLookupType.NAME_COLLATION_KEY in lookupContactIdByDisplayNames() 8209 sb.append(NameLookupType.NAME_COLLATION_KEY + " AND "); in appendSearchIndexJoin()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/util/ |
D | ContactMatcherTest.java | 18 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/ |
D | ContactAggregator2.java | 38 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;
|
D | ContactAggregator.java | 32 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()
|
D | AbstractContactAggregator.java | 27 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()
|