/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
D | ComposeActivityTest.java | 161 assertEquals(3, to.length); in testRecipientsRefReplyAllCustomFromReplyTo() 163 assertEquals(0, cc.length); in testRecipientsRefReplyAllCustomFromReplyTo() 164 assertEquals(0, bcc.length); in testRecipientsRefReplyAllCustomFromReplyTo() 198 assertEquals(1, to.length); in testRecipientsRefReplyAllOnlyAccount() 200 assertEquals(0, cc.length); in testRecipientsRefReplyAllOnlyAccount() 201 assertEquals(0, bcc.length); in testRecipientsRefReplyAllOnlyAccount() 239 assertEquals(1, to.length); in testRecipientsRefReplyAllOnlyCustomFrom() 241 assertEquals(0, cc.length); in testRecipientsRefReplyAllOnlyCustomFrom() 242 assertEquals(0, bcc.length); in testRecipientsRefReplyAllOnlyCustomFrom() 260 assertTrue(to.length == 1); in testReply() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | SortCursor.java | 59 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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputConnection.java | 172 final int actualLength = Math.min(beforeCursor.length(), internal.length()); in checkConsistencyForDebug() 173 if (internal.length() > actualLength) { in checkConsistencyForDebug() 174 internal.delete(0, internal.length() - actualLength); in checkConsistencyForDebug() 176 final String reference = (beforeCursor.length() <= actualLength) ? beforeCursor.toString() in checkConsistencyForDebug() 177 : beforeCursor.subSequence(beforeCursor.length() - actualLength, in checkConsistencyForDebug() 178 beforeCursor.length()).toString(); in checkConsistencyForDebug() 183 + "\nExpected text = " + internal.length() + " " + internal in checkConsistencyForDebug() 184 + "\nActual text = " + reference.length() + " " + reference; in checkConsistencyForDebug() 309 mExpectedSelStart += text.length() - mComposingText.length(); in commitText() 316 0, text.length(), CharacterStyle.class); in commitText() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
D | ExifTag.java | 237 if (checkBadComponentCount(value.length)) { in setValue() 250 long[] data = new long[value.length]; in setValue() 251 for (int i = 0; i < value.length; i++) { in setValue() 255 mComponentCountActual = value.length; in setValue() 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { in setValue() 294 mComponentCountActual = value.length; in setValue() 334 if (buf.length > 0) { in setValue() 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue() 336 .copyOf(buf, buf.length + 1); in setValue() 340 int count = finalBuf.length; in setValue() [all …]
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
D | ExifTag.java | 237 if (checkBadComponentCount(value.length)) { in setValue() 250 long[] data = new long[value.length]; in setValue() 251 for (int i = 0; i < value.length; i++) { in setValue() 255 mComponentCountActual = value.length; in setValue() 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { in setValue() 294 mComponentCountActual = value.length; in setValue() 334 if (buf.length > 0) { in setValue() 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue() 336 .copyOf(buf, buf.length + 1); in setValue() 340 int count = finalBuf.length; in setValue() [all …]
|
D | ExifOutputStream.java | 106 , int offset, int length) { in requestByteToBuffer() argument 108 int byteToRead = length > byteNeeded ? byteNeeded : length; in requestByteToBuffer() 118 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument 120 && length > 0) { in write() 122 int byteToProcess = length > mByteToSkip ? mByteToSkip : length; in write() 123 length -= byteToProcess; in write() 128 int byteToProcess = length > mByteToCopy ? mByteToCopy : length; in write() 130 length -= byteToProcess; in write() 134 if (length == 0) { in write() 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write() [all …]
|
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/ |
D | ExifTag.java | 237 if (checkBadComponentCount(value.length)) { in setValue() 250 long[] data = new long[value.length]; in setValue() 251 for (int i = 0; i < value.length; i++) { in setValue() 255 mComponentCountActual = value.length; in setValue() 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { in setValue() 294 mComponentCountActual = value.length; in setValue() 334 if (buf.length > 0) { in setValue() 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue() 336 .copyOf(buf, buf.length + 1); in setValue() 340 int count = finalBuf.length; in setValue() [all …]
|
/packages/apps/Camera2/src/com/android/camera/exif/ |
D | ExifTag.java | 237 if (checkBadComponentCount(value.length)) { in setValue() 250 long[] data = new long[value.length]; in setValue() 251 for (int i = 0; i < value.length; i++) { in setValue() 255 mComponentCountActual = value.length; in setValue() 287 if (checkBadComponentCount(value.length) || mDataType != TYPE_UNSIGNED_LONG) { in setValue() 294 mComponentCountActual = value.length; in setValue() 334 if (buf.length > 0) { in setValue() 335 finalBuf = (buf[buf.length - 1] == 0 || mDataType == TYPE_UNDEFINED) ? buf : Arrays in setValue() 336 .copyOf(buf, buf.length + 1); in setValue() 340 int count = finalBuf.length; in setValue() [all …]
|
D | ExifOutputStream.java | 106 , int offset, int length) { in requestByteToBuffer() argument 108 int byteToRead = length > byteNeeded ? byteNeeded : length; in requestByteToBuffer() 118 public void write(byte[] buffer, int offset, int length) throws IOException { in write() argument 120 && length > 0) { in write() 122 int byteToProcess = length > mByteToSkip ? mByteToSkip : length; in write() 123 length -= byteToProcess; in write() 128 int byteToProcess = length > mByteToCopy ? mByteToCopy : length; in write() 130 length -= byteToProcess; in write() 134 if (length == 0) { in write() 139 int byteRead = requestByteToBuffer(2, buffer, offset, length); in write() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
D | StringUtil.java | 148 if (fromIndex >= string.length()) { in indexOfChars() 159 for (int i = 0; i < chars.length(); i++) { in indexOfChars() 172 for (int i = Math.max(fromIndex, 0); i < string.length(); i++) { in indexOfChars() 282 while (trimCount < s.length()) { in trimStart() 323 while (trimCount < s.length()) { in trimEnd() 324 char ch = s.charAt(s.length() - trimCount - 1); in trimEnd() 336 return s.substring(0, s.length() - trimCount); in trimEnd() 392 checkArgument(what.length() > 0); in replace() 457 if (line.length() <= width) { in formatLineToFixedWidth() 466 col = word.length(); in formatLineToFixedWidth() [all …]
|
D | CharMatcher.java | 248 return (sequence.length() == 0) ? -1 : 0; 251 int length = sequence.length(); 252 Preconditions.checkPositionIndex(start, length); 253 return (start == length) ? -1 : start; 256 return sequence.length() - 1; 263 return sequence.length() == 0; 271 char[] array = new char[sequence.length()]; 277 StringBuilder retval = new StringBuilder(sequence.length() * replacement.length()); 278 for (int i = 0; i < sequence.length(); i++) { 284 return (sequence.length() == 0) ? "" : String.valueOf(replacement); [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 151 if(numbers != null && numbers.length > 0) { in setPhoneNumbers() 152 mPhoneNumbers = new String[numbers.length]; in setPhoneNumbers() 153 for(int i = 0, n = numbers.length; i < n; i++){ in setPhoneNumbers() 165 if(networkNumber != null && networkNumber.length() > 1 && !alpha) { in setPhoneNumbers() 175 if(mPhoneNumbers.length > 0) { in getFirstPhoneNumber() 190 if(mEmailAddresses.length > 0) { in getFirstEmail() 196 if(mBtUcis.length > 0) { in getFirstBtUci() 203 if(mBtUids.length > 0) { in getFirstBtUid() 259 if(parts.length == 2) { in parseVcard() 266 if(parts.length == 2) { in parseVcard() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | FusionDictionary.java | 160 assert(mChars.length > 0); in hasSeveralChars() 161 return 1 < mChars.length; in hasSeveralChars() 248 final int length = word.length(); in getCodePoints() local 249 if (length <= 0) return new int[] {}; in getCodePoints() 251 final int[] codePoints = new int[Character.codePointCount(characters, 0, length)]; in getCodePoints() 255 srci < length; srci += Character.charCount(codePoint), ++dsti) { in getCodePoints() 336 if (word.length >= DecoderSpecificConstants.DICTIONARY_MAX_WORD_LENGTH) { in add() 337 MakedictLog.w("Ignoring a word that is too long: word.length = " + word.length); in add() 351 && differentCharIndex < currentPtNode.mChars.length) break; in add() 353 charIndex += currentPtNode.mChars.length; in add() [all …]
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcTag.java | 155 for (int i = 0; i < mTechList.length; i++) { in connectWithStatus() 416 if (mTechHandles.length > 0) { in getHandle() 438 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechLibNfcTypes.length) { in getConnectedLibNfcType() 447 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechList.length) { in getConnectedTechnology() 459 int[] mNewTechList = new int[mTechList.length + 1]; in addTechnology() 460 System.arraycopy(mTechList, 0, mNewTechList, 0, mTechList.length); in addTechnology() 461 mNewTechList[mTechList.length] = tech; in addTechnology() 464 int[] mNewHandleList = new int[mTechHandles.length + 1]; in addTechnology() 465 System.arraycopy(mTechHandles, 0, mNewHandleList, 0, mTechHandles.length); in addTechnology() 466 mNewHandleList[mTechHandles.length] = handle; in addTechnology() [all …]
|
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/ |
D | NativeNfcTag.java | 156 for (int i = 0; i < mTechList.length; i++) { in connectWithStatus() 222 if (mConnectedTechIndex == -1 && mTechList.length > 0) { in startPresenceChecking() 425 if (mTechHandles.length > 0) { in getHandle() 447 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechLibNfcTypes.length) { in getConnectedLibNfcType() 456 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechList.length) { in getConnectedTechnology() 468 int[] mNewTechList = new int[mTechList.length + 1]; in addTechnology() 469 System.arraycopy(mTechList, 0, mNewTechList, 0, mTechList.length); in addTechnology() 470 mNewTechList[mTechList.length] = tech; in addTechnology() 473 int[] mNewHandleList = new int[mTechHandles.length + 1]; in addTechnology() 474 System.arraycopy(mTechHandles, 0, mNewHandleList, 0, mTechHandles.length); in addTechnology() [all …]
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
D | StringUtils.java | 56 return (str == null || str.length() == 0); in isEmpty() 95 final int length; in equals() local 96 if (a != null && b != null && (length = a.length()) == b.length()) { in equals() 100 for (int i = 0; i < length; i++) { in equals() 114 return Character.codePointCount(text, 0, text.length()); in codePointCount() 164 final ArrayList<String> result = new ArrayList<>(elements.length - 1); in removeFromCommaSplittableTextIfExists() 203 if (s.length() <= 1) { in capitalizeFirstCodePoint() 216 if (s.length() <= 1) { in capitalizeFirstAndDowncaseRest() 233 return toCodePointArray(charSequence, 0, charSequence.length()); in toCodePointArray() 249 final int length = charSequence.length(); in toCodePointArray() local [all …]
|
/packages/apps/Nfc/nci/jni/extns/pn54x/src/mifare/ |
D | phNxpExtns_MifareStd.c | 253 NdefMap->pTransceiveInfo->sSendData.length = MAX_BUFF_SIZE; in phNxpExtns_MfcModuleInit() 261 NdefMap->pTransceiveInfo->sRecvData.length = MAX_BUFF_SIZE; in phNxpExtns_MfcModuleInit() 422 p_data.ndef_data.len = NdefInfo.psUpperNdefMsg->length; in Mfc_ReadNdef_Completion_Routine() 625 NdefInfo.psUpperNdefMsg->length = NdefInfo.NdefActualSize; in Mfc_SetReadOnly() 680 NdefInfo.psUpperNdefMsg->length = NdefInfo.NdefActualSize; in Mfc_ReadNdef() 691 NdefInfo.psUpperNdefMsg->length = NdefInfo.NdefActualSize; in Mfc_ReadNdef() 701 PacketDataLength = (uint32_t*)&(NdefInfo.psUpperNdefMsg->length); in Mfc_ReadNdef() 713 NdefInfo.psUpperNdefMsg->length = 0x00; in Mfc_ReadNdef() 758 gAuthCmdBuf.pauth_cmd->length); in Mfc_PresenceCheck() 826 NdefInfo.psUpperNdefMsg->length = len; in Mfc_WriteNdef() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | SpannableStringUtilsTests.java | 47 final CharSequence b = s.subSequence(15, s.length()); in testConcatWithSuggestionSpansOnly() 51 Object[] spans = result.getSpans(0, result.length(), SuggestionSpan.class); in testConcatWithSuggestionSpansOnly() 52 for (int i = 0; i < spans.length; i++) { in testConcatWithSuggestionSpansOnly() 64 actualCount = spanned.getSpans(0, spanned.length(), Object.class).length; in assertSpanCount() 75 final Object[] actualSpans = spanned.getSpans(0, spanned.length(), Object.class); in assertSpan() 111 assertEquals(7, charSequencesFromString.length); in testSplitCharSequenceWithSpan() 112 assertEquals(7, charSequencesFromSpanned.length); in testSplitCharSequenceWithSpan() 187 false /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs() 189 false /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs() 192 true /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs() [all …]
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/ |
D | EncoderUtil.java | 224 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/services/Telephony/src/org/apache/james/mime4j/codec/ |
D | EncoderUtil.java | 224 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/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Address.java | 138 if (tokens.length > 0) { in getEmailAddress() 189 if (personal.length() == 0) { in decodeAddressPersonal() 204 if (addressList != null && addressList.length() > 0) { in isAllValid() 206 for (int i = 0, length = tokens.length; i < length; ++i) { in isAllValid() 225 if (addressList == null || addressList.length() == 0) { in parse() 230 for (int i = 0, length = tokens.length; i < length; ++i) { in parse() 339 if (addresses == null || addresses.length == 0) { in toString() 342 if (addresses.length == 1) { in toString() 346 for (int i = 1; i < addresses.length; i++) { in toString() 376 if (addresses == null || addresses.length == 0) { in toHeader() [all …]
|
/packages/services/Telephony/src/com/android/phone/common/mail/ |
D | Address.java | 137 if (tokens.length > 0) { in getEmailAddress() 188 if (personal.length() == 0) { in decodeAddressPersonal() 203 if (addressList != null && addressList.length() > 0) { in isAllValid() 205 for (int i = 0, length = tokens.length; i < length; ++i) { in isAllValid() 224 if (addressList == null || addressList.length() == 0) { in parse() 229 for (int i = 0, length = tokens.length; i < length; ++i) { in parse() 338 if (addresses == null || addresses.length == 0) { in toString() 341 if (addresses.length == 1) { in toString() 345 for (int i = 1; i < addresses.length; i++) { in toString() 375 if (addresses == null || addresses.length == 0) { in toHeader() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 82 int len = testString.length(); in testBase64Decode() 103 DecoderUtil.decodeEncodedWord(body, 0, body.length()); in testEncodedWord() 106 DecoderUtil.decodeEncodedWord(body2, 0, body2.length()); in testEncodedWord() 193 assertTrue("parsing null address", result != null && result.length == 0); in testEmptyParse() 197 assertTrue("parsing zero-length", result != null && result.length == 0); in testEmptyParse() 201 assertTrue("parsing spaces", result != null && result.length == 0); in testEmptyParse() 205 assertTrue("parsing spaces with comma", result != null && result.length == 0); in testEmptyParse() 213 assertEquals("bare address count", 1, address1.length); in testSingleParse() 218 assertEquals("bracket address count", 1, address2.length); in testSingleParse() 223 assertEquals("address with name count", 1, address3.length); in testSingleParse() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Exif.java | 30 int length = 0; in getOrientation() local 33 while (offset + 3 < jpeg.length && (jpeg[offset++] & 0xFF) == 0xFF) { in getOrientation() 52 length = pack(jpeg, offset, 2, false); in getOrientation() 53 if (length < 2 || offset + length > jpeg.length) { in getOrientation() 59 if (marker == 0xE1 && length >= 8 && in getOrientation() 63 length -= 8; in getOrientation() 68 offset += length; in getOrientation() 69 length = 0; in getOrientation() 73 if (length > 8) { in getOrientation() 84 if (count < 10 || count > length) { in getOrientation() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTests.java | 57 sendUpdateForCursorMoveTo(WORD_TO_TYPE.length()); in testPickSuggestionThenBackspace() 70 sendUpdateForCursorMoveTo(WORD_TO_TYPE.length()); in testPickAutoCorrectionThenBackspace() 84 sendUpdateForCursorMoveTo(WORD_TO_TYPE.length()); in testPickTypedWordOverAutoCorrectionThenBackspace() 99 sendUpdateForCursorMoveTo(WORD_TO_TYPE.length()); in testPickDifferentSuggestionThenBackspace() 109 final int typedLength = STRING_TO_TYPE.length(); in testDeleteSelection() 130 final int typedLength = STRING_TO_TYPE.length(); in testDeleteSelectionTwice() 175 sendUpdateForCursorMoveTo(STRING_TO_TYPE.length()); in testAutoCorrectWithPeriodThenRevert() 188 sendUpdateForCursorMoveTo(STRING_TO_TYPE.length()); in testAutoCorrectWithSpaceThenRevert() 199 sendUpdateForCursorMoveTo(STRING_TO_TYPE_FIRST.length()); in testAutoCorrectWithSpaceThenRevertThenTypeMore() 203 sendUpdateForCursorMoveTo(STRING_TO_TYPE_FIRST.length() - 1 in testAutoCorrectWithSpaceThenRevertThenTypeMore() [all …]
|