Searched defs:maxLength (Results 1 - 25 of 88) sorted by relevance

1234

/external/chromium_org/third_party/WebKit/Source/core/css/parser/
H A DMediaQueryInputStream.h27 inline size_t maxLength() function in class:blink::MediaQueryInputStream
/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.
/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/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/core/editing/
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/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/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/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;
H A DDoubleMetaphone.java1039 private int maxLength; field in class:DoubleMetaphone.DoubleMetaphoneResult
1041 public DoubleMetaphoneResult(int maxLength) { argument
1042 this.maxLength = maxLength;
1056 if (this.primary.length() < this.maxLength) {
1062 if (this.alternate.length() < this.maxLength) {
1078 int addChars = this.maxLength - this.primary.length();
1087 int addChars = this.maxLength - this.alternate.length();
1104 return this.primary.length() >= this.maxLength &&
1105 this.alternate.length() >= this.maxLength;
[all...]
/external/chromium_org/third_party/WebKit/Source/core/rendering/style/
H A DShadowList.cpp87 size_t maxLength = std::max(fromLength, toLength); local
88 for (size_t i = 0; i < maxLength; ++i) {
/external/chromium_org/third_party/mesa/src/src/mesa/main/
H A Dshader_query.cpp81 GLsizei maxLength, GLsizei * length, GLint * size,
114 _mesa_copy_string(name, maxLength, length, var->name);
80 _mesa_GetActiveAttribARB(GLhandleARB program, GLuint desired_index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name) argument
/external/mesa3d/src/mesa/main/
H A Dshader_query.cpp81 GLsizei maxLength, GLsizei * length, GLint * size,
114 _mesa_copy_string(name, maxLength, length, var->name);
80 _mesa_GetActiveAttribARB(GLhandleARB program, GLuint desired_index, GLsizei maxLength, GLsizei * length, GLint * size, GLenum * type, GLcharARB * name) argument
/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/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
H A DFormOptions.java275 public Builder customizeMaxLength(AddressField field, int maxLength) { argument
279 mMaxLengths.put(field, maxLength);
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/
H A DCstString.java313 * @param maxLength {@code >= 5;} the maximum length of the string to return
316 public String toQuoted(int maxLength) { argument
321 if (length <= (maxLength - 2)) {
324 string = string.substring(0, maxLength - 5);
/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/smali/util/src/main/java/org/jf/util/
H A DClassFileNameHandler.java122 static String shortenPathComponent(@Nonnull String pathComponent, int maxLength) { argument
123 int toRemove = pathComponent.length() - maxLength + 1;
/external/chromium_org/third_party/WebKit/Source/core/inspector/
H A DInjectedScriptCanvasModule.cpp137 void InjectedScriptCanvasModule::traceLog(ErrorString* errorString, const TraceLogId& traceLogId, const int* startOffset, const int* maxLength, RefPtr<TraceLog>* traceLog) argument
143 if (maxLength)
144 function.appendArgument(*maxLength);
/external/chromium_org/third_party/icu/source/common/
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) {
H A Dudataswp.c279 int32_t maxLength; local
299 maxLength=headerSize-infoSize;
301 for(length=0; length<maxLength && s[length]!=0; ++length) {}
/external/clang/lib/Driver/
H A DWindowsToolChain.cpp90 char *value, size_t maxLength) {
98 DWORD valueSize = maxLength - 1;
89 getSystemRegistryString(const char *keyPath, const char *valueName, char *value, size_t maxLength) argument
/external/icu/icu4c/source/common/
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) {
H A Dudataswp.c328 int32_t maxLength; local
348 maxLength=headerSize-infoSize;
350 for(length=0; length<maxLength && s[length]!=0; ++length) {}
/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

Completed in 8505 milliseconds

1234