/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...] |
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/shortcut/ |
shortcut_list_reading_utils.cpp | 47 const uint8_t *const dictRoot, const int maxLength, int *const outWord, int *const pos) { 48 return ByteArrayUtils::readStringAndAdvancePosition(dictRoot, maxLength, outWord, pos);
|
shortcut_list_reading_utils.h | 57 static int readShortcutTarget(const uint8_t *const dictRoot, const int maxLength,
|
/external/chromium_org/third_party/WebKit/Source/core/editing/ |
SurroundingText.h | 44 SurroundingText(const VisiblePosition&, unsigned maxLength);
|
SurroundingText.cpp | 42 SurroundingText::SurroundingText(const VisiblePosition& visiblePosition, unsigned maxLength) 48 const unsigned halfMaxLength = maxLength / 2; 51 forwardIterator.advance(maxLength - halfMaxLength);
|
/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/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);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/ |
patricia_trie_reading_utils.cpp | 68 const NodeFlags flags, const int maxLength, int *const outBuffer, int *const pos) { 71 length = ByteArrayUtils::readStringAndAdvancePosition(buffer, maxLength, outBuffer, 83 } else if (maxLength > 0) { 93 const int maxLength, int *const pos) { 95 return ByteArrayUtils::advancePositionToBehindString(buffer, maxLength, pos); 97 if (maxLength > 0) {
|
patricia_trie_reading_utils.h | 38 const int maxLength, int *const outBuffer, int *const pos); 42 const int maxLength, int *const pos);
|
/external/chromium_org/third_party/WebKit/Source/web/ |
WebSurroundingText.cpp | 42 void WebSurroundingText::initialize(const WebNode& webNode, const WebPoint& nodePoint, size_t maxLength) 48 m_private.reset(new SurroundingText(VisiblePosition(node->renderer()->positionForPoint(static_cast<IntPoint>(nodePoint))), maxLength));
|
/external/chromium_org/third_party/WebKit/public/web/ |
WebSurroundingText.h | 52 // The maximum length of the contents retrieved is defined by maxLength. 53 WEBKIT_EXPORT void initialize(const WebNode&, const WebPoint&, size_t maxLength);
|
/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,
|
/external/chromium_org/third_party/icu/source/common/ |
triedict.h | 84 * @param maxLength The maximum number of code units to match. 92 int32_t maxLength, 180 * @param maxLength The maximum number of code units to match. 188 int32_t maxLength, 232 * @param maxLength The maximum number of code units to match. 242 int32_t maxLength, 327 * @param maxLength The maximum number of code units to match. 335 int32_t 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/chromium_org/third_party/WebKit/Source/core/html/ |
HTMLTextAreaElement.cpp | 286 int signedMaxLength = maxLength(); 308 String HTMLTextAreaElement::sanitizeUserInputValue(const String& proposedValue, unsigned maxLength) 310 if (maxLength > 0 && U16_IS_LEAD(proposedValue[maxLength - 1])) 311 --maxLength; 312 return proposedValue.left(maxLength); 430 int HTMLTextAreaElement::maxLength() const 457 return validationMessageTooLongText(computeLengthForSubmission(value()), maxLength()); 475 // longer than maxLength. 479 int max = maxLength(); [all...] |
HTMLTextAreaElement.h | 49 virtual int maxLength() const; 72 static String sanitizeUserInputValue(const String&, unsigned maxLength);
|
/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);
|
/external/chromium_org/third_party/WebKit/Source/modules/websockets/ |
WebSocketDeflater.cpp | 90 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;
|
/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;
|