Home
last modified time | relevance | path

Searched refs:ndef (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepMessage.java53 public static SnepMessage getGetRequest(int acceptableLength, NdefMessage ndef) { in getGetRequest() argument
54 return new SnepMessage(VERSION, REQUEST_GET, 4 + ndef.toByteArray().length, in getGetRequest()
55 acceptableLength, ndef); in getGetRequest()
58 public static SnepMessage getPutRequest(NdefMessage ndef) { in getPutRequest() argument
59 return new SnepMessage(VERSION, REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in getPutRequest()
66 public static SnepMessage getSuccessResponse(NdefMessage ndef) { in getSuccessResponse() argument
67 if (ndef == null) { in getSuccessResponse()
70 return new SnepMessage(VERSION, RESPONSE_SUCCESS, ndef.toByteArray().length, 0, ndef); in getSuccessResponse()
/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp1205 jint* ndef = NULL; in nativeNfcTag_doCheckNdef() local
1213 ndef = e->GetIntArrayElements (ndefInfo, 0); in nativeNfcTag_doCheckNdef()
1214 ndef[0] = 0; in nativeNfcTag_doCheckNdef()
1215 ndef[1] = NDEF_MODE_READ_ONLY; in nativeNfcTag_doCheckNdef()
1216 e->ReleaseIntArrayElements (ndefInfo, ndef, 0); in nativeNfcTag_doCheckNdef()
1265 ndef = e->GetIntArrayElements (ndefInfo, 0); in nativeNfcTag_doCheckNdef()
1267 ndef[0] = NfcTag::getInstance ().getT1tMaxMessageSize (); in nativeNfcTag_doCheckNdef()
1269 ndef[0] = sCheckNdefMaxSize; in nativeNfcTag_doCheckNdef()
1271 ndef[1] = NDEF_MODE_READ_ONLY; in nativeNfcTag_doCheckNdef()
1273 ndef[1] = NDEF_MODE_READ_WRITE; in nativeNfcTag_doCheckNdef()
[all …]
/packages/apps/Nfc/tests/src/com/android/nfc/snep/
DSnepBasicTests.java212 NdefMessage ndef = getSmallNdef(); in testUnsupportedVersion() local
214 (byte)2, SnepMessage.REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in testUnsupportedVersion()
248 NdefMessage ndef = getSmallNdef(); in testDifferentMinorVersion() local
250 version, SnepMessage.REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in testDifferentMinorVersion()
/packages/apps/Settings/src/com/android/settings/wifi/
DWriteWifiConfigToNfcDialog.java188 Ndef ndef = Ndef.get(tag); in handleWriteNfcEvent() local
190 if (ndef != null) { in handleWriteNfcEvent()
191 if (ndef.isWritable()) { in handleWriteNfcEvent()
196 ndef.connect(); in handleWriteNfcEvent()
197 ndef.writeNdefMessage(new NdefMessage(record)); in handleWriteNfcEvent()
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java61 public static boolean tryNfcWifiSetup(Ndef ndef, Context context) { in tryNfcWifiSetup() argument
63 if (ndef == null || context == null) { in tryNfcWifiSetup()
67 NdefMessage cachedNdefMessage = ndef.getCachedNdefMessage(); in tryNfcWifiSetup()
DNfcDispatcher.java250 Ndef ndef = Ndef.get(tag); in dispatchTag() local
251 if (ndef != null) { in dispatchTag()
252 message = ndef.getCachedNdefMessage(); in dispatchTag()
276 if (NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mContext)) { in dispatchTag()
/packages/apps/Nfc/nxp/jni/
Dcom_android_nfc_NativeNfcTag.cpp940 jint *ndef = e->GetIntArrayElements(ndefinfo, 0); in com_android_nfc_NativeNfcTag_doCheckNdef() local
982 ndef[0] = sNdefInfo.MaxNdefMsgLength; in com_android_nfc_NativeNfcTag_doCheckNdef()
998 ndef[1] = apiCardState; in com_android_nfc_NativeNfcTag_doCheckNdef()
1001 e->ReleaseIntArrayElements(ndefinfo, ndef, 0); in com_android_nfc_NativeNfcTag_doCheckNdef()