Home | History | Annotate | Download | only in jni

Lines Matching refs:ndef

69 // framework Ndef.java for Google public NFC API.
80 static tNFA_STATUS sCheckNdefStatus = 0; //whether tag already contains a NDEF message
81 static bool sCheckNdefCapable = false; //whether tag has NDEF capability
183 return; //not reading NDEF message right now, so just return
201 ** Description: Receive NDEF-message related events from stack.
242 ** Description: Read the NDEF message on the tag.
246 ** Returns: NDEF message.
344 ** Description: Write a NDEF message to the tag.
347 ** buf: Contains a NDEF message.
375 //if tag does not contain a NDEF message
376 //and tag is capable of storing NDEF message
393 //if (NXP TagWriter wants to erase tag) then create and write an empty ndef message
396 ALOGD ("%s: create empty ndef msg; status=%u; size=%lu", __FUNCTION__, status, curDataSize);
523 // connecting back to IsoDep or NDEF
556 ALOGD ("%s: ndef detection timeout; break", __FUNCTION__);
972 ALOGD ("%s: exit; ndef type=%d", __FUNCTION__, ndefType);
981 ** Description: Receive the result of checking whether the tag contains a NDEF
984 ** maxSize: Maximum size of NDEF message.
985 ** currentSize: Current size of NDEF message.
996 //#define RW_NDEF_FL_FORMATED 0x02 /* Tag formated for NDEF */
997 //#define RW_NDEF_FL_SUPPORTED 0x04 /* NDEF supported by the tag */
998 //#define RW_NDEF_FL_UNKNOWN 0x08 /* Unable to find if tag is ndef capable/formated/read only */
1016 ALOGD ("%s: flag formatted for ndef", __FUNCTION__);
1018 ALOGD ("%s: flag ndef supported", __FUNCTION__);
1026 sCheckNdefCapable = false; //assume tag is NOT ndef capable
1029 //NDEF content is on the tag
1037 //no NDEF content on the tag
1043 if (flags & RW_NDEF_FL_SUPPORTED) //if tag is ndef capable
1062 ** Description: Does the tag contain a NDEF message?
1065 ** ndefInfo: NDEF info.
1073 jint* ndef = NULL;
1080 ALOGD ("%s: Kovio tag, no NDEF", __FUNCTION__);
1081 ndef = e->GetIntArrayElements (ndefInfo, 0);
1082 ndef[0] = 0;
1083 ndef[1] = NDEF_MODE_READ_ONLY;
1084 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1091 ALOGD ("%s: Kovio tag, no NDEF", __FUNCTION__);
1092 ndef = e->GetIntArrayElements (ndefInfo, 0);
1093 ndef[0] = 0;
1094 ndef[1] = NDEF_MODE_READ_ONLY;
1095 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1102 ALOGE ("%s: Check NDEF semaphore creation failed (errno=0x%08x)", __FUNCTION__, errno);
1122 /* Wait for check NDEF completion status */
1125 ALOGE ("%s: Failed to wait for check NDEF semaphore (errno=0x%08x)", __FUNCTION__, errno);
1131 //stack found a NDEF message on the tag
1132 ndef = e->GetIntArrayElements (ndefInfo, 0);
1134 ndef[0] = NfcTag::getInstance ().getT1tMaxMessageSize ();
1136 ndef[0] = sCheckNdefMaxSize;
1138 ndef[1] = NDEF_MODE_READ_ONLY;
1140 ndef[1] = NDEF_MODE_READ_WRITE;
1141 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1146 //stack did not find a NDEF message on the tag;
1147 ndef = e->GetIntArrayElements (ndefInfo, 0);
1149 ndef[0] = NfcTag::getInstance ().getT1tMaxMessageSize ();
1151 ndef[0] = sCheckNdefMaxSize;
1153 ndef[1] = NDEF_MODE_READ_ONLY;
1155 ndef[1] = NDEF_MODE_READ_WRITE;
1156 e->ReleaseIntArrayElements (ndefInfo, ndef, 0);
1174 ALOGE ("%s: Failed to destroy check NDEF semaphore (errno=0x%08x)", __FUNCTION__, errno);
1286 ALOGE ("Failed to destroy check NDEF semaphore (errno=0x%08x)", errno);
1299 ** Description: Can tag be formatted to store NDEF message?
1358 ** Description: Format a tag so it can store NDEF message.
1449 /* Wait for check NDEF completion status */
1476 ** Description: Register a callback to receive NDEF message from the tag
1482 //register a callback to receive NDEF message from the tag
1496 ** Description: No longer need to receive NDEF message from the tag.