Home
last modified time | relevance | path

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

/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp1135 jint* ndef = NULL; in nativeNfcTag_doCheckNdef() local
1142 ndef = e->GetIntArrayElements(ndefInfo, 0); in nativeNfcTag_doCheckNdef()
1143 ndef[0] = 0; in nativeNfcTag_doCheckNdef()
1144 ndef[1] = NDEF_MODE_READ_ONLY; in nativeNfcTag_doCheckNdef()
1145 e->ReleaseIntArrayElements(ndefInfo, ndef, 0); in nativeNfcTag_doCheckNdef()
1185 ndef = e->GetIntArrayElements(ndefInfo, 0); in nativeNfcTag_doCheckNdef()
1187 ndef[0] = NfcTag::getInstance().getT1tMaxMessageSize(); in nativeNfcTag_doCheckNdef()
1189 ndef[0] = sCheckNdefMaxSize; in nativeNfcTag_doCheckNdef()
1191 ndef[1] = NDEF_MODE_READ_ONLY; in nativeNfcTag_doCheckNdef()
1193 ndef[1] = NDEF_MODE_READ_WRITE; in nativeNfcTag_doCheckNdef()
[all …]
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcDispatcherTest.java156 Ndef ndef = mock(Ndef.class); in testSetForegroundDispatchForWifiConnect() local
157 when(Ndef.get(tag)).thenReturn(ndef); in testSetForegroundDispatchForWifiConnect()
159 when(ndef.getCachedNdefMessage()).thenReturn(ndefMessage); in testSetForegroundDispatchForWifiConnect()
163 when(NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mockContext)).thenReturn(true); in testSetForegroundDispatchForWifiConnect()
DNfcWifiProtectedSetupTest.java141 Ndef ndef = mock(Ndef.class); in testTryNfcWifiSetupFailed()
150 when(ndef.getCachedNdefMessage()).thenReturn(ndefMessage); in testTryNfcWifiSetupFailed()
151 boolean isSucceeded = NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mockContext); in testTryNfcWifiSetupFailed()
/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.java533 Ndef ndef = Ndef.get(tag); in dispatchTag() local
554 if (ndef != null) { in dispatchTag()
555 message = ndef.getCachedNdefMessage(); in dispatchTag()
586 if (NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mContext)) { in dispatchTag()