/packages/apps/Email/src/com/android/exchange/utility/ |
D | FileLogger.java | 76 StringBuffer sb = new StringBuffer(256); in log() local 77 sb.append('['); in log() 78 sb.append(hr); in log() 79 sb.append(':'); in log() 81 sb.append('0'); in log() 82 sb.append(min); in log() 83 sb.append(':'); in log() 85 sb.append('0'); in log() 87 sb.append(sec); in log() 88 sb.append("] "); in log() [all …]
|
/packages/apps/GlobalSearch/src/com/android/globalsearch/ |
D | QueryMultiplexer.java | 271 final StringBuilder sb = new StringBuilder(300); in logLatency() local 272 padQ(sb, mQuery, 20); in logLatency() 273 sb.append(mSuggestionSource.getLabel().substring(0, 4)).append(" "); in logLatency() 274 sb.append(tname).append(" "); in logLatency() 275 sb.append("total=").append(total).append("\t"); in logLatency() 277 sb.append("twait="); in logLatency() 278 pad(sb, Long.toString(threadwait), 8); in logLatency() 281 sb.append("duration="); in logLatency() 282 pad(sb, Long.toString(durationMillis), 8); in logLatency() 285 sb.append("twait="); in logLatency() [all …]
|
D | ShortcutRefresher.java | 192 final StringBuilder sb = new StringBuilder(300); in logLatency() local 193 padQ(sb, "shortcut " + mShortcutId, 20); in logLatency() 194 sb.append(mSource.getLabel().substring(0, 4)).append(" "); in logLatency() 195 sb.append(tname).append(" "); in logLatency() 196 sb.append("total=").append(total).append("\t"); in logLatency() 198 sb.append("twait="); in logLatency() 199 pad(sb, Long.toString(threadwait), 8); in logLatency() 202 sb.append("duration="); in logLatency() 203 pad(sb, Long.toString(durationMillis), 8); in logLatency() 206 sb.append("twait="); in logLatency() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppProvider.java | 333 java.lang.StringBuilder sb = new java.lang.StringBuilder(); in query() local 334 sb.append("starting query, database is "); in query() 336 sb.append("not "); in query() 338 sb.append("null; "); in query() 340 sb.append("projection is null; "); in query() 342 sb.append("projection is empty; "); in query() 345 sb.append("projection["); in query() 346 sb.append(i); in query() 347 sb.append("] is "); in query() 348 sb.append(projection[i]); in query() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/codec/ |
D | EncoderUtil.java | 359 StringBuilder sb = new StringBuilder(); in encodeB() local 366 sb.append((char) BASE64_TABLE[data >> 18 & 0x3f]); in encodeB() 367 sb.append((char) BASE64_TABLE[data >> 12 & 0x3f]); in encodeB() 368 sb.append((char) BASE64_TABLE[data >> 6 & 0x3f]); in encodeB() 369 sb.append((char) BASE64_TABLE[data & 0x3f]); in encodeB() 374 sb.append((char) BASE64_TABLE[data >> 18 & 0x3f]); in encodeB() 375 sb.append((char) BASE64_TABLE[data >> 12 & 0x3f]); in encodeB() 376 sb.append((char) BASE64_TABLE[data >> 6 & 0x3f]); in encodeB() 377 sb.append((char) BASE64_PAD); in encodeB() 381 sb.append((char) BASE64_TABLE[data >> 18 & 0x3f]); in encodeB() [all …]
|
/packages/apps/Email/src/com/android/email/mail/ |
D | Address.java | 224 StringBuffer sb = new StringBuffer(addresses[0].toString()); in toString() local 226 sb.append(','); in toString() 227 sb.append(addresses[i].toString()); in toString() 229 return sb.toString(); in toString() 260 StringBuffer sb = new StringBuffer(addresses[0].toHeader()); in toHeader() local 263 sb.append(", "); in toHeader() 264 sb.append(addresses[i].toHeader()); in toHeader() 266 return sb.toString(); in toHeader() 298 StringBuffer sb = new StringBuffer(addresses[0].toFriendly()); in toFriendly() local 300 sb.append(','); in toFriendly() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/ |
D | MimeStreamParser.java | 230 StringBuffer sb = new StringBuffer(); in parseHeader() local 238 sb.deleteCharAt(sb.length() - 1); in parseHeader() 241 sb.append((char) curr); in parseHeader() 254 while (pos < sb.length()) { in parseHeader() 255 while (pos < sb.length() && sb.charAt(pos) != '\r') { in parseHeader() 258 if (pos < sb.length() - 1 && sb.charAt(pos + 1) != '\n') { in parseHeader() 263 if (pos >= sb.length() - 2 || fieldChars.get(sb.charAt(pos + 2))) { in parseHeader() 269 String field = sb.substring(start, pos); in parseHeader()
|
/packages/apps/Mms/src/com/android/mms/ |
D | LogTag.java | 32 StringBuilder sb = new StringBuilder("["); in prettyArray() local 35 sb.append(array[i]); in prettyArray() 36 sb.append(", "); in prettyArray() 38 sb.append(array[len]); in prettyArray() 39 sb.append("]"); in prettyArray() 41 return sb.toString(); in prettyArray()
|
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
D | DecoderUtil.java | 130 StringBuffer sb = new StringBuffer(); in decodeQ() local 134 sb.append("=20"); in decodeQ() 136 sb.append(c); in decodeQ() 140 return new String(decodeBaseQuotedPrintable(sb.toString()), charset); in decodeQ() 165 StringBuilder sb = new StringBuilder(); in decodeEncodedWords() local 187 sb.append(body.substring(previousEnd)); in decodeEncodedWords() 188 return sb.toString(); in decodeEncodedWords() 196 sb.append(sep); in decodeEncodedWords() 197 sb.append(body.substring(begin, end)); in decodeEncodedWords() 200 sb.append(sep); in decodeEncodedWords() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | Utils.java | 39 StringBuilder sb = new StringBuilder(); in formatElapsedTime() local 56 sb.append(context.getString(R.string.battery_history_days, in formatElapsedTime() 59 sb.append(context.getString(R.string.battery_history_hours, hours, minutes, seconds)); in formatElapsedTime() 61 sb.append(context.getString(R.string.battery_history_minutes, minutes, seconds)); in formatElapsedTime() 63 sb.append(context.getString(R.string.battery_history_seconds, seconds)); in formatElapsedTime() 65 return sb.toString(); in formatElapsedTime()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactLookupKey.java | 81 private static boolean appendEscapedSourceId(StringBuilder sb, String sourceId) { in appendEscapedSourceId() argument 87 sb.append(sourceId, start, sourceId.length()); in appendEscapedSourceId() 92 sb.append(sourceId, start, index); in appendEscapedSourceId() 93 sb.append(".."); in appendEscapedSourceId() 139 StringBuffer sb = new StringBuffer(); in parse() local 150 sb.append('.'); in parse() 156 sb.append(c); in parse() 159 key = sb.toString(); in parse()
|
/packages/apps/Email/src/com/android/email/ |
D | Utility.java | 49 StringBuffer sb = new StringBuffer(); in readInputStream() local 53 sb.append(buf, 0, count); in readInputStream() 55 return sb.toString(); in readInputStream() 80 StringBuffer sb = new StringBuffer(); in combine() local 82 sb.append(parts[i].toString()); in combine() 84 sb.append(seperator); in combine() 87 return sb.toString(); in combine() 414 StringBuffer sb = new StringBuffer(); in generateMessageId() local 415 sb.append("<"); in generateMessageId() 417 sb.append(Integer.toString((int)(Math.random() * 35), 36)); in generateMessageId() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadProvider.java | 411 java.lang.StringBuilder sb = new java.lang.StringBuilder(); in query() local 412 sb.append("starting query, database is "); in query() 414 sb.append("not "); in query() 416 sb.append("null; "); in query() 418 sb.append("projection is null; "); in query() 420 sb.append("projection is empty; "); in query() 423 sb.append("projection["); in query() 424 sb.append(i); in query() 425 sb.append("] is "); in query() 426 sb.append(projection[i]); in query() [all …]
|
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/ |
D | MagicSmokeRS.java | 329 ScriptC.Builder sb = new ScriptC.Builder(mRS); in createScript() local 332 sb.setType(mStateType, "State", RSID_STATE); in createScript() 333 sb.setType(mTextureType, "noisesrc1", RSID_NOISESRC1); in createScript() 334 sb.setType(mTextureType, "noisedst1", RSID_NOISEDST1); in createScript() 335 sb.setType(mTextureType, "noisesrc2", RSID_NOISESRC2); in createScript() 336 sb.setType(mTextureType, "noisedst2", RSID_NOISEDST2); in createScript() 337 sb.setType(mTextureType, "noisesrc3", RSID_NOISESRC3); in createScript() 338 sb.setType(mTextureType, "noisedst3", RSID_NOISEDST3); in createScript() 339 sb.setType(mTextureType, "noisesrc4", RSID_NOISESRC4); in createScript() 340 sb.setType(mTextureType, "noisedst4", RSID_NOISEDST4); in createScript() [all …]
|
/packages/apps/Email/src/com/android/email/mail/store/ |
D | ImapResponseParser.java | 194 StringBuffer sb = new StringBuffer(); in parseAtom() local 213 if (sb.length() == 0) { in parseAtom() 216 return sb.toString(); in parseAtom() 218 sb.append((char)mIn.read()); in parseAtom() 252 StringBuffer sb = new StringBuffer(); in readStringUntil() local 256 return sb.toString(); in readStringUntil() 258 sb.append((char)ch); in readStringUntil() 402 StringBuffer sb = new StringBuffer(); in getAlertText() local 404 sb.append(get(i).toString()); in getAlertText() 405 sb.append(' '); in getAlertText() [all …]
|
/packages/apps/Browser/src/com/android/browser/ |
D | BrowserDownloadAdapter.java | 167 StringBuilder sb = new StringBuilder(); in bindView() local 169 sb.append(r.getText(R.string.download_running)); in bindView() 171 sb.append(r.getText(R.string.download_running_paused)); in bindView() 176 sb.append(' '); in bindView() 177 sb.append(progressAmount); in bindView() 178 sb.append("% ("); in bindView() 179 sb.append(Formatter.formatFileSize(mContext, currentBytes)); in bindView() 180 sb.append("/"); in bindView() 181 sb.append(Formatter.formatFileSize(mContext, totalBytes)); in bindView() 182 sb.append(")"); in bindView() [all …]
|
D | BrowserProvider.java | 178 StringBuffer sb = new StringBuffer(); in replaceSystemPropertyInString() local 187 sb.append(srcString.subSequence(lastCharLoc, i)); in replaceSystemPropertyInString() 195 sb.append(client_id); in replaceSystemPropertyInString() 197 sb.append("unknown"); in replaceSystemPropertyInString() 208 sb.append(srcString.subSequence(lastCharLoc, srcString.length())); in replaceSystemPropertyInString() 210 return sb; in replaceSystemPropertyInString() 885 StringBuilder sb = new StringBuilder(); in delete() local 887 sb.append("( "); in delete() 888 sb.append(where); in delete() 889 sb.append(" ) AND "); in delete() [all …]
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
D | PushReceiver.java | 179 StringBuilder sb = new StringBuilder('('); in findThreadId() local 180 sb.append(Mms.MESSAGE_ID); in findThreadId() 181 sb.append('='); in findThreadId() 182 sb.append(DatabaseUtils.sqlEscapeString(messageId)); in findThreadId() 183 sb.append(" AND "); in findThreadId() 184 sb.append(Mms.MESSAGE_TYPE); in findThreadId() 185 sb.append('='); in findThreadId() 186 sb.append(PduHeaders.MESSAGE_TYPE_SEND_REQ); in findThreadId() 192 sb.toString(), null, null); in findThreadId()
|
/packages/apps/Email/src/org/apache/james/mime4j/message/ |
D | Message.java | 225 StringBuffer sb = new StringBuffer(); in epilogue() local 228 sb.append((char) b); in epilogue() 230 ((Multipart) stack.peek()).setEpilogue(sb.toString()); in epilogue() 238 StringBuffer sb = new StringBuffer(); in preamble() local 241 sb.append((char) b); in preamble() 243 ((Multipart) stack.peek()).setPreamble(sb.toString()); in preamble()
|
/packages/apps/VoiceDialer/src/com/android/voicedialer/ |
D | RecognizerEngine.java | 287 StringBuffer sb = new StringBuffer(); in addNameEntriesToGrammar() local 293 sb.setLength(0); in addNameEntriesToGrammar() 294 sb.append("V='"); in addNameEntriesToGrammar() 295 sb.append(contact.mContactId).append(' '); in addNameEntriesToGrammar() 296 sb.append(contact.mPrimaryId).append(' '); in addNameEntriesToGrammar() 297 sb.append(contact.mHomeId).append(' '); in addNameEntriesToGrammar() 298 sb.append(contact.mMobileId).append(' '); in addNameEntriesToGrammar() 299 sb.append(contact.mWorkId).append(' '); in addNameEntriesToGrammar() 300 sb.append(contact.mOtherId); in addNameEntriesToGrammar() 301 sb.append("'"); in addNameEntriesToGrammar() [all …]
|
/packages/apps/Mms/src/com/android/mms/ui/ |
D | RecipientsEditor.java | 173 StringBuilder sb = new StringBuilder(); in formatInvalidNumbers() local 176 if (sb.length() != 0) { in formatInvalidNumbers() 177 sb.append(", "); in formatInvalidNumbers() 179 sb.append(number); in formatInvalidNumbers() 182 return sb.toString(); in formatInvalidNumbers() 212 SpannableStringBuilder sb = new SpannableStringBuilder(); in populate() local 215 if (sb.length() != 0) { in populate() 216 sb.append(", "); in populate() 219 sb.append(contactToToken(c)); in populate() 222 setText(sb); in populate()
|
/packages/apps/Email/src/com/android/email/mail/internet/ |
D | MimeMultipart.java | 59 StringBuffer sb = new StringBuffer(); in generateBoundary() local 60 sb.append("----"); in generateBoundary() 62 sb.append(Integer.toString((int)(Math.random() * 35), 36)); in generateBoundary() 64 return sb.toString().toUpperCase(); in generateBoundary()
|
D | MimeMessage.java | 95 StringBuffer sb = new StringBuffer(); in generateMessageId() local 96 sb.append("<"); in generateMessageId() 98 sb.append(Integer.toString((int)(Math.random() * 35), 36)); in generateMessageId() 100 sb.append("."); in generateMessageId() 101 sb.append(Long.toString(System.currentTimeMillis())); in generateMessageId() 102 sb.append("@email.android.com>"); in generateMessageId() 103 return sb.toString(); in generateMessageId() 557 StringBuffer sb = new StringBuffer(); in epilogue() local 560 sb.append((char)b); in epilogue() 567 StringBuffer sb = new StringBuffer(); in preamble() local [all …]
|
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/ |
D | Suggest.java | 66 StringBuilder sb = new StringBuilder(32); in Suggest() local 67 mStringPool.add(sb); in Suggest() 112 StringBuilder sb = new StringBuilder(32); in setMaxSuggestions() local 113 mStringPool.add(sb); in setMaxSuggestions() 298 StringBuilder sb = poolSize > 0 ? (StringBuilder) mStringPool.remove(poolSize - 1) in addWord() local 300 sb.setLength(0); in addWord() 301 sb.append(word, offset, length); in addWord() 302 mSuggestions.add(pos, sb); in addWord()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | ReverseGeocoderTask.java | 54 StringBuilder sb = new StringBuilder(); in doInBackground() local 57 sb.append(addr.getAddressLine(index)); in doInBackground() 59 value = sb.toString(); in doInBackground()
|