/external/guava/guava-tests/test/com/google/common/base/ |
D | Utf8Test.java | 63 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/ |
D | Utf8Test.java | 63 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/ |
D | DexDataWriter.java | 223 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/ |
D | DLTaggedObject.java | 31 int encodedLength() in encodedLength() method in DLTaggedObject 34 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength() 63 out.writeLength(primitive.encodedLength()); in encode()
|
D | DERTaggedObject.java | 36 int encodedLength() in encodedLength() method in DERTaggedObject 40 int length = primitive.encodedLength(); in encodedLength() 69 out.writeLength(primitive.encodedLength()); in encode()
|
D | DLSequence.java | 62 totalLength += dlObject.encodedLength(); in getBodyLength() 71 int encodedLength() throws IOException in encodedLength() method in DLSequence 114 totalLength += dlObject.encodedLength(); in encode()
|
D | DLSet.java | 104 totalLength += dlObject.encodedLength(); in getBodyLength() 113 int encodedLength() throws IOException in encodedLength() method in DLSet 156 totalLength += dlObject.encodedLength(); in encode()
|
D | DERSequence.java | 70 totalLength += derObject.encodedLength(); in getBodyLength() 79 int encodedLength() throws IOException in encodedLength() method in DERSequence 123 totalLength += derObject.encodedLength(); in encode()
|
D | DERSet.java | 74 totalLength += derObject.encodedLength(); in getBodyLength() 83 int encodedLength() throws IOException in encodedLength() method in DERSet 127 totalLength += derObject.encodedLength(); in encode()
|
D | BERSequence.java | 47 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/ |
D | DLTaggedObject.java | 33 int encodedLength() in encodedLength() method in DLTaggedObject 36 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength() 65 out.writeLength(primitive.encodedLength()); in encode()
|
D | DERTaggedObject.java | 38 int encodedLength() in encodedLength() method in DERTaggedObject 42 int length = primitive.encodedLength(); in encodedLength() 71 out.writeLength(primitive.encodedLength()); in encode()
|
D | DLSequence.java | 64 totalLength += dlObject.encodedLength(); in getBodyLength() 73 int encodedLength() throws IOException in encodedLength() method in DLSequence 116 totalLength += dlObject.encodedLength(); in encode()
|
D | DLSet.java | 106 totalLength += dlObject.encodedLength(); in getBodyLength() 115 int encodedLength() throws IOException in encodedLength() method in DLSet 158 totalLength += dlObject.encodedLength(); in encode()
|
D | DERSequence.java | 74 totalLength += derObject.encodedLength(); in getBodyLength() 83 int encodedLength() throws IOException in encodedLength() method in DERSequence 127 totalLength += derObject.encodedLength(); in encode()
|
D | DERSet.java | 77 totalLength += derObject.encodedLength(); in getBodyLength() 86 int encodedLength() throws IOException in encodedLength() method in DERSet 130 totalLength += derObject.encodedLength(); in encode()
|
D | BERSequence.java | 49 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/ |
D | DLTaggedObject.java | 33 int encodedLength() in encodedLength() method in DLTaggedObject 36 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength() 65 out.writeLength(primitive.encodedLength()); in encode()
|
D | DERTaggedObject.java | 38 int encodedLength() in encodedLength() method in DERTaggedObject 42 int length = primitive.encodedLength(); in encodedLength() 71 out.writeLength(primitive.encodedLength()); in encode()
|
D | DLSet.java | 106 totalLength += dlObject.encodedLength(); in getBodyLength() 115 int encodedLength() throws IOException in encodedLength() method in DLSet 158 totalLength += dlObject.encodedLength(); in encode()
|
D | DLSequence.java | 64 totalLength += dlObject.encodedLength(); in getBodyLength() 73 int encodedLength() throws IOException in encodedLength() method in DLSequence 116 totalLength += dlObject.encodedLength(); in encode()
|
D | DERSequence.java | 72 totalLength += derObject.encodedLength(); in getBodyLength() 81 int encodedLength() throws IOException in encodedLength() method in DERSequence 125 totalLength += derObject.encodedLength(); in encode()
|
D | DERSet.java | 76 totalLength += derObject.encodedLength(); in getBodyLength() 85 int encodedLength() throws IOException in encodedLength() method in DERSet 129 totalLength += derObject.encodedLength(); in encode()
|
D | BERSequence.java | 49 int encodedLength() throws IOException in encodedLength() method in BERSequence 57 totalLength += p.encodedLength(); in encodedLength()
|
/external/icu/icu4c/source/test/perf/utfperf/ |
D | utfperf.cpp | 42 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()
|