/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 | 38 assertEquals(0, Utf8.encodedLength("")); in testEncodedLength_validStrings() 39 assertEquals(11, Utf8.encodedLength("Hello world")); in testEncodedLength_validStrings() 40 assertEquals(8, Utf8.encodedLength("Résumé")); in testEncodedLength_validStrings() 41 assertEquals(461, Utf8.encodedLength("威廉·莎士比亞(William Shakespeare," in testEncodedLength_validStrings() 48 assertEquals(4, Utf8.encodedLength( in testEncodedLength_validStrings() 74 if (utf8Length != Utf8.encodedLength(sb)) { in testEncodedLength_validStrings2() 79 assertEquals(repro.toString(), utf8Length, Utf8.encodedLength(sb)); in testEncodedLength_validStrings2() 99 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 | 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()
|
/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 | BERSequence.java | 51 int encodedLength() in encodedLength() method in BERSequence 57 length += ((ASN1Encodable)e.nextElement()).toASN1Primitive().encodedLength(); in encodedLength()
|
D | BERSet.java | 61 int encodedLength() in encodedLength() method in BERSet 67 length += ((ASN1Encodable)e.nextElement()).toASN1Primitive().encodedLength(); in encodedLength()
|
D | DLSequence.java | 62 length += ((ASN1Encodable)obj).toASN1Primitive().toDLObject().encodedLength(); in getBodyLength() 71 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 | DERSequence.java | 65 length += ((ASN1Encodable)obj).toASN1Primitive().toDERObject().encodedLength(); in getBodyLength() 74 int encodedLength() in encodedLength() method in DERSequence
|
D | LazyEncodedSequence.java | 83 int encodedLength() in encodedLength() method in LazyEncodedSequence 92 return super.toDLObject().encodedLength(); in encodedLength()
|
D | DERSet.java | 76 length += ((ASN1Encodable)obj).toASN1Primitive().toDERObject().encodedLength(); in getBodyLength() 85 int encodedLength() in encodedLength() method in DERSet
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | DLTaggedObject.java | 51 int encodedLength() in encodedLength() method in DLTaggedObject 56 int length = obj.toASN1Primitive().toDLObject().encodedLength(); in encodedLength() 87 out.writeLength(primitive.encodedLength()); in encode()
|
D | DERTaggedObject.java | 58 int encodedLength() in encodedLength() method in DERTaggedObject 64 int length = primitive.encodedLength(); in encodedLength() 95 out.writeLength(primitive.encodedLength()); in encode()
|
D | BERSequence.java | 53 int encodedLength() in encodedLength() method in BERSequence 59 length += ((ASN1Encodable)e.nextElement()).toASN1Primitive().encodedLength(); in encodedLength()
|
D | BERSet.java | 63 int encodedLength() in encodedLength() method in BERSet 69 length += ((ASN1Encodable)e.nextElement()).toASN1Primitive().encodedLength(); in encodedLength()
|
D | DLSet.java | 106 length += ((ASN1Encodable)obj).toASN1Primitive().toDLObject().encodedLength(); in getBodyLength() 115 int encodedLength() in encodedLength() method in DLSet
|
D | DLSequence.java | 64 length += ((ASN1Encodable)obj).toASN1Primitive().toDLObject().encodedLength(); in getBodyLength() 73 int encodedLength() in encodedLength() method in DLSequence
|
D | LazyEncodedSequence.java | 84 int encodedLength() in encodedLength() method in LazyEncodedSequence 93 return super.toDLObject().encodedLength(); in encodedLength()
|
D | DERSet.java | 79 length += ((ASN1Encodable)obj).toASN1Primitive().toDERObject().encodedLength(); in getBodyLength() 88 int encodedLength() in encodedLength() method in DERSet
|
D | DERSequence.java | 72 length += ((ASN1Encodable)obj).toASN1Primitive().toDERObject().encodedLength(); in getBodyLength() 81 int encodedLength() in encodedLength() method in DERSequence
|
D | BERTaggedObject.java | 71 int encodedLength() in encodedLength() method in BERTaggedObject 77 int length = primitive.encodedLength(); in encodedLength()
|
/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()
|