Home
last modified time | relevance | path

Searched refs:nfcid2 (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/nfc/cardemulation/
DNfcFServiceInfo.java93 String systemCode, String dynamicSystemCode, String nfcid2, String dynamicNfcid2, in NfcFServiceInfo() argument
99 this.mNfcid2 = nfcid2; in NfcFServiceInfo()
140 String nfcid2 = null; in NfcFServiceInfo() local
160 "nfcid2-filter".equals(tagName) && nfcid2 == null) { in NfcFServiceInfo()
163 nfcid2 = a.getString( in NfcFServiceInfo()
165 if (!nfcid2.equalsIgnoreCase("RANDOM") && in NfcFServiceInfo()
166 !nfcid2.equalsIgnoreCase("NULL") && in NfcFServiceInfo()
167 !NfcFCardEmulation.isValidNfcid2(nfcid2)) { in NfcFServiceInfo()
168 Log.e(TAG, "Invalid NFCID2: " + nfcid2); in NfcFServiceInfo()
169 nfcid2 = null; in NfcFServiceInfo()
[all …]
DNfcFCardEmulation.java270 public boolean setNfcid2ForService(ComponentName service, String nfcid2) in setNfcid2ForService() argument
272 if (service == null || nfcid2 == null) { in setNfcid2ForService()
277 service, nfcid2); in setNfcid2ForService()
287 service, nfcid2); in setNfcid2ForService()
451 public static boolean isValidNfcid2(String nfcid2) { in isValidNfcid2() argument
452 if (nfcid2 == null) { in isValidNfcid2()
455 if (nfcid2.length() != 16) { in isValidNfcid2()
456 Log.e(TAG, "NFCID2 " + nfcid2 + " is not a valid NFCID2."); in isValidNfcid2()
460 if (!nfcid2.toUpperCase().startsWith("02FE")) { in isValidNfcid2()
461 Log.e(TAG, "NFCID2 " + nfcid2 + " is not a valid NFCID2."); in isValidNfcid2()
[all …]
/frameworks/base/core/java/android/nfc/
DINfcFCardEmulation.aidl31 boolean setNfcid2ForService(int userHandle, in ComponentName service, String nfcid2); in setNfcid2ForService() argument