Searched refs:maxLength (Results 1 - 25 of 118) sorted by relevance

12345

/external/guava/guava/src/com/google/common/hash/
H A DHashCode.java60 * @param maxLength the maximum number of bytes to write
64 public int writeBytesTo(byte[] dest, int offset, int maxLength) { argument
66 maxLength = Ints.min(maxLength, hash.length);
67 Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length);
68 System.arraycopy(hash, 0, dest, offset, maxLength);
69 return maxLength;
/external/icu4c/tools/toolutil/
H A Ddenseranges.cpp28 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {}
35 if(i<maxLength) {
36 // The new gap is now one of the maxLength largest.
39 int32_t j= length<maxLength ? length++ : maxLength-1;
78 int32_t maxLength; member in class:__anon19506::LargestGaps
109 int64_t maxLength=(int64_t)maxValue-(int64_t)minValue+1; local
110 if(length>=(density*maxLength)/0x100) {
133 // the length of the [minValue..maxValue] range (maxLength).
142 maxLength
[all...]
/external/chromium_org/third_party/angle/src/compiler/preprocessor/
H A DTokenizer.h41 void setMaxTokenLength(size_t maxLength) { mMaxTokenLength = maxLength; } argument
H A DPreprocessor.h45 void setMaxTokenLength(size_t maxLength);
H A DPreprocessor.cpp84 void Preprocessor::setMaxTokenLength(size_t maxLength) argument
86 mImpl->tokenizer.setMaxTokenLength(maxLength);
/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DSurroundingText.h44 SurroundingText(const VisiblePosition&, unsigned maxLength);
H A DSurroundingText.cpp42 SurroundingText::SurroundingText(const VisiblePosition& visiblePosition, unsigned maxLength) argument
48 const unsigned halfMaxLength = maxLength / 2;
51 forwardIterator.advance(maxLength - halfMaxLength);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
H A DShadowEditText.java17 private int maxLength = Integer.MAX_VALUE; field in class:ShadowEditText
27 maxLength = attributeSet.getAttributeIntValue("android", "maxLength", Integer.MAX_VALUE);
33 if ( !TextUtils.isEmpty(str) && str.length() > maxLength) {
34 str = str.subSequence(0, maxLength);
/external/apache-http/src/org/apache/commons/codec/language/
H A DSoundex.java89 private int maxLength = 4; field in class:Soundex
184 * Returns the maxLength. Standard Soundex
190 return this.maxLength;
220 * Sets the maxLength.
223 * @param maxLength
224 * The maxLength to set
226 public void setMaxLength(int maxLength) { argument
227 this.maxLength = maxLength;
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
H A DEditTextTest.java32 int maxLength = anyInteger();
33 AttributeSet attrs = attributeSetWithMaxLength(maxLength);
35 String excessiveInput = stringOfLength(maxLength * 2);
39 assertThat(editText.getText().toString(), equalTo(excessiveInput.subSequence(0, maxLength)));
80 private AttributeSet attributeSetWithMaxLength(int maxLength) { argument
82 when(attrs.getAttributeIntValue(eq("android"), eq("maxLength"), anyInt())).thenReturn(maxLength);
88 when(attrs.getAttributeIntValue("android", "maxLength", Integer.MAX_VALUE)).thenReturn(Integer.MAX_VALUE);
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebSurroundingText.cpp42 void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& nodePoint, size_t maxLength) argument
48 m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))), maxLength));
H A DWebInputElement.cpp85 int WebInputElement::maxLength() const function in class:blink::WebInputElement
87 return constUnwrap<HTMLInputElement>()->maxLength();
/external/chromium_org/third_party/WebKit/public/web/
H A DWebSurroundingText.h52 // The maximum length of the contents retrieved is defined by maxLength.
53 BLINK_EXPORT void initialize(const WebNode&, const WebPoint&, size_t maxLength);
/external/chromium_org/third_party/icu/source/common/
H A Dtriedict.h84 * @param maxLength The maximum number of code units to match.
92 int32_t maxLength,
180 * @param maxLength The maximum number of code units to match.
188 int32_t maxLength,
232 * @param maxLength The maximum number of code units to match.
242 int32_t maxLength,
327 * @param maxLength The maximum number of code units to match.
335 int32_t maxLength,
/external/icu4c/common/
H A 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,
H A Ddictionarydata.cpp38 int32_t UCharsDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &count, int32_t limit, int32_t *values) const { argument
64 if (numChars >= maxLength) {
102 int32_t BytesDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &count, int32_t limit, int32_t *values) const { argument
128 if (numChars >= maxLength) {
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DHTMLTextAreaElement.cpp286 int signedMaxLength = maxLength();
308 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) argument
310 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1]))
311 --maxLength;
312 return proposedValue.left(maxLength);
421 int HTMLTextAreaElement::maxLength() const function in class:WebCore::HTMLTextAreaElement
448 return locale().validationMessageTooLongText(computeLengthForSubmission(value()), maxLength());
466 // longer than maxLength.
470 int max = maxLength();
[all...]
H A DHTMLTextAreaElement.h49 virtual int maxLength() const;
73 static String sanitizeUserInputValue(const String&, unsigned maxLength);
H A DHTMLTextAreaElement.idl28 [RaisesException=Setter] attribute long maxLength;
/external/chromium_org/third_party/WebKit/Source/modules/websockets/
H A DWebSocketDeflater.cpp90 size_t maxLength = deflateBound(m_stream.get(), length);
93 m_buffer.grow(writePosition + maxLength);
94 setStreamParameter(m_stream.get(), data, length, m_buffer.data() + writePosition, maxLength);
98 m_buffer.shrink(writePosition + maxLength - m_stream->avail_out);
99 maxLength *= 2;
/external/dexmaker/src/dx/java/com/android/dx/util/
H A DByteArray.java319 int maxLength = size - cursor;
320 if (length > maxLength) {
321 length = maxLength;
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
H A DShadowList.cpp93 size_t maxLength = std::max(fromLength, toLength); local
94 for (size_t i = 0; i < maxLength; ++i) {
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
H A DLinkifier.js129 * @param {number=} maxLength
131 WebInspector.Linkifier.DefaultFormatter = function(maxLength)
133 this._maxLength = maxLength;
/external/smack/src/org/xbill/DNS/
H A DMessage.java403 int maxLength)
418 if (out.current() > maxLength) {
428 toWire(DNSOutput out, int maxLength) { argument
429 if (maxLength < Header.LENGTH)
434 int tempMaxLength = maxLength;
499 * could happen if maxLength is smaller than a DNS header, for example.
500 * @param maxLength The maximum length of the message.
507 toWire(int maxLength) { argument
509 toWire(out, maxLength);
402 sectionToWire(DNSOutput out, int section, Compression c, int maxLength) argument
/external/chromium_org/third_party/WebKit/Source/core/html/forms/
H A DTextFieldInputType.cpp408 static String limitLength(const String& string, unsigned maxLength) argument
410 unsigned newLength = std::min(maxLength, string.length());
434 // Make sure that the text to be inserted will not violate the maxLength.
451 unsigned maxLength = static_cast<unsigned>(isTextType() ? element().maxLength() : HTMLInputElement::maximumLength); // maxLength can never be negative. local
452 unsigned appendableLength = maxLength > baseLength ? maxLength - baseLength : 0;
454 // Truncate the inserted text to avoid violating the maxLength and other constraints.

Completed in 993 milliseconds

12345