Home
last modified time | relevance | path

Searched refs:PersonBuilderHelper (Results 1 – 7 of 7) sorted by relevance

/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DContactsIndexerImplTest.java124 batcher.add(new PersonBuilderHelper(/*id=*/ String.valueOf(i), in testBatcher_noFlushBeforeReachingLimit()
142 new PersonBuilderHelper( in testBatcher_autoFlush()
160 PersonBuilderHelper builderHelper1 = new PersonBuilderHelper("id1", in testBatcher_contactFingerprintSame_notIndexed()
164 PersonBuilderHelper builderHelper2 = new PersonBuilderHelper("id2", in testBatcher_contactFingerprintSame_notIndexed()
186 PersonBuilderHelper builderHelper1 = new PersonBuilderHelper("id1", in testBatcher_contactFingerprintDifferent_notIndexedButBatched()
190 PersonBuilderHelper builderHelper2 = new PersonBuilderHelper("id2", in testBatcher_contactFingerprintDifferent_notIndexedButBatched()
197 PersonBuilderHelper sameAsContact1 = builderHelper1; in testBatcher_contactFingerprintDifferent_notIndexedButBatched()
200 PersonBuilderHelper notSameAsContact2 = new PersonBuilderHelper("id2", in testBatcher_contactFingerprintDifferent_notIndexedButBatched()
218 PersonBuilderHelper contact1 = new PersonBuilderHelper("id1", in testBatcher_contactFingerprintDifferent_Indexed()
222 PersonBuilderHelper contact2 = new PersonBuilderHelper("id2", in testBatcher_contactFingerprintDifferent_Indexed()
[all …]
DContactDataHandlerTest.java63 private void convertRowToPerson(Cursor cursor, PersonBuilderHelper builderHelper) { in convertRowToPerson()
97 PersonBuilderHelper builderHelper = new PersonBuilderHelper("id", in testConvertCurrentRowToPersonWhenCursorNotSet_expectException()
117 new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_labelCustom_typeCustom()
124 PersonBuilderHelper helperTested = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_labelCustom_typeCustom()
152 Person personExpected = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_labelIsNull_typeCustom()
159 PersonBuilderHelper helperTested = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_labelIsNull_typeCustom()
187 Person personExpected = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_labelIsNull_typeHome()
192 PersonBuilderHelper helperTested = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_labelIsNull_typeHome()
220 Person personExpected = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_email()
225 PersonBuilderHelper helperTested = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_email()
[all …]
DPersonBuilderHelperTest.java84 Person person = new PersonBuilderHelper(id, personBuilder).setCreationTimestampMillis( in testFingerprintGeneration_creationTimestampAndFingerprintNotIncluded()
86 Person personSame = new PersonBuilderHelper(id, personBuilder).setCreationTimestampMillis( in testFingerprintGeneration_creationTimestampAndFingerprintNotIncluded()
89 Person personWithDifferentTsAndFingerprint = new PersonBuilderHelper(id, in testFingerprintGeneration_creationTimestampAndFingerprintNotIncluded()
122 Person person = new PersonBuilderHelper(id, personBuilder).setCreationTimestampMillis( in testFingerprintGeneration_forEachPropertyType_string()
124 Person personSame = new PersonBuilderHelper(id, personBuilder).setCreationTimestampMillis( in testFingerprintGeneration_forEachPropertyType_string()
126 Person personNameDiff = new PersonBuilderHelper(id, in testFingerprintGeneration_forEachPropertyType_string()
129 Person personUriDiff = new PersonBuilderHelper(id, in testFingerprintGeneration_forEachPropertyType_string()
147 Person personIsBotTrue = new PersonBuilderHelper(id, in testFingerprintGeneration_forEachPropertyType_boolean()
149 Person personIsBotFalse = new PersonBuilderHelper(id, in testFingerprintGeneration_forEachPropertyType_boolean()
175 Person person = new PersonBuilderHelper(id, personBuilder).setCreationTimestampMillis( in testFingerprintGeneration_forEachPropertyType_stringArray()
[all …]
DFakeContactsProvider.java239 private void addEmailToBuilder(PersonBuilderHelper builderHelper, long contactId) { in addEmailToBuilder()
247 private void addNicknameToBuilder(PersonBuilderHelper builderHelper, long contactId) { in addNicknameToBuilder()
252 private void addPhoneToBuilder(PersonBuilderHelper builderHelper, long contactId) { in addPhoneToBuilder()
260 private void addStructuredPostalToBuilder(PersonBuilderHelper builderHelper, in addStructuredPostalToBuilder()
270 private static void addStructuredNameToBuilder(PersonBuilderHelper builderHelper, in addStructuredNameToBuilder()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DContactDataHandler.java96 @NonNull Cursor cursor, @NonNull PersonBuilderHelper builderHelper) { in convertCursorToPerson()
138 public abstract void addData(@NonNull PersonBuilderHelper builderHelper, Cursor cursor); in addData()
159 @NonNull PersonBuilderHelper builderHelper, @NonNull Cursor cursor) { in addData()
170 PersonBuilderHelper builderHelper, String data); in addSingleColumnStringData()
210 @NonNull PersonBuilderHelper builderHelper, @NonNull Cursor cursor) { in addData()
242 PersonBuilderHelper builderHelper, String label, Map<String, String> data); in addContactPointData()
265 @NonNull PersonBuilderHelper builderHelper, in addContactPointData()
309 @NonNull PersonBuilderHelper builderHelper, in addContactPointData()
373 @NonNull PersonBuilderHelper builderHelper, in addContactPointData()
401 @NonNull PersonBuilderHelper builder, @NonNull String data) { in addSingleColumnStringData()
[all …]
DPersonBuilderHelper.java51 public final class PersonBuilderHelper { class
63 public PersonBuilderHelper(@NonNull String id, @NonNull Person.Builder builder) { in PersonBuilderHelper() method in PersonBuilderHelper
179 public PersonBuilderHelper setCreationTimestampMillis(long creationTimestampMillis) { in setCreationTimestampMillis()
185 public PersonBuilderHelper addAppIdToPerson(@NonNull String label, @NonNull String appId) { in addAppIdToPerson()
192 public PersonBuilderHelper addEmailToPerson(@NonNull String label, @NonNull String email) { in addEmailToPerson()
200 public PersonBuilderHelper addAddressToPerson(@NonNull String label, @NonNull String address) { in addAddressToPerson()
208 public PersonBuilderHelper addPhoneToPerson(@NonNull String label, @NonNull String phone) { in addPhoneToPerson()
216 public PersonBuilderHelper addPhoneVariantToPerson( in addPhoneVariantToPerson()
DContactsIndexerImpl.java303 PersonBuilderHelper personBuilderHelper = null; in indexContactsFromCursorAsync()
352 new PersonBuilderHelper(String.valueOf(contactId), personBuilder) in indexContactsFromCursorAsync()
404 private List<PersonBuilderHelper> mPendingDiffContactBuilders;
450 @NonNull PersonBuilderHelper builderHelper, in add()
457 List<PersonBuilderHelper> pendingDiffContactBuilders = mPendingDiffContactBuilders; in add()
479 List<PersonBuilderHelper> pendingDiffContactBuilders = mPendingDiffContactBuilders; in flushAsync()
501 @NonNull List<PersonBuilderHelper> pendingDiffContactBuilders, in performDiffAsync()
523 PersonBuilderHelper builderHelper = in performDiffAsync()