Searched refs:ndef (Results 1 – 5 of 5) sorted by relevance
1135 jint* ndef = NULL; in nativeNfcTag_doCheckNdef() local1142 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 …]
156 Ndef ndef = mock(Ndef.class); in testSetForegroundDispatchForWifiConnect() local157 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()
141 Ndef ndef = mock(Ndef.class); in testTryNfcWifiSetupFailed()150 when(ndef.getCachedNdefMessage()).thenReturn(ndefMessage); in testTryNfcWifiSetupFailed()151 boolean isSucceeded = NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mockContext); in testTryNfcWifiSetupFailed()
61 public static boolean tryNfcWifiSetup(Ndef ndef, Context context) { in tryNfcWifiSetup() argument63 if (ndef == null || context == null) { in tryNfcWifiSetup()67 NdefMessage cachedNdefMessage = ndef.getCachedNdefMessage(); in tryNfcWifiSetup()
533 Ndef ndef = Ndef.get(tag); in dispatchTag() local554 if (ndef != null) { in dispatchTag()555 message = ndef.getCachedNdefMessage(); in dispatchTag()586 if (NfcWifiProtectedSetup.tryNfcWifiSetup(ndef, mContext)) { in dispatchTag()