Home
last modified time | relevance | path

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

/frameworks/base/wifi/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 …]
/frameworks/base/wifi/java/android/net/wifi/aware/
DTlvBufferUtils.java527 for (TlvElement tlv : this) { in toString()
534 builder.append("T=" + tlv.type + ","); in toString()
536 builder.append("L=" + tlv.length + ") "); in toString()
537 if (tlv.length == 0) { in toString()
539 } else if (tlv.length == 1) { in toString()
540 builder.append(tlv.getByte()); in toString()
541 } else if (tlv.length == 2) { in toString()
542 builder.append(tlv.getShort()); in toString()
543 } else if (tlv.length == 4) { in toString()
544 builder.append(tlv.getInt()); in toString()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DUsimPhoneBookManager.java597 void parseTag(SimTlv tlv) { in parseTag() argument
603 tag = tlv.getTag(); in parseTag()
608 data = tlv.getData(); in parseTag()
613 } while (tlv.nextObject()); in parseTag()
616 void parseEfAndSFI(SimTlv tlv, int parentTag) { in parseEfAndSFI() argument
621 tag = tlv.getTag(); in parseEfAndSFI()
649 data = tlv.getData(); in parseEfAndSFI()
666 } while(tlv.nextObject()); in parseEfAndSFI()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java1866 SimTlv tlv = new SimTlv(data, 0, data.length); in parseEfSpdi() local
1870 for ( ; tlv.isValidObject() ; tlv.nextObject()) { in parseEfSpdi()
1872 if (tlv.getTag() == TAG_SPDI) { in parseEfSpdi()
1873 tlv = new SimTlv(tlv.getData(), 0, tlv.getData().length); in parseEfSpdi()
1876 if (tlv.getTag() == TAG_SPDI_PLMN_LIST) { in parseEfSpdi()
1877 plmnEntries = tlv.getData(); in parseEfSpdi()
1909 SimTlv tlv = new SimTlv(data, 0, data.length); in parseEfPnn() local
1913 for (; tlv.isValidObject(); tlv.nextObject()) { in parseEfPnn()
1914 switch (tlv.getTag()) { in parseEfPnn()
1916 longName = IccUtils.networkNameToString(tlv.getData(), 0, in parseEfPnn()
[all …]
DIsimUiccRecords.java239 SimTlv tlv = new SimTlv(record, 0, record.length); in isimTlvToString() local
241 if (tlv.getTag() == TAG_ISIM_VALUE) { in isimTlvToString()
242 return new String(tlv.getData(), Charset.forName("UTF-8")); in isimTlvToString()
244 } while (tlv.nextObject()); in isimTlvToString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java1669 private static Pair<Integer, Integer> parseServiceInfoTlv(byte[] tlv) { in parseServiceInfoTlv() argument
1673 if (tlv.length < 4) { in parseServiceInfoTlv()
1677 if (tlv[0] != WFA_OUI[0] || tlv[1] != WFA_OUI[1] || tlv[2] != WFA_OUI[2]) { in parseServiceInfoTlv()
1681 if (tlv[3] != GENERIC_SERVICE_PROTOCOL_TYPE) { in parseServiceInfoTlv()
1682 Log.e(TAG, "NetworkInformationData: invalid type -- " + tlv[3]); in parseServiceInfoTlv()
1686 2, Arrays.copyOfRange(tlv, 4, tlv.length)); in parseServiceInfoTlv()