Home
last modified time | relevance | path

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

/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepMessage.java70 public static SnepMessage getGetRequest(int acceptableLength, NdefMessage ndef) { in getGetRequest() argument
71 return new SnepMessage(VERSION, REQUEST_GET, 4 + ndef.toByteArray().length, in getGetRequest()
72 acceptableLength, ndef); in getGetRequest()
75 public static SnepMessage getPutRequest(NdefMessage ndef) { in getPutRequest() argument
76 return new SnepMessage(VERSION, REQUEST_PUT, ndef.toByteArray().length, 0, ndef); in getPutRequest()
83 public static SnepMessage getSuccessResponse(NdefMessage ndef) { in getSuccessResponse() argument
84 if (ndef == null) { in getSuccessResponse()
87 return new SnepMessage(VERSION, RESPONSE_SUCCESS, ndef.toByteArray().length, 0, ndef); in getSuccessResponse()
/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp1216 jint* ndef = NULL; in nativeNfcTag_doCheckNdef() local
1224 ndef = e->GetIntArrayElements(ndefInfo, 0); in nativeNfcTag_doCheckNdef()
1225 ndef[0] = 0; in nativeNfcTag_doCheckNdef()
1226 ndef[1] = NDEF_MODE_READ_ONLY; in nativeNfcTag_doCheckNdef()
1227 e->ReleaseIntArrayElements(ndefInfo, ndef, 0); in nativeNfcTag_doCheckNdef()
1272 ndef = e->GetIntArrayElements(ndefInfo, 0); in nativeNfcTag_doCheckNdef()
1274 ndef[0] = NfcTag::getInstance().getT1tMaxMessageSize(); in nativeNfcTag_doCheckNdef()
1276 ndef[0] = sCheckNdefMaxSize; in nativeNfcTag_doCheckNdef()
1278 ndef[1] = NDEF_MODE_READ_ONLY; in nativeNfcTag_doCheckNdef()
1280 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/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java63 public static boolean tryNfcWifiSetup(Ndef ndef, Context context) { in tryNfcWifiSetup() argument
65 if (ndef == null || context == null) { in tryNfcWifiSetup()
69 NdefMessage cachedNdefMessage = ndef.getCachedNdefMessage(); in tryNfcWifiSetup()
DNfcDispatcher.java277 Ndef ndef = Ndef.get(tag); in dispatchTag() local
295 if (ndef != null) { in dispatchTag()
296 message = ndef.getCachedNdefMessage(); in dispatchTag()
322 if (NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mContext)) { in dispatchTag()