| /packages/modules/Nfc/framework/tests/src/android/nfc/ |
| D | ErrorCodesTest.java | 28 assertFalse(ErrorCodes.isError(ErrorCodes.SUCCESS)); in testIsErrorForValidCode() 33 assertTrue(ErrorCodes.isError(ErrorCodes.ERROR_CANCELLED)); in testIsErrorForErrorCode() 34 assertTrue(ErrorCodes.isError(ErrorCodes.ERROR_TIMEOUT)); in testIsErrorForErrorCode() 39 assertEquals("SUCCESS", ErrorCodes.asString(ErrorCodes.SUCCESS)); in testAsStringValidCode() 40 assertEquals("IO", ErrorCodes.asString(ErrorCodes.ERROR_IO)); in testAsStringValidCode() 41 assertEquals("CANCELLED", ErrorCodes.asString(ErrorCodes.ERROR_CANCELLED)); in testAsStringValidCode() 42 assertEquals("TIMEOUT", ErrorCodes.asString(ErrorCodes.ERROR_TIMEOUT)); in testAsStringValidCode() 43 assertEquals("BUSY", ErrorCodes.asString(ErrorCodes.ERROR_BUSY)); in testAsStringValidCode() 44 assertEquals("CONNECT/DISCONNECT", ErrorCodes.asString(ErrorCodes.ERROR_CONNECT)); in testAsStringValidCode() 45 assertEquals("READ", ErrorCodes.asString(ErrorCodes.ERROR_READ)); in testAsStringValidCode() [all …]
|
| /packages/modules/Nfc/tests/cts/tests/src/android/nfc/tech/cts/ |
| D | NdefFormatableTest.java | 28 import android.nfc.ErrorCodes; 85 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormat() 87 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormat() 98 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly() 100 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly() 101 when(mNfcTagMock.ndefMakeReadOnly(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly() 112 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.ERROR_IO); in testFormatReadOnly_formatNdefIOError() 120 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testFormatReadOnly_formatNdefFormatError() 136 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly_notNdef() 145 when(mNfcTagMock.formatNdef(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testFormatReadOnly_ndefWriteIOError() [all …]
|
| D | NdefTest.java | 28 import android.nfc.ErrorCodes; 199 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.SUCCESS); in testWriteNdefMessage() 226 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.ERROR_IO); in testWriteNdefMessage_ioError() 235 when(mNfcTagMock.ndefWrite(anyInt(), any())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testWriteNdefMessage_formatError() 276 when(mNfcTagMock.ndefMakeReadOnly(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testMakeReadOnly() 309 when(mNfcTagMock.ndefMakeReadOnly(anyInt())).thenReturn(ErrorCodes.ERROR_IO); in testMakeReadOnly_ioError() 318 when(mNfcTagMock.ndefMakeReadOnly(anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testMakeReadOnly_formatError() 374 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 390 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 406 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() [all …]
|
| D | NfcATest.java | 29 import android.nfc.ErrorCodes; 121 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout() 134 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout() 195 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 211 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 227 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 238 when(mNfcTagMock.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedNfcA()
|
| D | NfcFTest.java | 29 import android.nfc.ErrorCodes; 120 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout() 133 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout() 194 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 210 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 226 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 237 when(mNfcTagMock.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedNfcF()
|
| D | IsoDepTest.java | 27 import android.nfc.ErrorCodes; 102 when(mINfcTag.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect_success() 116 when(mINfcTag.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_IO); in testReconnect_error() 130 when(mINfcTag.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 138 when(mINfcTag.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout_success() 148 when(mINfcTag.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalid() 206 when(mINfcTag.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedIsoDepInstance()
|
| D | MifareUltralightTest.java | 29 import android.nfc.ErrorCodes; 168 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout() 182 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout() 245 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 261 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 277 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 288 when(mNfcTagMock.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedMifareUltralight()
|
| D | NfcBarcodeTest.java | 27 import android.nfc.ErrorCodes; 142 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 158 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 174 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 185 when(mNfcTagMock.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedNfcBarcode()
|
| D | NfcBTest.java | 29 import android.nfc.ErrorCodes; 159 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 175 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 191 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 203 when(mNfcTagMock.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedNfcB()
|
| D | NfcVTest.java | 29 import android.nfc.ErrorCodes; 158 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 174 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 190 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 201 when(mNfcTagMock.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedNfcV()
|
| D | MifareClassicTest.java | 29 import android.nfc.ErrorCodes; 431 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in testSetTimeout() 444 when(mNfcTagMock.setTimeout(anyInt(), anyInt())).thenReturn(ErrorCodes.ERROR_INVALID_PARAM); in testSetTimeout_invalidTimeout() 505 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testReconnect() 521 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.ERROR_CONNECT); in testReconnect_failReconnect() 537 when(mNfcTagMock.reconnect(anyInt())).thenReturn(ErrorCodes.SUCCESS); in testClose() 548 when(mNfcTagMock.connect(anyInt(), anyInt())).thenReturn(ErrorCodes.SUCCESS); in createConnectedMifareClassic()
|
| /packages/modules/Nfc/framework/java/android/nfc/tech/ |
| D | NdefFormatable.java | 19 import android.nfc.ErrorCodes; 132 case ErrorCodes.SUCCESS: in format() 134 case ErrorCodes.ERROR_IO: in format() 136 case ErrorCodes.ERROR_INVALID_PARAM: in format() 151 case ErrorCodes.SUCCESS: in format() 153 case ErrorCodes.ERROR_IO: in format() 155 case ErrorCodes.ERROR_INVALID_PARAM: in format() 167 case ErrorCodes.SUCCESS: in format() 169 case ErrorCodes.ERROR_IO: in format() 171 case ErrorCodes.ERROR_INVALID_PARAM: in format()
|
| D | Ndef.java | 19 import android.nfc.ErrorCodes; 319 case ErrorCodes.SUCCESS: in writeNdefMessage() 321 case ErrorCodes.ERROR_IO: in writeNdefMessage() 323 case ErrorCodes.ERROR_INVALID_PARAM: in writeNdefMessage() 389 case ErrorCodes.SUCCESS: in makeReadOnly() 391 case ErrorCodes.ERROR_IO: in makeReadOnly() 393 case ErrorCodes.ERROR_INVALID_PARAM: in makeReadOnly()
|
| D | BasicTagTechnology.java | 19 import android.nfc.ErrorCodes; 76 if (errorCode == ErrorCodes.SUCCESS) { in connect() 83 } else if (errorCode == ErrorCodes.ERROR_NOT_SUPPORTED) { in connect() 106 if (errorCode != ErrorCodes.SUCCESS) { in reconnect()
|
| D | NfcA.java | 19 import android.nfc.ErrorCodes; 149 if (err != ErrorCodes.SUCCESS) { in setTimeout()
|
| D | NfcF.java | 19 import android.nfc.ErrorCodes; 153 if (err != ErrorCodes.SUCCESS) { in setTimeout()
|
| D | IsoDep.java | 19 import android.nfc.ErrorCodes; 96 if (err != ErrorCodes.SUCCESS) { in setTimeout()
|
| D | MifareUltralight.java | 19 import android.nfc.ErrorCodes; 245 if (err != ErrorCodes.SUCCESS) { in setTimeout()
|
| D | MifareClassic.java | 19 import android.nfc.ErrorCodes; 605 if (err != ErrorCodes.SUCCESS) { in setTimeout()
|
| /packages/modules/Nfc/apex/hiddenapi/ |
| D | hiddenapi-max-target-o.txt | 100 Landroid/nfc/ErrorCodes;-><init>()V 101 Landroid/nfc/ErrorCodes;->asString(I)Ljava/lang/String; 102 Landroid/nfc/ErrorCodes;->ERROR_BUFFER_TO_SMALL:I 103 Landroid/nfc/ErrorCodes;->ERROR_BUSY:I 104 Landroid/nfc/ErrorCodes;->ERROR_CANCELLED:I 105 Landroid/nfc/ErrorCodes;->ERROR_CONNECT:I 106 Landroid/nfc/ErrorCodes;->ERROR_DISCONNECT:I 107 Landroid/nfc/ErrorCodes;->ERROR_INSUFFICIENT_RESOURCES:I 108 Landroid/nfc/ErrorCodes;->ERROR_INVALID_PARAM:I 109 Landroid/nfc/ErrorCodes;->ERROR_IO:I [all …]
|
| /packages/modules/Nfc/framework/tests/src/android/nfc/tech/ |
| D | NfcATest.java | 31 import android.nfc.ErrorCodes; 121 ErrorCodes.SUCCESS); in testSetTimeout() 136 ErrorCodes.ERROR_TIMEOUT); in testSetTimeoutInvalidTimeout()
|
| D | NfcFTest.java | 32 import android.nfc.ErrorCodes; 154 ErrorCodes.SUCCESS); in testSetTimeout() 169 ErrorCodes.ERROR_TIMEOUT); in testSetTimeoutInvalidTimeout()
|
| /packages/modules/Nfc/NfcNci/src/com/android/nfc/ |
| D | NfcService.java | 59 import android.nfc.ErrorCodes; 3693 return ErrorCodes.ERROR_NOT_INITIALIZED; in connect() 3697 return ErrorCodes.ERROR_NOT_INITIALIZED; in connect() 3701 return ErrorCodes.ERROR_NOT_INITIALIZED; in connect() 3707 return ErrorCodes.ERROR_DISCONNECT; in connect() 3711 return ErrorCodes.ERROR_DISCONNECT; in connect() 3718 return ErrorCodes.SUCCESS; in connect() 3720 return ErrorCodes.ERROR_DISCONNECT; in connect() 3732 return ErrorCodes.ERROR_NOT_INITIALIZED; in reconnect() 3736 return ErrorCodes.ERROR_NOT_INITIALIZED; in reconnect() [all …]
|
| /packages/modules/Nfc/framework/java/android/nfc/ |
| D | ErrorCodes.java | 28 public class ErrorCodes { class
|
| /packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/ |
| D | NfcServiceTest.java | 74 import android.nfc.ErrorCodes; 1744 assertThat(resultCode).isEqualTo(ErrorCodes.SUCCESS); in testConnect() 1757 assertThat(resultCode).isEqualTo(ErrorCodes.SUCCESS); in testReConnect() 1769 assertThat(resultCode).isEqualTo(ErrorCodes.SUCCESS); in testFormatNdef() 1862 assertThat(result).isEqualTo(ErrorCodes.SUCCESS); in testNdefMakeReadOnly() 1891 assertThat(result).isEqualTo(ErrorCodes.SUCCESS); in testNdefWrite() 1907 assertThat(result).isEqualTo(ErrorCodes.SUCCESS); in testSetTimeout()
|