Home
last modified time | relevance | path

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

/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DCardEmulationManager.java91 static final int SELECT_APDU_HDR_LENGTH = 5; field in CardEmulationManager
546 || data.length < SELECT_APDU_HDR_LENGTH + MINIMUM_AID_LENGTH in isSkipAid()
551 int aidLength = Byte.toUnsignedInt(data[SELECT_APDU_HDR_LENGTH - 1]); in isSkipAid()
552 if (data.length >= SELECT_APDU_HDR_LENGTH + NDEF_AID_LENGTH in isSkipAid()
554 if (Arrays.equals(data, SELECT_APDU_HDR_LENGTH, in isSkipAid()
555 SELECT_APDU_HDR_LENGTH + NDEF_AID_LENGTH, in isSkipAid()
559 } else if (Arrays.equals(data, SELECT_APDU_HDR_LENGTH, in isSkipAid()
560 SELECT_APDU_HDR_LENGTH + NDEF_AID_LENGTH, in isSkipAid()
DHostEmulationManager.java91 static final int SELECT_APDU_HDR_LENGTH = 5; field in HostEmulationManager
1070 if (data == null || data.length < SELECT_APDU_HDR_LENGTH + MINIMUM_AID_LENGTH) { in findSelectAid()
1085 if (data.length < SELECT_APDU_HDR_LENGTH + aidLength) { in findSelectAid()
1088 return bytesToString(data, SELECT_APDU_HDR_LENGTH, aidLength); in findSelectAid()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DHostEmulationManagerTest.java1262 aidData[4] = (byte)(HostEmulationManager.SELECT_APDU_HDR_LENGTH in testFindSelectAid_longAidLength()
1302 byte[] aidData = new byte[HostEmulationManager.SELECT_APDU_HDR_LENGTH in createSelectAidData()
1309 System.arraycopy(aidStringData, 0, aidData, HostEmulationManager.SELECT_APDU_HDR_LENGTH, in createSelectAidData()
1310 aidData.length - HostEmulationManager.SELECT_APDU_HDR_LENGTH); in createSelectAidData()