Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 1 | // Signature format: 2.0 |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 2 | package com.android.nfc_extras { |
| 3 | |
| 4 | public class EeAlreadyOpenException extends com.android.nfc_extras.EeIOException { |
| 5 | ctor public EeAlreadyOpenException(); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 6 | ctor public EeAlreadyOpenException(String); |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 7 | } |
| 8 | |
| 9 | public class EeExternalFieldException extends com.android.nfc_extras.EeIOException { |
| 10 | ctor public EeExternalFieldException(); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 11 | ctor public EeExternalFieldException(String); |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | public class EeIOException extends java.io.IOException { |
| 15 | ctor public EeIOException(); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 16 | ctor public EeIOException(String); |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | public class EeInitializationException extends com.android.nfc_extras.EeIOException { |
| 20 | ctor public EeInitializationException(); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 21 | ctor public EeInitializationException(String); |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | public class EeListenModeException extends com.android.nfc_extras.EeIOException { |
| 25 | ctor public EeListenModeException(); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 26 | ctor public EeListenModeException(String); |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | public class EeNfcDisabledException extends com.android.nfc_extras.EeIOException { |
| 30 | ctor public EeNfcDisabledException(); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 31 | ctor public EeNfcDisabledException(String); |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 32 | } |
| 33 | |
| 34 | public final class NfcAdapterExtras { |
| 35 | method public void authenticate(byte[]); |
| 36 | method public static com.android.nfc_extras.NfcAdapterExtras get(android.nfc.NfcAdapter); |
| 37 | method public com.android.nfc_extras.NfcAdapterExtras.CardEmulationRoute getCardEmulationRoute(); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 38 | method public String getDriverName(); |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 39 | method public com.android.nfc_extras.NfcExecutionEnvironment getEmbeddedExecutionEnvironment(); |
| 40 | method public void setCardEmulationRoute(com.android.nfc_extras.NfcAdapterExtras.CardEmulationRoute); |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 41 | field public static final String ACTION_RF_FIELD_OFF_DETECTED = "com.android.nfc_extras.action.RF_FIELD_OFF_DETECTED"; |
| 42 | field public static final String ACTION_RF_FIELD_ON_DETECTED = "com.android.nfc_extras.action.RF_FIELD_ON_DETECTED"; |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | public static final class NfcAdapterExtras.CardEmulationRoute { |
| 46 | ctor public NfcAdapterExtras.CardEmulationRoute(int, com.android.nfc_extras.NfcExecutionEnvironment); |
| 47 | field public static final int ROUTE_OFF = 1; // 0x1 |
| 48 | field public static final int ROUTE_ON_WHEN_SCREEN_ON = 2; // 0x2 |
| 49 | field public final com.android.nfc_extras.NfcExecutionEnvironment nfcEe; |
| 50 | field public final int route; |
| 51 | } |
| 52 | |
| 53 | public class NfcExecutionEnvironment { |
| 54 | method public void close() throws java.io.IOException; |
| 55 | method public void open() throws com.android.nfc_extras.EeIOException; |
| 56 | method public byte[] transceive(byte[]) throws java.io.IOException; |
Tor Norbye | 8752ded | 2018-12-26 19:55:07 -0800 | [diff] [blame] | 57 | field public static final String ACTION_AID_SELECTED = "com.android.nfc_extras.action.AID_SELECTED"; |
Jiyong Park | 2caddc3 | 2018-05-12 22:36:10 +0900 | [diff] [blame] | 58 | } |
| 59 | |
| 60 | } |
| 61 | |