/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | Utf8Test.java | 33 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings() 34 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings() 35 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings() 36 assertEquals(461, Utf8.encodedLength("威廉·莎士比亞(William Shakespeare," in testEncodedLength_validStrings() 43 assertEquals(4, Utf8.encodedLength( in testEncodedLength_validStrings() 61 Utf8.encodedLength(invalidString); in testEncodedLengthFails()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | Utf8Test.java | 39 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings() 40 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings() 41 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings() 42 assertEquals(461, Utf8.encodedLength("威廉·莎士比亞(William Shakespeare," in testEncodedLength_validStrings() 49 assertEquals(4, Utf8.encodedLength( in testEncodedLength_validStrings() 75 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2() 80 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2() 100 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/icu/icu4c/source/test/perf/utfperf/ |
D | utfperf.cpp | 38 static int32_t utf8Length, encodedLength, outputLength, countInputCodePoints; variable 181 encodedLength=outputLength=0; in call() 188 encodedLength+=(int32_t)(pInter-intermediate); in call() 242 encodedLength=0; in call() 247 encodedLength+=(int32_t)(pInter-intermediate); in call() 300 encodedLength=0; in call() 309 encodedLength+=(int32_t)(pInter-intermediate); in call()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | DLTaggedObject.java | 49 int encodedLength() in encodedLength() method in DLTaggedObject 54 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength() 85 out.writeLength(primitive.encodedLength()); in encode()
|
D | DERTaggedObject.java | 54 int encodedLength() in encodedLength() method in DERTaggedObject 60 int length = primitive.encodedLength(); in encodedLength() 91 out.writeLength(primitive.encodedLength()); in encode()
|
D | BERSet.java | 43 int encodedLength() in encodedLength() method in BERSet 49 length += ((ASN1Encodable)e.nextElement()).toASN1Primitive().encodedLength(); in encodedLength()
|
D | BERSequence.java | 43 int encodedLength() in encodedLength() method in BERSequence 49 length += ((ASN1Encodable)e.nextElement()).toASN1Primitive().encodedLength(); in encodedLength()
|
D | DERSequence.java | 56 length += ((ASN1Encodable)obj).toASN1Primitive().toDERObject().encodedLength(); in getBodyLength() 65 int encodedLength() in encodedLength() method in DERSequence
|
D | DLSequence.java | 59 length += ((ASN1Encodable)obj).toASN1Primitive().toDLObject().encodedLength(); in getBodyLength() 68 int encodedLength() in encodedLength() method in DLSequence
|
D | DLSet.java | 104 length += ((ASN1Encodable)obj).toASN1Primitive().toDLObject().encodedLength(); in getBodyLength() 113 int encodedLength() in encodedLength() method in DLSet
|
D | DERSet.java | 66 length += ((ASN1Encodable)obj).toASN1Primitive().toDERObject().encodedLength(); in getBodyLength() 75 int encodedLength() in encodedLength() method in DERSet
|
D | LazyEncodedSequence.java | 83 int encodedLength() in encodedLength() method in LazyEncodedSequence 92 return super.toDLObject().encodedLength(); in encodedLength()
|
D | BERTaggedObject.java | 69 int encodedLength() in encodedLength() method in BERTaggedObject 75 int length = primitive.encodedLength(); in encodedLength()
|
D | BEROctetString.java | 123 int encodedLength() in encodedLength() method 129 length += ((ASN1Encodable)e.nextElement()).toASN1Primitive().encodedLength(); in encodedLength()
|
D | DERNull.java | 29 int encodedLength() in encodedLength() method in DERNull
|
D | DEROctetString.java | 29 int encodedLength() in encodedLength() method in DEROctetString
|
D | ASN1Primitive.java | 77 abstract int encodedLength() throws IOException; in encodedLength() method in ASN1Primitive
|
D | DERUTF8String.java | 124 int encodedLength() in encodedLength() method in DERUTF8String
|
D | DERT61String.java | 115 int encodedLength() in encodedLength() method in DERT61String
|
D | DERVisibleString.java | 114 int encodedLength() in encodedLength() method in DERVisibleString
|
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/ |
D | DexWriterUleb128Test.java | 229 …private void performTest(int integerValue, byte[] encodedValue, int encodedLength) throws IOExcept… in performTest() argument 237 Assert.assertEquals(startPosition + encodedLength, writer.getPosition()); in performTest() 238 for (int i=0; i<encodedLength; i++) { in performTest()
|
D | DexWriterSleb128Test.java | 232 …private void performTest(int integerValue, byte[] encodedValue, int encodedLength) throws IOExcept… in performTest() argument 240 Assert.assertEquals(startPosition + encodedLength, writer.getPosition()); in performTest() 241 for (int i=0; i<encodedLength; i++) { in performTest()
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
D | Utf8Benchmark.java | 144 if (Utf8.encodedLength(string) == 1237482374) { in lengthOfString() 160 if (Utf8.encodedLength(seq) == 1237482374) { in lengthOfStringBuilder()
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/ |
D | HuffmanTest.java | 50 assertEquals(baos.size(), Huffman.get().encodedLength(buf)); in assertRoundTrip()
|