Home
last modified time | relevance | path

Searched refs:Person (Results 1 – 25 of 57) sorted by relevance

123

/frameworks/base/core/java/android/app/
DPerson.java32 public final class Person implements Parcelable { class
41 private Person(Parcel in) { in Person() method in Person
52 private Person(Builder builder) { in Person() method in Person
142 if (obj instanceof Person) { in equals()
143 final Person other = (Person) obj; in equals()
193 private Builder(Person person) { in Builder()
208 public Person.Builder setName(@Nullable CharSequence name) { in setName()
221 public Person.Builder setIcon(@Nullable Icon icon) { in setIcon()
243 public Person.Builder setUri(@Nullable String uri) { in setUri()
259 public Person.Builder setKey(@Nullable String key) { in setKey()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DConversationActions.java24 import android.app.Person;
111 public static final Person PERSON_USER_SELF =
112 new Person.Builder()
126 public static final Person PERSON_USER_OTHERS =
127 new Person.Builder()
132 private final Person mAuthor;
141 @Nullable Person author, in Message()
193 public Person getAuthor() { in getAuthor()
225 private Person mAuthor;
241 public Builder(@NonNull Person author) { in Builder()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationTest.java31 import android.app.Person;
163 "a", 100, mock(Person.class)))); in testMessagingChange_text()
167 "a", 100, mock(Person.class))) in testMessagingChange_text()
169 "b", 100, mock(Person.class))) in testMessagingChange_text()
180 "a", 100, mock(Person.class)) in testMessagingChange_data()
185 "a", 100, mock(Person.class)))); in testMessagingChange_data()
192 Person a = mock(Person.class); in testMessagingChange_sender()
194 Person b = mock(Person.class); in testMessagingChange_sender()
208 Person a = mock(Person.class); in testMessagingChange_key()
210 Person b = mock(Person.class); in testMessagingChange_key()
[all …]
DShortcutHelperTest.java30 import android.app.Person;
68 private static final Person PERSON = mock(Person.class);
312 when(si.getPersons()).thenReturn(new Person[]{PERSON}); in testGetValidShortcutInfo_isValid()
333 when(si.getPersons()).thenReturn(new Person[]{PERSON}); in testGetValidShortcutInfo_isValidButUserLocked()
DValidateNotificationPeopleTest.java28 import android.app.Person;
176 final ArrayList<Person> arrayList = in testPeopleArrayList()
178 arrayList.add(new Person.Builder().setName("test").build()); in testPeopleArrayList()
179 arrayList.add(new Person.Builder().setUri(expected[1]).build()); in testPeopleArrayList()
DNotificationRecordTest.java51 import android.app.Person;
237 Person person = new Person.Builder().setName("Bob").build(); in getMessagingStyleNotification()
1176 when(shortcutMock.getPersons()).thenReturn(new Person[]{ in testIsConversation_shortcutHasOneBot_targetsR()
1177 new Person.Builder().setName("Bot").setBot(true).build() in testIsConversation_shortcutHasOneBot_targetsR()
1189 when(shortcutMock.getPersons()).thenReturn(new Person[]{ in testIsConversation_shortcutHasOnePerson_targetsR()
1190 new Person.Builder().setName("Person").setBot(false).build() in testIsConversation_shortcutHasOnePerson_targetsR()
1203 when(shortcutMock.getPersons()).thenReturn(new Person[]{ in testIsConversation_shortcutHasOneBotOnePerson_targetsR()
1204 new Person.Builder().setName("Bot").setBot(true).build(), in testIsConversation_shortcutHasOneBotOnePerson_targetsR()
1205 new Person.Builder().setName("Person").setBot(false).build() in testIsConversation_shortcutHasOneBotOnePerson_targetsR()
DBubbleExtractorTest.java44 import android.app.Person;
115 Person person = new Person.Builder() in getNotificationRecord()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DAppSearchShortcutInfoTest.java21 import android.app.Person;
39 final Person person = new Person.Builder() in testBuildShortcutAndGetValue()
DAppSearchPersonTest.java21 import android.app.Person;
33 final Person person = new AppSearchPerson.Builder(uri) in testBuildPersonAndGetValue()
/frameworks/base/core/java/android/content/pm/
DAppSearchPerson.java21 import android.app.Person;
74 public static AppSearchPerson instance(@NonNull final Person person) { in instance()
90 public Person toPerson() { in toPerson()
99 return new Person.Builder().setName(getPropertyString(KEY_NAME)) in toPerson()
DAppSearchShortcutInfo.java22 import android.app.Person;
408 final Person[] persons = parsePerson(getPropertyDocumentArray(KEY_PERSON)); in toShortcutInfo()
633 public Builder setPerson(@Nullable final Person person) { in setPerson()
637 return setPersons(new Person[]{person}); in setPerson()
644 public Builder setPersons(@Nullable final Person[] persons) { in setPersons()
650 final Person person = persons[i]; in setPersons()
924 private static Person[] parsePerson(@Nullable final GenericDocument[] persons) { in parsePerson()
925 if (persons == null) return new Person[0]; in parsePerson()
926 final Person[] ret = new Person[persons.length]; in parsePerson()
DShortcutInfo.java25 import android.app.Person;
408 private Person[] mPersons;
547 private static Person[] clonePersons(Person[] persons) { in clonePersons()
551 final Person[] ret = new Person[persons.length]; in clonePersons()
1016 private Person[] mPersons;
1329 public Builder setPerson(@NonNull Person person) { in setPerson()
1330 return setPersons(new Person[]{person}); in setPerson()
1340 public Builder setPersons(@NonNull Person[] persons) { in setPersons()
1343 for (Person person : persons) { in setPersons()
1636 public Person[] getPersons() { in getPersons()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DCallLayout.java24 import android.app.Person;
46 private Person mUser;
132 private void setUser(Person user) { in setUser()
DMessagingLayout.java27 import android.app.Person;
87 private Person mUser;
192 historyMessage.getText(), 0, (Person) null, true /* remoteHistory */); in addRemoteInputHistoryToMessages()
382 public void setUser(Person user) { in setUser()
396 List<Person> senders = new ArrayList<>(); in addMessagesToGroups()
406 List<Person> senders, boolean showSpinner) { in createGroupViews()
429 Person sender = senders.get(groupIndex); in createGroupViews()
450 List<Person> senders) { in findGroups()
462 Person sender = message.getMessage().getSenderPerson(); in findGroups()
DConversationLayout.java31 import android.app.Person;
102 private Person mUser;
430 historyMessage.getText(), 0, (Person) null, true /* remoteHistory */); in addRemoteInputHistoryToMessages()
452 List<Person> senders = new ArrayList<>(); in bind()
489 Person messageSender = messagingGroup.getSender(); in updateConversationLayout()
577 Person messageSender = messagingGroup.getSender(); in bindFacePile()
846 private void setUser(Person user) { in setUser()
857 List<Person> senders, boolean showSpinner) { in createGroupViews()
881 Person sender = senders.get(groupIndex); in createGroupViews()
903 List<Person> senders) { in findGroups()
[all …]
DMessagingGroup.java24 import android.app.Person;
94 private Person mSender;
197 public void setSender(Person sender, CharSequence nameOverride) { in setSender()
652 public Person getSender() { in getSender()
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/
DNotificationHelper.java25 import android.app.Person;
167 ArrayList<Person> people = sbn.getNotification().extras.getParcelableArrayList( in getContactUri()
181 Person sender = message.getSenderPerson(); in getContactUri()
231 Person person = message.getSenderPerson(); in getSenderIfGroupConversation()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DHeadsUpManagerTest.java31 import android.app.Person;
124 Person person = new Person.Builder().setName("person").build(); in testAlertEntryCompareTo_incomingCallLessThanActiveRemoteInput()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DNotificationHelperTest.java33 import android.app.Person;
65 private static final Person PERSON = new Person.Builder()
245 NOTIFICATION_TEXT_3, 10, new Person.Builder().build()); in testGetSenderIfGroupConversation_groupNoName()
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java29 import android.app.Person;
171 .addPerson(new Person.Builder().build()); in testLogMakerWithPerson()
180 .setStyle(new Notification.MessagingStyle(new Person.Builder().build())); in testLogMakerWithStyle()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryTest.java38 import android.app.Person;
202 Person.Builder person = new Person.Builder() in notificationDataEntry_testIsLastMessageFromReply()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/icon/
DIconManagerTest.kt23 import android.app.Person
183 Person.Builder().setIcon(messageIc).build() in notificationEntry()
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java21 import android.app.Person;
342 if (arrayList.get(0) instanceof Person) { in getExtraPeopleForKey()
343 ArrayList<Person> list = (ArrayList<Person>) arrayList; in getExtraPeopleForKey()
DNotificationRecordLogger.java27 import android.app.Person;
378 ArrayList<Person> people = extras.getParcelableArrayList( in getNumPeople()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/
DIconManager.kt20 import android.app.Person in <lambda>()
263 val user = extras.getParcelable<Person>(Notification.EXTRA_MESSAGING_PERSON) in <lambda>()

123