/external/icu4c/tools/toolutil/ |
D | denseranges.cpp | 28 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {} in LargestGaps() 35 if(i<maxLength) { in add() 39 int32_t j= length<maxLength ? length++ : maxLength-1; in add() 78 int32_t maxLength; member in __anon6c19e0c90111::LargestGaps 109 int64_t maxLength=(int64_t)maxValue-(int64_t)minValue+1; in uprv_makeDenseRanges() local 110 if(length>=(density*maxLength)/0x100) { in uprv_makeDenseRanges() 142 maxLength-=gaps.gapLength(i); in uprv_makeDenseRanges() 143 if(length>num*2 && length>=(density*maxLength)/0x100) { in uprv_makeDenseRanges()
|
/external/guava/guava/src/com/google/common/hash/ |
D | HashCode.java | 64 public int writeBytesTo(byte[] dest, int offset, int maxLength) { in writeBytesTo() argument 66 maxLength = Ints.min(maxLength, hash.length); in writeBytesTo() 67 Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length); in writeBytesTo() 68 System.arraycopy(hash, 0, dest, offset, maxLength); in writeBytesTo() 69 return maxLength; in writeBytesTo()
|
/external/webkit/Source/WebCore/dom/ |
D | InputElement.cpp | 138 …laceEOLAndLimitLength(const InputElement* inputElement, const String& proposedValue, int maxLength) in replaceEOLAndLimitLength() argument 148 unsigned newLength = numCharactersInGraphemeClusters(string, maxLength); in replaceEOLAndLimitLength() 172 …anitizeUserInputValue(const InputElement* inputElement, const String& proposedValue, int maxLength) in sanitizeUserInputValue() argument 174 return replaceEOLAndLimitLength(inputElement, proposedValue, maxLength); in sanitizeUserInputValue() 197 …unsigned maxLength = static_cast<unsigned>(inputElement->supportsMaxLength() ? data.maxLength() : … in handleBeforeTextInsertedEvent() local 198 unsigned appendableLength = maxLength > baseLength ? maxLength - baseLength : 0; in handleBeforeTextInsertedEvent() 227 … int maxLength = attribute->isNull() ? InputElement::s_maximumLength : attribute->value().toInt(); in parseMaxLengthAttribute() local 228 if (maxLength <= 0 || maxLength > InputElement::s_maximumLength) in parseMaxLengthAttribute() 229 maxLength = InputElement::s_maximumLength; in parseMaxLengthAttribute() 231 int oldMaxLength = data.maxLength(); in parseMaxLengthAttribute() [all …]
|
D | DOMTextContentWalker.cpp | 43 DOMTextContentWalker::DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength) in DOMTextContentWalker() argument 46 const unsigned halfMaxLength = maxLength / 2; in DOMTextContentWalker() 51 forwardChar.advance(maxLength - halfMaxLength); in DOMTextContentWalker()
|
D | InputElement.h | 131 int maxLength() const { return m_maxLength; } in maxLength() function 145 void setMaxInputCharsAllowed(unsigned maxLength) { m_maxInputCharsAllowed = maxLength; } in setMaxInputCharsAllowed() argument
|
D | DOMTextContentWalker.h | 42 DOMTextContentWalker(const VisiblePosition& position, unsigned maxLength);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | EditTextTest.java | 32 int maxLength = anyInteger(); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() local 33 AttributeSet attrs = attributeSetWithMaxLength(maxLength); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() 35 String excessiveInput = stringOfLength(maxLength * 2); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() 39 … assertThat(editText.getText().toString(), equalTo(excessiveInput.subSequence(0, maxLength))); in givenInitializingWithAttributeSet_whenMaxLengthDefined_thenRestrictTextLengthToMaxLength() 80 private AttributeSet attributeSetWithMaxLength(int maxLength) { in attributeSetWithMaxLength() argument 82 … when(attrs.getAttributeIntValue(eq("android"), eq("maxLength"), anyInt())).thenReturn(maxLength); in attributeSetWithMaxLength()
|
/external/apache-http/src/org/apache/commons/codec/language/ |
D | Soundex.java | 89 private int maxLength = 4; field in Soundex 190 return this.maxLength; in getMaxLength() 226 public void setMaxLength(int maxLength) { in setMaxLength() argument 227 this.maxLength = maxLength; in setMaxLength()
|
D | DoubleMetaphone.java | 1034 private int maxLength; field in DoubleMetaphone.DoubleMetaphoneResult 1036 public DoubleMetaphoneResult(int maxLength) { in DoubleMetaphoneResult() argument 1037 this.maxLength = maxLength; in DoubleMetaphoneResult() 1051 if (this.primary.length() < this.maxLength) { in appendPrimary() 1057 if (this.alternate.length() < this.maxLength) { in appendAlternate() 1073 int addChars = this.maxLength - this.primary.length(); in appendPrimary() 1082 int addChars = this.maxLength - this.alternate.length(); in appendAlternate() 1099 return this.primary.length() >= this.maxLength && in isComplete() 1100 this.alternate.length() >= this.maxLength; in isComplete()
|
/external/webkit/Source/WebKit/chromium/src/android/ |
D | WebDOMTextContentWalker.cpp | 50 …bDOMTextContentWalker::WebDOMTextContentWalker(const WebHitTestInfo& hitTestInfo, size_t maxLength) in WebDOMTextContentWalker() argument 59 …eset(new DOMTextContentWalker(node->renderer()->positionForPoint(hitTestInfo.point()), maxLength)); in WebDOMTextContentWalker() 62 WebDOMTextContentWalker::WebDOMTextContentWalker(Node* node, size_t offset, size_t maxLength) in WebDOMTextContentWalker() argument 67 …on(Position(static_cast<Text*>(node), offset).parentAnchoredEquivalent(), DOWNSTREAM), maxLength)); in WebDOMTextContentWalker()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowEditText.java | 17 private int maxLength = Integer.MAX_VALUE; field in ShadowEditText 27 maxLength = attributeSet.getAttributeIntValue("android", "maxLength", Integer.MAX_VALUE); in applyAttributes() 33 if ( !TextUtils.isEmpty(str) && str.length() > maxLength) { in setText() 34 str = str.subSequence(0, maxLength); in setText()
|
/external/icu4c/common/ |
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,
|
D | dictionarydata.cpp | 38 int32_t UCharsDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t … in matches() argument 64 if (numChars >= maxLength) { in matches() 102 int32_t BytesDictionaryMatcher::matches(UText *text, int32_t maxLength, int32_t *lengths, int32_t &… in matches() argument 128 if (numChars >= maxLength) { in matches()
|
/external/webkit/Source/WebKit/chromium/public/android/ |
D | WebDOMTextContentWalker.h | 48 WEBKIT_API WebDOMTextContentWalker(const WebHitTestInfo&, size_t maxLength); 52 WEBKIT_API WebDOMTextContentWalker(WebCore::Node* textNode, size_t offset, size_t maxLength);
|
/external/smack/src/org/xbill/DNS/ |
D | Message.java | 403 int maxLength) in sectionToWire() argument 418 if (out.current() > maxLength) { in sectionToWire() 428 toWire(DNSOutput out, int maxLength) { in toWire() argument 429 if (maxLength < Header.LENGTH) in toWire() 434 int tempMaxLength = maxLength; in toWire() 507 toWire(int maxLength) { in toWire() argument 509 toWire(out, maxLength); in toWire()
|
/external/webkit/Source/WebCore/html/ |
D | HTMLTextAreaElement.cpp | 247 int signedMaxLength = maxLength(); in handleBeforeTextInsertedEvent() 265 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) in sanitizeUserInputValue() argument 267 return proposedValue.left(numCharactersInGraphemeClusters(proposedValue, maxLength)); in sanitizeUserInputValue() 379 int HTMLTextAreaElement::maxLength() const in maxLength() function in WebCore::HTMLTextAreaElement 400 int max = maxLength(); in tooLong()
|
D | HTMLTextAreaElement.h | 48 virtual int maxLength() const; 69 static String sanitizeUserInputValue(const String&, unsigned maxLength);
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
D | ByteArray.java | 319 int maxLength = size - cursor; in read() local 320 if (length > maxLength) { in read() 321 length = maxLength; in read()
|
/external/dexmaker/src/dx/java/com/android/dx/rop/cst/ |
D | CstString.java | 316 public String toQuoted(int maxLength) { in toQuoted() argument 321 if (length <= (maxLength - 2)) { in toQuoted() 324 string = string.substring(0, maxLength - 5); in toQuoted()
|
/external/webkit/Source/WebKit/chromium/src/ |
D | WebInputElement.cpp | 68 int WebInputElement::maxLength() const in maxLength() function in WebKit::WebInputElement 70 return constUnwrap<HTMLInputElement>()->maxLength(); in maxLength()
|
/external/llvm/utils/TableGen/ |
D | RegisterInfoEmitter.cpp | 318 unsigned maxLength = 0; in EmitRegMappingTables() local 322 maxLength = std::max((size_t)maxLength, RegNums.size()); in EmitRegMappingTables() 329 if (!maxLength) in EmitRegMappingTables() 335 for (unsigned i = I->second.size(), e = maxLength; i != e; ++i) in EmitRegMappingTables() 344 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMappingTables() 399 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMappingTables() 441 unsigned maxLength = 0; in EmitRegMapping() local 444 maxLength = std::max((size_t)maxLength, in EmitRegMapping() 448 if (!maxLength) in EmitRegMapping() 464 for (unsigned i = 0, e = maxLength; i != e; ++i) { in EmitRegMapping() [all …]
|
/external/icu4c/tools/gensprep/ |
D | store.c | 156 static int32_t maxLength = 0; /* maximum length of mapping string */ variable 451 if(maxLength < value->length){ in storeMapping() 452 maxLength = value->length; in storeMapping() 579 printf("Maximum length of the mapping string is : %i \n", (int)maxLength); in generateData()
|
/external/webkit/Tools/DumpRenderTree/ |
D | LayoutTestController.cpp | 327 size_t maxLength = JSStringGetMaximumUTF8CStringSize(encodedAudioData.get()); in setEncodedAudioDataCallback() local 328 OwnArrayPtr<char> encodedAudioDataBuffer = adoptArrayPtr(new char[maxLength + 1]); in setEncodedAudioDataCallback() 329 JSStringGetUTF8CString(encodedAudioData.get(), encodedAudioDataBuffer.get(), maxLength + 1); in setEncodedAudioDataCallback() 378 size_t maxLength = JSStringGetMaximumUTF8CStringSize(origin.get()); in addURLToRedirectCallback() local 379 OwnArrayPtr<char> originBuffer = adoptArrayPtr(new char[maxLength + 1]); in addURLToRedirectCallback() 380 JSStringGetUTF8CString(origin.get(), originBuffer.get(), maxLength + 1); in addURLToRedirectCallback() 382 maxLength = JSStringGetMaximumUTF8CStringSize(destination.get()); in addURLToRedirectCallback() 383 OwnArrayPtr<char> destinationBuffer = adoptArrayPtr(new char[maxLength + 1]); in addURLToRedirectCallback() 384 JSStringGetUTF8CString(destination.get(), destinationBuffer.get(), maxLength + 1); in addURLToRedirectCallback() 765 size_t maxLength = JSStringGetMaximumUTF8CStringSize(propertyNameString.get()); in parsePagePropertyParameters() local [all …]
|
/external/webkit/LayoutTests/dom/xhtml/level2/html/ |
D | HTMLInputElement10.js | 104 vmaxlength = testNode.maxLength;
|
/external/webkit/LayoutTests/dom/html/level2/html/ |
D | HTMLInputElement10.js | 104 vmaxlength = testNode.maxLength;
|