Home | History | Annotate | Download | only in jni

Lines Matching defs:ndef

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 message
367 //and tag is capable of storing NDEF message
384 //if (NXP TagWriter wants to erase tag) then create and write an empty ndef message
387 ALOGD ("%s: create empty ndef msg; status=%u; size=%lu", __FUNCTION__, status, curDataSize);
554 ALOGD ("%s: ndef detection timeout; break", __FUNCTION__);
973 ALOGD ("%s: exit; ndef type=%d", __FUNCTION__, ndefType);
982 ** Description: Receive the result of checking whether the tag contains a NDEF
985 ** maxSize: Maximum size of NDEF message.
986 ** currentSize: Current size of NDEF message.
997 //#define RW_NDEF_FL_FORMATED 0x02 /* Tag formated for NDEF */
998 //#define RW_NDEF_FL_SUPPORTED 0x04 /* NDEF supported by the tag */
999 //#define RW_NDEF_FL_UNKNOWN 0x08 /* Unable to find if tag is ndef capable/formated/read only */
1011 ALOGD ("%s: flag formatted for ndef", __FUNCTION__);
1013 ALOGD ("%s: flag ndef supported", __FUNCTION__);
1023 sCheckNdefCapable = false; //assume tag is NOT ndef capable
1026 //NDEF content is on the tag
1034 //no NDEF content on the tag
1040 if (flags & RW_NDEF_FL_SUPPORTED) //if tag is ndef capable
1059 ** Description: Does the tag contain a NDEF message?
1062 ** ndefInfo: NDEF info.
1070 jint* ndef = NULL;
1077 ALOGD ("%s: Kovio tag, no NDEF", __FUNCTION__);
1078 ndef = e->GetIntArrayElements (ndefInfo, 0);
1079 ndef[0] = 0;
1080 ndef[1] = NDEF_MODE_READ_ONLY;
1081 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1088 ALOGE ("%s: Check NDEF semaphore creation failed (errno=0x%08x)", __FUNCTION__, errno);
1108 /* Wait for check NDEF completion status */
1111 ALOGE ("%s: Failed to wait for check NDEF semaphore (errno=0x%08x)", __FUNCTION__, errno);
1117 //stack found a NDEF message on the tag
1118 ndef = e->GetIntArrayElements (ndefInfo, 0);
1120 ndef[0] = NfcTag::getInstance ().getT1tMaxMessageSize ();
1122 ndef[0] = sCheckNdefMaxSize;
1124 ndef[1] = NDEF_MODE_READ_ONLY;
1126 ndef[1] = NDEF_MODE_READ_WRITE;
1127 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1132 //stack did not find a NDEF message on the tag;
1133 ndef = e->GetIntArrayElements (ndefInfo, 0);
1135 ndef[0] = NfcTag::getInstance ().getT1tMaxMessageSize ();
1137 ndef[0] = sCheckNdefMaxSize;
1139 ndef[1] = NDEF_MODE_READ_ONLY;
1141 ndef[1] = NDEF_MODE_READ_WRITE;
1142 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1160 ALOGE ("%s: Failed to destroy check NDEF semaphore (errno=0x%08x)", __FUNCTION__, errno);
1280 ** Description: Can tag be formatted to store NDEF message?
1347 ** Description: Format a tag so it can store NDEF message.
1453 /* Wait for check NDEF completion status */
1480 ** Description: Register a callback to receive NDEF message from the tag
1486 //register a callback to receive NDEF message from the tag
1500 ** Description: No longer need to receive NDEF message from the tag.