Home
last modified time | relevance | path

Searched refs:tlv (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DFcpTemplate.java142 Tlv tlv = (Tlv) o; in equals() local
143 return tag == tlv.tag && length == tlv.length && value.equals(tlv.value); in equals()
DCarrierApiTest.java1392 .anyMatch(tlv -> tlv.getTag() == FILE_IDENTIFIER && tlv.getValue().equals(fileId)); in containsFileId()
/cts/tests/tests/secure_element/access_control/AccessControlApp1/src/android/omapi/accesscontrol1/cts/
DAccessControlTest.java387 private static boolean verifyBerTlvData(byte[] tlv) { in verifyBerTlvData() argument
388 if (tlv == null || tlv.length == 0) { in verifyBerTlvData()
394 key[0] = tlv[i]; in verifyBerTlvData()
397 key[1] = tlv[i = i + 1]; in verifyBerTlvData()
400 int len = tlv[i = i + 1] & 0xFF; in verifyBerTlvData()
406 len += (tlv[i = i + 1] & 0xFF) * Math.pow(10, j); in verifyBerTlvData()
409 return tlv.length == (i + len + 3); in verifyBerTlvData()
/cts/tests/tests/secure_element/access_control/AccessControlApp3/src/android/omapi/accesscontrol3/cts/
DAccessControlTest.java389 private static boolean verifyBerTlvData(byte[] tlv) { in verifyBerTlvData() argument
390 if (tlv == null || tlv.length == 0) { in verifyBerTlvData()
396 key[0] = tlv[i]; in verifyBerTlvData()
399 key[1] = tlv[i = i + 1]; in verifyBerTlvData()
402 int len = tlv[i = i + 1] & 0xFF; in verifyBerTlvData()
408 len += (tlv[i = i + 1] & 0xFF) * Math.pow(10, j); in verifyBerTlvData()
411 return tlv.length == (i + len + 3); in verifyBerTlvData()
/cts/tests/tests/secure_element/access_control/AccessControlApp2/src/android/omapi/accesscontrol2/cts/
DAccessControlTest.java386 private static boolean verifyBerTlvData(byte[] tlv) { in verifyBerTlvData() argument
387 if (tlv == null || tlv.length == 0) { in verifyBerTlvData()
393 key[0] = tlv[i]; in verifyBerTlvData()
396 key[1] = tlv[i = i + 1]; in verifyBerTlvData()
399 int len = tlv[i = i + 1] & 0xFF; in verifyBerTlvData()
405 len += (tlv[i = i + 1] & 0xFF) * Math.pow(10, j); in verifyBerTlvData()
408 return tlv.length == (i + len + 3); in verifyBerTlvData()
/cts/tests/tests/secure_element/omapi/src/android/omapi/cts/
DOmapiTest.java888 private static boolean verifyBerTlvData(byte[] tlv){ in verifyBerTlvData() argument
889 if (tlv == null || tlv.length == 0) { in verifyBerTlvData()
893 if ((tlv[i++] & 0x1F) == 0x1F) { in verifyBerTlvData()
898 int len = tlv[i++] & 0xFF; in verifyBerTlvData()
904 len += (len << 8) + (tlv[i++] & 0xFF); in verifyBerTlvData()
908 return (tlv.length == (i+len+2)); in verifyBerTlvData()