Home | History | Annotate | Download | only in jni

Lines Matching defs:ndef

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 message
369 //and tag is capable of storing NDEF message
386 //if (NXP TagWriter wants to erase tag) then create and write an empty ndef message
389 ALOGD ("%s: create empty ndef msg; status=%u; size=%lu", __FUNCTION__, status, curDataSize);
556 ALOGD ("%s: ndef detection timeout; break", __FUNCTION__);
975 ALOGD ("%s: exit; ndef type=%d", __FUNCTION__, ndefType);
984 ** Description: Receive the result of checking whether the tag contains a NDEF
987 ** maxSize: Maximum size of NDEF message.
988 ** currentSize: Current size of NDEF message.
999 //#define RW_NDEF_FL_FORMATED 0x02 /* Tag formated for NDEF */
1000 //#define RW_NDEF_FL_SUPPORTED 0x04 /* NDEF supported by the tag */
1001 //#define RW_NDEF_FL_UNKNOWN 0x08 /* Unable to find if tag is ndef capable/formated/read only */
1013 ALOGD ("%s: flag formatted for ndef", __FUNCTION__);
1015 ALOGD ("%s: flag ndef supported", __FUNCTION__);
1025 sCheckNdefCapable = false; //assume tag is NOT ndef capable
1028 //NDEF content is on the tag
1036 //no NDEF content on the tag
1042 if (flags & RW_NDEF_FL_SUPPORTED) //if tag is ndef capable
1061 ** Description: Does the tag contain a NDEF message?
1064 ** ndefInfo: NDEF info.
1072 jint* ndef = NULL;
1079 ALOGD ("%s: Kovio tag, no NDEF", __FUNCTION__);
1080 ndef = e->GetIntArrayElements (ndefInfo, 0);
1081 ndef[0] = 0;
1082 ndef[1] = NDEF_MODE_READ_ONLY;
1083 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1090 ALOGE ("%s: Check NDEF semaphore creation failed (errno=0x%08x)", __FUNCTION__, errno);
1110 /* Wait for check NDEF completion status */
1113 ALOGE ("%s: Failed to wait for check NDEF semaphore (errno=0x%08x)", __FUNCTION__, errno);
1119 //stack found a NDEF message on the tag
1120 ndef = e->GetIntArrayElements (ndefInfo, 0);
1122 ndef[0] = NfcTag::getInstance ().getT1tMaxMessageSize ();
1124 ndef[0] = sCheckNdefMaxSize;
1126 ndef[1] = NDEF_MODE_READ_ONLY;
1128 ndef[1] = NDEF_MODE_READ_WRITE;
1129 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1134 //stack did not find a NDEF message on the tag;
1135 ndef = e->GetIntArrayElements (ndefInfo, 0);
1137 ndef[0] = NfcTag::getInstance ().getT1tMaxMessageSize ();
1139 ndef[0] = sCheckNdefMaxSize;
1141 ndef[1] = NDEF_MODE_READ_ONLY;
1143 ndef[1] = NDEF_MODE_READ_WRITE;
1144 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1162 ALOGE ("%s: Failed to destroy check NDEF semaphore (errno=0x%08x)", __FUNCTION__, errno);
1282 ** Description: Can tag be formatted to store NDEF message?
1349 ** Description: Format a tag so it can store NDEF message.
1455 /* Wait for check NDEF completion status */
1482 ** Description: Register a callback to receive NDEF message from the tag
1488 //register a callback to receive NDEF message from the tag
1502 ** Description: No longer need to receive NDEF message from the tag.