Home
last modified time | relevance | path

Searched refs:maxLength (Results 1 – 25 of 136) sorted by relevance

123456

/external/guava/guava/src/com/google/common/hash/
DHashCode.java89 public int writeBytesTo(byte[] dest, int offset, int maxLength) { in writeBytesTo() argument
90 maxLength = Ints.min(maxLength, bits() / 8); in writeBytesTo()
91 Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length); in writeBytesTo()
92 writeBytesToImpl(dest, offset, maxLength); in writeBytesTo()
93 return maxLength; in writeBytesTo()
96 abstract void writeBytesToImpl(byte[] dest, int offset, int maxLength); in writeBytesToImpl() argument
160 void writeBytesToImpl(byte[] dest, int offset, int maxLength) { in writeBytesToImpl() argument
161 for (int i = 0; i < maxLength; i++) { in writeBytesToImpl()
224 void writeBytesToImpl(byte[] dest, int offset, int maxLength) { in writeBytesToImpl() argument
225 for (int i = 0; i < maxLength; i++) { in writeBytesToImpl()
[all …]
DMessageDigestHashFunction.java49 int maxLength = prototype.getDigestLength(); in MessageDigestHashFunction() local
50 checkArgument(bytes >= 4 && bytes <= maxLength, in MessageDigestHashFunction()
51 "bytes (%s) must be >= 4 and < %s", bytes, maxLength); in MessageDigestHashFunction()
/external/icu/icu4c/source/tools/toolutil/
Ddenseranges.cpp30 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {} in LargestGaps()
37 if(i<maxLength) { in add()
41 int32_t j= length<maxLength ? length++ : maxLength-1; in add()
80 int32_t maxLength; member in __anon05eb6bd30111::LargestGaps
111 int64_t maxLength=(int64_t)maxValue-(int64_t)minValue+1; in uprv_makeDenseRanges() local
112 if(length>=(density*maxLength)/0x100) { in uprv_makeDenseRanges()
144 maxLength-=gaps.gapLength(i); in uprv_makeDenseRanges()
145 if(length>num*2 && length>=(density*maxLength)/0x100) { in uprv_makeDenseRanges()
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DValidations.java28 public static void assertLengthInRange(int length, String name, int minLength, int maxLength) { in assertLengthInRange() argument
30 length <= maxLength && length >= minLength, in assertLengthInRange()
31 String.format("Length of %s should be in the range [%s-%s]", name, minLength, maxLength)); in assertLengthInRange()
41 public static void assertLengthInRange(String input, String name, int minLength, int maxLength) { in assertLengthInRange() argument
43 assertLengthInRange(input.length(), name, minLength, maxLength); in assertLengthInRange() local
/external/vogar/src/vogar/commands/
DVmCommandBuilder.java47 private int maxLength = -1; field in VmCommandBuilder
118 public VmCommandBuilder maxLength(int maxLength) { in maxLength() method in VmCommandBuilder
119 this.maxLength = maxLength; in maxLength()
179 .maxLength(maxLength) in build()
DCommand.java76 if (builder.maxLength != -1) { in Command()
78 if (string.length() > builder.maxLength) { in Command()
79 throw new IllegalStateException("Maximum command length " + builder.maxLength in Command()
254 private int maxLength = -1; field in Command.Builder
268 this.maxLength = other.maxLength; in Builder()
301 public Builder maxLength(int maxLength) { in maxLength() method in Command.Builder
302 this.maxLength = maxLength; in maxLength()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowEditTextTest.java26 .addAttribute(android.R.attr.maxLength, "5") in setup()
47 int maxLength = anyInteger(); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() local
49 .addAttribute(android.R.attr.maxLength, maxLength + "") in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength()
53 String excessiveInput = stringOfLength(maxLength * 2); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength()
57 …((CharSequence) editText.getText().toString()).isEqualTo(excessiveInput.subSequence(0, maxLength)); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength()
/external/apache-http/src/org/apache/commons/codec/language/
DSoundex.java94 private int maxLength = 4; field in Soundex
195 return this.maxLength; in getMaxLength()
231 public void setMaxLength(int maxLength) { in setMaxLength() argument
232 this.maxLength = maxLength; in setMaxLength()
/external/icu/icu4c/source/test/perf/normperf/
Dsimplenormperf.cpp308 int32_t maxLength = getMaxLength() * 10; in main() local
319 NormalizeUTF16 op(*nfc, CommonChars::getLatin1(maxLength)); in main()
324 NormalizeUTF8 op(*nfc, CommonChars::getJapanese(maxLength)); in main()
328 NormalizeUTF16 op(*nfkc_cf, CommonChars::getMixed(maxLength)); in main()
332 NormalizeUTF16 op(*nfkc_cf, CommonChars::getLowercaseLatin1(maxLength)); in main()
336 NormalizeUTF16 op(*nfkc_cf, CommonChars::getJapanese(maxLength)); in main()
340 NormalizeUTF8 op(*nfkc_cf, CommonChars::getMixed(maxLength)); in main()
344 NormalizeUTF8 op(*nfkc_cf, CommonChars::getLowercaseLatin1(maxLength)); in main()
348 NormalizeUTF8 op(*nfkc_cf, CommonChars::getJapanese(maxLength)); in main()
/external/proguard/src/proguard/classfile/editor/
DVariableCleaner.java211 int maxLength = startPCs[localVariableInfo.u2index] - in trimLocalVariables() local
214 if (localVariableInfo.u2length > maxLength) in trimLocalVariables()
216 localVariableInfo.u2length = maxLength; in trimLocalVariables()
245 int maxLength = startPCs[localVariableTypeInfo.u2index] - in trimLocalVariableTypes() local
248 if (localVariableTypeInfo.u2length > maxLength) in trimLocalVariableTypes()
250 localVariableTypeInfo.u2length = maxLength; in trimLocalVariableTypes()
/external/guava/guava/src/com/google/common/base/
DAscii.java584 public static String truncate(CharSequence seq, int maxLength, String truncationIndicator) { in truncate() argument
588 int truncationLength = maxLength - truncationIndicator.length(); in truncate()
594 maxLength, truncationIndicator.length()); in truncate()
596 if (seq.length() <= maxLength) { in truncate()
598 if (string.length() <= maxLength) { in truncate()
605 return new StringBuilder(maxLength) in truncate()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DDictionaryMatcher.java31 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument
34 public int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument
36 return matches(text, maxLength, lengths, count, limit, null); in matches()
DCharsetMatch.java84 public String getString(int maxLength) throws java.io.IOException { in getString() argument
90 int max = maxLength < 0? Integer.MAX_VALUE : maxLength; in getString()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDictionaryMatcher.java30 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument
33 public int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument
35 return matches(text, maxLength, lengths, count, limit, null); in matches()
DCharsetMatch.java89 public String getString(int maxLength) throws java.io.IOException { in getString() argument
95 int max = maxLength < 0? Integer.MAX_VALUE : maxLength; in getString()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLBIOSink.java49 int maxLength = Math.min(available(), (int) byteCount); in skip() local
50 position += maxLength; in skip()
54 return maxLength; in skip()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLBIOSink.java50 int maxLength = Math.min(available(), (int) byteCount); in skip() local
51 position += maxLength; in skip()
55 return maxLength; in skip()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DBinaryTree.java121 int maxLength = 0; in decode() local
134 maxLength = Math.max(maxLength, bitLength); in decode()
178 final BinaryTree tree = new BinaryTree(maxLength); in decode()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lzw/
DLZWInputStream.java231 final int maxLength = Math.min(remainingInStack, len); in readFromStack() local
232 System.arraycopy(outputStack, outputStackLocation, b, off, maxLength); in readFromStack()
233 outputStackLocation += maxLength; in readFromStack()
234 return maxLength; in readFromStack()
/external/icu/icu4c/source/common/
Ddictionarydata.h93 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit,
108 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit,
126 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit,
/external/deqp/modules/gles31/functional/
Des31fNegativeSSBOBlockTests.cpp333 GLint maxLength = 0; in logProgramInfo() local
337 ctx.glGetProgramiv(program, GL_INFO_LOG_LENGTH, &maxLength); in logProgramInfo()
342 if (maxLength == 0) in logProgramInfo()
349 std::vector<GLchar> infoLog(maxLength); in logProgramInfo()
350 ctx.glGetProgramInfoLog(program, maxLength, &maxLength, &infoLog[0]); in logProgramInfo()
352 std::string programLogMessage(&infoLog[0], maxLength); in logProgramInfo()
/external/skia/tests/
DOpChainTest.cpp38 unsigned maxLength = 0; in result_width() local
40 maxLength = maxLength > kRanges[i].fLength ? maxLength : kRanges[i].fLength; in result_width()
42 return kNumOpPositions + maxLength - 1; in result_width()
/external/skqp/tests/
DOpChainTest.cpp38 unsigned maxLength = 0; in result_width() local
40 maxLength = maxLength > kRanges[i].fLength ? maxLength : kRanges[i].fLength; in result_width()
42 return kNumOpPositions + maxLength - 1; in result_width()
/external/tensorflow/tensorflow/examples/android/src/org/tensorflow/demo/
DSpeechActivity.java234 int maxLength = recordingBuffer.length; in record() local
236 int secondCopyLength = Math.max(0, newRecordingOffset - maxLength); in record()
245 recordingOffset = newRecordingOffset % maxLength; in record()
295 int maxLength = recordingBuffer.length; in recognize() local
296 int firstCopyLength = maxLength - recordingOffset; in recognize()
/external/tensorflow/tensorflow/lite/examples/android/app/src/main/java/org/tensorflow/demo/
DSpeechActivity.java257 int maxLength = recordingBuffer.length; in record() local
259 int secondCopyLength = Math.max(0, newRecordingOffset - maxLength); in record()
268 recordingOffset = newRecordingOffset % maxLength; in record()
317 int maxLength = recordingBuffer.length; in recognize() local
318 int firstCopyLength = maxLength - recordingOffset; in recognize()

123456