Home
last modified time | relevance | path

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

12

/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DGrepHelper.java36 public abstract void buildCommand(StringBuilder sb, String pattern, int before, int after, in buildCommand() argument
76 public void buildCommand(StringBuilder sb, String pattern, int before, int after, in buildCommand() argument
78 sb.append("grep"); in buildCommand()
80 sb.append(" -i"); in buildCommand()
83 sb.append(" -B"); in buildCommand()
84 sb.append(before); in buildCommand()
87 sb.append(" -A"); in buildCommand()
88 sb.append(after); in buildCommand()
90 sb.append(" -- "); in buildCommand()
91 sb.append(Utils.shellEscape(pattern)); in buildCommand()
[all …]
/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/
DReceiveShare.java47 SpannableStringBuilder sb = new SpannableStringBuilder(); in buildShareInfo() local
49 sb.append("Type: "); sb.append(intent.getType()); sb.append("\n"); in buildShareInfo()
53 sb.append("Text: "); sb.append(text); in buildShareInfo()
56 sb.append("\n\n"); sb.append("HTML: "); sb.append(html); in buildShareInfo()
61 sb.append("Uri: "); sb.append(uri.toString()); sb.append("\n"); in buildShareInfo()
65 sb.append("Start offset: "); in buildShareInfo()
66 sb.append(Long.toString(afd.getStartOffset())); in buildShareInfo()
67 sb.append("\n"); in buildShareInfo()
68 sb.append("Length: "); in buildShareInfo()
69 sb.append(Long.toString(afd.getLength())); in buildShareInfo()
[all …]
/development/samples/browseable/MidiScope/src/com.example.android.midiscope/
DMidiPrinter.java63 StringBuilder sb = new StringBuilder(); in formatBytes() local
65 sb.append(String.format(" %02X", data[offset + i])); in formatBytes()
67 return sb.toString(); in formatBytes()
71 StringBuilder sb = new StringBuilder(); in formatMessage() local
74 sb.append(getName(status)).append("("); in formatMessage()
79 sb.append((channel + 1)).append(", "); in formatMessage()
83 sb.append(", "); in formatMessage()
85 sb.append(data[offset++]); in formatMessage()
87 sb.append(")"); in formatMessage()
88 return sb.toString(); in formatMessage()
[all …]
DLoggingReceiver.java46 StringBuilder sb = new StringBuilder(); in onSend() local
48 sb.append(String.format("-----0----: ")); in onSend()
52 sb.append(String.format("%10.3f: ", seconds)); in onSend()
54 sb.append(MidiPrinter.formatBytes(data, offset, count)); in onSend()
55 sb.append(": "); in onSend()
56 sb.append(MidiPrinter.formatMessage(data, offset, count)); in onSend()
57 String text = sb.toString(); in onSend()
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DNewsArticle.java42 StringBuilder sb = new StringBuilder(); in NewsArticle() local
43 sb.append("<html><body>"); in NewsArticle()
44 sb.append("<h1>" + mHeadline + "</h1>"); in NewsArticle()
47 sb.append("<p>").append(ngen.makeText(SENTENCES_PER_PARAGRAPH)).append("</p>"); in NewsArticle()
50 sb.append("</body></html>"); in NewsArticle()
51 mBody = sb.toString(); in NewsArticle()
DNonsenseGenerator.java90 StringBuilder sb = new StringBuilder(); in makeText() local
92 sb.append(makeSentence(false) + "."); in makeText()
94 sb.append(" "); in makeText()
97 return sb.toString(); in makeText()
164 StringBuilder sb = new StringBuilder(); in joinWords() local
165 sb.append(words.get(0)); in joinWords()
168 sb.append(" "); in joinWords()
170 sb.append(words.get(i)); in joinWords()
172 return sb.toString(); in joinWords()
/development/samples/SpellChecker/HelloSpellChecker/src/com/example/android/hellospellchecker/
DHelloSpellCheckerActivity.java90 final StringBuilder sb, final SuggestionsInfo si, final int length, final int offset) { in dumpSuggestionsInfoInternal() argument
93 sb.append('\n'); in dumpSuggestionsInfoInternal()
96 sb.append(", "); in dumpSuggestionsInfoInternal()
98 sb.append(si.getSuggestionAt(j)); in dumpSuggestionsInfoInternal()
100 sb.append(" (" + len + ")"); in dumpSuggestionsInfoInternal()
102 sb.append(" length = " + length + ", offset = " + offset); in dumpSuggestionsInfoInternal()
117 final StringBuilder sb = new StringBuilder(); in onGetSuggestions() local
119 dumpSuggestionsInfoInternal(sb, arg0[i], 0, NOT_A_LENGTH); in onGetSuggestions()
124 mMainView.append(sb.toString()); in onGetSuggestions()
143 final StringBuilder sb = new StringBuilder(); in onGetSentenceSuggestions() local
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/content/
DMediaContentJob.java84 StringBuilder sb = new StringBuilder(); in onStartJob() local
85 sb.append("Media content has changed:\n"); in onStartJob()
87 sb.append("Authorities: "); in onStartJob()
93 sb.append(", "); in onStartJob()
95 sb.append(auth); in onStartJob()
99 sb.append("\n"); in onStartJob()
100 sb.append(uri); in onStartJob()
104 sb.append("(No content)"); in onStartJob()
106 Toast.makeText(this, sb.toString(), Toast.LENGTH_LONG).show(); in onStartJob()
DPhotosContentJob.java121 StringBuilder sb = new StringBuilder(); in onStartJob() local
171 sb.append("New photos:\n"); in onStartJob()
173 sb.append(cursor.getInt(PROJECTION_ID)); in onStartJob()
174 sb.append(": "); in onStartJob()
175 sb.append(dir); in onStartJob()
176 sb.append("\n"); in onStartJob()
180 sb.append("Error: no access to media!"); in onStartJob()
195 sb.append("Photos rescan needed!"); in onStartJob()
198 sb.append("(No photos content)"); in onStartJob()
200 Toast.makeText(this, sb.toString(), Toast.LENGTH_LONG).show(); in onStartJob()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/
DMidiPortWrapper.java46 StringBuilder sb = new StringBuilder(); in updateString() local
55 sb.append("#" + mInfo.getId()); in updateString()
56 sb.append(", ").append(name); in updateString()
58 sb.append("[" + mPortIndex + "]"); in updateString()
60 sb.append(", ").append(portInfo.getName()); in updateString()
62 sb.append(", null"); in updateString()
64 mString = sb.toString(); in updateString()
/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/
DMidiPortWrapper.java46 StringBuilder sb = new StringBuilder(); in updateString() local
55 sb.append("#" + mInfo.getId()); in updateString()
56 sb.append(", ").append(name); in updateString()
58 sb.append("[" + mPortIndex + "]"); in updateString()
60 sb.append(", ").append(portInfo.getName()); in updateString()
62 sb.append(", null"); in updateString()
64 mString = sb.toString(); in updateString()
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/
DRmTypeDefsTest.java207 StringBuilder sb = new StringBuilder(); in getDirectoryContents() local
208 list(sb, root, "", 0, "testDir"); in getDirectoryContents()
209 return sb.toString(); in getDirectoryContents()
212 private void list(StringBuilder sb, File file, String prefix, int depth, String rootName) { in list() argument
214 sb.append(" "); in list()
218 sb.append(prefix); in list()
224 sb.append(fileName); in list()
226 sb.append('/'); in list()
227 sb.append('\n'); in list()
240 list(sb, child, prefix, depth + 1, rootName); in list()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPurgeableBitmap.java92 StringBuilder sb = new StringBuilder(); in getDialogMessage() local
94 sb.append("Out of memery occurs when the "); in getDialogMessage()
95 sb.append(index); in getDialogMessage()
96 sb.append("th Bitmap is decoded."); in getDialogMessage()
98 sb.append("Complete decoding ") in getDialogMessage()
102 return sb.toString(); in getDialogMessage()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/
DDumpActivity.java377 final StringBuilder sb = new StringBuilder(text.length() * 2); in setText() local
378 sb.append("<html><body"); in setText()
379 sb.append(" style=\"white-space: nowrap;\""); in setText()
380 sb.append("><pre>\n"); in setText()
386 sb.append("<br>"); in setText()
389 sb.append("&lt;"); in setText()
392 sb.append("&gt;"); in setText()
395 sb.append("&amp;"); in setText()
398 sb.append("&#39;"); in setText()
401 sb.append("&quot;"); in setText()
[all …]
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DMediaIDHelper.java42 StringBuilder sb = new StringBuilder(); in createMediaID() local
44 sb.append(categories[0]); in createMediaID()
46 sb.append(CATEGORY_SEPARATOR).append(categories[i]); in createMediaID()
50 sb.append(LEAF_SEPARATOR).append(musicID); in createMediaID()
52 return sb.toString(); in createMediaID()
DLogHelper.java85 StringBuilder sb = new StringBuilder(); in log() local
87 sb.append(m); in log()
90 sb.append("\n").append(Log.getStackTraceString(t)); in log()
92 message = sb.toString(); in log()
/development/vndk/tools/sourcedr/ninja/tests/
Dtest_ninja.py37 sb = ninja.EvalStringBuilder()
38 sb.append_raw('a')
39 sb.append_raw('b')
40 s = sb.getvalue()
61 sb = ninja.EvalStringBuilder()
62 sb.append_var('key1')
63 sb.append_var('key2')
64 s = sb.getvalue()
73 sb = ninja.EvalStringBuilder()
74 sb.append_var('key1')
[all …]
/development/tools/idegen/src/com/android/idegen/
DFrameworkModule.java48 StringBuilder sb = new StringBuilder(); in buildIntermediates() local
50 appendContentRoot(sb, DirectorySearch.getRepoRoot() + File.separator + in buildIntermediates()
54 appendContentRoot(sb, DirectorySearch.getRepoRoot() + File.separator + in buildIntermediates()
57 return sb.toString(); in buildIntermediates()
DModule.java125 StringBuilder sb = new StringBuilder(); in calculateRelativePartToRepoRoot() local
127 sb.append("../"); in calculateRelativePartToRepoRoot()
129 return sb.toString(); in calculateRelativePartToRepoRoot()
272 StringBuilder sb = new StringBuilder(); in buildIntermediates() local
274 sb.append(" <content url=\"file://$MODULE_DIR$/").append(intermediatesDir) in buildIntermediates()
276 sb.append(" <sourceFolder url=\"file://$MODULE_DIR$/") in buildIntermediates()
279 sb.append(" </content>\n"); in buildIntermediates()
281 return sb.toString(); in buildIntermediates()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/ui/
DDialogHelperImpl.java111 StringBuilder sb = new StringBuilder().append(exception.getClass().getSimpleName()); in convertExceptionToErrorMessage() local
113 sb.append("\n"); in convertExceptionToErrorMessage()
114 sb.append(exception.getMessage()); in convertExceptionToErrorMessage()
116 return sb.toString(); in convertExceptionToErrorMessage()
/development/samples/browseable/AppShortcuts/src/com.example.android.appshortcuts/
DMain.java150 final StringBuilder sb = new StringBuilder(); in getType() local
153 sb.append(sep); in getType()
154 sb.append("Dynamic"); in getType()
158 sb.append(sep); in getType()
159 sb.append("Pinned"); in getType()
163 sb.append(sep); in getType()
164 sb.append("Disabled"); in getType()
167 return sb.toString(); in getType()
/development/samples/ShortcutSample/src/com/example/android/shortcutsample/
DMain.java211 final StringBuilder sb = new StringBuilder(); in getType() local
214 sb.append(sep); in getType()
215 sb.append("Manifest"); in getType()
219 sb.append(sep); in getType()
220 sb.append("Dynamic"); in getType()
224 sb.append(sep); in getType()
225 sb.append("Pinned"); in getType()
229 sb.append(sep); in getType()
230 sb.append("Disabled"); in getType()
233 return sb.toString(); in getType()
/development/tools/mkstubs/src/com/android/mkstubs/sourcer/
DOutput.java73 public void write(StringBuilder sb) { in write() argument
74 write(sb.toString()); in write()
/development/samples/SoftKeyboard/src/com/android/inputmethodcommon/
DInputMethodSettingsImpl.java103 final StringBuilder sb = new StringBuilder(); in getEnabledSubtypesLabel() local
107 if (sb.length() > 0) { in getEnabledSubtypesLabel()
108 sb.append(", "); in getEnabledSubtypesLabel()
110 sb.append(subtype.getDisplayName(context, imi.getPackageName(), in getEnabledSubtypesLabel()
113 return sb.toString(); in getEnabledSubtypesLabel()
/development/cmds/monkey/src/com/android/commands/monkey/
DMonkeySourceNetworkVars.java138 StringBuffer sb = new StringBuffer();
140 sb.append(cat).append(" ");
142 return sb.toString();
177 StringBuffer sb = new StringBuffer(); in translateCommand() local
179 sb.append(key).append(" "); in translateCommand()
181 return new MonkeyCommandReturn(true, sb.toString()); in translateCommand()

12