/packages/apps/SecureElement/src/com/android/se/security/gpac/ |
D | BerTlv.java | 60 StringBuilder sb = new StringBuilder(digest.length * 2); in toHex() 78 if (data == null || data.length == 0) { in decode() 86 if (curIndex < data.length) { in decode() 91 if (curIndex < data.length) { in decode() 95 "Index " + curIndex + " out of range! [0..[" + data.length); in decode() 104 throw new ParserException("Index " + curIndex + " out of range! [0..[" + data.length); in decode() 108 int length; in decode() local 109 if (curIndex < data.length) { in decode() 112 length = temp; in decode() 114 if (curIndex < data.length) { in decode() [all …]
|
/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/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 …]
|
/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 …]
|
/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/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/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapbMessage.java | 150 if (numbers != null && numbers.length > 0) { in setPhoneNumbers() 151 mPhoneNumbers = new String[numbers.length]; in setPhoneNumbers() 152 for (int i = 0, n = numbers.length; i < n; i++) { in setPhoneNumbers() 164 if (networkNumber != null && networkNumber.length() > 1 && !alpha) { in setPhoneNumbers() 174 if (mPhoneNumbers.length > 0) { in getFirstPhoneNumber() 190 if (mEmailAddresses.length > 0) { in getFirstEmail() 198 if (mBtUcis.length > 0) { in getFirstBtUci() 206 if (mBtUids.length > 0) { in getFirstBtUid() 258 if (parts.length == 2) { in parseVcard() 265 if (parts.length == 2) { in parseVcard() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppSendFileInfo.java | 82 public BluetoothOppSendFileInfo(String fileName, String type, long length, in BluetoothOppSendFileInfo() argument 86 mLength = length; in BluetoothOppSendFileInfo() 93 public BluetoothOppSendFileInfo(String data, String type, long length, int status) { in BluetoothOppSendFileInfo() argument 98 mLength = length; in BluetoothOppSendFileInfo() 108 long length = 0; in generateFileInfo() local 136 length = metadataCursor.getLong(indexSize); in generateFileInfo() 139 Log.d(TAG, "fileName = " + fileName + " length = " + length); in generateFileInfo() 165 length = f.length(); in generateFileInfo() 179 if (length != statLength && statLength > 0) { in generateFileInfo() 180 Log.e(TAG, "Content provider length is wrong (" + Long.toString(length) in generateFileInfo() [all …]
|
/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
D | NativeNfcTag.java | 158 for (int i = 0; i < mTechList.length; i++) { in connectWithStatus() 432 if (mTechHandles.length > 0) { in getHandle() 454 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechLibNfcTypes.length) { in getConnectedLibNfcType() 463 if (mConnectedTechIndex != -1 && mConnectedTechIndex < mTechList.length) { in getConnectedTechnology() 475 int[] mNewTechList = new int[mTechList.length + 1]; in addTechnology() 476 System.arraycopy(mTechList, 0, mNewTechList, 0, mTechList.length); in addTechnology() 477 mNewTechList[mTechList.length] = tech; in addTechnology() 480 int[] mNewHandleList = new int[mTechHandles.length + 1]; in addTechnology() 481 System.arraycopy(mTechHandles, 0, mNewHandleList, 0, mTechHandles.length); in addTechnology() 482 mNewHandleList[mTechHandles.length] = handle; in addTechnology() [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/utils/ |
D | SpannableStringUtilsTests.java | 63 final CharSequence b = s.subSequence(15, s.length()); in testConcatWithSuggestionSpansOnly() 67 Object[] spans = result.getSpans(0, result.length(), SuggestionSpan.class); in testConcatWithSuggestionSpansOnly() 68 for (int i = 0; i < spans.length; i++) { in testConcatWithSuggestionSpansOnly() 80 actualCount = spanned.getSpans(0, spanned.length(), Object.class).length; in assertSpanCount() 91 final Object[] actualSpans = spanned.getSpans(0, spanned.length(), Object.class); in assertSpan() 128 assertEquals(7, charSequencesFromString.length); in testSplitCharSequenceWithSpan() 129 assertEquals(7, charSequencesFromSpanned.length); in testSplitCharSequenceWithSpan() 205 false /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs() 207 false /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs() 210 true /* preserveTrailingEmptySegmengs */).length); in testSplitCharSequencePreserveTrailingEmptySegmengs() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | AdvertiseHelper.java | 58 int nameLength = nameBytes.length; in advertiseDataToBytes() 81 int dataLen = 2 + (manufacturerData == null ? 0 : manufacturerData.length); in advertiseDataToBytes() 87 System.arraycopy(manufacturerData, 0, concated, 2, manufacturerData.length); in advertiseDataToBytes() 90 ret.write(concated.length + 1); in advertiseDataToBytes() 92 ret.write(concated, 0, concated.length); in advertiseDataToBytes() 109 if (uuid.length == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes() 110 serviceUuids16.write(uuid, 0, uuid.length); in advertiseDataToBytes() 111 } else if (uuid.length == BluetoothUuid.UUID_BYTES_32_BIT) { in advertiseDataToBytes() 112 serviceUuids32.write(uuid, 0, uuid.length); in advertiseDataToBytes() 114 serviceUuids128.write(uuid, 0, uuid.length); in advertiseDataToBytes() [all …]
|
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/ |
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 …]
|
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 …]
|
/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/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/apps/SecureElement/src/com/android/se/security/arf/PKCS15/ |
D | EF.java | 81 if ((data == null) || (data.length < 15)) { in decodeSIMFileProps() 125 if ((buffer != null) && (buffer.length >= 2)) { in decodeUSIMFileProps() 131 if ((buffer != null) && (buffer.length >= 2)) { in decodeUSIMFileProps() 148 if (buffer.length == 5) { in decodeUSIMFileProps() 171 if ((path == null) || (path.length == 0) || ((path.length % 2) != 0)) { in selectFile() 174 int length = path.length; in selectFile() local 186 for (int index = 0; index < length; index += 2) { in selectFile() 194 int sw1 = data[data.length - 2] & 0xFF; in selectFile() 196 return (sw1 << 8) | (data[data.length - 1] & 0xFF); in selectFile() 222 int length, pos = 0; in readBinary() local [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/apps/Dialer/java/com/android/voicemail/impl/mail/ |
D | Address.java | 128 if (tokens.length > 0) { in getEmailAddress() 177 if (personal.length() == 0) { in decodeAddressPersonal() 192 if (addressList != null && addressList.length() > 0) { in isAllValid() 194 for (int i = 0, length = tokens.length; i < length; ++i) { in isAllValid() 213 if (addressList == null || addressList.length() == 0) { in parse() 218 for (int i = 0, length = tokens.length; i < length; ++i) { in parse() 317 if (addresses == null || addresses.length == 0) { in toString() 320 if (addresses.length == 1) { in toString() 324 for (int i = 1; i < addresses.length; i++) { in toString() 354 if (addresses == null || addresses.length == 0) { in toHeader() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/ |
D | strtod.h | 130 inline bool StrtodDiyFp(const char* decimals, size_t length, size_t decimalPosition, int exp, doubl… in StrtodDiyFp() argument 133 for (; i < length; i++) { in StrtodDiyFp() 140 if (i < length && decimals[i] >= '5') // Rounding in StrtodDiyFp() 143 size_t remaining = length - i; in StrtodDiyFp() 169 …if (length + static_cast<unsigned>(adjustment)> 19u) // has more digits than decimal digits in 64-… in StrtodDiyFp() 207 inline double StrtodBigInteger(double approx, const char* decimals, size_t length, size_t decimalPo… in StrtodBigInteger() argument 208 const BigInteger dInt(decimals, length); in StrtodBigInteger() 209 const int dExp = (int)decimalPosition - (int)length + exp; in StrtodBigInteger() 225 inline double StrtodFullPrecision(double d, int p, const char* decimals, size_t length, size_t deci… in StrtodFullPrecision() argument 227 RAPIDJSON_ASSERT(length >= 1); in StrtodFullPrecision() [all …]
|
/packages/apps/SecureElement/src/com/android/se/security/ |
D | CommandApdu.java | 62 mLc = data.length; in CommandApdu() 71 mLc = data.length; in CommandApdu() 90 if (header1.length < 4 || header2.length < 4) { in compareHeaders() 134 mLc = data.length; in setData() 150 int length = 4; // CLA, INS, P1, P2 in toBytes() local 151 if (mData.length != 0) { in toBytes() 152 length += 1; // LC in toBytes() 153 length += mData.length; // DATA in toBytes() 156 length += 1; // LE in toBytes() 159 byte[] apdu = new byte[length]; in toBytes() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | ExifTag.java | 223 if (checkBadComponentCount(value.length)) { in setValue() 237 long[] data = new long[value.length]; in setValue() 238 for (int i = 0; i < value.length; i++) { in setValue() 242 componentCountActual = value.length; in setValue() 257 if (checkBadComponentCount(value.length) || dataType != TYPE_UNSIGNED_LONG) { in setValue() 264 componentCountActual = value.length; in setValue() 289 if (buf.length > 0) { in setValue() 291 (buf[buf.length - 1] == 0 || dataType == TYPE_UNDEFINED) in setValue() 293 : Arrays.copyOf(buf, buf.length + 1); in setValue() 297 int count = finalBuf.length; in setValue() [all …]
|
/packages/apps/SecureElement/src/com/android/se/internal/ |
D | Util.java | 38 byte[] data = new byte[array1.length + array2.length]; in mergeBytes() 39 System.arraycopy(array1, 0, data, 0, array1.length); in mergeBytes() 40 System.arraycopy(array2, 0, data, array1.length, array2.length); in mergeBytes() 45 public static byte[] getMid(byte[] array, int start, int length) { in getMid() argument 46 byte[] data = new byte[length]; in getMid() 47 System.arraycopy(array, start, data, 0, length); in getMid() 59 public static byte[] appendResponse(byte[] r1, byte[] r2, int length) { in appendResponse() argument 60 byte[] rsp = new byte[r1.length + length]; in appendResponse() 61 System.arraycopy(r1, 0, rsp, 0, r1.length); in appendResponse() 62 System.arraycopy(r2, 0, rsp, r1.length, length); in appendResponse() [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 …]
|