/development/samples/ReceiveShareDemo/src/com/example/android/receiveshare/ |
D | ReceiveShare.java | 47 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/training/multiscreen/newsreader/src/com/example/android/newsreader/ |
D | NewsArticle.java | 42 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()
|
D | NonsenseGenerator.java | 90 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/ |
D | HelloSpellCheckerActivity.java | 90 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/ndk/platforms/android-3/include/linux/ |
D | ext2_fs.h | 40 #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 …]
|
D | ext3_fs.h | 268 #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 …]
|
D | blockgroup_lock.h | 28 #define sb_bgl_lock(sb, block_group) (&(sb)->s_blockgroup_lock.locks[(block_group) & (NR_BG_LOCKS… argument
|
/development/tools/idegen/src/com/android/idegen/ |
D | FrameworkModule.java | 40 StringBuilder sb = new StringBuilder(); in buildIntermediates() local 44 sb.append(" <content url=\"file://").append(intermediates).append("\">\n"); in buildIntermediates() 46 sb.append(" <sourceFolder url=\"file://") in buildIntermediates() 49 sb.append(" </content>\n"); in buildIntermediates() 50 return sb.toString(); in buildIntermediates()
|
D | IntellijProject.java | 117 StringBuilder sb = new StringBuilder(); in createModulesFile() local 120 sb.append(" <module fileurl=\"file://").append(iml.getCanonicalPath()).append( in createModulesFile() 123 modulesContent = modulesContent.replace("@MODULES@", sb.toString()); in createModulesFile() 134 StringBuilder sb = new StringBuilder(); in createVcsFile() local 139 sb.append(" <mapping directory=\"").append(dir.getCanonicalPath()).append( in createVcsFile() 143 vcsTemplate = vcsTemplate.replace("@VCS@", sb.toString()); in createVcsFile()
|
D | Module.java | 125 StringBuilder sb = new StringBuilder(); in calculateRelativePartToRepoRoot() local 127 sb.append("../"); in calculateRelativePartToRepoRoot() 129 return sb.toString(); in calculateRelativePartToRepoRoot() 271 StringBuilder sb = new StringBuilder(); in buildIntermediates() local 273 sb.append(" <content url=\"file://$MODULE_DIR$/").append(intermediatesDir) in buildIntermediates() 275 sb.append(" <sourceFolder url=\"file://$MODULE_DIR$/") in buildIntermediates() 278 sb.append(" </content>\n"); in buildIntermediates() 280 return sb.toString(); in buildIntermediates()
|
D | MakeFileParser.java | 180 StringBuilder sb = new StringBuilder(); in StringBuilder() 181 sb.append(value.substring(0, variableStart)); 187 sb.append(result); 193 sb.append(value.substring(variableEnd + 1)); in value.length() 195 value = sb.toString(); in sb.toString()
|
/development/tools/rmtypedefs/test/com/android/tools/rmtypedefs/ |
D | RmTypeDefsTest.java | 207 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/ |
D | PurgeableBitmap.java | 92 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/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/ |
D | MediaIDHelper.java | 42 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()
|
D | LogHelper.java | 85 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/samples/VoicemailProviderDemo/src/com/example/android/voicemail/common/ui/ |
D | DialogHelperImpl.java | 111 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/tools/mkstubs/src/com/android/mkstubs/sourcer/ |
D | Output.java | 73 public void write(StringBuilder sb) { in write() argument 74 write(sb.toString()); in write()
|
/development/samples/SoftKeyboard/src/com/android/inputmethodcommon/ |
D | InputMethodSettingsImpl.java | 103 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/ |
D | MonkeySourceNetworkVars.java | 138 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()
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
D | CustomLocaleActivity.java | 388 StringBuilder sb = new StringBuilder(); in removeCustomLocale() local 391 if (sb.length() > 0) { in removeCustomLocale() 392 sb.append(CUSTOM_LOCALES_SEP); in removeCustomLocale() 394 sb.append(locale); in removeCustomLocale() 398 String newLocales = sb.toString(); in removeCustomLocale() 444 StringBuilder sb = new StringBuilder(); in toString() local 445 sb.append(mLocale) in toString() 449 sb.append(" [Custom]"); in toString() 451 return sb.toString(); in toString()
|
/development/ndk/platforms/android-21/include/linux/ |
D | bfs_fs.h | 81 #define BFS_UNCLEAN(bfs_sb, sb) ((le32_to_cpu(bfs_sb->s_from) != -1) && (le32_to_cpu(bfs_sb->s_to… argument
|
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
D | TextUndoActivity.java | 123 StringBuilder sb = new StringBuilder(16); in getNumbers() local 127 sb.append(c); in getNumbers() 130 return sb.toString(); in getNumbers()
|
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
D | KeyChainDemoActivity.java | 205 final StringBuffer sb = new StringBuffer(); in printInfo() local 207 sb.append(cert.getIssuerDN()); in printInfo() 208 sb.append("\n"); in printInfo() 215 certTv.setText(sb.toString()); in printInfo()
|
/development/samples/ApiDemos/src/com/example/android/apis/os/ |
D | MmsMessagingDemo.java | 409 final StringBuilder sb = new StringBuilder(); in getRecipients() local 411 sb.append(retrieveConf.getFrom().getString()); in getRecipients() 417 sb.append(" ").append(to.getString()); in getRecipients() 425 sb.append(" ").append(cc.getString()); in getRecipients() 429 return sb.toString(); in getRecipients() 438 final StringBuilder sb = new StringBuilder(); in getMessageText() local 446 sb.append(new String(part.getData())); in getMessageText() 450 return sb.toString(); in getMessageText()
|
/development/apps/Development/src/com/android/development/ |
D | AppHwConfigList.java | 148 CharSequence sb = ((PackageInfo) b).applicationInfo.loadLabel(mPm); 149 return collator.compare(sa, sb);
|