Home
last modified time | relevance | path

Searched refs:encodedLength (Results 1 – 25 of 139) sorted by relevance

123456

/external/guava/guava-tests/test/com/google/common/base/
DUtf8Test.java63 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings()
64 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings()
65 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings()
68 Utf8.encodedLength( in testEncodedLength_validStrings()
76 assertEquals(4, Utf8.encodedLength(newString(MIN_HIGH_SURROGATE, MIN_LOW_SURROGATE))); in testEncodedLength_validStrings()
100 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2()
105 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2()
121 Utf8.encodedLength(invalidString); in testEncodedLengthFails()
/external/guava/android/guava-tests/test/com/google/common/base/
DUtf8Test.java63 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings()
64 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings()
65 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings()
68 Utf8.encodedLength( in testEncodedLength_validStrings()
76 assertEquals(4, Utf8.encodedLength(newString(MIN_HIGH_SURROGATE, MIN_LOW_SURROGATE))); in testEncodedLength_validStrings()
100 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2()
105 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2()
121 Utf8.encodedLength(invalidString); in testEncodedLengthFails()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/
DDexDataWriter.java223 int encodedLength = 4-firstElement; in writeRightZeroExtendedInt() local
224 writeEncodedValueHeader(valueType, encodedLength - 1); in writeRightZeroExtendedInt()
225 write(tempBuf, firstElement, encodedLength); in writeRightZeroExtendedInt()
240 int encodedLength = 8-firstElement; in writeRightZeroExtendedLong() local
241 writeEncodedValueHeader(valueType, encodedLength - 1); in writeRightZeroExtendedLong()
242 write(tempBuf, firstElement, encodedLength); in writeRightZeroExtendedLong()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDLTaggedObject.java31 int encodedLength() in encodedLength() method in DLTaggedObject
34 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength()
63 out.writeLength(primitive.encodedLength()); in encode()
DDERTaggedObject.java36 int encodedLength() in encodedLength() method in DERTaggedObject
40 int length = primitive.encodedLength(); in encodedLength()
69 out.writeLength(primitive.encodedLength()); in encode()
DDLSequence.java62 totalLength += dlObject.encodedLength(); in getBodyLength()
71 int encodedLength() throws IOException in encodedLength() method in DLSequence
114 totalLength += dlObject.encodedLength(); in encode()
DDLSet.java104 totalLength += dlObject.encodedLength(); in getBodyLength()
113 int encodedLength() throws IOException in encodedLength() method in DLSet
156 totalLength += dlObject.encodedLength(); in encode()
DDERSequence.java70 totalLength += derObject.encodedLength(); in getBodyLength()
79 int encodedLength() throws IOException in encodedLength() method in DERSequence
123 totalLength += derObject.encodedLength(); in encode()
DDERSet.java74 totalLength += derObject.encodedLength(); in getBodyLength()
83 int encodedLength() throws IOException in encodedLength() method in DERSet
127 totalLength += derObject.encodedLength(); in encode()
DBERSequence.java47 int encodedLength() throws IOException in encodedLength() method in BERSequence
55 totalLength += p.encodedLength(); in encodedLength()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DDLTaggedObject.java33 int encodedLength() in encodedLength() method in DLTaggedObject
36 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength()
65 out.writeLength(primitive.encodedLength()); in encode()
DDERTaggedObject.java38 int encodedLength() in encodedLength() method in DERTaggedObject
42 int length = primitive.encodedLength(); in encodedLength()
71 out.writeLength(primitive.encodedLength()); in encode()
DDLSequence.java64 totalLength += dlObject.encodedLength(); in getBodyLength()
73 int encodedLength() throws IOException in encodedLength() method in DLSequence
116 totalLength += dlObject.encodedLength(); in encode()
DDLSet.java106 totalLength += dlObject.encodedLength(); in getBodyLength()
115 int encodedLength() throws IOException in encodedLength() method in DLSet
158 totalLength += dlObject.encodedLength(); in encode()
DDERSequence.java74 totalLength += derObject.encodedLength(); in getBodyLength()
83 int encodedLength() throws IOException in encodedLength() method in DERSequence
127 totalLength += derObject.encodedLength(); in encode()
DDERSet.java77 totalLength += derObject.encodedLength(); in getBodyLength()
86 int encodedLength() throws IOException in encodedLength() method in DERSet
130 totalLength += derObject.encodedLength(); in encode()
DBERSequence.java49 int encodedLength() throws IOException in encodedLength() method in BERSequence
57 totalLength += p.encodedLength(); in encodedLength()
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DDLTaggedObject.java33 int encodedLength() in encodedLength() method in DLTaggedObject
36 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength()
65 out.writeLength(primitive.encodedLength()); in encode()
DDERTaggedObject.java38 int encodedLength() in encodedLength() method in DERTaggedObject
42 int length = primitive.encodedLength(); in encodedLength()
71 out.writeLength(primitive.encodedLength()); in encode()
DDLSet.java106 totalLength += dlObject.encodedLength(); in getBodyLength()
115 int encodedLength() throws IOException in encodedLength() method in DLSet
158 totalLength += dlObject.encodedLength(); in encode()
DDLSequence.java64 totalLength += dlObject.encodedLength(); in getBodyLength()
73 int encodedLength() throws IOException in encodedLength() method in DLSequence
116 totalLength += dlObject.encodedLength(); in encode()
DDERSequence.java72 totalLength += derObject.encodedLength(); in getBodyLength()
81 int encodedLength() throws IOException in encodedLength() method in DERSequence
125 totalLength += derObject.encodedLength(); in encode()
DDERSet.java76 totalLength += derObject.encodedLength(); in getBodyLength()
85 int encodedLength() throws IOException in encodedLength() method in DERSet
129 totalLength += derObject.encodedLength(); in encode()
DBERSequence.java49 int encodedLength() throws IOException in encodedLength() method in BERSequence
57 totalLength += p.encodedLength(); in encodedLength()
/external/icu/icu4c/source/test/perf/utfperf/
Dutfperf.cpp42 static int32_t utf8Length, encodedLength, outputLength, countInputCodePoints; variable
185 encodedLength=outputLength=0; in call()
192 encodedLength+=(int32_t)(pInter-intermediate); in call()
246 encodedLength=0; in call()
251 encodedLength+=(int32_t)(pInter-intermediate); in call()
304 encodedLength=0; in call()
313 encodedLength+=(int32_t)(pInter-intermediate); in call()

123456