Searched refs:ndef (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Nfc/src/com/android/nfc/snep/ |
D | SnepMessage.java | 70 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/ |
D | NativeNfcTag.cpp | 1205 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/ |
D | SnepBasicTests.java | 212 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/ |
D | WriteWifiConfigToNfcDialog.java | 181 Ndef ndef = Ndef.get(tag); in handleWriteNfcEvent() local 183 if (ndef != null) { in handleWriteNfcEvent() 184 if (ndef.isWritable()) { in handleWriteNfcEvent() 189 ndef.connect(); in handleWriteNfcEvent() 190 ndef.writeNdefMessage(new NdefMessage(record)); in handleWriteNfcEvent()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | NfcDispatcher.java | 278 Ndef ndef = Ndef.get(tag); in dispatchTag() local 283 if (ndef != null) { in dispatchTag() 284 message = ndef.getCachedNdefMessage(); in dispatchTag() 298 if (ndef != null) { in dispatchTag() 299 message = ndef.getCachedNdefMessage(); in dispatchTag() 323 if (NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mContext)) { in dispatchTag()
|
D | NfcWifiProtectedSetup.java | 62 public static boolean tryNfcWifiSetup(Ndef ndef, Context context) { in tryNfcWifiSetup() argument 64 if (ndef == null || context == null) { in tryNfcWifiSetup() 68 NdefMessage cachedNdefMessage = ndef.getCachedNdefMessage(); in tryNfcWifiSetup()
|