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

123456

/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DSurroundingText.h45 SurroundingText(const Range&, unsigned maxLength);
46 SurroundingText(const Position&, unsigned maxLength);
55 void initialize(const Position&, const Position&, unsigned maxLength);
H A DSurroundingText.cpp42 SurroundingText::SurroundingText(const Range& range, unsigned maxLength) argument
46 initialize(range.startPosition(), range.endPosition(), maxLength);
49 SurroundingText::SurroundingText(const Position& position, unsigned maxLength) argument
53 initialize(position, position, maxLength);
56 void SurroundingText::initialize(const Position& startPosition, const Position& endPosition, unsigned maxLength) argument
60 const unsigned halfMaxLength = maxLength / 2;
74 forwardIterator.advance(maxLength - halfMaxLength);
/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/chromium_org/third_party/icu/source/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:__anon12408::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/icu/icu4c/source/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:__anon22220::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/WebKit/Source/core/html/forms/
H A DBaseTextInputType.cpp35 int BaseTextInputType::maxLength() const function in class:blink::BaseTextInputType
37 return element().maxLength();
42 int max = element().maxLength();
47 // it is longer than maxLength.
H A DBaseTextInputType.h46 virtual int maxLength() const OVERRIDE FINAL;
/external/conscrypt/src/main/java/org/conscrypt/
H A DOpenSSLBIOSink.java46 int maxLength = Math.min(available(), (int) byteCount);
47 position += maxLength;
51 return maxLength;
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebSurroundingText.cpp40 void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& nodePoint, size_t maxLength) argument
46 m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))).deepEquivalent().parentAnchoredEquivalent(), maxLength));
49 void WebSurroundingText::initialize(const WebRange& webRange, size_t maxLength) argument
52 m_private.reset(new SurroundingText(*range, maxLength));
H A DWebInputElement.cpp85 int WebInputElement::maxLength() const function in class:blink::WebInputElement
87 return constUnwrap<HTMLInputElement>()->maxLength();
/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.java94 private int maxLength = 4; field in class:Soundex
189 * Returns the maxLength. Standard Soundex
195 return this.maxLength;
225 * Sets the maxLength.
228 * @param maxLength
229 * The maxLength to set
231 public void setMaxLength(int maxLength) { argument
232 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/public/web/
H A DWebSurroundingText.h53 // The maximum length of the contents retrieved is defined by maxLength.
54 BLINK_EXPORT void initialize(const WebNode&, const WebPoint&, size_t maxLength);
57 // The maximum length of the contents retrieved is defined by maxLength.
59 BLINK_EXPORT void initialize(const WebRange&, size_t maxLength);
H A DWebInputElement.h64 BLINK_EXPORT int maxLength() const;
81 // Exposes the default value of the maxLength attribute.
/external/proguard/src/proguard/classfile/editor/
H A DVariableCleaner.java211 int maxLength = startPCs[localVariableInfo.u2index] -
214 if (localVariableInfo.u2length > maxLength)
216 localVariableInfo.u2length = maxLength;
245 int maxLength = startPCs[localVariableTypeInfo.u2index] -
248 if (localVariableTypeInfo.u2length > maxLength)
250 localVariableTypeInfo.u2length = maxLength;
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
H A DMediaQueryInputStream.h27 inline size_t maxLength() function in class:blink::MediaQueryInputStream
H A DMediaQueryInputStream.cpp20 ASSERT((m_offset + lookaheadOffset) <= maxLength());
28 ASSERT(m_offset + offset <= maxLength());
/external/chromium_org/third_party/icu/source/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.cpp43 int32_t UCharsDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &count, int32_t limit, int32_t *values) const { argument
69 if (numChars >= maxLength) {
107 int32_t BytesDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &count, int32_t limit, int32_t *values) const { argument
133 if (numChars >= maxLength) {
/external/icu/icu4c/source/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,
/external/chromium_org/third_party/WebKit/Source/core/html/
H A DHTMLTextAreaElement.cpp288 int signedMaxLength = maxLength();
315 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) argument
317 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1]))
318 --maxLength;
319 return proposedValue.left(maxLength);
447 int HTMLTextAreaElement::maxLength() const function in class:blink::HTMLTextAreaElement
491 return locale().validationMessageTooLongText(computeLengthForSubmission(value()), maxLength());
516 // longer than maxLength.
520 int max = maxLength();
[all...]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
H A DSettingsUI.js88 * @param {number=} maxLength
96 WebInspector.SettingsUI.createSettingInputField = function(label, setting, numeric, maxLength, width, validatorCallback, instant, clearForZero, placeholder)
105 if (maxLength)
106 inputElement.maxLength = maxLength;
263 element.maxLength = 12;
/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;

Completed in 5624 milliseconds

123456