Searched refs:mMockTag (Results 1 – 6 of 6) sorted by relevance
/packages/modules/Nfc/framework/tests/src/android/nfc/tech/ |
D | NfcATest.java | 47 private Tag mMockTag; field in NfcATest 60 when(mMockTag.getTechExtras(TagTechnology.NFC_A)).thenReturn(mMockBundle); in setUp() 62 mNfcA = new NfcA(mMockTag); in setUp() 78 when(mMockTag.hasTech(TagTechnology.NFC_A)).thenReturn(false); in testGetNfcAWithoutTech() 79 assertNull(NfcA.get(mMockTag)); in testGetNfcAWithoutTech() 95 when(mMockTag.getConnectedTechnology()).thenReturn(TagTechnology.NFC_A); in testTransceive() 96 when(mMockTag.getTagService()).thenReturn(mMockTagService); in testTransceive() 97 when(mMockTag.getServiceHandle()).thenReturn(1); in testTransceive() 103 verify(mMockTag).getTagService(); in testTransceive() 104 verify(mMockTag).getServiceHandle(); in testTransceive() [all …]
|
D | NfcFTest.java | 50 private Tag mMockTag; field in NfcFTest 62 when(mMockTag.getTechExtras(TagTechnology.NFC_F)).thenReturn(mMockBundle); in setUp() 64 mNfcF = new NfcF(mMockTag); in setUp() 102 when(mMockTag.getConnectedTechnology()).thenReturn(TagTechnology.NFC_F); in testTransceive() 103 when(mMockTag.getTagService()).thenReturn(mMockTagService); in testTransceive() 104 when(mMockTag.getServiceHandle()).thenReturn(1); in testTransceive() 110 verify(mMockTag).getTagService(); in testTransceive() 111 verify(mMockTag).getServiceHandle(); in testTransceive() 116 when(mMockTag.getTagService()).thenReturn(mMockTagService); in testGetMaxTransceiveLength() 120 verify(mMockTag).getTagService(); in testGetMaxTransceiveLength() [all …]
|
D | NfcBarcodeTest.java | 42 private Tag mMockTag; field in NfcBarcodeTest 51 when(mMockTag.getTechExtras(TagTechnology.NFC_BARCODE)).thenReturn(mMockBundle); in setUp() 53 mNfcBarcode = new NfcBarcode(mMockTag); in setUp() 80 when(mMockTag.hasTech(TagTechnology.NFC_BARCODE)).thenReturn(false); in testGetNfcBarcodeWithoutTech() 82 assertNull(NfcBarcode.get(mMockTag)); in testGetNfcBarcodeWithoutTech() 94 when(mMockTag.getId()).thenReturn(sampleId); in testGetBarcodeWithTypeKovio() 97 verify(mMockTag).getId(); in testGetBarcodeWithTypeKovio() 103 when(mMockTag.getTechExtras(TagTechnology.NFC_BARCODE)).thenReturn(mMockBundle); in testGetBarCodeTypeUnknown() 104 mNfcBarcode = new NfcBarcode(mMockTag); in testGetBarCodeTypeUnknown() 107 verify(mMockTag, never()).getId(); in testGetBarCodeTypeUnknown()
|
D | NfcBTest.java | 46 private Tag mMockTag; field in NfcBTest 58 when(mMockTag.getTechExtras(TagTechnology.NFC_B)).thenReturn(mMockBundle); in setUp() 60 mNfcB = new NfcB(mMockTag); in setUp() 99 when(mMockTag.getConnectedTechnology()).thenReturn(TagTechnology.NFC_B); in testTransceive() 100 when(mMockTag.getTagService()).thenReturn(mMockTagService); in testTransceive() 101 when(mMockTag.getServiceHandle()).thenReturn(1); in testTransceive() 107 verify(mMockTag).getTagService(); in testTransceive() 108 verify(mMockTag).getServiceHandle(); in testTransceive() 113 when(mMockTag.getTagService()).thenReturn(mMockTagService); in testGetMaxTransceiveLength() 117 verify(mMockTag).getTagService(); in testGetMaxTransceiveLength()
|
D | NfcVTest.java | 47 private Tag mMockTag; field in NfcVTest 59 when(mMockTag.getTechExtras(TagTechnology.NFC_V)).thenReturn(mMockBundle); in setUp() 61 mNfcV = new NfcV(mMockTag); in setUp() 99 when(mMockTag.getConnectedTechnology()).thenReturn(TagTechnology.NFC_V); in testTransceive() 100 when(mMockTag.getTagService()).thenReturn(mMockTagService); in testTransceive() 101 when(mMockTag.getServiceHandle()).thenReturn(1); in testTransceive() 107 verify(mMockTag).getTagService(); in testTransceive() 108 verify(mMockTag).getServiceHandle(); in testTransceive() 113 when(mMockTag.getTagService()).thenReturn(mMockTagService); in testGetMaxTransceiveLength() 117 verify(mMockTag).getTagService(); in testGetMaxTransceiveLength()
|
/packages/modules/Nfc/framework/tests/src/android/nfc/ |
D | OemLogItemsTest.java | 42 private Tag mMockTag; field in OemLogItemsTest 105 mMockTag = mock(Tag.class); in testConstructorInitialization() 107 mCommandApdus, mResponseApdus, mRfFieldOnTime, mMockTag); in testConstructorInitialization() 115 assertEquals(mMockTag, oemLogItems.getTag()); in testConstructorInitialization() 120 mMockTag = mock(Tag.class); in testParcelableImplementation() 122 mCommandApdus, mResponseApdus, mRfFieldOnTime, mMockTag); in testParcelableImplementation() 149 mMockTag = mock(Tag.class); in testParcelableWithNullRfFieldOnTime() 151 mCommandApdus, mResponseApdus, null, mMockTag); in testParcelableWithNullRfFieldOnTime() 169 mMockTag = mock(Tag.class); in testToString() 171 mCommandApdus, mResponseApdus, mRfFieldOnTime, mMockTag); in testToString() [all …]
|