HomeSort by relevance Sort by last modified time
    Searched refs:maxLength (Results 1 - 25 of 603) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/icu/android_icu4j/src/main/java/android/icu/text/
DictionaryMatcher.java 24 * @param maxLength The maximum number of code units to match.
31 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths,
34 public int matches(CharacterIterator text, int maxLength, int[] lengths,
36 return matches(text, maxLength, lengths, count, limit, null);
BytesDictionaryMatcher.java 46 public int matches(CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit, int[] values) {
73 if (numChars >= maxLength) {
CharsDictionaryMatcher.java 25 public int matches(CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit, int[] values) {
53 if (numChars >= maxLength) {
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DictionaryMatcher.java 23 * @param maxLength The maximum number of code units to match.
30 public abstract int matches(CharacterIterator text, int maxLength, int[] lengths,
33 public int matches(CharacterIterator text, int maxLength, int[] lengths,
35 return matches(text, maxLength, lengths, count, limit, null);
CharsDictionaryMatcher.java 24 public int matches(CharacterIterator text_, int maxLength, int[] lengths, int[] count_, int limit, int[] values) {
52 if (numChars >= maxLength) {
  /external/icu/icu4c/source/tools/toolutil/
denseranges.cpp 30 LargestGaps(int32_t max) : maxLength(max<=kCapacity ? max : kCapacity), length(0) {}
37 if(i<maxLength) {
38 // The new gap is now one of the maxLength largest.
41 int32_t j= length<maxLength ? length++ : maxLength-1;
80 int32_t maxLength;
111 int64_t maxLength=(int64_t)maxValue-(int64_t)minValue+1;
112 if(length>=(density*maxLength)/0x100) {
135 // the length of the [minValue..maxValue] range (maxLength).
144 maxLength-=gaps.gapLength(i)
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLBIOSink.java 49 int maxLength = Math.min(available(), (int) byteCount);
50 position += maxLength;
54 return maxLength;
  /external/v8/src/js/
harmony-string-padding.js 17 function StringPad(thisString, maxLength, fillString) {
18 maxLength = TO_LENGTH(maxLength);
21 if (maxLength <= stringLength) return "";
33 var fillLength = maxLength - stringLength;
52 function StringPadStart(maxLength, fillString) {
56 return StringPad(thisString, maxLength, fillString) + thisString;
60 function StringPadEnd(maxLength, fillString) {
64 return thisString + StringPad(thisString, maxLength, fillString);
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/shortcut/
shortcut_list_reading_utils.cpp 47 const int maxLength, int *const outWord, int *const pos) {
49 return ByteArrayUtils::readStringAndAdvancePosition(buffer.data(), maxLength,
  /external/pdfium/fxjs/xfa/
cjx_exdata.h 22 JS_PROP(maxLength);
  /external/robolectric/v1/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 94 private int maxLength = 4;
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) {
232 this.maxLength = maxLength;
  /external/robolectric/v1/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/guava/guava/src/com/google/common/hash/
HashCode.java 85 * @param maxLength the maximum number of bytes to write
89 public int writeBytesTo(byte[] dest, int offset, int maxLength) {
90 maxLength = Ints.min(maxLength, bits() / 8);
91 Preconditions.checkPositionIndexes(offset, offset + maxLength, dest.length);
92 writeBytesToImpl(dest, offset, maxLength);
93 return maxLength;
96 abstract void writeBytesToImpl(byte[] dest, int offset, int maxLength);
160 void writeBytesToImpl(byte[] dest, int offset, int maxLength) {
161 for (int i = 0; i < maxLength; i++)
    [all...]
MessageDigestHashFunction.java 49 int maxLength = prototype.getDigestLength();
50 checkArgument(bytes >= 4 && bytes <= maxLength,
51 "bytes (%s) must be >= 4 and < %s", bytes, maxLength);
  /external/vogar/src/vogar/commands/
VmCommandBuilder.java 47 private int maxLength = -1;
118 public VmCommandBuilder maxLength(int maxLength) {
119 this.maxLength = maxLength;
179 .maxLength(maxLength)
Command.java 76 if (builder.maxLength != -1) {
78 if (string.length() > builder.maxLength) {
79 throw new IllegalStateException("Maximum command length " + builder.maxLength
254 private int maxLength = -1;
268 this.maxLength = other.maxLength;
301 public Builder maxLength(int maxLength) {
302 this.maxLength = maxLength;
    [all...]
  /external/guava/guava/src/com/google/common/base/
Ascii.java 552 * sequence is greater than {@code maxLength}, the returned string will be exactly
553 * {@code maxLength} chars in length and will end with the given {@code truncationIndicator}.
578 * @throws IllegalArgumentException if {@code maxLength} is less than the length of
584 public static String truncate(CharSequence seq, int maxLength, String truncationIndicator) {
588 int truncationLength = maxLength - truncationIndicator.length();
590 // in this worst case, this allows a maxLength equal to the length of the truncationIndicator,
593 "maxLength (%s) must be >= length of the truncation indicator (%s)",
594 maxLength, truncationIndicator.length());
596 if (seq.length() <= maxLength) {
598 if (string.length() <= maxLength) {
    [all...]
  /external/proguard/src/proguard/classfile/editor/
VariableCleaner.java 211 int maxLength = startPCs[localVariableInfo.u2index] -
214 if (localVariableInfo.u2length > maxLength)
216 localVariableInfo.u2length = maxLength;
245 int maxLength = startPCs[localVariableTypeInfo.u2index] -
248 if (localVariableTypeInfo.u2length > maxLength)
250 localVariableTypeInfo.u2length = maxLength;
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowEditTextTest.java 26 .addAttribute(android.R.attr.maxLength, "5")
46 int maxLength = anyInteger();
48 .addAttribute(android.R.attr.maxLength, maxLength + "")
52 String excessiveInput = stringOfLength(maxLength * 2);
56 assertThat((CharSequence) editText.getText().toString()).isEqualTo(excessiveInput.subSequence(0, maxLength));
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
patricia_trie_reading_utils.cpp 70 const NodeFlags flags, const int maxLength, const int *const codePointTable,
74 length = ByteArrayUtils::readStringAndAdvancePosition(buffer, maxLength, codePointTable,
86 } else if (maxLength > 0) {
96 const int maxLength, const int *const codePointTable, int *const pos) {
98 return ByteArrayUtils::advancePositionToBehindString(buffer, maxLength, pos);
100 if (maxLength > 0) {
  /external/icu/icu4c/source/common/
dictionarydata.h 76 * @param maxLength The max length of match to consider. Units are the native indexing
93 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit,
108 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit,
126 virtual int32_t matches(UText *text, int32_t maxLength, int32_t limit,
  /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;
  /frameworks/base/core/java/android/app/admin/
PasswordMetrics.java 199 int maxLength = 0; //maximum length of a sequence already found
206 maxLength = Math.max(maxLength, current - startSequence);
213 maxLength = Math.max(maxLength, current - startSequence);
221 maxLength = Math.max(maxLength, string.length() - startSequence);
222 return maxLength;

Completed in 740 milliseconds

1 2 3 4 5 6 7 8 91011>>