Home
last modified time | relevance | path

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

123456

/packages/apps/Contacts/src/com/android/contacts/model/
DDataKind.java111 final StringBuilder sb = new StringBuilder(); in toString() local
112 sb.append("DataKind:"); in toString()
113 sb.append(" resPackageName=").append(resourcePackageName); in toString()
114 sb.append(" mimeType=").append(mimeType); in toString()
115 sb.append(" titleRes=").append(titleRes); in toString()
116 sb.append(" iconAltRes=").append(iconAltRes); in toString()
117 sb.append(" iconAltDescriptionRes=").append(iconAltDescriptionRes); in toString()
118 sb.append(" weight=").append(weight); in toString()
119 sb.append(" editable=").append(editable); in toString()
120 sb.append(" actionHeader=").append(actionHeader); in toString()
[all …]
DAccountWithDataSet.java134 private static StringBuilder addStringified(StringBuilder sb, AccountWithDataSet account) { in addStringified() argument
135 sb.append(account.name); in addStringified()
136 sb.append(STRINGIFY_SEPARATOR); in addStringified()
137 sb.append(account.type); in addStringified()
138 sb.append(STRINGIFY_SEPARATOR); in addStringified()
139 if (!TextUtils.isEmpty(account.dataSet)) sb.append(account.dataSet); in addStringified()
141 return sb; in addStringified()
169 final StringBuilder sb = new StringBuilder(); in stringifyList() local
172 if (sb.length() > 0) { in stringifyList()
173 sb.append(ARRAY_STRINGIFY_SEPARATOR); in stringifyList()
[all …]
DEntityDeltaList.java214 StringBuilder sb = new StringBuilder(); in diffToString() local
215 sb.append("[\n"); in diffToString()
217 sb.append(op.toString()); in diffToString()
218 sb.append(",\n"); in diffToString()
220 sb.append("]\n"); in diffToString()
221 return sb.toString(); in diffToString()
442 StringBuilder sb = new StringBuilder(); in toString() local
443 sb.append("("); in toString()
444 sb.append("Split="); in toString()
445 sb.append(mSplitRawContacts); in toString()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DFileLogger.java78 StringBuffer sb = new StringBuffer(256); in log() local
79 sb.append('['); in log()
80 sb.append(hr); in log()
81 sb.append(':'); in log()
83 sb.append('0'); in log()
84 sb.append(min); in log()
85 sb.append(':'); in log()
87 sb.append('0'); in log()
89 sb.append(sec); in log()
90 sb.append("] "); in log()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java106 private static void appendIfNotNull(StringBuilder sb, Object value) { in appendIfNotNull() argument
108 sb.append(value.toString()); in appendIfNotNull()
114 final StringBuilder sb = new StringBuilder(); in buildCacheKey() local
116 appendIfNotNull(sb, queryUri); in buildCacheKey()
117 appendIfNotNull(sb, SEPARATOR); in buildCacheKey()
118 appendIfNotNull(sb, selection); in buildCacheKey()
119 appendIfNotNull(sb, SEPARATOR); in buildCacheKey()
120 appendIfNotNull(sb, sortOrder); in buildCacheKey()
121 appendIfNotNull(sb, SEPARATOR); in buildCacheKey()
122 appendIfNotNull(sb, countExpression); in buildCacheKey()
[all …]
DHanziToPinyin.java412 final StringBuilder sb = new StringBuilder(); in get() local
421 if (sb.length() > 0) { in get()
422 addToken(sb, tokens, tokenType); in get()
425 if (tokenType != Token.LATIN && sb.length() > 0) { in get()
426 addToken(sb, tokens, tokenType); in get()
429 sb.append(character); in get()
431 if (tokenType != Token.UNKNOWN && sb.length() > 0) { in get()
432 addToken(sb, tokens, tokenType); in get()
435 sb.append(character); in get()
439 if (sb.length() > 0) { in get()
[all …]
DContactLocaleUtils.java67 StringBuilder sb = new StringBuilder(); in getSortKey() local
72 if (sb.length() > 0) { in getSortKey()
73 sb.append(' '); in getSortKey()
75 sb.append(token.target); in getSortKey()
76 sb.append(' '); in getSortKey()
77 sb.append(token.source); in getSortKey()
79 if (sb.length() > 0) { in getSortKey()
80 sb.append(' '); in getSortKey()
82 sb.append(token.source); in getSortKey()
85 return sb.toString(); in getSortKey()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DTestUtils.java63 final StringBuilder sb = new StringBuilder(); in dumpCursor() local
65 if (sb.length() > 0) sb.append("|"); in dumpCursor()
66 sb.append(c.getColumnName(i)); in dumpCursor()
68 Log.i(TAG, sb.toString()); in dumpCursor()
72 sb.setLength(0); in dumpCursor()
74 if (sb.length() > 0) sb.append("|"); in dumpCursor()
78 sb.append("([blob] "); in dumpCursor()
79 sb.append(blob == null ? "null" : blob.length + "b"); in dumpCursor()
80 sb.append(")"); in dumpCursor()
82 sb.append(c.getString(i)); in dumpCursor()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/tests/
DQueryService.java73 StringBuilder sb = new StringBuilder(); in onHandleIntent() local
79 sb.setLength(0); in onHandleIntent()
81 add(sb, c.getColumnName(i)); in onHandleIntent()
83 Log.i(TAG, sb.toString()); in onHandleIntent()
87 sb.setLength(0); in onHandleIntent()
89 add(sb, c.getString(i)); in onHandleIntent()
91 Log.i(TAG, sb.toString()); in onHandleIntent()
101 private StringBuilder add(StringBuilder sb, String s) { in add() argument
102 if (sb.length() > 0) { in add()
103 sb.append(SEPARATOR); in add()
[all …]
/packages/apps/Contacts/src/com/android/contacts/util/
DStopWatch.java68 final StringBuilder sb = new StringBuilder(); in stopAndLog()
69 sb.append(mLabel); in stopAndLog()
70 sb.append(","); in stopAndLog()
71 sb.append(total); in stopAndLog()
72 sb.append(": "); in stopAndLog()
77 sb.append(mLapLabels.get(i)); in stopAndLog()
78 sb.append(","); in stopAndLog()
79 sb.append((current - last)); in stopAndLog()
80 sb.append(" "); in stopAndLog()
83 Log.v(TAG, sb.toString()); in stopAndLog()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DTrafficFlags.java99 StringBuilder sb = new StringBuilder(); in toString() local
100 sb.append("account "); in toString()
101 sb.append(flags & ACCOUNT_MASK); in toString()
102 sb.append(','); in toString()
103 sb.append(REASONS[(flags & REASON_MASK) >> REASON_SHIFT]); in toString()
104 sb.append(','); in toString()
105 sb.append(PROTOCOLS[(flags & PROTOCOL_MASK) >> PROTOCOL_SHIFT]); in toString()
108 sb.append(','); in toString()
109 sb.append(maskedData == DATA_CALENDAR ? "calendar" : "contacts"); in toString()
111 return sb.toString(); in toString()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppProvider.java336 java.lang.StringBuilder sb = new java.lang.StringBuilder(); in query() local
337 sb.append("starting query, database is "); in query()
339 sb.append("not "); in query()
341 sb.append("null; "); in query()
343 sb.append("projection is null; "); in query()
345 sb.append("projection is empty; "); in query()
348 sb.append("projection["); in query()
349 sb.append(i); in query()
350 sb.append("] is "); in query()
351 sb.append(projection[i]); in query()
[all …]
/packages/apps/Browser/src/com/android/browser/
DPreloadedTabControl.java42 private void maybeSetQuery(final String query, SearchBox sb) { in maybeSetQuery() argument
44 if (sb != null) { in maybeSetQuery()
46 sb.setVerbatim(true); in maybeSetQuery()
47 sb.setQuery(query); in maybeSetQuery()
48 sb.onchange(new SearchBox.SearchBoxListener() { in maybeSetQuery()
70 final SearchBox sb = mTab.getWebViewClassic().getSearchBox(); in searchBoxSubmit() local
71 if (sb == null) { in searchBoxSubmit()
76 maybeSetQuery(query, sb); in searchBoxSubmit()
79 sb.onsubmit(new SearchBox.SearchBoxListener() { in searchBoxSubmit()
109 SearchBox sb = mTab.getWebViewClassic().getSearchBox(); in searchBoxCancel() local
[all …]
/packages/apps/Email/src/com/android/email/activity/setup/
DSetupData.java251 StringBuilder sb = new StringBuilder("SetupData"); in debugString() local
253 sb.append(":flow=" + FLOW_MODES[data.mFlowMode]); in debugString()
254 sb.append(":acct=" + (data.mAccount == null ? "none" : data.mAccount.mId)); in debugString()
256 sb.append(":user=" + data.mUsername); in debugString()
259 sb.append(":pass=" + data.mPassword); in debugString()
261 sb.append(":a/d=" + data.mAllowAutodiscover); in debugString()
262 sb.append(":auto=" + data.mAutoSetup); in debugString()
263 sb.append(":default=" + data.mDefault); in debugString()
264 sb.append(":check="); in debugString()
265 if (SetupData.isCheckIncoming()) sb.append("in+"); in debugString()
[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.java235 StringBuffer sb = new StringBuffer(); in parseHeader() local
243 sb.deleteCharAt(sb.length() - 1); in parseHeader()
246 sb.append((char) curr); in parseHeader()
259 while (pos < sb.length()) { in parseHeader()
260 while (pos < sb.length() && sb.charAt(pos) != '\r') { in parseHeader()
263 if (pos < sb.length() - 1 && sb.charAt(pos + 1) != '\n') { in parseHeader()
268 if (pos >= sb.length() - 2 || fieldChars.get(sb.charAt(pos + 2))) { in parseHeader()
274 String field = sb.substring(start, pos); in parseHeader()
/packages/experimental/BugReportSender/src/com/android/bugreportsender/
DBugReportParser.java23 StringBuilder sb = new StringBuilder(); in extractSystemLogs() local
38 sb.append(line); in extractSystemLogs()
39 sb.append("\n"); in extractSystemLogs()
42 sb.append(line); in extractSystemLogs()
43 sb.append("\n"); in extractSystemLogs()
47 return sb.toString(); in extractSystemLogs()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DResearchLogger.java292 final StringBuilder sb = new StringBuilder(); in logMotionEvent() local
293 sb.append(eventTag); in logMotionEvent()
294 sb.append('\t'); sb.append(eventTime); in logMotionEvent()
295 sb.append('\t'); sb.append(id); in logMotionEvent()
296 sb.append('\t'); sb.append(x); in logMotionEvent()
297 sb.append('\t'); sb.append(y); in logMotionEvent()
298 sb.append('\t'); sb.append(size); in logMotionEvent()
299 sb.append('\t'); sb.append(pressure); in logMotionEvent()
300 write(LogGroup.MOTION_EVENT, sb.toString()); in logMotionEvent()
305 final StringBuilder sb = new StringBuilder(); in logKeyEvent() local
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DPolicy.java385 private void appendPolicy(StringBuilder sb, String code, int value) { in appendPolicy() argument
386 sb.append(code); in appendPolicy()
387 sb.append(":"); in appendPolicy()
388 sb.append(value); in appendPolicy()
389 sb.append(" "); in appendPolicy()
394 StringBuilder sb = new StringBuilder("["); in toString() local
396 sb.append("No policies]"); in toString()
399 sb.append("Pwd none "); in toString()
401 appendPolicy(sb, "Pwd strong", mPasswordMode == PASSWORD_MODE_STRONG ? 1 : 0); in toString()
402 appendPolicy(sb, "len", mPasswordMinLength); in toString()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/
DCommandStatusException.java120 StringBuilder sb = new StringBuilder(); in toString() local
121 sb.append(status); in toString()
122 sb.append(" ("); in toString()
124 sb.append("unknown"); in toString()
128 sb.append(STATUS_TEXT[offset]); in toString()
131 sb.append(")"); in toString()
132 return sb.toString(); in toString()
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java132 StringBuffer sb = new StringBuffer(); in decodeQ() local
136 sb.append("=20"); in decodeQ()
138 sb.append(c); in decodeQ()
142 return new String(decodeBaseQuotedPrintable(sb.toString()), charset); in decodeQ()
167 StringBuilder sb = new StringBuilder(); in decodeEncodedWords() local
189 sb.append(body.substring(previousEnd)); in decodeEncodedWords()
190 return sb.toString(); in decodeEncodedWords()
198 sb.append(sep); in decodeEncodedWords()
199 sb.append(body.substring(begin, end)); in decodeEncodedWords()
202 sb.append(sep); in decodeEncodedWords()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DEventLogLogger.java113 StringBuilder sb = new StringBuilder(); in getSuggestions() local
116 if (i > 0) sb.append(LIST_SEPARATOR); in getSuggestions()
122 sb.append(source).append(':').append(type).append(':').append(shortcut); in getSuggestions()
124 return sb.toString(); in getSuggestions()
129 StringBuilder sb = new StringBuilder(); in getCorpusLogNames()
131 if (sb.length() > 0) sb.append(LIST_SEPARATOR); in getCorpusLogNames()
132 sb.append(getCorpusLogName(corpus)); in getCorpusLogNames()
134 return sb.toString(); in getCorpusLogNames()
/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/emailcommon/src/com/android/emailcommon/utility/
DConversionUtilities.java42 private static StringBuffer appendTextPart(StringBuffer sb, String newText) { in appendTextPart() argument
44 return sb; in appendTextPart()
46 else if (sb == null) { in appendTextPart()
47 sb = new StringBuffer(newText); in appendTextPart()
49 if (sb.length() > 0) { in appendTextPart()
50 sb.append('\n'); in appendTextPart()
52 sb.append(newText); in appendTextPart()
54 return sb; in appendTextPart()
/packages/apps/Email/src/com/android/email/mail/store/
DImapStore.java264 StringBuffer sb = new StringBuffer("\"name\" \""); in makeCommonImapId() local
265 sb.append(packageName); in makeCommonImapId()
266 sb.append("\""); in makeCommonImapId()
269 sb.append(" \"os\" \"android\""); in makeCommonImapId()
272 sb.append(" \"os-version\" \""); in makeCommonImapId()
274 sb.append(version); in makeCommonImapId()
277 sb.append("1.0"); in makeCommonImapId()
281 sb.append("; "); in makeCommonImapId()
282 sb.append(id); in makeCommonImapId()
284 sb.append("\""); in makeCommonImapId()
[all …]

123456