HomeSort by relevance Sort by last modified time
    Searched full:ndef (Results 1 - 25 of 324) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/
NdefTagTester.java 26 import android.nfc.tech.Ndef;
34 * {@link TagTester} for NDEF tags. It writes a semi-random NDEF tag with a random id but
43 private static final String PAYLOAD = "CTS Verifier NDEF Tag";
55 if (tech.equals(Ndef.class.getName())) {
56 Ndef ndef = Ndef.get(tag); local
57 return ndef != null && ndef.isWritable()
    [all...]
  /frameworks/base/core/java/android/nfc/
NdefMessage.java 27 * Represents an immutable NDEF Message.
29 * NDEF (NFC Data Exchange Format) is a light-weight binary format,
33 * NDEF defines messages and records. An NDEF Record contains
35 * application payload. An NDEF Message is a container for
36 * one or more NDEF Records.
38 * When an Android device receives an NDEF Message
45 * Use {@link #NdefMessage(byte[])} to construct an NDEF Message from
65 * Construct an NDEF Message by parsing raw bytes.<p>
66 * Strict validation of the NDEF binary structure is performed
    [all...]
  /external/wpa_supplicant_8/wpa_supplicant/
nfc_pw_token.c 41 struct wpabuf *buf = NULL, *ndef = NULL; local
57 ndef = ndef_build_wifi(buf);
58 if (ndef == NULL)
65 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(ndef),
66 wpabuf_len(ndef));
67 printf("#NDEF=%s\n", txt);
76 wpabuf_free(ndef);
  /frameworks/base/core/java/android/nfc/tech/
Ndef.java 32 * Provides access to NDEF content and operations on a {@link Tag}.
34 * <p>Acquire a {@link Ndef} object using {@link #get}.
36 * <p>NDEF is an NFC Forum data format. The data formats are implemented in
43 * formatted to contain NDEF data.
51 * {@link Ndef} on NFC Forum Tag Types 1-4, and implement all NDEF operations
54 * <p>Some vendors have their own well defined specifications for storing NDEF data
56 * should enumerate and implement {@link Ndef} under these vendor specifications
59 * <code>com.nxp.ndef.mifareclassic</code>.
62 * implement {@link Ndef} on MIFARE Classic tags formatted to NDEF
    [all...]
NdefFormatable.java 31 * Provide access to NDEF format operations on a {@link Tag}.
36 * class for tags for which it can format to NDEF.
38 * <p>Unfortunately the procedures to convert unformated tags to NDEF formatted
53 * This indicates the tag is not NDEF formatable by this Android device.
55 * @param tag an NDEF formatable tag
56 * @return NDEF formatable object
76 * Format a tag as NDEF, and write a {@link NdefMessage}.
88 * @param firstMessage the NDEF message to write after formatting, can be null
91 * @throws FormatException if the NDEF Message to write is malformed
98 * Formats a tag as NDEF, write a {@link NdefMessage}, and make read-only
    [all...]
  /external/libnfc-nci/src/nfc/int/
ce_int.h 44 /* Type 3 Tag NDEF card-emulation */
50 UINT16 nmaxb; /* Nmaxb: maximum number of blocks available for NDEF data */
52 UINT8 rwflag; /* RWFlag: 00h NDEF is read-only; 01h if read/write available */
56 /* Scratch NDEF buffer (for update NDEF commands) */
94 UINT8 *p_ndef_msg; /* storage of NDEF message */
95 UINT16 nlen; /* current size of NDEF message */
97 UINT8 *p_scratch_buf; /* temp storage of NDEF message for update */
102 #define CE_T4T_STATUS_NDEF_SELECTED 0x08 /* NDEF file is selected */
103 #define CE_T4T_STATUS_NDEF_FILE_READ_ONLY 0x10 /* NDEF is read-only *
    [all...]
rw_int.h 50 #define RW_T1_TAG_ATTRB_INITIALIZED_NDEF 0x02 /* TAG is in INITIALIZED state and has NDEF tlv with len=0 */
65 #define RW_T1T_STATE_READ_NDEF 0x05 /* performing read NDEF procedure */
66 #define RW_T1T_STATE_WRITE_NDEF 0x06 /* performing update NDEF procedure */
84 #define RW_T1T_SUBSTATE_WAIT_INVALIDATE_NDEF 0x08 /* waiting for response of invalidating NDEF Msg */
85 #define RW_T1T_SUBSTATE_WAIT_NDEF_WRITE 0x09 /* waiting for response of writing a part of NDEF Msg */
86 #define RW_T1T_SUBSTATE_WAIT_NDEF_UPDATED 0x0A /* waiting for response of writing last part of NDEF Msg */
87 #define RW_T1T_SUBSTATE_WAIT_VALIDATE_NDEF 0x0B /* waiting for response of validating NDEF Msg */
96 #define RW_T1T_SUBSTATE_WAIT_SET_NULL_NDEF 0x10 /* waiting for response to format/set NULL NDEF */
154 UINT8 ndef_first_block[T1T_BLOCK_SIZE]; /* Buffer for ndef first block */
155 UINT8 ndef_final_block[T1T_BLOCK_SIZE]; /* Buffer for ndef last block *
    [all...]
  /external/libnfc-nci/src/nfa/dm/
nfa_dm_ndef.c 22 * Handle ndef messages
80 ** Description Deregister NDEF record type handler
102 ** Description Deregister all NDEF record type handlers (called during
129 ** Description Register NDEF record type handler
147 NFA_TRACE_WARNING0 ("Default NDEF handler being changed.");
152 NFA_TRACE_DEBUG0 ("Default NDEF handler successfully registered.");
182 NFA_TRACE_DEBUG1 ("NDEF handler successfully registered. Handle=0x%08x", p_reg_info->ndef_type_handle);
190 NFA_TRACE_ERROR0 ("NDEF handler failed to register.");
203 ** Description Deregister NDEF record type handler
216 NFA_TRACE_ERROR1 ("Invalid handle for NDEF type handler: 0x%08x", p_dereginfo->ndef_type_handle)
    [all...]
  /external/libnfc-nci/src/nfc/include/
ndef_utils.h 23 * and build NFC Data Exchange Format (NDEF) messages
39 /* NDEF Type Name Format */
90 /* Functions to parse a received NDEF Message
96 ** Description This function validates an NDEF message.
107 ** Description This function gets the number of records in the given NDEF
120 ** NDEF message.
144 ** index (0-based index) in the given NDEF message.
156 ** given NDEF message.
168 ** record type in the given NDEF message.
180 ** record type in the given NDEF message
    [all...]
rw_api.h 54 RW_T1T_NDEF_DETECT_EVT, /* NDEF detection complete */
55 RW_T1T_NDEF_READ_EVT, /* NDEF read completed */
56 RW_T1T_NDEF_WRITE_EVT, /* NDEF write complete */
68 RW_T2T_NDEF_DETECT_EVT, /* NDEF detection complete */
70 RW_T2T_NDEF_READ_EVT, /* NDEF read completed */
71 RW_T2T_NDEF_WRITE_EVT, /* NDEF write complete */
84 RW_T3T_NDEF_DETECT_EVT, /* NDEF detection complete */
94 RW_T4T_NDEF_DETECT_EVT = RW_T4T_FIRST_EVT, /* Result of NDEF detection procedure */
95 /* Mandatory NDEF file is selected */
108 RW_I93_NDEF_DETECT_EVT = RW_I93_FIRST_EVT, /* Result of NDEF detection procedure *
251 tRW_DETECT_NDEF_DATA ndef; \/* The information of detected NDEF data *\/ member in union:__anon13126
    [all...]
ce_api.h 96 ** Description Initialise CE Type 3 Tag with mandatory NDEF message
111 ** Description Sets T3T-specific NDEF parameters. (Optional - if not
145 ** Description Initialise CE Type 4 Tag with mandatory NDEF message
154 ** ndef_msg_max: Max NDEF message size
155 ** ndef_msg_len: NDEF message size
156 ** p_ndef_msg: NDEF message (excluding NLEN)
218 ** Description Set fields in NDEF File Control TLV for testing
  /external/libnfc-nci/src/nfa/int/
nfa_rw_int.h 264 /* NDEF detection status */
267 NFA_RW_NDEF_ST_UNKNOWN =0, /* NDEF detection not performed yet */
268 NFA_RW_NDEF_ST_TRUE, /* Tag is NDEF */
269 NFA_RW_NDEF_ST_FALSE /* Tag is not NDEF */
280 #define NFA_RW_FL_NDEF_OK 0x40 /* NDEF DETECTed OK */
303 /* NDEF info */
304 tNFA_RW_NDEF_ST ndef_st; /* NDEF detection status */
305 UINT32 ndef_max_size; /* max number of bytes available for NDEF data */
306 UINT32 ndef_cur_size; /* current size of stored NDEF data (in bytes) */
308 UINT32 ndef_rd_offset; /* current read-offset of incoming NDEF data *
    [all...]
nfa_cho_int.h 64 #define NFA_CHO_RX_NDEF_COMPLETE 0 /* received complete NDEF message */
68 #define NFA_CHO_RX_NDEF_INVALID 4 /* Invalid NDEF message */
108 NFA_CHO_NDEF_TYPE_HANDLER_EVT, /* Callback event from NDEF Type handler */
212 tNFA_HANDLE hs_ndef_type_handle; /* handle for HS NDEF Type handler */
213 tNFA_HANDLE bt_ndef_type_handle; /* handle for BT OOB NDEF Type handler */
214 tNFA_HANDLE wifi_ndef_type_handle; /* handle for WiFi NDEF Type handler */
227 UINT8 *p_tx_ndef_msg; /* allocate buffer for tx NDEF msg */
228 UINT32 tx_ndef_cur_size; /* current size of NDEF message */
229 UINT32 tx_ndef_sent_size; /* transmitted size of NDEF message */
231 UINT8 *p_rx_ndef_msg; /* allocate buffer for rx NDEF msg *
    [all...]
  /external/libnfc-nxp/src/
phFriNfc_ISO15693Map.h 20 * \brief NFC Ndef Mapping For ISO-15693 Smart Card.
39 /* 3 BYTE value identifier for NDEF TLV */
42 /* Get the NDEF TLV VALUE field block and byte address */
55 * \brief \copydoc page_ovr Initiates Reading of NDEF information from the Remote Device.
57 * The function initiates the reading of NDEF information from a Remote Device.
65 * \param[in] PacketData Pointer to a location that receives the NDEF Packet.
67 * \param[in,out] PacketDataLength Pointer to a variable receiving the length of the NDEF packet.
78 * \retval NFCSTATUS_INVALID_DEVICE_REQUEST If Previous Operation is Write Ndef and Offset
99 * \brief \copydoc page_ovr Initiates Writing of NDEF information to the Remote Device.
101 * The function initiates the writing of NDEF information to a Remote Device
    [all...]
phFriNfc_DesfireMap.h 19 * \brief NFC Ndef Mapping For Desfire Smart Card.
52 #define PH_FRINFC_NDEFMAP_DESF_NDEF_CHK_OP 4 /*!< Desfire Operation Flag is Check Ndef */
62 * \name NDEF Mapping - states of the Finite State machine
76 #define PH_FRINFC_NDEFMAP_DESF_STATE_CHK_NDEF 10 /*!< Check Ndef is in progress */
78 #define PH_FRINFC_NDEFMAP_DESF_NDEF_CNTRL_TLV 0x04 /*!< Specifies the NDEF File Cntrl TLV */
104 /*!< Following two indexes represents the NDEF file identifier in CC*/
108 /*!< Following two indexes represents the NDEF file size in CC */
112 /*!< Specifies the index of the NDEF file READ access byte in CC */
115 /*!< Specifies the index of the NDEF file WRITE access byte in CC */
119 /* Macros to find Maximum NDEF File Size*
    [all...]
phFriNfc_NdefRecord.h 19 * \brief NFC Ndef Record component header file.
36 * \name NDEF Record Tools Header
55 * This component implements Ndef Message composing and processing routines.
57 * The Ndef Record is a data structure used by NFC Forum compliant devices for data transfer.
60 * \li Interprete a given buffer by listing the embedded NDEF records
61 * \li Extract a Ndef record from a given buffer
62 * \li Compose a NDEF record and optionally append it to an existing buffer/message
68 * \brief The TNF specifies the structure of the NDEF Record TYPE field.
70 * \name NDEF Record Type Name Format
86 * \brief These are the flags specifying the content, structure or purpose of a NDEF Record
    [all...]
phFriNfc_FelicaMap.h 19 * \brief NFC Ndef Mapping For Felica Smart Card.
47 /* NDEF Mapping - states of the Finite State machine */
50 #define PH_FRINFC_NDEFMAP_FELI_STATE_CHK_NDEF 3 /* Ndef Complient State*/
56 #define PH_NFCFRI_NDEFMAP_FELI_STATE_WR_EMPTY_MSG 9 /* write Empty Ndef Msg*/
69 #define PH_FRINFC_NDEFMAP_FELI_WR_EMPTY_MSG_OP 19 /* To Process the Empty NDEF Msg while erasing the NDEF data*/
140 * \brief \copydoc page_ovr Initiates Reading of NDEF information from the Remote Device.
142 * The function initiates the reading of NDEF information from a Remote Device.
150 * \param[in] PacketData Pointer to a location that receives the NDEF Packet.
152 * \param[in,out] PacketDataLength Pointer to a variable receiving the length of the NDEF packet
    [all...]
phFriNfc_MifareStdMap.h 19 * \brief NFC Ndef Mapping For Remote Devices.
52 * \name NDEF Mapping
63 /*! \defgroup grp_fri_nfc_ndef_map NDEF Mapping for Remote Devices
65 * This component encapsulates Ndef Registration and Listening data and functionality.
70 * \name NDEF Mapping - states of the Finite State machine
78 #define PH_FRINFC_NDEFMAP_STATE_CHK_NDEF_COMP 4 /*!< Check Ndef is going on */
80 #define PH_FRINFC_NDEFMAP_STATE_WR_NDEF_LEN 6 /*!< Write NDEF TLV LEngth*/
81 #define PH_FRINFC_NDEFMAP_STATE_RD_TO_WR_NDEF_LEN 7 /*!< read to write the Ndef TLV*/
83 #define PH_FRINFC_NDEFMAP_STATE_RD_BEF_WR 9 /*!< Read the NDEF TLV block before starting write */
84 #define PH_FRINFC_NDEFMAP_STATE_WR_TLV 10 /*!< Read the NDEF TLV block before starting write *
    [all...]
  /packages/apps/Tag/res/xml/
filter_nfc.xml 17 <!-- capture anything containing NDEF -->
19 <tech>android.nfc.tech.Ndef</tech>
  /development/samples/browseable/CardReader/
_index.jd 9 that do not contain NDEF or Android Beam data. This sample is designed to read the virtual
  /cts/tests/tests/ndef/
AndroidManifest.xml 18 package="com.android.cts.ndef">
27 android:targetPackage="com.android.cts.ndef"
28 android:label="CTS tests of NDEF data classes">
  /external/libnfc-nci/src/nfa/include/
nfa_snep_api.h 37 #define NFA_SNEP_REQ_CODE_GET 0x01 /* return an NDEF message */
38 #define NFA_SNEP_REQ_CODE_PUT 0x02 /* accept an NDEF message */
65 #define NFA_SNEP_ALLOC_BUFF_EVT 0x09 /* Request to allocate a buffer for NDEF*/
66 #define NFA_SNEP_FREE_BUFF_EVT 0x0A /* Request to deallocate buffer for NDEF*/
109 UINT32 ndef_length; /* NDEF message length */
110 UINT8 *p_ndef; /* NDEF message */
117 UINT32 ndef_length; /* NDEF message length */
118 UINT8 *p_ndef; /* NDEF message */
126 UINT32 ndef_length; /* NDEF message length */
127 UINT8 *p_ndef; /* NDEF message *
    [all...]
  /packages/apps/Nfc/nci/jni/
NativeNfcTag.cpp 73 // framework Ndef.java for Google public NFC API.
84 static tNFA_STATUS sCheckNdefStatus = 0; //whether tag already contains a NDEF message
85 static bool sCheckNdefCapable = false; //whether tag has NDEF capability
176 return; //not reading NDEF message right now, so just return
194 ** Description: Receive NDEF-message related events from stack.
235 ** Description: Read the NDEF message on the tag.
239 ** Returns: NDEF message.
337 ** Description: Write a NDEF message to the tag.
340 ** buf: Contains a NDEF message.
368 //if tag does not contain a NDEF messag
1072 jint* ndef = NULL; local
    [all...]
  /external/libnfc-nci/src/nfa/rw/
nfa_rw_act.c 51 ** Description Free buffer allocated to hold incoming NDEF message
69 ** Description Store data into NDEF buffer
190 ** Description Handler for NDEF detection reader/writer event
199 NFA_TRACE_DEBUG3("NDEF Detection completed: cur_size=%i, max_size=%i, flags=0x%x",
200 p_rw_data->ndef.cur_size, p_rw_data->ndef.max_size, p_rw_data->ndef.flags);
202 /* Check if NDEF detection succeeded */
203 if (p_rw_data->ndef.status == NFC_STATUS_OK)
205 /* Set NDEF detection state *
    [all...]
  /packages/apps/Nfc/tests/src/com/android/nfc/snep/
SnepValidationClientTests.java 57 Log.d(TAG, "Putting ndef message...");
60 Log.d(TAG, "Getting ndef message...");
82 Log.d(TAG, "Putting ndef message of size " + msg.toByteArray().length + "...");
85 Log.d(TAG, "Getting ndef message...");
109 Log.d(TAG, "Putting ndef message A...");
111 Log.d(TAG, "Putting ndef message B...");
118 Log.d(TAG, "Getting ndef message A...");
127 Log.d(TAG, "Getting ndef message B...");
151 Log.d(TAG, "Getting ndef message...");
168 Log.d(TAG, "Putting ndef message of size " + msg.toByteArray().length + "...")
    [all...]

Completed in 2746 milliseconds

1 2 3 4 5 6 7 8 91011>>