Home
last modified time | relevance | path

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

12345

/external/v8/src/js/
Dharmony-string-padding.js22 function StringPad(thisString, maxLength, fillString) { argument
23 maxLength = TO_LENGTH(maxLength);
26 if (maxLength <= stringLength) return "";
38 var fillLength = maxLength - stringLength;
57 function StringPadStart(maxLength, fillString) { argument
61 return StringPad(thisString, maxLength, fillString) + thisString;
65 function StringPadEnd(maxLength, fillString) { argument
69 return thisString + StringPad(thisString, maxLength, fillString);
/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.cpp28 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 __anoncc215a540111::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/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DEditTextTest.java32 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/vogar/src/vogar/commands/
DVmCommandBuilder.java47 private int maxLength = -1; field in VmCommandBuilder
123 public VmCommandBuilder maxLength(int maxLength) { in maxLength() method in VmCommandBuilder
124 this.maxLength = maxLength; in maxLength()
189 .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/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()
DDoubleMetaphone.java1039 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/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowEditText.java17 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/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/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/icu/android_icu4j/src/main/java/android/icu/text/
DDictionaryMatcher.java29 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument
32 public int matches(CharacterIterator text, int maxLength, int[] lengths, in matches() argument
34 return matches(text, maxLength, lengths, count, limit, null); in matches()
DCharsetMatch.java82 public String getString(int maxLength) throws java.io.IOException { in getString() argument
88 int max = maxLength < 0? Integer.MAX_VALUE : maxLength; in getString()
DCharsDictionaryMatcher.java22 …public int matches(CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit,… in matches() argument
50 if (numChars >= maxLength) { in matches()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDictionaryMatcher.java28 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()
DCharsetMatch.java87 public String getString(int maxLength) throws java.io.IOException { in getString() argument
93 int max = maxLength < 0? Integer.MAX_VALUE : maxLength; in getString()
DCharsDictionaryMatcher.java21 …public int matches(CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit,… in matches() argument
49 if (numChars >= maxLength) { in matches()
/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLBIOSink.java46 int maxLength = Math.min(available(), (int) byteCount); in skip() local
47 position += maxLength; in skip()
51 return maxLength; in skip()
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/com/badlogic/gdx/physics/box2d/joints/
DRopeJointDef.java37 public float maxLength = 0; field in RopeJointDef
45 fd.maxLength = maxLength; in toJBox2d()
DRopeJoint.java57 public void setMaxLength (float maxLength) { in setMaxLength() argument
58 joint.setMaxLength(maxLength); in setMaxLength()
/external/jetty/src/java/org/eclipse/jetty/util/
DUrlEncoded.java386 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/
Ddictionarydata.h91 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,
Ddictionarydata.cpp43 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/
DByteArray.java319 int maxLength = size - cursor; in read() local
320 if (length > maxLength) { in read()
321 length = maxLength; in read()

12345