Home
last modified time | relevance | path

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

12

/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/ndk/platforms/android-9/include/linux/
Dext2_fs.h40 #define EXT2_SB(sb) (sb) argument
216 #define test_opt(sb, opt) (EXT2_SB(sb)->s_mount_opt & EXT2_MOUNT_##opt) argument
295 #define EXT2_HAS_COMPAT_FEATURE(sb,mask) ( EXT2_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask… argument
296 #define EXT2_HAS_RO_COMPAT_FEATURE(sb,mask) ( EXT2_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le3… argument
297 #define EXT2_HAS_INCOMPAT_FEATURE(sb,mask) ( EXT2_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(… argument
298 #define EXT2_SET_COMPAT_FEATURE(sb,mask) EXT2_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) argument
299 #define EXT2_SET_RO_COMPAT_FEATURE(sb,mask) EXT2_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32… argument
300 #define EXT2_SET_INCOMPAT_FEATURE(sb,mask) EXT2_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(m… argument
301 #define EXT2_CLEAR_COMPAT_FEATURE(sb,mask) EXT2_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(ma… argument
302 #define EXT2_CLEAR_RO_COMPAT_FEATURE(sb,mask) EXT2_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_l… argument
[all …]
Dext3_fs.h268 #define test_opt(sb, opt) (EXT3_SB(sb)->s_mount_opt & EXT3_MOUNT_##opt) argument
346 #define EXT3_SB(sb) (sb) argument
364 #define EXT3_HAS_COMPAT_FEATURE(sb,mask) ( EXT3_SB(sb)->s_es->s_feature_compat & cpu_to_le32(mask… argument
365 #define EXT3_HAS_RO_COMPAT_FEATURE(sb,mask) ( EXT3_SB(sb)->s_es->s_feature_ro_compat & cpu_to_le3… argument
366 #define EXT3_HAS_INCOMPAT_FEATURE(sb,mask) ( EXT3_SB(sb)->s_es->s_feature_incompat & cpu_to_le32(… argument
367 #define EXT3_SET_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_compat |= cpu_to_le32(mask) argument
368 #define EXT3_SET_RO_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_ro_compat |= cpu_to_le32… argument
369 #define EXT3_SET_INCOMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_incompat |= cpu_to_le32(m… argument
370 #define EXT3_CLEAR_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_compat &= ~cpu_to_le32(ma… argument
371 #define EXT3_CLEAR_RO_COMPAT_FEATURE(sb,mask) EXT3_SB(sb)->s_es->s_feature_ro_compat &= ~cpu_to_l… argument
[all …]
Dblockgroup_lock.h28 #define sb_bgl_lock(sb, block_group) (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS… argument
/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/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/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/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/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/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/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/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