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.java590 void parseTag(SimTlv tlv) { in parseTag() argument
596 tag = tlv.getTag(); in parseTag()
601 data = tlv.getData(); in parseTag()
606 } while (tlv.nextObject()); in parseTag()
609 void parseEfAndSFI(SimTlv tlv, int parentTag) { in parseEfAndSFI() argument
614 tag = tlv.getTag(); in parseEfAndSFI()
642 data = tlv.getData(); in parseEfAndSFI()
659 } while(tlv.nextObject()); in parseEfAndSFI()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSIMRecords.java923 SimTlv tlv = new SimTlv(data, 0, data.length); in handleMessage() local
925 for (; tlv.isValidObject(); tlv.nextObject()) { in handleMessage()
926 if (tlv.getTag() == TAG_FULL_NETWORK_NAME) { in handleMessage()
928 tlv.getData(), 0, tlv.getData().length); in handleMessage()
1802 SimTlv tlv = new SimTlv(data, 0, data.length); in parseEfSpdi() local
1806 for ( ; tlv.isValidObject() ; tlv.nextObject()) { in parseEfSpdi()
1808 if (tlv.getTag() == TAG_SPDI) { in parseEfSpdi()
1809 tlv = new SimTlv(tlv.getData(), 0, tlv.getData().length); in parseEfSpdi()
1812 if (tlv.getTag() == TAG_SPDI_PLMN_LIST) { in parseEfSpdi()
1813 plmnEntries = tlv.getData(); in parseEfSpdi()
DIsimUiccRecords.java272 SimTlv tlv = new SimTlv(record, 0, record.length); in isimTlvToString() local
274 if (tlv.getTag() == TAG_ISIM_VALUE) { in isimTlvToString()
275 return new String(tlv.getData(), Charset.forName("UTF-8")); in isimTlvToString()
277 } while (tlv.nextObject()); in isimTlvToString()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java1681 private static Pair<Integer, Integer> parseServiceInfoTlv(byte[] tlv) { in parseServiceInfoTlv() argument
1685 if (tlv.length < 4) { in parseServiceInfoTlv()
1689 if (tlv[0] != WFA_OUI[0] || tlv[1] != WFA_OUI[1] || tlv[2] != WFA_OUI[2]) { in parseServiceInfoTlv()
1693 if (tlv[3] != GENERIC_SERVICE_PROTOCOL_TYPE) { in parseServiceInfoTlv()
1694 Log.e(TAG, "NetworkInformationData: invalid type -- " + tlv[3]); in parseServiceInfoTlv()
1698 2, Arrays.copyOfRange(tlv, 4, tlv.length)); in parseServiceInfoTlv()