/external/guava/guava/src/com/google/common/hash/ |
H A D | HashCode.java | 60 * @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 D | denseranges.cpp | 28 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:__anon7005::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/webkit/Source/WebKit/chromium/public/android/ |
H A D | WebDOMTextContentWalker.h | 47 // The maximum length of the contents retrieved by the walker is defined by maxLength. 48 WEBKIT_API WebDOMTextContentWalker(const WebHitTestInfo&, size_t maxLength); 51 // The maximum length of the contents retrieved by the walker is defined by maxLength. 52 WEBKIT_API WebDOMTextContentWalker(WebCore::Node* textNode, size_t offset, size_t maxLength);
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowEditText.java | 17 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/webkit/Source/WebKit/chromium/src/android/ |
H A D | WebDOMTextContentWalker.cpp | 50 WebDOMTextContentWalker::WebDOMTextContentWalker(const WebHitTestInfo& hitTestInfo, size_t maxLength) argument 59 m_private.reset(new DOMTextContentWalker(node->renderer()->positionForPoint(hitTestInfo.point()), maxLength)); 62 WebDOMTextContentWalker::WebDOMTextContentWalker(Node* node, size_t offset, size_t maxLength) argument 67 m_private.reset(new DOMTextContentWalker(VisiblePosition(Position(static_cast<Text*>(node), offset).parentAnchoredEquivalent(), DOWNSTREAM), maxLength));
|
/external/apache-http/src/org/apache/commons/codec/language/ |
H A D | Soundex.java | 89 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;
|
H A D | DoubleMetaphone.java | 1034 private int maxLength; field in class:DoubleMetaphone.DoubleMetaphoneResult 1036 public DoubleMetaphoneResult(int maxLength) { argument 1037 this.maxLength = maxLength; 1051 if (this.primary.length() < this.maxLength) { 1057 if (this.alternate.length() < this.maxLength) { 1073 int addChars = this.maxLength - this.primary.length(); 1082 int addChars = this.maxLength - this.alternate.length(); 1099 return this.primary.length() >= this.maxLength && 1100 this.alternate.length() >= this.maxLength; [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | EditTextTest.java | 32 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/webkit/Source/WebCore/dom/ |
H A D | DOMTextContentWalker.h | 42 DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength);
|
H A D | DOMTextContentWalker.cpp | 43 DOMTextContentWalker::DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength) argument 46 const unsigned halfMaxLength = maxLength / 2; 51 forwardChar.advance(maxLength - halfMaxLength);
|
H A D | InputElement.cpp | 138 static String replaceEOLAndLimitLength(const InputElement* inputElement, const String& proposedValue, int maxLength) argument 148 unsigned newLength = numCharactersInGraphemeClusters(string, maxLength); 172 String InputElement::sanitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength) argument 174 return replaceEOLAndLimitLength(inputElement, proposedValue, maxLength); 180 // Make sure that the text to be inserted will not violate the maxLength. 197 unsigned maxLength = static_cast<unsigned>(inputElement->supportsMaxLength() ? data.maxLength() : s_maximumLength); // maxLength() can never be negative. local 198 unsigned appendableLength = maxLength > baseLength ? maxLength 227 int maxLength = attribute->isNull() ? InputElement::s_maximumLength : attribute->value().toInt(); local [all...] |
H A D | InputElement.h | 131 int maxLength() const { return m_maxLength; } function in class:WebCore::InputElementData 145 void setMaxInputCharsAllowed(unsigned maxLength) { m_maxInputCharsAllowed = maxLength; } argument
|
/external/webkit/LayoutTests/dom/html/level2/html/ |
H A D | HTMLInputElement10.js | 78 The maxLength attribute is the maximum number of text characters for text 104 vmaxlength = testNode.maxLength;
|
/external/webkit/LayoutTests/dom/xhtml/level2/html/ |
H A D | HTMLInputElement10.js | 78 The maxLength attribute is the maximum number of text characters for text 104 vmaxlength = testNode.maxLength;
|
/external/icu4c/common/ |
H A D | dictionarydata.h | 71 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 D | dictionarydata.cpp | 38 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/webkit/Source/WebCore/html/ |
H A D | HTMLTextAreaElement.h | 48 virtual int maxLength() const; 69 static String sanitizeUserInputValue(const String&, unsigned maxLength);
|
H A D | HTMLTextAreaElement.idl | 31 attribute long maxLength setter raises(DOMException);
|
H A D | HTMLTextAreaElement.cpp | 247 int signedMaxLength = maxLength(); 265 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) argument 267 return proposedValue.left(numCharactersInGraphemeClusters(proposedValue, maxLength)); 379 int HTMLTextAreaElement::maxLength() const function in class:WebCore::HTMLTextAreaElement 396 // Return false for the default value even if it is longer than maxLength. 400 int max = maxLength();
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
H A D | ByteArray.java | 319 int maxLength = size - cursor; 320 if (length > maxLength) { 321 length = maxLength;
|
/external/webkit/Source/WebKit/chromium/src/ |
H A D | WebInputElement.cpp | 68 int WebInputElement::maxLength() const function in class:WebKit::WebInputElement 70 return constUnwrap<HTMLInputElement>()->maxLength();
|
/external/webkit/Source/WebKit/chromium/public/ |
H A D | WebInputElement.h | 63 WEBKIT_API int maxLength() const; 81 // Exposes the default value of the maxLength attribute.
|
/external/smack/src/org/xbill/DNS/ |
H A D | Message.java | 403 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/llvm/utils/TableGen/ |
H A D | RegisterInfoEmitter.cpp | 318 unsigned maxLength = 0; local 322 maxLength = std::max((size_t)maxLength, RegNums.size()); 329 if (!maxLength) 335 for (unsigned i = I->second.size(), e = maxLength; i != e; ++i) 344 for (unsigned i = 0, e = maxLength; i != e; ++i) { 399 for (unsigned i = 0, e = maxLength; i != e; ++i) { 441 unsigned maxLength = 0; local 444 maxLength = std::max((size_t)maxLength, [all...] |
/external/icu4c/tools/gensprep/ |
H A D | store.c | 156 static int32_t maxLength = 0; /* maximum length of mapping string */ variable 451 if(maxLength < value->length){ 452 maxLength = value->length; 579 printf("Maximum length of the mapping string is : %i \n", (int)maxLength);
|