Searched refs:valueLength (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
D | Asn1Tag.java | 65 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 …]
|
D | Asn1SequenceOf.java | 85 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()
|
D | Asn1Choice.java | 39 public int getTaggedLength(int valueLength) { 40 return valueLength; 44 public void writeTagAndLength(ByteBuffer buf, boolean constructed, int valueLength) {
|
D | Asn1Sequence.java | 110 int valueLength = Asn1Tag.readLength(buf); in decodeBerValue() local 111 buf.limit(buf.position() + valueLength); in decodeBerValue()
|
/cts/libs/json/src/com/android/json/stream/ |
D | JsonReader.java | 211 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()
|