/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | PersonBuilderHelperTest.java | 24 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 65 Person.Builder personBuilder = new Person.Builder(namespace, id, name) in testFingerprintGeneration_creationTimestampAndFingerprintNotIncluded() 71 .addAdditionalName(Person.TYPE_NICKNAME, additionalNames.get(0)) in testFingerprintGeneration_creationTimestampAndFingerprintNotIncluded() 72 .addAdditionalName(Person.TYPE_PHONETIC_NAME, additionalNames.get(1)) in testFingerprintGeneration_creationTimestampAndFingerprintNotIncluded() 84 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() 117 Person.Builder personBuilder = new Person.Builder(namespace, id, name) in testFingerprintGeneration_forEachPropertyType_string() 122 Person person = new PersonBuilderHelper(id, personBuilder).setCreationTimestampMillis( in testFingerprintGeneration_forEachPropertyType_string() 124 Person personSame = new PersonBuilderHelper(id, personBuilder).setCreationTimestampMillis( in testFingerprintGeneration_forEachPropertyType_string() [all …]
|
D | ContactDataHandlerTest.java | 35 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 98 new Person.Builder("namespace", "id", "name")); in testConvertCurrentRowToPersonWhenCursorNotSet_expectException() 116 Person personExpected = in testConvertCurrentRowToPerson_labelCustom_typeCustom() 118 new Person.Builder(TEST_NAMESPACE, TEST_ID, name) in testConvertCurrentRowToPerson_labelCustom_typeCustom() 125 new Person.Builder(TEST_NAMESPACE, TEST_ID, name)).setCreationTimestampMillis( in testConvertCurrentRowToPerson_labelCustom_typeCustom() 128 Person personTested = helperTested.buildPerson(); in testConvertCurrentRowToPerson_labelCustom_typeCustom() 152 Person personExpected = new PersonBuilderHelper(TEST_ID, in testConvertCurrentRowToPerson_labelIsNull_typeCustom() 153 new Person.Builder(TEST_NAMESPACE, TEST_ID, name) in testConvertCurrentRowToPerson_labelIsNull_typeCustom() 160 new Person.Builder(TEST_NAMESPACE, TEST_ID, in testConvertCurrentRowToPerson_labelIsNull_typeCustom() 163 Person personTested = helperTested.buildPerson(); in testConvertCurrentRowToPerson_labelIsNull_typeCustom() [all …]
|
D | AppSearchHelperTest.java | 47 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 139 Person.SCHEMA_TYPE, in testAppSearchHelper_permissionIsSetCorrectlyForPerson() 221 List<Person> contacts = generatePersonData(50); in testIndexContacts_clearAfterIndex() 317 private CompletableFuture<Void> indexContactsInBatchesAsync(List<Person> contacts) { in indexContactsInBatchesAsync() 325 List<Person> batchedContacts = contacts.subList(startIndex, batchEndIndex); in indexContactsInBatchesAsync() 344 .addSchemas(ContactPoint.SCHEMA, Person.getSchema(config)) in testPersonSchema_indexFirstMiddleAndLastNames() 349 new GenericDocument.Builder<>("namespace", "id1", Person.SCHEMA_TYPE) in testPersonSchema_indexFirstMiddleAndLastNames() 350 .setPropertyString(Person.PERSON_PROPERTY_NAME, "新中野") in testPersonSchema_indexFirstMiddleAndLastNames() 351 .setPropertyString(Person.PERSON_PROPERTY_FAMILY_NAME, "新") in testPersonSchema_indexFirstMiddleAndLastNames() 352 .setPropertyString(Person.PERSON_PROPERTY_GIVEN_NAME, "野") in testPersonSchema_indexFirstMiddleAndLastNames() [all …]
|
D | ContactsIndexerImplTest.java | 44 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 125 new Person.Builder("namespace", /*id=*/ String.valueOf(i), /*name=*/ in testBatcher_noFlushBeforeReachingLimit() 144 new Person.Builder("namespace", /*id=*/ String.valueOf(i), /*name=*/ in testBatcher_autoFlush() 161 new Person.Builder("namespace", "id1", "name1") in testBatcher_contactFingerprintSame_notIndexed() 165 new Person.Builder("namespace", "id2", "name2") in testBatcher_contactFingerprintSame_notIndexed() 187 new Person.Builder("namespace", "id1", "name1") in testBatcher_contactFingerprintDifferent_notIndexedButBatched() 191 new Person.Builder("namespace", "id2", "name2") in testBatcher_contactFingerprintDifferent_notIndexedButBatched() 201 new Person.Builder("namespace", "id2", "name2").setGivenName( in testBatcher_contactFingerprintDifferent_notIndexedButBatched() 219 new Person.Builder("namespace", "id1", "name1") in testBatcher_contactFingerprintDifferent_Indexed() 223 new Person.Builder("namespace", "id2", "name2") in testBatcher_contactFingerprintDifferent_Indexed() [all …]
|
D | EnterpriseContactsTest.java | 29 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_AD… 30 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_AD… 31 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_AF… 32 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_CO… 33 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_EX… 34 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_FA… 35 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_GI… 36 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_IM… 37 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_MI… 38 import static com.android.server.appsearch.contactsindexer.appsearchtypes.Person.PERSON_PROPERTY_NA… [all …]
|
D | FakeAppSearchHelper.java | 27 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 41 List<Person> mIndexedContacts = new ArrayList<>(); 42 Map<String, Person> mExistingContacts = new ArrayMap<>(); 54 public void setExistingContacts(@NonNull Collection<Person> contacts) { in setExistingContacts() 55 for (Person contact : contacts) { in setExistingContacts() 61 public CompletableFuture<Void> indexContactsAsync(@NonNull Collection<Person> contacts, in indexContactsAsync() 64 for (Person person : contacts) { in indexContactsAsync()
|
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/transformer/ |
D | PersonEnterpriseTransformerTest.java | 21 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 32 Person person = new Person.Builder("namespace", String.valueOf(contactId), in testTransform_setsImageUriIfItExists() 35 Person transformedPerson = new Person( in testTransform_setsImageUriIfItExists() 44 Person person = new Person.Builder("namespace", "1234", "Test Person").build(); in testTransform_doesNotSetImageUriIfItDoesNotExist() 45 Person transformedPerson = new Person( in testTransform_doesNotSetImageUriIfItDoesNotExist() 59 Person person = new Person.Builder("namespace", "1234", "Test Person").setExternalUri( in testTransform_setsExternalUriIfItExists() 62 Person transformedPerson = new Person( in testTransform_setsExternalUriIfItExists() 71 Person person = new Person.Builder("namespace", "1234", "Test Person").build(); in testTransform_doesNotSetExternalUriIfItDoesNotExist() 72 Person transformedPerson = new Person( in testTransform_doesNotSetExternalUriIfItDoesNotExist()
|
D | EnterpriseSearchSpecTransformerTest.java | 23 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 43 assertThat(transformedSpec.getProjections().get(Person.SCHEMA_TYPE)) in testTransformProjection_whenProjectionNotSuppliedByUser() 50 List<String> clientProjection = Arrays.asList(Person.PERSON_PROPERTY_NAME, in testTransformProjection_whenProjectionSuppliedByUser() 51 Person.PERSON_PROPERTY_IS_IMPORTANT); in testTransformProjection_whenProjectionSuppliedByUser() 53 .addProjection(Person.SCHEMA_TYPE, clientProjection) in testTransformProjection_whenProjectionSuppliedByUser() 59 assertThat(transformedSpec.getProjections().get(Person.SCHEMA_TYPE)) in testTransformProjection_whenProjectionSuppliedByUser() 75 assertThat(transformedSpec.getProjections().get(Person.SCHEMA_TYPE)) in testTransformProjection_doesNotAffectNonEnterpriseSchemaTypes() 86 assertThat(schemaPropertiesMap.get(Person.SCHEMA_TYPE)).containsExactlyElementsIn( in testTransformProperties_addsProjectionWhenNotSuppliedByUser() 94 Arrays.asList(Person.PERSON_PROPERTY_NAME, Person.PERSON_PROPERTY_IS_IMPORTANT)); in testTransformProperties_whenProjectionSuppliedByUser() 95 schemaPropertiesMap.put(Person.SCHEMA_TYPE, properties); in testTransformProperties_whenProjectionSuppliedByUser() [all …]
|
D | EnterpriseSearchResultPageTransformerTest.java | 25 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 38 Person.SCHEMA_TYPE) in testTransformSearchResultPage() 39 .setPropertyString(Person.PERSON_PROPERTY_IMAGE_URI, "person1/imageUri").build(); in testTransformSearchResultPage() 41 Person.SCHEMA_TYPE) in testTransformSearchResultPage() 42 .setPropertyString(Person.PERSON_PROPERTY_IMAGE_URI, "person2/imageUri").build(); in testTransformSearchResultPage() 94 Person.SCHEMA_TYPE) in testTransformSearchResult() 95 .setPropertyString(Person.PERSON_PROPERTY_IMAGE_URI, "person1/imageUri").build(); in testTransformSearchResult() 132 Person.SCHEMA_TYPE) in testTransformDocument_transformsPersonSchemaType() 133 .setPropertyString(Person.PERSON_PROPERTY_IMAGE_URI, "person1/imageUri").build(); in testTransformDocument_transformsPersonSchemaType() 141 .setPropertyString(Person.PERSON_PROPERTY_IMAGE_URI, "person1/imageUri").build(); in testTransformDocument_transformsPersonSchemaType()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/transformer/ |
D | PersonEnterpriseTransformer.java | 35 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 58 Person.PERSON_PROPERTY_NAME, 59 Person.PERSON_PROPERTY_GIVEN_NAME, 60 Person.PERSON_PROPERTY_MIDDLE_NAME, 61 Person.PERSON_PROPERTY_FAMILY_NAME, 62 Person.PERSON_PROPERTY_EXTERNAL_URI, 63 Person.PERSON_PROPERTY_ADDITIONAL_NAME_TYPES, 64 Person.PERSON_PROPERTY_ADDITIONAL_NAMES, 65 Person.PERSON_PROPERTY_IMAGE_URI, 66 Person.PERSON_PROPERTY_CONTACT_POINTS [all …]
|
D | EnterpriseSearchSpecTransformer.java | 24 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 71 return filteredSchemas.isEmpty() || filteredSchemas.contains(Person.SCHEMA_TYPE); in shouldTransformSearchSpecFilters()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | PersonBuilderHelper.java | 29 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 59 private final Person.Builder mBuilder; 63 public PersonBuilderHelper(@NonNull String id, @NonNull Person.Builder builder) { in PersonBuilderHelper() 106 public Person buildPerson() { in buildPerson() 123 Person contactForFingerPrint = mBuilder.build(); in buildPerson() 157 public Person.Builder getPersonBuilder() { in getPersonBuilder() 224 static byte[] generateFingerprintMD5(@NonNull Person person) throws NoSuchAlgorithmException { in generateFingerprintMD5() 234 static String generateFingerprintStringForPerson(@NonNull Person person) { in generateFingerprintStringForPerson()
|
D | AppSearchHelper.java | 44 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 225 .addSchemas(ContactPoint.SCHEMA, Person.getSchema(mContactsIndexerConfig)) in setPersonSchemaAsync() 227 Person.SCHEMA_TYPE, in setPersonSchemaAsync() 235 Person.SCHEMA_TYPE, in setPersonSchemaAsync() 309 @NonNull Collection<Person> contacts, in indexContactsAsync() 560 .addFilterSchemas(Person.SCHEMA_TYPE) 562 Person.SCHEMA_TYPE, 596 Person.SCHEMA_TYPE, 597 Collections.singletonList(Person.PERSON_PROPERTY_FINGERPRINT))
|
D | ContactsIndexerImpl.java | 31 import com.android.server.appsearch.contactsindexer.appsearchtypes.Person; 302 Person.Builder personBuilder; in indexContactsFromCursorAsync() 325 new Person.Builder( in indexContactsFromCursorAsync() 346 personBuilder.addAdditionalName(Person.TYPE_PHONETIC_NAME, phoneticName); in indexContactsFromCursorAsync() 407 private final List<Person> mPendingIndexContacts; 516 List<Person> contactsToBeIndexed = in performDiffAsync() 529 Person.PERSON_PROPERTY_FINGERPRINT) in performDiffAsync() 538 Person person = builderHelper.buildPerson(); in performDiffAsync()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/ |
D | NotificationFragment.java | 25 import androidx.core.app.Person; 286 android.app.Person caller = new android.app.Person.Builder() in initIncomingButton() 344 List<Person> personList = new ArrayList<>(); in initCustomizableMessageButton() 347 personList.add(new Person.Builder() in initCustomizableMessageButton() 367 Person person = personList.get(personNum); in initCustomizableMessageButton() 409 Person person1 = new Person.Builder() in initMessagingStyleButtonForDiffPerson() 413 Person person2 = new Person.Builder() in initMessagingStyleButtonForDiffPerson() 417 Person person3 = new Person.Builder() in initMessagingStyleButtonForDiffPerson() 473 Person user = new Person.Builder() in initMessagingStyleButtonForMessageSameGroup() 483 List<Person> personList = new ArrayList<>(); in initMessagingStyleButtonForMessageSameGroup() [all …]
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/appsearchtypes/ |
D | PersonTest.java | 68 @Person.NameType in testBuilder() 69 List<Long> additionalNameTypes = ImmutableList.of((long) Person.TYPE_NICKNAME, in testBuilder() 70 (long) Person.TYPE_PHONETIC_NAME); in testBuilder() 72 Person person = new Person.Builder(namespace, id, name) in testBuilder()
|
/packages/apps/Launcher3/src/com/android/launcher3/notification/ |
D | NotificationKeyData.java | 20 import android.app.Person; 62 private static String[] extractPersonKeyOnly(@Nullable ArrayList<Person> people) { in extractPersonKeyOnly() 67 .map(Person::getKey).sorted().toArray(String[]::new); in extractPersonKeyOnly()
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/utils/ |
D | MockMessageNotificationBuilder.java | 43 import androidx.core.app.Person; 66 private final Person mSender; 67 private final Person mUser; 100 mSender = (new Person.Builder()).setName(SENDER_NAME).build(); in MockMessageNotificationBuilder() 101 mUser = (new Person.Builder()).setName(USER_NAME).build(); in MockMessageNotificationBuilder()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | WorkspaceItemInfo.java | 19 import android.app.Person; 202 Person[] persons = ApiWrapper.INSTANCE.get(context).getPersons(shortcutInfo); in updateFromDeepShortcutInfo() 204 : Arrays.stream(persons).map(Person::getKey).sorted().toArray(String[]::new); in updateFromDeepShortcutInfo()
|
/packages/services/Telecomm/testapps/transactionalVoipApp/src/com/android/server/telecom/transactionalVoipApp/ |
D | Utils.java | 22 import android.app.Person; 76 new Person.Builder().setName(CALLER_NAME).setImportant(true).build(), in createCallStyleNotification() 101 new Person.Builder().setName(CALLER_NAME).setImportant(true).build(), in updateCallStyleNotification_toOngoingCall()
|
/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | CallStreamingNotification.java | 24 import android.app.Person; 229 Person.Builder personBuilder = new Person.Builder() in showStreamingNotification() 240 Person person = personBuilder.build(); in showStreamingNotification()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/appsearchtypes/ |
D | Person.java | 41 public class Person extends GenericDocument { class 261 public Person(@NonNull GenericDocument document) { in Person() method in Person 477 public Person build() { in build() 492 return new Person(super.build()); in build()
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | MessageNotificationViewHolder.java | 22 import android.app.Person; 193 Person sender = latestMessage.getSenderPerson(); in bindBody() 361 Person sender = message.getSenderPerson(); in getCountViewOnClickListener() 378 Person sender = message.getSenderPerson(); in getCountViewOnClickListener()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ApiWrapper.java | 23 import android.app.Person; 63 public Person[] getPersons(ShortcutInfo si) { in getPersons()
|
/packages/modules/ExtServices/java/tests/src/android/ext/services/notification/ |
D | NotificationEntryTest.java | 34 import android.app.Person; 113 ArrayList<Person> people = new ArrayList<>(); in testHasPerson() 114 people.add(new Person.Builder().setKey("mailto:testing@android.com").build()); in testHasPerson()
|