/external/guava/guava/src/com/google/common/hash/ |
D | HashCode.java | 89 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 154 void writeBytesToImpl(byte[] dest, int offset, int maxLength) { in writeBytesToImpl() argument 155 for (int i = 0; i < maxLength; i++) { in writeBytesToImpl() 214 void writeBytesToImpl(byte[] dest, int offset, int maxLength) { in writeBytesToImpl() argument 215 for (int i = 0; i < maxLength; i++) { in writeBytesToImpl() [all …]
|
D | MessageDigestHashFunction.java | 49 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/ |
D | denseranges.cpp | 28 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {} in LargestGaps() 35 if(i<maxLength) { in add() 39 int32_t j= length<maxLength ? length++ : maxLength-1; in add() 78 int32_t maxLength; member in __anon18d4a5730111::LargestGaps 109 int64_t maxLength=(int64_t)maxValue-(int64_t)minValue+1; in uprv_makeDenseRanges() local 110 if(length>=(density*maxLength)/0x100) { in uprv_makeDenseRanges() 142 maxLength-=gaps.gapLength(i); in uprv_makeDenseRanges() 143 if(length>num*2 && length>=(density*maxLength)/0x100) { in uprv_makeDenseRanges()
|
/external/vogar/src/vogar/commands/ |
D | VmCommandBuilder.java | 44 private int maxLength = -1; field in VmCommandBuilder 108 public VmCommandBuilder maxLength(int maxLength) { in maxLength() argument 109 this.maxLength = maxLength; in maxLength() 166 builder.maxLength(maxLength); in build()
|
D | Command.java | 77 if (builder.maxLength != -1) { in Command() 79 if (string.length() > builder.maxLength) { in Command() 80 throw new IllegalStateException("Maximum command length " + builder.maxLength in Command() 276 private int maxLength = -1; field in Command.Builder 323 public Builder maxLength(int maxLength) { in maxLength() method in Command.Builder 324 this.maxLength = maxLength; in maxLength()
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | EditTextTest.java | 32 int maxLength = anyInteger(); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() local 33 AttributeSet attrs = attributeSetWithMaxLength(maxLength); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() 35 String excessiveInput = stringOfLength(maxLength * 2); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() 39 … assertThat(editText.getText().toString(), equalTo(excessiveInput.subSequence(0, maxLength))); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() 80 private AttributeSet attributeSetWithMaxLength(int maxLength) { in attributeSetWithMaxLength() argument 82 … when(attrs.getAttributeIntValue(eq("android"), eq("maxLength"), anyInt())).thenReturn(maxLength); in attributeSetWithMaxLength()
|
/external/apache-http/src/org/apache/commons/codec/language/ |
D | Soundex.java | 94 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()
|
D | DoubleMetaphone.java | 1039 private int maxLength; field in DoubleMetaphone.DoubleMetaphoneResult 1041 public DoubleMetaphoneResult(int maxLength) { in DoubleMetaphoneResult() argument 1042 this.maxLength = maxLength; in DoubleMetaphoneResult() 1056 if (this.primary.length() < this.maxLength) { in appendPrimary() 1062 if (this.alternate.length() < this.maxLength) { in appendAlternate() 1078 int addChars = this.maxLength - this.primary.length(); in appendPrimary() 1087 int addChars = this.maxLength - this.alternate.length(); in appendAlternate() 1104 return this.primary.length() >= this.maxLength && in isComplete() 1105 this.alternate.length() >= this.maxLength; in isComplete()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowEditText.java | 17 private int maxLength = Integer.MAX_VALUE; field in ShadowEditText 27 maxLength = attributeSet.getAttributeIntValue("android", "maxLength", Integer.MAX_VALUE); in applyAttributes() 33 if ( !TextUtils.isEmpty(str) && str.length() > maxLength) { in setText() 34 str = str.subSequence(0, maxLength); in setText()
|
/external/proguard/src/proguard/classfile/editor/ |
D | VariableCleaner.java | 211 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/ |
D | Ascii.java | 584 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/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | DictionaryMatcher.java | 28 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument 31 public int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument 33 return matches(text, maxLength, lengths, count, limit, null); in matches()
|
D | CharsetMatch.java | 87 public String getString(int maxLength) throws java.io.IOException { in getString() argument 93 int max = maxLength < 0? Integer.MAX_VALUE : maxLength; in getString()
|
D | CharsDictionaryMatcher.java | 21 …public int matches(CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit,… in matches() argument 49 if (numChars >= maxLength) { in matches()
|
D | BreakCTDictionary.java | 171 public int matches(CharacterIterator text, int maxLength, int lengths[], in matches() argument 193 if (i >= maxLength) { in matches() 205 for (int j = 0; j < nodeCount && i < maxLength; j++) { in matches()
|
D | BytesDictionaryMatcher.java | 42 …public int matches(CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit,… in matches() argument 69 if (numChars >= maxLength) { in matches()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLBIOSink.java | 46 int maxLength = Math.min(available(), (int) byteCount); in skip() local 47 position += maxLength; in skip() 51 return maxLength; in skip()
|
/external/jetty/src/java/org/eclipse/jetty/util/ |
D | UrlEncoded.java | 386 public static void decode88591To(InputStream in, MultiMap map, int maxLength, int maxKeys) in decode88591To() argument 462 if (maxLength>=0 && (++totalLength > maxLength)) in decode88591To() 485 public static void decodeUtf8To(InputStream in, MultiMap map, int maxLength, int maxKeys) in decodeUtf8To() argument 569 if (maxLength>=0 && (++totalLength > maxLength)) in decodeUtf8To() 587 …public static void decodeUtf16To(InputStream in, MultiMap map, int maxLength, int maxKeys) throws … in decodeUtf16To() argument 591 IO.copy(input,buf,maxLength); in decodeUtf16To() 600 …public static void decodeTo(InputStream in, MultiMap map, String charset, int maxLength, int maxKe… in decodeTo() argument 611 decodeUtf8To(in,map,maxLength,maxKeys); in decodeTo() 617 decode88591To(in,map,maxLength,maxKeys); in decodeTo() 623 decodeUtf16To(in,map,maxLength,maxKeys); in decodeTo() [all …]
|
/external/icu/icu4c/source/common/ |
D | dictionarydata.h | 91 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit, 106 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit, 124 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit,
|
D | dictionarydata.cpp | 43 int32_t UCharsDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t limit, in matches() argument 76 if (lengthMatched >= maxLength) { in matches() 111 int32_t BytesDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t limit, in matches() argument 143 if (lengthMatched >= maxLength) { in matches()
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
D | ByteArray.java | 319 int maxLength = size - cursor; in read() local 320 if (length > maxLength) { in read() 321 length = maxLength; in read()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | CaseIterator.java | 37 private static int maxLength = 0; field in CaseIterator 233 if (maxLength < mapped.length()) maxLength = mapped.length(); 251 System.out.println("maxLength = " + maxLength); 442 int max = i + maxLength; in reset()
|
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
D | CstString.java | 316 public String toQuoted(int maxLength) { in toQuoted() argument 321 if (length <= (maxLength - 2)) { in toQuoted() 324 string = string.substring(0, maxLength - 5); in toQuoted()
|
/external/llvm/utils/TableGen/ |
D | RegisterInfoEmitter.cpp | 327 unsigned maxLength = 0; in EmitRegMappingTables() local 331 maxLength = std::max((size_t)maxLength, RegNums.size()); in EmitRegMappingTables() 338 if (!maxLength) in EmitRegMappingTables() 344 for (unsigned i = I->second.size(), e = maxLength; i != e; ++i) in EmitRegMappingTables() 353 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMappingTables() 408 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMappingTables() 447 unsigned maxLength = 0; in EmitRegMapping() local 450 maxLength = std::max((size_t)maxLength, in EmitRegMapping() 454 if (!maxLength) in EmitRegMapping() 470 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMapping() [all …]
|
/external/icu/icu4c/source/tools/gensprep/ |
D | store.c | 156 static int32_t maxLength = 0; /* maximum length of mapping string */ variable 451 if(maxLength < value->length){ in storeMapping() 452 maxLength = value->length; in storeMapping() 579 printf("Maximum length of the mapping string is : %i \n", (int)maxLength); in generateData()
|