/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...] |
/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);
|
wps_supplicant.h | 61 int ndef, const char *uuid); 65 int ndef, const char *id_str); 66 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef); 75 int ndef); 77 int ndef, int cr, const char *uuid);
|
ap.h | 59 int ndef); 62 int ndef); 66 int ndef)
|
wps_supplicant.c | [all...] |
p2p_supplicant.h | 126 int ndef); 128 int ndef, int tag);
|
ctrl_iface.c | 833 int ndef; local 842 ndef = 0; 843 else if (os_strcmp(cmd, "NDEF") == 0) 844 ndef = 1; 848 buf = wpas_wps_nfc_config_token(wpa_s, ndef, pos); 866 int ndef; local 871 ndef = 0; 872 else if (os_strcmp(cmd, "NDEF") == 0) 873 ndef = 1; 877 buf = wpas_wps_nfc_token(wpa_s, ndef); 981 int ndef; local 1064 int ndef; local 1426 int ndef; local [all...] |
/packages/apps/Nfc/src/com/android/nfc/snep/ |
SnepMessage.java | 53 public static SnepMessage getGetRequest(int acceptableLength, NdefMessage ndef) { 54 return new SnepMessage(VERSION, REQUEST_GET, 4 + ndef.toByteArray().length, 55 acceptableLength, ndef); 58 public static SnepMessage getPutRequest(NdefMessage ndef) { 59 return new SnepMessage(VERSION, REQUEST_PUT, ndef.toByteArray().length, 0, ndef); 66 public static SnepMessage getSuccessResponse(NdefMessage ndef) { 67 if (ndef == null) { 70 return new SnepMessage(VERSION, RESPONSE_SUCCESS, ndef.toByteArray().length, 0, ndef); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/nfc/ |
ForegroundDispatch.java | 34 * based NDEF dispatch as well as all dispatched for NfcF tags. 61 IntentFilter ndef = new IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED); local 63 ndef.addDataType("*/*"); 68 ndef,
|
/external/wpa_supplicant_8/hostapd/ |
wps-ap-nfc.py | 15 import nfc.ndef namespace 75 ret = wpas.request("WPS_NFC_CONFIG_TOKEN NDEF") 85 ret = wpas.request("WPS_NFC_TOKEN NDEF") 95 ret = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR") 120 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 125 request = nfc.ndef.HandoverRequestMessage(request) 126 except nfc.ndef.DecodeError as e: 141 sel = nfc.ndef.HandoverSelectMessage(version="1.2") 158 message = nfc.ndef.Message(data); 175 if len(tag.ndef.message) [all...] |
ctrl_iface.c | 289 int ndef; local 294 ndef = 0; 295 else if (os_strcmp(cmd, "NDEF") == 0) 296 ndef = 1; 300 buf = hostapd_wps_nfc_config_token(hapd, ndef); 317 int ndef) 322 buf = hostapd_wps_nfc_token_gen(hapd, ndef); 345 if (os_strcmp(cmd, "NDEF") == 0) 368 int ndef; local 376 ndef = 0 [all...] |
/external/wpa_supplicant_8/src/ap/ |
wps_hostapd.h | 38 int ndef); 39 struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef); 43 struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef);
|
/external/wpa_supplicant_8/wpa_supplicant/examples/ |
wps-nfc.py | 17 import nfc.ndef namespace 79 ret = wpas.request("WPS_NFC_CONFIG_TOKEN NDEF " + id) 81 ret = wpas.request("WPS_NFC_CONFIG_TOKEN NDEF") 91 ret = wpas.request("WPS_ER_NFC_CONFIG_TOKEN NDEF " + uuid) 101 ret = wpas.request("WPS_NFC_TOKEN NDEF") 110 ret = wpas.request("NFC_GET_HANDOVER_REQ NDEF WPS-CR") 121 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR").rstrip() 123 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR " + uuid).rstrip() 149 response = nfc.ndef.Message("\xd1\x02\x01Hs\x12") 154 request = nfc.ndef.HandoverRequestMessage(request [all...] |
p2p-nfc.py | 17 import nfc.ndef namespace 94 res = wpas.request("NFC_GET_HANDOVER_REQ NDEF P2P-CR").rstrip() 103 res = wpas.request("NFC_GET_HANDOVER_REQ NDEF WPS-CR").rstrip() 114 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR-TAG").rstrip() 116 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR").rstrip() 126 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR"); 154 message = nfc.ndef.HandoverRequestMessage(version="1.2") 164 datamsg = nfc.ndef.Message(data) 178 datamsg = nfc.ndef.Message(data) 226 message = nfc.ndef.HandoverSelectMessage(message [all...] |
/external/chromium_org/third_party/boringssl/src/crypto/asn1/ |
tasn_enc.c | 75 /* Top level i2d equivalents: the 'ndef' variant instructs the encoder 131 int i, seqcontlen, seqlen, ndef = 1; local 194 if (aclass & ASN1_TFLG_NDEF) ndef = 2; 231 seqlen = ASN1_object_size(ndef, seqcontlen, tag); 235 ASN1_put_object(out, ndef, seqcontlen, tag, aclass); 247 if (ndef == 2) 269 int i, ret, flags, ttag, tclass, ndef; local 309 /* if template and arguments require ndef, use it */ 311 ndef = 2; 312 else ndef = 1 512 int ndef = 0; local [all...] |
/external/openssl/crypto/asn1/ |
tasn_enc.c | 79 /* Top level i2d equivalents: the 'ndef' variant instructs the encoder 135 int i, seqcontlen, seqlen, ndef = 1; local 198 if (aclass & ASN1_TFLG_NDEF) ndef = 2; 235 seqlen = ASN1_object_size(ndef, seqcontlen, tag); 239 ASN1_put_object(out, ndef, seqcontlen, tag, aclass); 251 if (ndef == 2) 273 int i, ret, flags, ttag, tclass, ndef; local 312 /* if template and arguments require ndef, use it */ 314 ndef = 2; 315 else ndef = 1 515 int ndef = 0; local [all...] |
/external/chromium_org/chrome/browser/resources/chromeos/ |
nfc_debug.css | 36 #ndef-record-form { 46 #ndef-record-form input {
|
/packages/apps/Nfc/src/com/android/nfc/ |
NfcWifiProtectedSetup.java | 24 import android.nfc.tech.Ndef; 61 public static boolean tryNfcWifiSetup(Ndef ndef, Context context) { 63 if (ndef == null || context == null) { 67 NdefMessage cachedNdefMessage = ndef.getCachedNdefMessage();
|
NfcDispatcher.java | 45 import android.nfc.tech.Ndef; 249 Ndef ndef = Ndef.get(tag); local 250 if (ndef != null) { 251 message = ndef.getCachedNdefMessage(); 270 if (NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mContext)) { 280 // We only allow NDEF-based mimeType matching in case of an unlock 285 // We only allow NDEF-based mimeType matching 289 // Only allow NDEF-based mimeType matching for unlock tag [all...] |
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
SnepBasicTests.java | 212 NdefMessage ndef = getSmallNdef(); local 214 (byte)2, SnepMessage.REQUEST_PUT, ndef.toByteArray().length, 0, ndef); 248 NdefMessage ndef = getSmallNdef(); local 250 version, SnepMessage.REQUEST_PUT, ndef.toByteArray().length, 0, ndef); 278 * A SNEP Server implementation that accepts PUT requests for all ndef
|
/packages/apps/Nfc/nci/jni/ |
NativeNfcTag.cpp | 71 // framework Ndef.java for Google public NFC API. 82 static tNFA_STATUS sCheckNdefStatus = 0; //whether tag already contains a NDEF message 83 static bool sCheckNdefCapable = false; //whether tag has NDEF capability 174 return; //not reading NDEF message right now, so just return 192 ** Description: Receive NDEF-message related events from stack. 233 ** Description: Read the NDEF message on the tag. 237 ** Returns: NDEF message. 335 ** Description: Write a NDEF message to the tag. 338 ** buf: Contains a NDEF message. 366 //if tag does not contain a NDEF messag 1070 jint* ndef = NULL; local [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
WriteWifiConfigToNfcDialog.java | 29 import android.nfc.tech.Ndef; 168 Ndef ndef = Ndef.get(tag); local 170 if (ndef != null) { 171 if (ndef.isWritable()) { 176 ndef.connect(); 177 ndef.writeNdefMessage(new NdefMessage(record)); 201 Log.e(TAG, "Tag does not support NDEF");
|
/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...] |
/external/libnfc-nci/ |
Android.mk | 43 $(call all-c-files-under, $(NFC)/int $(NFC)/llcp $(NFC)/nci $(NFC)/ndef $(NFC)/nfc $(NFC)/tags) \
|
/external/wpa_supplicant_8/src/wps/ |
wps_common.c | 618 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey, 627 if (ndef && ret) { 665 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey, 692 return wps_nfc_token_build(ndef, *id, *pubkey, *dev_pw);
|