Home
last modified time | relevance | path

Searched refs:contactElement (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapConvoContactElementTest.java63 BluetoothMapConvoContactElement contactElement = in constructorWithArguments() local
75 assertThat(contactElement.getContactId()).isEqualTo(TEST_UCI); in constructorWithArguments()
76 assertThat(contactElement.getName()).isEqualTo(TEST_NAME); in constructorWithArguments()
77 assertThat(contactElement.getDisplayName()).isEqualTo(TEST_DISPLAY_NAME); in constructorWithArguments()
78 assertThat(contactElement.getPresenceStatus()).isEqualTo(TEST_PRESENCE_STATUS); in constructorWithArguments()
79 assertThat(contactElement.getPresenceAvailability()).isEqualTo(TEST_PRESENCE_AVAILABILITY); in constructorWithArguments()
80 assertThat(contactElement.getLastActivityString()) in constructorWithArguments()
82 assertThat(contactElement.getChatState()).isEqualTo(TEST_CHAT_STATE); in constructorWithArguments()
83 assertThat(contactElement.getPriority()).isEqualTo(TEST_PRIORITY); in constructorWithArguments()
84 assertThat(contactElement.getBtUid()).isEqualTo(TEST_BT_UID); in constructorWithArguments()
[all …]
DBluetoothMapContentObserverTest.java1062 BluetoothMapConvoContactElement contactElement = mObserver.getContactList().get(TEST_UCI); in initContactsList() local
1065 Assert.assertEquals(contactElement.getContactId(), TEST_UCI); in initContactsList()
1066 Assert.assertEquals(contactElement.getName(), TEST_NAME); in initContactsList()
1067 Assert.assertEquals(contactElement.getDisplayName(), TEST_DISPLAY_NAME); in initContactsList()
1068 Assert.assertEquals(contactElement.getBtUid(), TEST_BT_UID); in initContactsList()
1069 Assert.assertEquals(contactElement.getChatState(), TEST_CHAT_STATE); in initContactsList()
1070 Assert.assertEquals(contactElement.getPresenceStatus(), TEST_STATUS_TEXT); in initContactsList()
1071 Assert.assertEquals(contactElement.getPresenceAvailability(), TEST_PRESENCE_STATE); in initContactsList()
1073 contactElement.getLastActivityString(), format.format(TEST_LAST_ACTIVITY)); in initContactsList()
1074 Assert.assertEquals(contactElement.getPriority(), TEST_PRIORITY); in initContactsList()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/
DBluetoothMapContent.java3441 BluetoothMapConvoContactElement contactElement; in addSmsMmsContacts() local
3507 contactElement = new BluetoothMapConvoContactElement(); in addSmsMmsContacts()
3509 contactElement.setName(addr); // Use the phone number as name in addSmsMmsContacts()
3512 contactElement.setContactId(addr); in addSmsMmsContacts()
3515 contactElement = in addSmsMmsContacts()
3519 contactElement.setContactId(null); in addSmsMmsContacts()
3522 contactElement.setBtUid(null); in addSmsMmsContacts()
3525 contactElement.setDisplayName(null); in addSmsMmsContacts()
3528 convoElement.addContact(contactElement); in addSmsMmsContacts()