Home
last modified time | relevance | path

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

/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/
DTlvBufferUtilsTest.java77 TlvBufferUtils.TlvConstructor tlv = new TlvBufferUtils.TlvConstructor(1, 1); in testTlvReuse() local
79 tlv.allocate(10); in testTlvReuse()
80 tlv.putByte(0, (byte) 2); in testTlvReuse()
81 tlv.putByte(1, (byte) 104); in testTlvReuse()
83 collector.checkThat("initial", tlv.getArray(), equalTo(new byte[]{0, 1, 2, 1, 1, 104})); in testTlvReuse()
85 tlv.allocate(8); in testTlvReuse()
86 tlv.putByte(5, (byte) 7); in testTlvReuse()
87 collector.checkThat("re-alloc", tlv.getArray(), equalTo(new byte[]{5, 1, 7})); in testTlvReuse()
148 TlvBufferUtils.TlvConstructor tlv = new TlvBufferUtils.TlvConstructor(1, 1); in testRawPuts() local
150 tlv.allocate(10); in testRawPuts()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DTlvBufferUtils.java525 for (TlvElement tlv : this) { in toString()
532 builder.append("T=" + tlv.type + ","); in toString()
534 builder.append("L=" + tlv.length + ") "); in toString()
535 if (tlv.length == 0) { in toString()
537 } else if (tlv.length == 1) { in toString()
538 builder.append(tlv.getByte()); in toString()
539 } else if (tlv.length == 2) { in toString()
540 builder.append(tlv.getShort()); in toString()
541 } else if (tlv.length == 4) { in toString()
542 builder.append(tlv.getInt()); in toString()
[all …]
/packages/apps/SecureElement/src/com/android/se/security/ara/
DAraController.java185 BerTlv tlv = Response_DO_Factory.createDO(data); in readAllAccessRules() local
186 if (tlv == null || !(tlv instanceof Response_ALL_AR_DO)) { in readAllAccessRules()
189 ArrayList<REF_AR_DO> array = ((Response_ALL_AR_DO) tlv).getRefArDos(); in readAllAccessRules()
/packages/apps/Nfc/nci/jni/extns/pn54x/inc/
DphNxpExtns_Custom.h87 NFCSTATUS phNxpNciHal_read_tlv(tlv_t* tlv);
104 NFCSTATUS phNxpNciHal_write_tlv(tlv_t* tlv);
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java1805 private static Pair<Integer, Integer> parseServiceInfoTlv(byte[] tlv) { in parseServiceInfoTlv() argument
1809 if (tlv.length < 4) { in parseServiceInfoTlv()
1813 if (tlv[0] != WFA_OUI[0] || tlv[1] != WFA_OUI[1] || tlv[2] != WFA_OUI[2]) { in parseServiceInfoTlv()
1817 if (tlv[3] != GENERIC_SERVICE_PROTOCOL_TYPE) { in parseServiceInfoTlv()
1818 Log.e(TAG, "NetworkInformationData: invalid type -- " + tlv[3]); in parseServiceInfoTlv()
1822 2, Arrays.copyOfRange(tlv, 4, tlv.length)); in parseServiceInfoTlv()
/packages/apps/SecureElement/src/com/android/se/security/gpac/
DREF_DO.java195 BerTlv tlv = new BerTlv(data, getTag(), 0, data.length); in build() local
196 tlv.build(stream); in build()