Home
last modified time | relevance | path

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

12345

/external/icu4c/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 __anondb5274ad0111::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/guava/guava/src/com/google/common/hash/
DHashCode.java64 public int writeBytesTo(byte[] dest, int offset, int maxLength) { in writeBytesTo() argument
66 maxLength = Ints.min(maxLength, hash.length); in writeBytesTo()
67 Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length); in writeBytesTo()
68 System.arraycopy(hash, 0, dest, offset, maxLength); in writeBytesTo()
69 return maxLength; in writeBytesTo()
/external/robolectric/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/apache-http/src/org/apache/commons/codec/language/
DSoundex.java89 private int maxLength = 4; field in Soundex
190 return this.maxLength; in getMaxLength()
226 public void setMaxLength(int maxLength) { in setMaxLength() argument
227 this.maxLength = maxLength; in setMaxLength()
DDoubleMetaphone.java1034 private int maxLength; field in DoubleMetaphone.DoubleMetaphoneResult
1036 public DoubleMetaphoneResult(int maxLength) { in DoubleMetaphoneResult() argument
1037 this.maxLength = maxLength; in DoubleMetaphoneResult()
1051 if (this.primary.length() < this.maxLength) { in appendPrimary()
1057 if (this.alternate.length() < this.maxLength) { in appendAlternate()
1073 int addChars = this.maxLength - this.primary.length(); in appendPrimary()
1082 int addChars = this.maxLength - this.alternate.length(); in appendAlternate()
1099 return this.primary.length() >= this.maxLength && in isComplete()
1100 this.alternate.length() >= this.maxLength; in isComplete()
/external/robolectric/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/chromium_org/third_party/WebKit/Source/core/html/
DHTMLTextAreaElement.cpp286 int signedMaxLength = maxLength(); in handleBeforeTextInsertedEvent()
308 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) in sanitizeUserInputValue() argument
310 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1])) in sanitizeUserInputValue()
311 --maxLength; in sanitizeUserInputValue()
312 return proposedValue.left(maxLength); in sanitizeUserInputValue()
421 int HTMLTextAreaElement::maxLength() const in maxLength() function in WebCore::HTMLTextAreaElement
448 … return locale().validationMessageTooLongText(computeLengthForSubmission(value()), maxLength()); in validationMessage()
470 int max = maxLength(); in tooLong()
DHTMLInputElement.cpp241 int max = maxLength(); in tooLong()
1282 int HTMLInputElement::maxLength() const in maxLength() function in WebCore::HTMLInputElement
1287 void HTMLInputElement::setMaxLength(int maxLength, ExceptionState& exceptionState) in setMaxLength() argument
1289 if (maxLength < 0) in setMaxLength()
1290 …rowDOMException(IndexSizeError, "The value provided (" + String::number(maxLength) + ") is negativ… in setMaxLength()
1292 setIntegralAttribute(maxlengthAttr, maxLength); in setMaxLength()
1677 int maxLength; in parseMaxLengthAttribute() local
1678 if (!parseHTMLInteger(value, maxLength)) in parseMaxLengthAttribute()
1679 maxLength = maximumLength; in parseMaxLengthAttribute()
1680 if (maxLength < 0 || maxLength > maximumLength) in parseMaxLengthAttribute()
[all …]
DHTMLTextAreaElement.h49 virtual int maxLength() const;
73 static String sanitizeUserInputValue(const String&, unsigned maxLength);
/external/chromium_org/third_party/icu/source/common/
Dtriedict.h92 int32_t maxLength,
188 int32_t maxLength,
242 int32_t maxLength,
335 int32_t maxLength,
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
DWebSocketDeflater.cpp90 size_t maxLength = deflateBound(m_stream.get(), length); in addBytes() local
93 m_buffer.grow(writePosition + maxLength); in addBytes()
94 … setStreamParameter(m_stream.get(), data, length, m_buffer.data() + writePosition, maxLength); in addBytes()
98 m_buffer.shrink(writePosition + maxLength - m_stream->avail_out); in addBytes()
99 maxLength *= 2; in addBytes()
/external/chromium_org/third_party/WebKit/Source/core/editing/
DSurroundingText.cpp42 SurroundingText::SurroundingText(const VisiblePosition& visiblePosition, unsigned maxLength) in SurroundingText() argument
48 const unsigned halfMaxLength = maxLength / 2; in SurroundingText()
51 forwardIterator.advance(maxLength - halfMaxLength); in SurroundingText()
/external/icu4c/common/
Ddictionarydata.h71 virtual int32_t matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &count,
84 virtual int32_t matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &count,
101 virtual int32_t matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &count,
Ddictionarydata.cpp38 int32_t UCharsDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t … in matches() argument
64 if (numChars >= maxLength) { in matches()
102 int32_t BytesDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &… in matches() argument
128 if (numChars >= maxLength) { in matches()
/external/chromium_org/third_party/angle/src/compiler/preprocessor/
DTokenizer.h41 void setMaxTokenLength(size_t maxLength) { mMaxTokenLength = maxLength; } in setMaxTokenLength() argument
DPreprocessor.cpp84 void Preprocessor::setMaxTokenLength(size_t maxLength) in setMaxTokenLength() argument
86 mImpl->tokenizer.setMaxTokenLength(maxLength); in setMaxTokenLength()
/external/chromium_org/third_party/WebKit/Source/web/
DWebSurroundingText.cpp42 …WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& nodePoint, size_t maxLength) in initialize() argument
48 …VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))), maxLength)); in initialize()
/external/smack/src/org/xbill/DNS/
DMessage.java403 int maxLength) in sectionToWire() argument
418 if (out.current() > maxLength) { in sectionToWire()
428 toWire(DNSOutput out, int maxLength) { in toWire() argument
429 if (maxLength < Header.LENGTH) in toWire()
434 int tempMaxLength = maxLength; in toWire()
507 toWire(int maxLength) { in toWire() argument
509 toWire(out, maxLength); in toWire()
/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()
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
DTextFieldInputType.cpp408 static String limitLength(const String& string, unsigned maxLength) in limitLength() argument
410 unsigned newLength = std::min(maxLength, string.length()); in limitLength()
451 …unsigned maxLength = static_cast<unsigned>(isTextType() ? element().maxLength() : HTMLInputElement… in handleBeforeTextInsertedEvent() local
452 unsigned appendableLength = maxLength > baseLength ? maxLength - baseLength : 0; in handleBeforeTextInsertedEvent()
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
DCstString.java316 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/chromium_org/third_party/WebKit/Source/core/inspector/
DInjectedScriptCanvasModule.cpp135 …tring, const TraceLogId& traceLogId, const int* startOffset, const int* maxLength, RefPtr<TraceLog… in traceLog() argument
141 if (maxLength) in traceLog()
142 function.appendArgument(*maxLength); in traceLog()
/external/llvm/utils/TableGen/
DRegisterInfoEmitter.cpp322 unsigned maxLength = 0; in EmitRegMappingTables() local
326 maxLength = std::max((size_t)maxLength, RegNums.size()); in EmitRegMappingTables()
333 if (!maxLength) in EmitRegMappingTables()
339 for (unsigned i = I->second.size(), e = maxLength; i != e; ++i) in EmitRegMappingTables()
348 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMappingTables()
403 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMappingTables()
445 unsigned maxLength = 0; in EmitRegMapping() local
448 maxLength = std::max((size_t)maxLength, in EmitRegMapping()
452 if (!maxLength) in EmitRegMapping()
468 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMapping()
[all …]
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
DShadowList.cpp93 size_t maxLength = std::max(fromLength, toLength); in blend() local
94 for (size_t i = 0; i < maxLength; ++i) { in blend()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DLinkifier.js131 WebInspector.Linkifier.DefaultFormatter = function(maxLength) argument
133 this._maxLength = maxLength;

12345