Home
last modified time | relevance | path

Searched refs:tagEndpoint (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/
DNfcServiceTest.java741 DeviceHost.TagEndpoint tagEndpoint = mock(DeviceHost.TagEndpoint.class); in testMSG_NDEF_TAG() local
742 when(tagEndpoint.getConnectedTechnology()).thenReturn(TagTechnology.NDEF); in testMSG_NDEF_TAG()
744 when(tagEndpoint.findAndReadNdef()).thenReturn(ndefMessage); in testMSG_NDEF_TAG()
745 msg.obj = tagEndpoint; in testMSG_NDEF_TAG()
747 verify(tagEndpoint, atLeastOnce()).startPresenceChecking(anyInt(), any()); in testMSG_NDEF_TAG()
756 DeviceHost.TagEndpoint tagEndpoint = mock(DeviceHost.TagEndpoint.class); in testMsg_Ndef_Tag_Wlc_Enabled() local
757 when(tagEndpoint.getConnectedTechnology()).thenReturn(TagTechnology.NDEF); in testMsg_Ndef_Tag_Wlc_Enabled()
758 when(tagEndpoint.getUid()).thenReturn(NfcService in testMsg_Ndef_Tag_Wlc_Enabled()
760 when(tagEndpoint.getTechList()).thenReturn(new int[]{Ndef.NDEF}); in testMsg_Ndef_Tag_Wlc_Enabled()
761 when(tagEndpoint.getTechExtras()).thenReturn(new Bundle[]{}); in testMsg_Ndef_Tag_Wlc_Enabled()
[all …]
/packages/modules/Nfc/NfcNci/src/com/android/nfc/
DNfcService.java5632 private void dispatchTagEndpoint(TagEndpoint tagEndpoint, ReaderModeParams readerParams) { in dispatchTagEndpoint() argument
5641 Tag tag = new Tag(tagEndpoint.getUid(), tagEndpoint.getTechList(), in dispatchTagEndpoint()
5642 tagEndpoint.getTechExtras(), tagEndpoint.getHandle(), in dispatchTagEndpoint()
5644 registerTagObject(tagEndpoint); in dispatchTagEndpoint()
5679 unregisterObject(tagEndpoint.getHandle()); in dispatchTagEndpoint()
5682 tagEndpoint.stopPresenceChecking(); in dispatchTagEndpoint()