Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/GlobalSearch/src/com/android/globalsearch/
DQueryMultiplexer.java262 final StringBuilder sb = new StringBuilder(300); in logLatency() local
263 padQ(sb, mQuery, 20); in logLatency()
264 sb.append(mSuggestionSource.getLabel().substring(0, 4)).append(" "); in logLatency()
265 sb.append(tname).append(" "); in logLatency()
266 sb.append("total=").append(total).append("\t"); in logLatency()
268 sb.append("twait="); in logLatency()
269 pad(sb, Long.toString(threadwait), 8); in logLatency()
272 sb.append("duration="); in logLatency()
273 pad(sb, Long.toString(durationMillis), 8); in logLatency()
276 sb.append("twait="); in logLatency()
[all …]
DShortcutRefresher.java192 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/Email/src/com/android/email/mail/
DAddress.java184 StringBuffer sb = new StringBuffer(addresses[0].toString()); in toString() local
186 sb.append(','); in toString()
187 sb.append(addresses[i].toString()); in toString()
189 return sb.toString(); in toString()
220 StringBuffer sb = new StringBuffer(addresses[0].toHeader()); in toHeader() local
223 sb.append(", "); in toHeader()
224 sb.append(addresses[i].toHeader()); in toHeader()
226 return sb.toString(); in toHeader()
258 StringBuffer sb = new StringBuffer(addresses[0].toFriendly()); in toFriendly() local
260 sb.append(','); in toFriendly()
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/codec/
DEncoderUtil.java359 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/org/apache/james/mime4j/
DMimeStreamParser.java230 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/Email/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java130 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/
DUtils.java39 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/apps/Email/src/com/android/email/
DUtility.java33 StringBuffer sb = new StringBuffer(); in readInputStream() local
37 sb.append(buf, 0, count); in readInputStream()
39 return sb.toString(); in readInputStream()
64 StringBuffer sb = new StringBuffer(); in combine() local
66 sb.append(parts[i].toString()); in combine()
68 sb.append(seperator); in combine()
71 return sb.toString(); in combine()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadProvider.java411 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/apps/Email/src/com/android/email/mail/store/
DImapResponseParser.java194 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/
DBrowserDownloadAdapter.java167 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 …]
DBrowserProvider.java164 StringBuffer sb = new StringBuffer(); in replaceSystemPropertyInString() local
173 sb.append(srcString.subSequence(lastCharLoc, i)); in replaceSystemPropertyInString()
181 sb.append(client_id); in replaceSystemPropertyInString()
183 sb.append("unknown"); in replaceSystemPropertyInString()
194 sb.append(srcString.subSequence(lastCharLoc, srcString.length())); in replaceSystemPropertyInString()
196 return sb; in replaceSystemPropertyInString()
780 StringBuilder sb = new StringBuilder(); in delete() local
782 sb.append("( "); in delete()
783 sb.append(where); in delete()
784 sb.append(" ) AND "); in delete()
[all …]
/packages/apps/Mms/src/com/android/mms/transaction/
DPushReceiver.java163 StringBuilder sb = new StringBuilder('('); in findThreadId() local
164 sb.append(Mms.MESSAGE_ID); in findThreadId()
165 sb.append('='); in findThreadId()
166 sb.append(DatabaseUtils.sqlEscapeString(messageId)); in findThreadId()
167 sb.append(" AND "); in findThreadId()
168 sb.append(Mms.MESSAGE_TYPE); in findThreadId()
169 sb.append('='); in findThreadId()
170 sb.append(PduHeaders.MESSAGE_TYPE_SEND_REQ); in findThreadId()
176 sb.toString(), null, null); in findThreadId()
/packages/inputmethods/LatinIME/src/com/android/inputmethod/latin/
DSuggest.java62 StringBuilder sb = new StringBuilder(32); in Suggest() local
63 mStringPool.add(sb); in Suggest()
97 StringBuilder sb = new StringBuilder(32); in setMaxSuggestions() local
98 mStringPool.add(sb); in setMaxSuggestions()
239 StringBuilder sb = poolSize > 0 ? (StringBuilder) mStringPool.remove(poolSize - 1) in addWord() local
241 sb.setLength(0); in addWord()
242 sb.append(word, offset, length); in addWord()
243 mSuggestions.add(pos, sb); in addWord()
/packages/apps/Email/src/org/apache/james/mime4j/message/
DMessage.java225 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/
DRecognizerEngine.java286 StringBuffer sb = new StringBuffer(); in addNameEntriesToGrammar() local
291 sb.setLength(0); in addNameEntriesToGrammar()
292 sb.append("V='"); in addNameEntriesToGrammar()
293 sb.append(contact.mPersonId).append(' '); in addNameEntriesToGrammar()
294 sb.append(contact.mPrimaryId).append(' '); in addNameEntriesToGrammar()
295 sb.append(contact.mHomeId).append(' '); in addNameEntriesToGrammar()
296 sb.append(contact.mMobileId).append(' '); in addNameEntriesToGrammar()
297 sb.append(contact.mWorkId).append(' '); in addNameEntriesToGrammar()
298 sb.append(contact.mOtherId); in addNameEntriesToGrammar()
299 sb.append("'"); in addNameEntriesToGrammar()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientList.java333 StringBuilder sb = new StringBuilder(); in serialize() local
337 sb.append(MessageSender.RECIPIENTS_SEPARATOR); in serialize()
342 sb.append("%bcc%"); in serialize()
344 sb.append(recipient.number); in serialize()
346 return sb.toString(); in serialize()
358 StringBuilder sb = new StringBuilder(); in getInvalidRecipientString() local
362 sb.append(","); in getInvalidRecipientString()
367 sb.append("%bcc%"); in getInvalidRecipientString()
369 sb.append(recipient.number); in getInvalidRecipientString()
371 return sb.toString(); in getInvalidRecipientString()
DRecipientsEditor.java99 SpannableStringBuilder sb = new SpannableStringBuilder(); in populate() local
103 if (sb.length() != 0) { in populate()
104 sb.append(", "); in populate()
108 sb.append(r.toToken()); in populate()
111 setText(sb); in populate()
/packages/apps/Email/src/com/android/email/mail/internet/
DEmailHtmlUtil.java164 StringBuffer sb = new StringBuffer("<html><body>"); in renderMessageText() local
191 m.appendReplacement(sb, href); in renderMessageText()
193 m.appendReplacement(sb, "$0"); in renderMessageText()
196 m.appendTail(sb); in renderMessageText()
198 sb.append("</body></html>"); in renderMessageText()
199 text = sb.toString(); in renderMessageText()
DMimeMultipart.java59 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()
DMimeMessage.java95 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/apps/Camera/src/com/android/camera/
DReverseGeocoderTask.java54 StringBuilder sb = new StringBuilder(); in doInBackground() local
57 sb.append(addr.getAddressLine(index)); in doInBackground()
59 value = sb.toString(); in doInBackground()
/packages/apps/Email/tests/src/com/android/email/mail/transport/
DMockTransport.java316 StringBuilder sb = new StringBuilder(); field in MockTransport.MockOutputStream
323 if (sb.length() > 0) { in write()
324 writeLine(sb.toString(), null); in write()
325 sb = new StringBuilder(); in write()
329 sb.append((char)oneByte); in write()
/packages/apps/Settings/src/com/android/settings/wifi/
DAccessPointState.java790 StringBuilder sb = mSummaryBuilder; in getSummarizedStatus() local
791 sb.delete(0, sb.length()); in getSummarizedStatus()
794 buildSummary(sb, WifiStatus.getPrintable(mContext, status), true); in getSummarizedStatus()
797 buildSummary(sb, mContext.getString(R.string.summary_not_in_range), true); in getSummarizedStatus()
801 buildSummary(sb, mContext.getString(R.string.summary_remembered), true); in getSummarizedStatus()
812 buildSummary(sb, mContext.getString(R.string.summary_remembered), true); in getSummarizedStatus()
818 buildSummary(sb, verboseSecurity, true); in getSummarizedStatus()
822 return sb.toString(); in getSummarizedStatus()
843 private void buildSummary(StringBuilder sb, String string, boolean autoUpperCaseFirstLetter) { in buildSummary() argument
844 if (sb.length() == 0) { in buildSummary()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DRecurrenceProcessorTest.java106 private static void verifyWriteDateTime(String str, Calendar cal, StringBuilder sb) in verifyWriteDateTime() argument
110 String result = DateUtils.writeDateTime(cal, sb); in verifyWriteDateTime()
117 StringBuilder sb = new StringBuilder(); in testWriteDateTime() local
119 sb.setLength(15); in testWriteDateTime()
121 verifyWriteDateTime("20061216T143412", cal, sb); in testWriteDateTime()
122 verifyWriteDateTime("00010101T000000", cal, sb); in testWriteDateTime()
124 sb.setLength(16); in testWriteDateTime()
125 sb.setCharAt(15, 'Z'); in testWriteDateTime()
127 verifyWriteDateTime("20061216T143412Z", cal, sb); in testWriteDateTime()
128 verifyWriteDateTime("00010101T000000Z", cal, sb); in testWriteDateTime()

12