Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 624) sorted by relevance

12345678910>>...25

/packages/apps/Music/src/com/android/music/
DSortCursor.java59 int length = mCursors.length; in SortCursor() local
60 mSortColumns = new int[length]; in SortCursor()
61 for (int i = 0 ; i < length ; i++) { in SortCursor()
74 for (int j = 0 ; j < length; j++) { in SortCursor()
84 for (int i = mRowNumCache.length - 1; i >= 0; i--) { in SortCursor()
87 mCurRowNumCache = new int[ROWCACHESIZE][length]; in SortCursor()
94 int length = mCursors.length; in getCount() local
95 for (int i = 0 ; i < length ; i++) { in getCount()
132 int length = mCursors.length; in onMove() local
135 for (int i = 0; i < length; i++) { in onMove()
[all …]
/packages/apps/Gallery3D/src/com/cooliris/media/
DSortCursor.java67 int length = mCursors.length; in SortCursor() local
68 mSortColumns = new int[length]; in SortCursor()
69 for (int i = 0; i < length; i++) { in SortCursor()
82 for (int j = 0; j < length; j++) { in SortCursor()
94 for (int j = 0; j < length; j++) { in SortCursor()
108 for (int i = mRowNumCache.length - 1; i >= 0; i--) { in SortCursor()
111 mCurRowNumCache = new int[ROWCACHESIZE][length]; in SortCursor()
117 int length = mCursors.length; in getCount() local
118 for (int i = 0; i < length; i++) { in getCount()
155 int length = mCursors.length; in onMove() local
[all …]
DArrayUtils.java27 int mask = hash.length - 1; in computeSortedIntersection()
28 int numItemsToHash = Math.min(secondList.size(), 2 * hash.length); in computeSortedIntersection()
60 int length = array.length; in contains() local
61 for (int i = 0; i < length; ++i) { in contains()
70 int length = array.length; in clear() local
71 for (int i = 0; i < length; i++) { in clear()
95 final int numFirst = first.length; in addAll()
96 final int numSecond = second.length; in addAll()
/packages/apps/Email/src/org/apache/commons/io/input/
DCharSequenceReader.java79 if (idx >= charSequence.length()) { in read()
95 public int read(char[] array, int offset, int length) { in read() argument
96 if (idx >= charSequence.length()) { in read()
102 if (length < 0 || (offset + length) > array.length) { in read()
103 throw new IndexOutOfBoundsException("Array Size=" + array.length + in read()
104 ", offset=" + offset + ", length=" + length); in read()
107 for (int i = 0; i < length; i++) { in read()
137 if (idx >= charSequence.length()) { in skip()
140 int dest = (int)Math.min(charSequence.length(), (idx + n)); in skip()
/packages/apps/Email/src/com/android/email/mail/
DAddress.java106 if (personal.length() == 0) { in setPersonal()
120 if (addressList != null && addressList.length() > 0) { in isAllValid()
122 for (int i = 0, length = tokens.length; i < length; ++i) { in isAllValid()
141 if (addressList == null || addressList.length() == 0) { in parse()
146 for (int i = 0, length = tokens.length; i < length; ++i) { in parse()
170 int len = address.length(); in isValidAddress()
221 if (addresses == null || addresses.length == 0) { in toString()
224 if (addresses.length == 1) { in toString()
228 for (int i = 1; i < addresses.length; i++) { in toString()
257 if (addresses == null || addresses.length == 0) { in toHeader()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DLanguageSwitcher.java51 return mLocales.length; in getLocaleCount()
62 if (selectedLanguages == null || selectedLanguages.length() < 1) { in loadLocales()
64 if (mLocales.length == 0) { in loadLocales()
80 for (int i = 0; i < mLocales.length; i++) { in loadLocales()
99 mLocales = new Locale[mSelectedLanguageArray.length]; in constructLocales()
100 for (int i = 0; i < mLocales.length; i++) { in constructLocales()
103 lang.length() > 4 ? lang.substring(3, 5) : ""); in constructLocales()
143 return mLocales[(mCurrentIndex + 1) % mLocales.length]; in getNextInputLocale()
170 return mLocales[(mCurrentIndex - 1 + mLocales.length) % mLocales.length]; in getPrevInputLocale()
179 if (mCurrentIndex >= mLocales.length) mCurrentIndex = 0; // Wrap around in next()
[all …]
DEditingUtil.java60 && (charBeforeCursor.length() > 0)) { in appendText()
148 int start = before.length(); in getWordRangeAtCursor()
153 while (++end < after.length() && !isWhitespace(after.charAt(end), sep)); in getWordRangeAtCursor()
156 if (start >= 0 && cursor + end <= after.length() + before.length()) { in getWordRangeAtCursor()
157 String word = before.toString().substring(start, before.length()) in getWordRangeAtCursor()
161 returnRange.charsBefore = before.length() - start; in getWordRangeAtCursor()
184 if (w.length >= 2 && w[w.length-2].length() > 0) { in getPreviousWord()
185 char lastChar = w[w.length-2].charAt(w[w.length-2].length() -1); in getPreviousWord()
189 return w[w.length-2]; in getPreviousWord()
252 final int length = touching.length(); in getWordAtCursorOrSelection() local
[all …]
DExpandableDictionary.java63 int length = 0; field in ExpandableDictionary.NodeArray
71 if (length + 1 > data.length) { in add()
72 Node[] tempData = new Node[length + INCREMENT]; in add()
73 if (length > 0) { in add()
74 System.arraycopy(data, 0, tempData, 0, length); in add()
78 data[length++] = n; in add()
147 final int wordLength = word.length(); in addWordRec()
150 final int childrenLength = children.length; in addWordRec()
191 if (mCodes.length < mInputLength) mCodes = new int[mInputLength][]; in getWords()
218 Node node = searchNode(mRoots, word, 0, word.length()); in getWordFrequency()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DNativeNfcTag.java126 for (int i = 0; i < mTechList.length; i++) { in connect()
361 if (mTechHandles.length > 0) { in getHandle()
381 if (mConnectedTechnology != -1 && mConnectedTechnology < mTechHandles.length) { in getConnectedHandle()
389 if (mConnectedTechnology != -1 && mConnectedTechnology < mTechLibNfcTypes.length) { in getConnectedLibNfcType()
397 if (mConnectedTechnology != -1 && mConnectedTechnology < mTechList.length) { in getConnectedTechnology()
409 int[] mNewTechList = new int[mTechList.length + 1]; in addTechnology()
410 System.arraycopy(mTechList, 0, mNewTechList, 0, mTechList.length); in addTechnology()
411 mNewTechList[mTechList.length] = tech; in addTechnology()
414 int[] mNewHandleList = new int[mTechHandles.length + 1]; in addTechnology()
415 System.arraycopy(mTechHandles, 0, mNewHandleList, 0, mTechHandles.length); in addTechnology()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java69 if (lookupKey.length() != 0) { in appendToLookupKey()
78 int pos = lookupKey.length(); in appendToLookupKey()
92 sb.append(sourceId, start, sourceId.length()); in appendEscapedSourceId()
109 int length = string.length(); in parse() local
116 while (offset < length) { in parse()
121 while (offset < length) { in parse()
149 while (offset < length) { in parse()
153 if (offset == length) { in parse()
172 while (offset < length) { in parse()
178 if (offset == length) { in parse()
[all …]
DNameNormalizer.java65 return name1.length() - name2.length(); in compareComplexity()
73 int length = 0; in lettersAndDigitsOnly() local
74 for (int i = 0; i < letters.length; i++) { in lettersAndDigitsOnly()
77 letters[length++] = c; in lettersAndDigitsOnly()
81 if (length != letters.length) { in lettersAndDigitsOnly()
82 return new String(letters, 0, length); in lettersAndDigitsOnly()
DHex.java59 char[] cArray = new char[array.length * 2]; in encodeHex()
62 for (int i = 0; i < array.length; i++) { in encodeHex()
79 int length = hexString.length(); in decodeHex() local
81 if ((length & 0x01) != 0) { in decodeHex()
86 byte[] out = new byte[length >> 1]; in decodeHex()
87 for (int i = 0, j = 0; j < length; i++) { in decodeHex()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java77 public BluetoothOppSendFileInfo(String fileName, String type, long length, in BluetoothOppSendFileInfo() argument
81 mLength = length; in BluetoothOppSendFileInfo()
89 public BluetoothOppSendFileInfo(String data, String type, long length, int status, in BluetoothOppSendFileInfo() argument
95 mLength = length; in BluetoothOppSendFileInfo()
107 long length = 0; in generateFileInfo() local
120 length = metadataCursor.getInt(1); in generateFileInfo()
121 if (D) Log.d(TAG, "fileName = " + fileName + " length = " + length); in generateFileInfo()
131 length = f.length(); in generateFileInfo()
147 if (length == 0) { in generateFileInfo()
149 length = is.available(); in generateFileInfo()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/codec/
DEncoderUtil.java224 for (int idx = 0; idx < text.length(); idx++) { in hasToBeEncoded()
362 final int end = bytes.length; in encodeB()
407 final int end = bytes.length; in encodeQ()
439 final int length = str.length(); in isToken() local
440 if (length == 0) in isToken()
443 for (int idx = 0; idx < length; idx++) { in isToken()
457 final int length = str.length(); in isAtomPhrase() local
458 for (int idx = 0; idx < length; idx++) { in isAtomPhrase()
478 final int length = str.length(); in isDotAtomText() local
479 if (length == 0) in isDotAtomText()
[all …]
/packages/apps/Email/src/org/apache/commons/io/output/
DByteArrayOutputStream.java110 filledBufferSum += currentBuffer.length; in needNewBuffer()
122 currentBuffer.length << 1, in needNewBuffer()
124 filledBufferSum += currentBuffer.length; in needNewBuffer()
141 || (off > b.length) in write()
143 || ((off + len) > b.length) in write()
154 int part = Math.min(remaining, currentBuffer.length - inBufferPos); in write()
172 if (inBufferPos == currentBuffer.length) { in write()
194 int n = in.read(currentBuffer, inBufferPos, currentBuffer.length - inBufferPos); in write()
199 if (inBufferPos == currentBuffer.length) { in write()
200 needNewBuffer(currentBuffer.length); in write()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DUnboundedFifoByteBuffer.java98 size = buffer.length - head + tail; in size()
123 if (size() + 1 >= buffer.length) { in add()
124 byte[] tmp = new byte[((buffer.length - 1) * 2) + 1]; in add()
133 if (i == buffer.length) { in add()
145 if (tail >= buffer.length) { in add()
179 if (head >= buffer.length) { in remove()
194 if (index >= buffer.length) { in increment()
209 index = buffer.length - 1; in decrement()
254 if (i >= buffer.length) { in iterator()
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DParseException.java118 for (int i = 0; i < expectedTokenSequences.length; i++) { in getMessage()
119 if (maxSize < expectedTokenSequences[i].length) { in getMessage()
120 maxSize = expectedTokenSequences[i].length; in getMessage()
122 for (int j = 0; j < expectedTokenSequences[i].length; j++) { in getMessage()
125 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { in getMessage()
143 if (expectedTokenSequences.length == 1) { in getMessage()
165 for (int i = 0; i < str.length(); i++) { in add_escapes()
197 retval.append("\\u" + s.substring(s.length() - 4, s.length())); in add_escapes()
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
DParseException.java118 for (int i = 0; i < expectedTokenSequences.length; i++) { in getMessage()
119 if (maxSize < expectedTokenSequences[i].length) { in getMessage()
120 maxSize = expectedTokenSequences[i].length; in getMessage()
122 for (int j = 0; j < expectedTokenSequences[i].length; j++) { in getMessage()
125 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { in getMessage()
143 if (expectedTokenSequences.length == 1) { in getMessage()
165 for (int i = 0; i < str.length(); i++) { in add_escapes()
197 retval.append("\\u" + s.substring(s.length() - 4, s.length())); in add_escapes()
/packages/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
DParseException.java118 for (int i = 0; i < expectedTokenSequences.length; i++) { in getMessage()
119 if (maxSize < expectedTokenSequences[i].length) { in getMessage()
120 maxSize = expectedTokenSequences[i].length; in getMessage()
122 for (int j = 0; j < expectedTokenSequences[i].length; j++) { in getMessage()
125 if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { in getMessage()
143 if (expectedTokenSequences.length == 1) { in getMessage()
165 for (int i = 0; i < str.length(); i++) { in add_escapes()
197 retval.append("\\u" + s.substring(s.length() - 4, s.length())); in add_escapes()
/packages/apps/Tag/src/com/android/vcard/
DVCardUtils.java68 for (int i = 0; i < bytes.length; i++) { in decodeQuotedPrintable()
183 if (typeString.length() == 0) { in getPhoneTypeFromStrings()
197 && 0 < indexOfAt && indexOfAt < number.length() - 1) in getPhoneTypeFromStrings()
383 final int length = value.length(); in constructListFromValue() local
384 for (int i = 0; i < length; i++) { in constructListFromValue()
386 if (ch == '\\' && i < length - 1) { in constructListFromValue()
466 final int length = value.length(); in containsOnlyNonCrLfPrintableAscii() local
467 for (int i = 0; i < length; i = value.offsetByCodePoints(i, 1)) { in containsOnlyNonCrLfPrintableAscii()
514 final int length = str.length(); in containsOnlyAlphaDigitHyphen() local
515 for (int i = 0; i < length; i = str.offsetByCodePoints(i, 1)) { in containsOnlyAlphaDigitHyphen()
[all …]
DVCardParserImpl_V30.java92 } else if (line.length() == 0) { in getNonEmptyLine()
170 if (strArray.length == 2) { in handleParams()
232 final int length = paramValue.length(); in splitAndPutParamValue() local
233 for (int i = 0; i < length; i++) { in splitAndPutParamValue()
243 if (builder.length() > 0) { in splitAndPutParamValue()
279 if (builder.length() == 0) { in splitAndPutParamValue()
329 if (line.length() == 0) { in getBase64()
355 final int length = text.length(); in unescapeText() local
356 for (int i = 0; i < length; i++) { in unescapeText()
358 if (ch == '\\' && i < length - 1) { in unescapeText()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DLevenshteinDistance.java39 final int sourceSize = source.length; in LevenshteinDistance()
40 final int targetSize = target.length; in LevenshteinDistance()
67 final int sourceLen = src.length; in calculate()
68 final int targetLen = trg.length; in calculate()
107 final int trgLen = mTarget.length; in getTargetOperations()
110 int sourcePos = mSource.length; in getTargetOperations()
160 public int length() { in length() method in LevenshteinDistance.Token
167 return subSequence(0, length()); in toString()
171 final int len = length(); in prefixOf()
172 if (len > that.length()) return false; in prefixOf()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/
DAddressUnitTests.java83 int len = testString.length(); in testBase64Decode()
176 assertTrue("parsing null address", result != null && result.length == 0); in testEmptyParse()
180 assertTrue("parsing zero-length", result != null && result.length == 0); in testEmptyParse()
184 assertTrue("parsing spaces", result != null && result.length == 0); in testEmptyParse()
188 assertTrue("parsing spaces with comma", result != null && result.length == 0); in testEmptyParse()
196 assertEquals("bare address count", 1, address1.length); in testSingleParse()
201 assertEquals("bracket address count", 1, address2.length); in testSingleParse()
206 assertEquals("address with name count", 1, address3.length); in testSingleParse()
211 assertEquals("address with quoted name count", 1, address4.length); in testSingleParse()
221 assertEquals("no atmark", 0, address1.length); in testIllegalParse()
[all …]
/packages/apps/Nfc/src/com/android/nfc/ndefpush/
DNdefPushProtocol.java52 if (actions.length != messages.length || actions.length == 0) { in NdefPushProtocol()
58 int numMessages = actions.length; in NdefPushProtocol()
108 int length; in NdefPushProtocol() local
110 length = input.readInt(); in NdefPushProtocol()
115 byte[] bytes = new byte[length]; in NdefPushProtocol()
124 if(length != lengthRead) { in NdefPushProtocol()
126 length); in NdefPushProtocol()
158 output.writeInt(bytes.length); in toByteArray()
/packages/apps/Camera/src/com/android/camera/ui/
DNinePatchChunk.java22 for (int i = 0, n = data.length; i < n; ++i) { in readIntArray()
27 private static void checkDivCount(int length) { in checkDivCount() argument
28 if (length == 0 || (length & 0x01) != 0) { in checkDivCount()
29 throw new RuntimeException("invalid nine-patch: " + length); in checkDivCount()
45 checkDivCount(chunk.mDivX.length); in deserialize()
46 checkDivCount(chunk.mDivY.length); in deserialize()

12345678910>>...25