Home
last modified time | relevance | path

Searched refs:valueLength (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1Tag.java65 public int getTaggedLength(int valueLength) { in getTaggedLength() argument
69 return 1 + getLengthLength(valueLength) + valueLength; in getTaggedLength()
79 static int getLengthLength(int valueLength) { in getLengthLength() argument
80 if (valueLength < 0) { in getLengthLength()
81 throw new IllegalArgumentException("valueLength=" + valueLength); in getLengthLength()
83 if (valueLength < (1 << 7)) { in getLengthLength()
86 } else if (valueLength < (1 << 8)) { in getLengthLength()
88 } else if (valueLength < (1 << 16)) { in getLengthLength()
90 } else if (valueLength < (1 << 24)) { in getLengthLength()
97 public void writeTagAndLength(ByteBuffer buf, boolean constructed, int valueLength) { in writeTagAndLength() argument
[all …]
DAsn1SequenceOf.java85 int valueLength = Asn1Tag.readLength(buf); in decodeBerValue() local
92 valueLength = Asn1Tag.readLength(buf); in decodeBerValue()
97 ByteBuffer subBuf = ByteBuffer.wrap(buf.array(), buf.position(), valueLength); in decodeBerValue()
102 buf.position(buf.position() + valueLength); in decodeBerValue()
DAsn1Choice.java39 public int getTaggedLength(int valueLength) {
40 return valueLength;
44 public void writeTagAndLength(ByteBuffer buf, boolean constructed, int valueLength) {
DAsn1Sequence.java110 int valueLength = Asn1Tag.readLength(buf); in decodeBerValue() local
111 buf.limit(buf.position() + valueLength); in decodeBerValue()
/cts/libs/json/src/com/android/json/stream/
DJsonReader.java211 private int valueLength; field in JsonReader
855 valueLength = 0; in nextLiteral()
902 valueLength += i; in nextLiteral()
922 valueLength += i; in nextLiteral()
983 if (valueLength == 0) { in readLiteral()
1000 } else if (valueLength == 4 in decodeLiteral()
1007 } else if (valueLength == 4 in decodeLiteral()
1014 } else if (valueLength == 5 in decodeLiteral()
1023 value = new String(buffer, valuePos, valueLength); in decodeLiteral()
1024 return decodeNumber(buffer, valuePos, valueLength); in decodeLiteral()