Home
last modified time | relevance | path

Searched refs:totalLength (Results 1 – 25 of 48) sorted by relevance

12

/external/wycheproof/java/com/google/security/wycheproof/testcases/
DCipherInputStreamTest.java112 int totalLength = 0; in testEncrypt() local
115 length = cis.read(result, totalLength, result.length - totalLength); in testEncrypt()
117 totalLength += length; in testEncrypt()
119 } while (length >= 0 && totalLength != result.length); in testEncrypt()
136 int totalLength = 0; in testDecrypt() local
139 length = cis.read(result, totalLength, result.length - totalLength); in testDecrypt()
141 totalLength += length; in testDecrypt()
143 } while (length >= 0 && totalLength != result.length); in testDecrypt()
170 int totalLength = 0; in testCorruptDecrypt() local
173 length = cis.read(result, totalLength, result.length - totalLength); in testCorruptDecrypt()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/
DDLSet.java101 int totalLength = 0; in getBodyLength() local
106 totalLength += dlObject.encodedLength(); in getBodyLength()
109 this.bodyLength = totalLength; in getBodyLength()
151 int totalLength = 0; in encode() local
158 totalLength += dlObject.encodedLength(); in encode()
161 this.bodyLength = totalLength; in encode()
162 out.writeLength(totalLength); in encode()
DDLSequence.java59 int totalLength = 0; in getBodyLength() local
64 totalLength += dlObject.encodedLength(); in getBodyLength()
67 this.bodyLength = totalLength; in getBodyLength()
109 int totalLength = 0; in encode() local
116 totalLength += dlObject.encodedLength(); in encode()
119 this.bodyLength = totalLength; in encode()
120 out.writeLength(totalLength); in encode()
DDERSequence.java67 int totalLength = 0; in getBodyLength() local
72 totalLength += derObject.encodedLength(); in getBodyLength()
75 this.bodyLength = totalLength; in getBodyLength()
118 int totalLength = 0; in encode() local
125 totalLength += derObject.encodedLength(); in encode()
128 this.bodyLength = totalLength; in encode()
129 out.writeLength(totalLength); in encode()
DDERSet.java71 int totalLength = 0; in getBodyLength() local
76 totalLength += derObject.encodedLength(); in getBodyLength()
79 this.bodyLength = totalLength; in getBodyLength()
122 int totalLength = 0; in encode() local
129 totalLength += derObject.encodedLength(); in encode()
132 this.bodyLength = totalLength; in encode()
133 out.writeLength(totalLength); in encode()
DBERSequence.java52 int totalLength = 0; in encodedLength() local
57 totalLength += p.encodedLength(); in encodedLength()
60 return 2 + totalLength + 2; in encodedLength()
DBERSet.java67 int totalLength = 0; in encodedLength() local
72 totalLength += p.encodedLength(); in encodedLength()
75 return 2 + totalLength + 2; in encodedLength()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/
DDLSequence.java57 int totalLength = 0; in getBodyLength() local
62 totalLength += dlObject.encodedLength(); in getBodyLength()
65 this.bodyLength = totalLength; in getBodyLength()
107 int totalLength = 0; in encode() local
114 totalLength += dlObject.encodedLength(); in encode()
117 this.bodyLength = totalLength; in encode()
118 out.writeLength(totalLength); in encode()
DDLSet.java99 int totalLength = 0; in getBodyLength() local
104 totalLength += dlObject.encodedLength(); in getBodyLength()
107 this.bodyLength = totalLength; in getBodyLength()
149 int totalLength = 0; in encode() local
156 totalLength += dlObject.encodedLength(); in encode()
159 this.bodyLength = totalLength; in encode()
160 out.writeLength(totalLength); in encode()
DDERSequence.java65 int totalLength = 0; in getBodyLength() local
70 totalLength += derObject.encodedLength(); in getBodyLength()
73 this.bodyLength = totalLength; in getBodyLength()
116 int totalLength = 0; in encode() local
123 totalLength += derObject.encodedLength(); in encode()
126 this.bodyLength = totalLength; in encode()
127 out.writeLength(totalLength); in encode()
DDERSet.java69 int totalLength = 0; in getBodyLength() local
74 totalLength += derObject.encodedLength(); in getBodyLength()
77 this.bodyLength = totalLength; in getBodyLength()
120 int totalLength = 0; in encode() local
127 totalLength += derObject.encodedLength(); in encode()
130 this.bodyLength = totalLength; in encode()
131 out.writeLength(totalLength); in encode()
DBERSequence.java50 int totalLength = 0; in encodedLength() local
55 totalLength += p.encodedLength(); in encodedLength()
58 return 2 + totalLength + 2; in encodedLength()
DBERSet.java65 int totalLength = 0; in encodedLength() local
70 totalLength += p.encodedLength(); in encodedLength()
73 return 2 + totalLength + 2; in encodedLength()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/
DDLSequence.java59 int totalLength = 0; in getBodyLength() local
64 totalLength += dlObject.encodedLength(); in getBodyLength()
67 this.bodyLength = totalLength; in getBodyLength()
109 int totalLength = 0; in encode() local
116 totalLength += dlObject.encodedLength(); in encode()
119 this.bodyLength = totalLength; in encode()
120 out.writeLength(totalLength); in encode()
DDLSet.java101 int totalLength = 0; in getBodyLength() local
106 totalLength += dlObject.encodedLength(); in getBodyLength()
109 this.bodyLength = totalLength; in getBodyLength()
151 int totalLength = 0; in encode() local
158 totalLength += dlObject.encodedLength(); in encode()
161 this.bodyLength = totalLength; in encode()
162 out.writeLength(totalLength); in encode()
DDERSequence.java69 int totalLength = 0; in getBodyLength() local
74 totalLength += derObject.encodedLength(); in getBodyLength()
77 this.bodyLength = totalLength; in getBodyLength()
120 int totalLength = 0; in encode() local
127 totalLength += derObject.encodedLength(); in encode()
130 this.bodyLength = totalLength; in encode()
131 out.writeLength(totalLength); in encode()
DDERSet.java72 int totalLength = 0; in getBodyLength() local
77 totalLength += derObject.encodedLength(); in getBodyLength()
80 this.bodyLength = totalLength; in getBodyLength()
123 int totalLength = 0; in encode() local
130 totalLength += derObject.encodedLength(); in encode()
133 this.bodyLength = totalLength; in encode()
134 out.writeLength(totalLength); in encode()
DBERSequence.java52 int totalLength = 0; in encodedLength() local
57 totalLength += p.encodedLength(); in encodedLength()
60 return 2 + totalLength + 2; in encodedLength()
DBERSet.java67 int totalLength = 0; in encodedLength() local
72 totalLength += p.encodedLength(); in encodedLength()
75 return 2 + totalLength + 2; in encodedLength()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/
DBaseStrokeContent.java192 float totalLength = pm.getLength(); in applyTrimPath() local
194 totalLength += pm.getLength(); in applyTrimPath()
196 float offsetLength = totalLength * pathGroup.trimPath.getOffset().getValue() / 360f; in applyTrimPath()
198 totalLength * pathGroup.trimPath.getStart().getValue() / 100f + offsetLength; in applyTrimPath()
200 totalLength * pathGroup.trimPath.getEnd().getValue() / 100f + offsetLength; in applyTrimPath()
208 if (endLength > totalLength && endLength - totalLength < currentLength + length && in applyTrimPath()
209 currentLength < endLength - totalLength) { in applyTrimPath()
213 if (startLength > totalLength) { in applyTrimPath()
214 startValue = (startLength - totalLength) / length; in applyTrimPath()
218 float endValue = Math.min((endLength - totalLength) / length, 1); in applyTrimPath()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeDataSource.java108 long totalLength = 0; in open() local
110 totalLength += segment.length; in open()
113 if (totalLength == 0) { in open()
118 if (dataSpec.position >= totalLength || (dataSpec.length != C.LENGTH_UNSET in open()
119 && (dataSpec.position + dataSpec.length > totalLength))) { in open()
140 bytesRemaining = totalLength - dataSpec.position; in open()
/external/llvm-project/flang/runtime/
Dedit-output.cpp234 int totalLength{signLength + digitsBeforePoint + zeroesBeforePoint + in EditEorDOutput() local
237 int width{editWidth > 0 ? editWidth : totalLength}; in EditEorDOutput()
238 if (totalLength > width) { in EditEorDOutput()
241 if (totalLength < width && digitsBeforePoint == 0 && in EditEorDOutput()
244 ++totalLength; in EditEorDOutput()
246 return EmitPrefix(edit, totalLength, width) && in EditEorDOutput()
306 int totalLength{signLength + digitsBeforePoint + zeroesBeforePoint + in EditFOutput() local
308 int width{editWidth > 0 ? editWidth : totalLength}; in EditFOutput()
309 if (totalLength > width) { in EditFOutput()
312 if (totalLength < width && digitsBeforePoint + zeroesBeforePoint == 0) { in EditFOutput()
[all …]
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/helper/
DRandomHelper.java52 String buildRandomFileName(int averageNodeLength, int totalLength) { in buildRandomFileName() argument
55 while (buf.length() < totalLength) { in buildRandomFileName()
56 int remaining = totalLength - buf.length(); in buildRandomFileName()
/external/fonttools/Lib/fontTools/ttLib/tables/
DT_S_I__1.py19 totalLength = len(data)
29 if textOffset > totalLength:
45 nextTextOffset = totalLength
60 if nextTextOffset > totalLength:
63 nextTextOffset = totalLength
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/modes/
DGCMBlockCipher.java57 private long totalLength; field in GCMBlockCipher
213 this.totalLength = 0; in init()
246 return totalLength + newInputLen + bufOff; in getTotalInputSizeAfterNewInput()
426 if (totalLength == 0) in doFinal()
483 long c = ((totalLength * 8) + 127) >>> 7; in doFinal()
504 Pack.longToBigEndian(totalLength * 8, X, 8); in doFinal()
563 totalLength = 0; in reset()
594 if (totalLength == 0) in processBlock()
614 totalLength += BLOCK_SIZE; in processBlock()
634 totalLength += len; in processPartial()

12