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

1 2

  /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);
ap.h 56 int ndef);
59 int ndef);
63 int ndef)
wps_supplicant.h 61 int ndef, const char *uuid);
66 int ndef, const char *id_str);
67 struct wpabuf * wpas_wps_nfc_token(struct wpa_supplicant *wpa_s, int ndef);
73 int ndef, int cr, const char *uuid);
wps_supplicant.c     [all...]
ap.c 890 int ndef)
897 return hostapd_wps_nfc_config_token(hapd, ndef);
902 int ndef)
909 return hostapd_wps_nfc_hs_cr(hapd, ndef);
  /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...]
  /external/wpa_supplicant_8/src/ap/
wps_hostapd.h 37 int ndef);
38 struct wpabuf * hostapd_wps_nfc_hs_cr(struct hostapd_data *hapd, int ndef);
39 struct wpabuf * hostapd_wps_nfc_token_gen(struct hostapd_data *hapd, int ndef);
wps_hostapd.c     [all...]
  /external/wpa_supplicant_8/hostapd/
wps-ap-nfc.py 14 import nfc.ndef namespace
58 return wpas.request("WPS_NFC_CONFIG_TOKEN NDEF").rstrip().decode("hex")
65 return wpas.request("WPS_NFC_TOKEN NDEF").rstrip().decode("hex")
72 return wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR").rstrip().decode("hex")
92 sel = nfc.ndef.HandoverSelectMessage(version="1.2")
107 message = nfc.ndef.Message(data);
147 if len(tag.ndef.message):
148 message = nfc.ndef.Message(tag.ndef.message)
155 wpas_tag_read(tag.ndef.message
    [all...]
ctrl_iface.c 286 int ndef; local
291 ndef = 0;
292 else if (os_strcmp(cmd, "NDEF") == 0)
293 ndef = 1;
297 buf = hostapd_wps_nfc_config_token(hapd, ndef);
314 int ndef)
319 buf = hostapd_wps_nfc_token_gen(hapd, ndef);
342 if (os_strcmp(cmd, "NDEF") == 0)
365 int ndef; local
373 ndef = 0
    [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/wpa_supplicant/examples/
wps-nfc.py 16 import nfc.ndef namespace
62 ret = wpas.request("WPS_NFC_CONFIG_TOKEN NDEF " + id)
64 ret = wpas.request("WPS_NFC_CONFIG_TOKEN NDEF")
74 return wpas.request("WPS_ER_NFC_CONFIG_TOKEN NDEF " + uuid).rstrip().decode("hex")
81 return wpas.request("WPS_NFC_TOKEN NDEF").rstrip().decode("hex")
88 return wpas.request("NFC_GET_HANDOVER_REQ NDEF WPS-CR").rstrip().decode("hex")
96 return wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR").rstrip().decode("hex")
97 return wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR " + uuid).rstrip().decode("hex")
117 sel = nfc.ndef.HandoverSelectMessage(version="1.2")
132 message = nfc.ndef.Message(data)
    [all...]
  /external/chromium_org/third_party/openssl/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
510 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
510 int ndef = 0; local
    [all...]
  /packages/apps/Nfc/nci/jni/
NativeNfcTag.cpp 70 // framework Ndef.java for Google public NFC API.
81 static tNFA_STATUS sCheckNdefStatus = 0; //whether tag already contains a NDEF message
82 static bool sCheckNdefCapable = false; //whether tag has NDEF capability
187 return; //not reading NDEF message right now, so just return
205 ** Description: Receive NDEF-message related events from stack.
246 ** Description: Read the NDEF message on the tag.
250 ** Returns: NDEF message.
348 ** Description: Write a NDEF message to the tag.
351 ** buf: Contains a NDEF message.
379 //if tag does not contain a NDEF messag
1102 jint* ndef = NULL; local
    [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
  /external/libnfc-nci/src/nfa/rw/
nfa_rw_act.c 49 ** Description Free buffer allocated to hold incoming NDEF message
67 ** Description Store data into NDEF buffer
180 ** Description Handler for NDEF detection reader/writer event
189 NFA_TRACE_DEBUG3("NDEF Detection completed: cur_size=%i, max_size=%i, flags=0x%x",
190 p_rw_data->ndef.cur_size, p_rw_data->ndef.max_size, p_rw_data->ndef.flags);
192 /* Check if NDEF detection succeeded */
193 if (p_rw_data->ndef.status == NFC_STATUS_OK)
195 /* Set NDEF detection state *
    [all...]
  /packages/apps/Nfc/src/com/android/nfc/
NfcDispatcher.java 42 import android.nfc.tech.Ndef;
206 Ndef ndef = Ndef.get(tag); local
207 if (ndef != null) {
208 message = ndef.getCachedNdefMessage();
241 // We only allow NDEF-based mimeType matching
266 // NDEF
273 if (DBG) Log.i(TAG, "matched NDEF override");
341 // Bail out if the intent does not contain filterable NDEF dat
    [all...]
  /external/wpa_supplicant_8/src/wps/
wps_common.c 617 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey,
626 if (ndef && ret) {
639 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey,
673 return wps_nfc_token_build(ndef, *id, *pubkey, *dev_pw);
wps.h 851 struct wpabuf * wps_nfc_token_build(int ndef, int id, struct wpabuf *pubkey,
853 struct wpabuf * wps_nfc_token_gen(int ndef, int *id, struct wpabuf **pubkey,
857 /* ndef.c */
  /external/libnfc-nci/
Android.mk 42 $(call all-c-files-under, $(NFC)/int $(NFC)/llcp $(NFC)/nci $(NFC)/ndef $(NFC)/nfc $(NFC)/tags) \
  /packages/apps/Nfc/nxp/jni/
com_android_nfc_NativeNfcTag.cpp 257 TRACE("Ndef Handle :0x%x\n",handle);
258 TRACE("Ndef buffer length : %d", nfc_jni_ndef_rw.length);
939 jint *ndef = e->GetIntArrayElements(ndefinfo, 0) local
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_tokenize.py 491 >>> dump_tokens("@staticmethod\\ndef foo(x,y): pass")
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_tokenize.py 491 >>> dump_tokens("@staticmethod\\ndef foo(x,y): pass")

Completed in 663 milliseconds

1 2