Home
last modified time | relevance | path

Searched refs:ndefRecords (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Nfc/src/com/android/nfc/wlc/
DNfcCharging.java260 NdefRecord[] ndefRecords = null; in checkWlcCapMsg() local
267 ndefRecords = mNdefMessage.getRecords(); in checkWlcCapMsg()
268 if (ndefRecords != null && ndefRecords.length > 0) { in checkWlcCapMsg()
270 Log.d(TAG, "checkWlcCapMsg: number of ndefRecords = " + ndefRecords.length); in checkWlcCapMsg()
271 mNdefType = ndefRecords[0].getType(); in checkWlcCapMsg()
274 mNdefPayload = ndefRecords[0].getPayload(); in checkWlcCapMsg()
326 Log.d(TAG, " " + ndefRecords.length + " NdefRecords"); in checkWlcCapMsg()
327 if (ndefRecords != null && ndefRecords.length > 1) { in checkWlcCapMsg()
328 for (int i = 1; i < ndefRecords.length; i++) { in checkWlcCapMsg()
329 mNdefType = ndefRecords[i].getType(); in checkWlcCapMsg()
[all …]
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcWifiProtectedSetupTest.java144 NdefRecord[] ndefRecords = new NdefRecord[2]; in testTryNfcWifiSetupFailed() local
146 ndefRecords[0] = new NdefRecord(NdefRecord.TNF_WELL_KNOWN, in testTryNfcWifiSetupFailed()
148 ndefRecords[1] = createWifiRecord(new String[]{"Nfctest", "", "Open", "wet"}); in testTryNfcWifiSetupFailed()
149 when(ndefMessage.getRecords()).thenReturn(ndefRecords); in testTryNfcWifiSetupFailed()