/external/webkit/Source/WebKit/chromium/public/android/ |
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/guava/guava/src/com/google/common/hash/ |
HashCode.java | 60 * @param maxLength the maximum number of bytes to write 64 public int writeBytesTo(byte[] dest, int offset, int maxLength) { 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/ |
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; 109 int64_t maxLength=(int64_t)maxValue-(int64_t)minValue+1; 110 if(length>=(density*maxLength)/0x100) { 133 // the length of the [minValue..maxValue] range (maxLength). 142 maxLength-=gaps.gapLength(i) [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowEditText.java | 17 private int maxLength = Integer.MAX_VALUE; 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/WebCore/dom/ |
DOMTextContentWalker.h | 42 DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength);
|
DOMTextContentWalker.cpp | 43 DOMTextContentWalker::DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength) 46 const unsigned halfMaxLength = maxLength / 2; 51 forwardChar.advance(maxLength - halfMaxLength);
|
InputElement.cpp | 138 static String replaceEOLAndLimitLength(const InputElement* inputElement, const String& proposedValue, int maxLength) 148 unsigned newLength = numCharactersInGraphemeClusters(string, maxLength); 172 String InputElement::sanitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength) 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. 198 unsigned appendableLength = maxLength > baseLength ? maxLength - baseLength : 0 [all...] |
InputElement.h | 131 int maxLength() const { return m_maxLength; } 145 void setMaxInputCharsAllowed(unsigned maxLength) { m_maxInputCharsAllowed = maxLength; }
|
/external/webkit/Source/WebKit/chromium/src/android/ |
WebDOMTextContentWalker.cpp | 50 WebDOMTextContentWalker::WebDOMTextContentWalker(const WebHitTestInfo& hitTestInfo, size_t maxLength) 59 m_private.reset(new DOMTextContentWalker(node->renderer()->positionForPoint(hitTestInfo.point()), maxLength)); 62 WebDOMTextContentWalker::WebDOMTextContentWalker(Node* node, size_t offset, size_t maxLength) 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/ |
Soundex.java | 89 private int maxLength = 4; 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) { 227 this.maxLength = maxLength;
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
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) { 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/icu4c/common/ |
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,
|
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 { 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 { 128 if (numChars >= maxLength) {
|
/libcore/luni/src/main/java/java/net/ |
Socks4Message.java | 183 * it encounters a null value or reaches the maxLength given. 185 private String getString(int offset, int maxLength) { 187 int lastIndex = index + maxLength; 204 private void setString(int offset, int maxLength, String theString) { 206 int length = Math.min(stringBytes.length, maxLength);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/ |
NameDistance.java | 43 * @param maxLength byte arrays are truncated if longer than this number 45 public NameDistance(int maxLength) { 46 mMaxLength = maxLength; 48 mMatchFlags1 = new boolean[maxLength]; 49 mMatchFlags2 = new boolean[maxLength];
|
/cts/libs/vogar-expect/src/vogar/commands/ |
Command.java | 74 if (builder.maxLength != -1) { 76 if (string.length() > builder.maxLength) { 77 throw new IllegalStateException("Maximum command length " + builder.maxLength 232 private int maxLength = -1; 276 public Builder maxLength(int maxLength) { 277 this.maxLength = maxLength;
|
/external/webkit/Source/WebCore/html/ |
HTMLTextAreaElement.h | 48 virtual int maxLength() const; 69 static String sanitizeUserInputValue(const String&, unsigned maxLength);
|
HTMLTextAreaElement.idl | 31 attribute long maxLength setter raises(DOMException);
|
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
DexMergeTest.java | 146 int maxLength = 0; 151 maxLength = Math.max(maxLength, merged.getLength()); 155 assertTrue(maxLength + " < " + maxExpectedLength, maxLength < maxExpectedLength);
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
ByteArray.java | 319 int maxLength = size - cursor; 320 if (length > maxLength) { 321 length = maxLength;
|
/dalvik/dx/src/com/android/dx/util/ |
ByteArray.java | 319 int maxLength = size - cursor; 320 if (length > maxLength) { 321 length = maxLength;
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
ByteArray.java | 319 int maxLength = size - cursor; 320 if (length > maxLength) { 321 length = maxLength;
|
/external/webkit/Source/WebKit/chromium/src/ |
WebInputElement.cpp | 68 int WebInputElement::maxLength() const 70 return constUnwrap<HTMLInputElement>()->maxLength();
|
/external/webkit/Source/WebKit/chromium/public/ |
WebInputElement.h | 63 WEBKIT_API int maxLength() const; 81 // Exposes the default value of the maxLength attribute.
|
/external/smack/src/org/xbill/DNS/ |
Message.java | 22 public static final int MAXLENGTH = 65535; 403 int maxLength) 418 if (out.current() > maxLength) { 428 toWire(DNSOutput out, int maxLength) { 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) { 509 toWire(out, maxLength); [all...] |