/packages/apps/Email/src/com/android/email/codec/binary/ |
D | Base64.java | 139 private byte[] buf; field in Base64 248 boolean hasData() { return buf != null; } in hasData() 255 int avail() { return buf != null ? pos - readPos : 0; } in avail() 259 if (buf == null) { in resizeBuf() 260 buf = new byte[8192]; in resizeBuf() 264 byte[] b = new byte[buf.length * 2]; in resizeBuf() 265 System.arraycopy(buf, 0, b, 0, buf.length); in resizeBuf() 266 buf = b; in resizeBuf() 283 if (buf != null) { in readResults() 285 if (buf != b) { in readResults() [all …]
|
D | Base64OutputStream.java | 144 byte[] buf = new byte[avail]; in flush() 145 int c = base64.readResults(buf, 0, avail); in flush() 147 out.write(buf, 0, c); in flush()
|
/packages/apps/IM/src/com/android/im/imps/ |
D | PtsPrimitiveSerializer.java | 178 static void appendPairValue(StringBuilder buf, String first, String second) { in appendPairValue() argument 179 buf.append('('); in appendPairValue() 181 buf.append(first); in appendPairValue() 183 buf.append(','); in appendPairValue() 184 buf.append(second); in appendPairValue() 185 buf.append(')'); in appendPairValue() 191 static boolean appendNameAndValue(StringBuilder buf, String name, String value, in appendNameAndValue() argument 212 appendPairValue(buf, nameCode, value); in appendNameAndValue() 253 StringBuilder buf = new StringBuilder(); in encodeValue() local 261 buf.append('('); in encodeValue() [all …]
|
D | PtsPrimitiveParser.java | 496 StringBuilder buf = mStringBuf; in parseParams() local 497 int len = buf.length(); in parseParams() 506 char ch = buf.charAt(pos); in parseParams() 515 paramName = buf.substring(nameStart, pos); in parseParams() 516 if (pos < len && buf.charAt(pos) == '=') { in parseParams() 538 StringBuilder buf = mStringBuf; in parseParamValue() local 539 int len = buf.length(); in parseParamValue() 546 char ch = buf.charAt(pos); in parseParamValue() 558 if (buf.charAt(pos) != ',') { in parseParamValue() 577 ch = buf.charAt(pos); in parseParamValue() [all …]
|
D | ImpsAddress.java | 43 StringBuilder buf = new StringBuilder(ImpsConstants.ADDRESS_PREFIX); in ImpsAddress() local 45 buf.append(user.toLowerCase()); in ImpsAddress() 48 buf.append('/').append(resource.toLowerCase()); in ImpsAddress() 51 buf.append('@').append(domain.toLowerCase()); in ImpsAddress() 53 mFullAddress = buf.toString(); in ImpsAddress()
|
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | ByteQueue.java | 26 private UnboundedFifoByteBuffer buf; field in ByteQueue 30 buf = new UnboundedFifoByteBuffer(); in ByteQueue() 34 buf = new UnboundedFifoByteBuffer(initialCapacity); in ByteQueue() 39 buf.add(b); in enqueue() 43 return buf.remove(); in dequeue() 47 return buf.size(); in count() 52 buf = new UnboundedFifoByteBuffer(initialCapacity); in clear() 54 buf = new UnboundedFifoByteBuffer(); in clear() 58 return buf.iterator(); in iterator()
|
/packages/apps/Email/src/org/apache/james/mime4j/field/address/ |
D | Group.java | 57 StringBuffer buf = new StringBuffer(); in toString() local 58 buf.append(name); in toString() 59 buf.append(":"); in toString() 61 buf.append(mailboxList.get(i).toString()); in toString() 63 buf.append(","); in toString() 65 buf.append(";"); in toString() 66 return buf.toString(); in toString()
|
/packages/apps/Email/src/com/android/exchange/adapter/ |
D | Serializer.java | 46 ByteArrayOutputStream buf = new ByteArrayOutputStream(); field in Serializer 84 out.write(buf.toByteArray()); in done() 102 buf.write(Wbxml.SWITCH_PAGE); in checkPendingTag() 103 buf.write(page); in checkPendingTag() 106 buf.write(degenerated ? tag : tag | 64); in checkPendingTag() 126 buf.write(Wbxml.END); in end() 159 buf.write(Wbxml.STR_I); in text() 160 writeLiteralString(buf, text); in text() 168 byte[] buf = new byte[5]; in writeInteger() 172 buf[idx++] = (byte) (i & 0x7f); in writeInteger() [all …]
|
/packages/apps/IM/src/com/android/im/provider/ |
D | ImpsProvider.java | 500 StringBuilder buf = new StringBuilder(); in createContactsTables() local 504 buf.append("CREATE TABLE IF NOT EXISTS "); in createContactsTables() 505 buf.append(contactsTableName); in createContactsTables() 506 buf.append(" ("); in createContactsTables() 507 buf.append("_id INTEGER PRIMARY KEY,"); in createContactsTables() 508 buf.append("username TEXT,"); in createContactsTables() 509 buf.append("nickname TEXT,"); in createContactsTables() 511 buf.append("provider INTEGER,"); in createContactsTables() 512 buf.append("account INTEGER,"); in createContactsTables() 513 buf.append("contactList INTEGER,"); in createContactsTables() [all …]
|
/packages/apps/IM/src/com/android/im/app/ |
D | ContactListFilterView.java | 95 StringBuilder buf = new StringBuilder(); in runQuery() local 98 buf.append(Imps.Chats.LAST_MESSAGE_DATE); in runQuery() 99 buf.append(" IS NULL"); in runQuery() 102 buf.append(" AND "); in runQuery() 103 buf.append(Imps.Contacts.NICKNAME); in runQuery() 104 buf.append(" LIKE "); in runQuery() 105 DatabaseUtils.appendValueToSql(buf, "%" + constraint + "%"); in runQuery() 109 buf == null ? null : buf.toString(), null, Imps.Contacts.DEFAULT_SORT_ORDER); in runQuery()
|
D | MessageView.java | 99 SpannableStringBuilder buf = new SpannableStringBuilder(contact); in formatMessage() local 100 buf.append(": "); in formatMessage() 102 buf.append(body); in formatMessage() 104 buf.setSpan(ChatView.STYLE_BOLD, 0, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in formatMessage() 106 buf.append(smileyRes.markup(body)); in formatMessage() 109 appendTimeStamp(buf, date); in formatMessage() 112 return buf; in formatMessage() 115 private void appendTimeStamp(SpannableStringBuilder buf, Date date) { in appendTimeStamp() argument 127 buf.append('\n'); in appendTimeStamp() 128 buf.append(spanText); in appendTimeStamp()
|
D | ContactsPickerActivity.java | 136 StringBuilder buf = new StringBuilder(); in runQuery() local 138 buf.append(mExcludeClause).append(" AND "); in runQuery() 141 buf.append(Imps.Contacts.NICKNAME); in runQuery() 142 buf.append(" LIKE "); in runQuery() 143 DatabaseUtils.appendValueToSql(buf, "%" + constraint + "%"); in runQuery() 145 where = buf.toString(); in runQuery()
|
/packages/apps/Phone/src/com/android/phone/ |
D | DeleteFdnContactScreen.java | 102 StringBuilder buf = new StringBuilder(); in deleteContact() local 103 buf.append("tag='"); in deleteContact() 104 buf.append(mName); in deleteContact() 105 buf.append("' AND number='"); in deleteContact() 106 buf.append(mNumber); in deleteContact() 107 buf.append("' AND pin2='"); in deleteContact() 108 buf.append(mPin2); in deleteContact() 109 buf.append("'"); in deleteContact() 114 mQueryHandler.startDelete(0, null, uri, buf.toString(), null); in deleteContact()
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | ConversationHeaderView.java | 129 SpannableStringBuilder buf = new SpannableStringBuilder(from); in formatMessage() local 132 buf.append(" (" + ch.getMessageCount() + ") "); in formatMessage() 135 int before = buf.length(); in formatMessage() 137 buf.append(" "); in formatMessage() 138 buf.append(mContext.getResources().getString(R.string.has_draft)); in formatMessage() 139 buf.setSpan(new TextAppearanceSpan(mContext, size, color), before, in formatMessage() 140 buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in formatMessage() 141 buf.setSpan(new ForegroundColorSpan( in formatMessage() 143 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in formatMessage() 148 buf.setSpan(STYLE_BOLD, 0, buf.length(), in formatMessage() [all …]
|
D | MessageListItem.java | 276 SpannableStringBuilder buf = in formatMessage() local 283 buf.append(mContext.getResources().getString(R.string.inline_subject, subject)); in formatMessage() 288 buf.append(" - "); in formatMessage() 291 buf.append(parser.addSmileySpans(body)); in formatMessage() 294 buf.append("\n"); in formatMessage() 295 int startOffset = buf.length(); in formatMessage() 299 buf.append("\n"); in formatMessage() 300 buf.setSpan(new AbsoluteSizeSpan(3), startOffset, buf.length(), in formatMessage() 303 startOffset = buf.length(); in formatMessage() 304 buf.append(timestamp); in formatMessage() [all …]
|
/packages/apps/IM/libwbxml/src/ |
D | wbxml_encoder.cpp | 109 char buf[32 / 7 + 1]; // each byte holds up to 7 bits in encodeMbuint() local 110 int i = sizeof(buf); in encodeMbuint() 112 buf[--i] = val & 0x7f; in encodeMbuint() 115 buf[--i] = 0x80 | (val & 0x7f); in encodeMbuint() 119 appendResult(buf + i, sizeof(buf) - i); in encodeMbuint()
|
D | wbxml_jni.cpp | 186 char buf[20]; in opaque() local 187 sprintf(buf, "%d", val); in opaque() 189 jcharArray buffer = bytesToCharArray(env, buf, strlen(buf), &utf16length); in opaque() 272 jbyteArray buf, jint len, jboolean isEnd) in parserParse() argument 279 jbyte * bytes = env->GetByteArrayElements(buf, ©); in parserParse() 304 env->ReleaseByteArrayElements(buf, bytes, JNI_ABORT); in parserParse() 307 env->ReleaseByteArrayElements(buf, bytes, JNI_ABORT); in parserParse()
|
/packages/apps/Settings/src/com/android/settings/ |
D | DateTimeSettings.java | 348 char[] buf = new char[9]; in formatOffset() local 349 buf[0] = 'G'; in formatOffset() 350 buf[1] = 'M'; in formatOffset() 351 buf[2] = 'T'; in formatOffset() 354 buf[3] = '-'; in formatOffset() 357 buf[3] = '+'; in formatOffset() 363 buf[4] = (char) ('0' + hours / 10); in formatOffset() 364 buf[5] = (char) ('0' + hours % 10); in formatOffset() 366 buf[6] = ':'; in formatOffset() 368 buf[7] = (char) ('0' + minutes / 10); in formatOffset() [all …]
|
/packages/apps/Email/src/org/apache/commons/io/output/ |
D | ByteArrayOutputStream.java | 249 byte[] buf = getBuffer(i); in writeTo() 250 int c = Math.min(buf.length, remaining); in writeTo() 251 out.write(buf, 0, c); in writeTo() 274 byte[] buf = getBuffer(i); in toByteArray() 275 int c = Math.min(buf.length, remaining); in toByteArray() 276 System.arraycopy(buf, 0, newbuf, pos, c); in toByteArray()
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | neapi.c | 70 NJ_EXTERN NJ_INT16 njx_get_candidate(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf… in njx_get_candidate() argument 82 if ((buf == NULL) || (buf_size == 0)) { in njx_get_candidate() 88 ret = njd_get_candidate(iwnn, result, buf, buf_size); in njx_get_candidate() 100 NJ_EXTERN NJ_INT16 njx_get_stroke(NJ_CLASS *iwnn, NJ_RESULT *result, NJ_CHAR *buf, NJ_UINT16 buf_si… in njx_get_stroke() argument 112 if ((buf == NULL) || (buf_size == 0)) { in njx_get_stroke() 118 ret = njd_get_stroke(iwnn, result, buf, buf_size); in njx_get_stroke()
|
/packages/apps/Mms/tests/src/com/android/mms/util/ |
D | SmileyParserUnitTests.java | 50 SpannableStringBuilder buf = new SpannableStringBuilder(); in testSmileyParser() local 53 buf.append(parser.addSmileySpans(":-):-:-(")); in testSmileyParser() 55 ImageSpan[] spans = buf.getSpans(0, buf.length(), ImageSpan.class); in testSmileyParser()
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserBackupAgent.java | 255 byte[] buf = new byte[CHUNK]; in copyFileToBackup() 263 nRead = in.read(buf, 0, CHUNK); in copyFileToBackup() 264 data.writeEntityData(buf, nRead); in copyFileToBackup() 274 byte[] buf = new byte[CHUNK]; in copyBackupToFile() 279 int numRead = data.readEntityData(buf, 0, CHUNK); in copyBackupToFile() 280 crc.update(buf, 0, numRead); in copyBackupToFile() 281 out.write(buf, 0, numRead); in copyBackupToFile()
|
/packages/apps/Email/src/org/apache/commons/io/ |
D | FileSystemUtils.java | 286 StringBuffer buf = new StringBuffer(line.substring(bytesStart, bytesEnd)); in parseDir() local 287 for (int k = 0; k < buf.length(); k++) { in parseDir() 288 if (buf.charAt(k) == ',' || buf.charAt(k) == '.') { in parseDir() 289 buf.deleteCharAt(k--); in parseDir() 292 return parseBytes(buf.toString(), path); in parseDir()
|
/packages/apps/Mms/src/com/android/mms/util/ |
D | ContactInfoCache.java | 167 StringBuilder buf = new StringBuilder("name=" + name); in toString() local 168 buf.append(", phone=" + phoneNumber); in toString() 169 buf.append(", pid=" + person_id); in toString() 170 buf.append(", presence=" + presenceResId); in toString() 171 buf.append(", stale=" + isStale); in toString() 172 return buf.toString(); in toString()
|
/packages/apps/Settings/src/com/android/settings/vpn/ |
D | Util.java | 111 byte[] buf = new byte[1024]; in copyFiles() 113 while ((len = in.read(buf)) > 0) { in copyFiles() 114 out.write(buf, 0, len); in copyFiles()
|