Home
last modified time | relevance | path

Searched refs:stringBuilder (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Car/Notification/src/com/android/car/notification/template/
DCarNotificationHeaderView.java128 StringBuilder stringBuilder = new StringBuilder(); in bind() local
139 stringBuilder.append(loadHeaderAppName(statusBarNotification)); in bind()
144 stringBuilder.append(mSeparatorText); in bind()
145 stringBuilder.append(extras.getCharSequence(Notification.EXTRA_SUB_TEXT)); in bind()
150 stringBuilder.append(mSeparatorText); in bind()
151 stringBuilder.append(extras.getCharSequence(Notification.EXTRA_INFO_TEXT)); in bind()
156 stringBuilder.append(mSeparatorText); in bind()
161 mHeaderTextView.setText(stringBuilder); in bind()
/packages/apps/Dialer/java/com/android/dialer/oem/
DCequintCallerIdManager.java276 StringBuilder stringBuilder = new StringBuilder(); in generateDisplayName() local
280 stringBuilder.append(firstName); in generateDisplayName()
282 stringBuilder.append(" "); in generateDisplayName()
286 stringBuilder.append(lastName); in generateDisplayName()
289 stringBuilder.append(company); in generateDisplayName()
291 stringBuilder.append(name); in generateDisplayName()
296 if (stringBuilder.length() > 0) { in generateDisplayName()
297 return stringBuilder.toString(); in generateDisplayName()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/tips/
DHighUsageTip.java104 final StringBuilder stringBuilder = new StringBuilder(super.toString()); in toString() local
105 stringBuilder.append(" {"); in toString()
108 stringBuilder.append(" " + appInfo.toString() + " "); in toString()
110 stringBuilder.append('}'); in toString()
112 return stringBuilder.toString(); in toString()
DRestrictAppTip.java157 final StringBuilder stringBuilder = new StringBuilder(super.toString()); in toString() local
158 stringBuilder.append(" {"); in toString()
161 stringBuilder.append(" " + appInfo.toString() + " "); in toString()
163 stringBuilder.append('}'); in toString()
165 return stringBuilder.toString(); in toString()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/tips/
DHighUsageTip.java104 final StringBuilder stringBuilder = new StringBuilder(super.toString()); in toString() local
105 stringBuilder.append(" {"); in toString()
108 stringBuilder.append(" " + appInfo.toString() + " "); in toString()
110 stringBuilder.append('}'); in toString()
112 return stringBuilder.toString(); in toString()
DRestrictAppTip.java157 final StringBuilder stringBuilder = new StringBuilder(super.toString()); in toString() local
158 stringBuilder.append(" {"); in toString()
161 stringBuilder.append(" " + appInfo.toString() + " "); in toString()
163 stringBuilder.append('}'); in toString()
165 return stringBuilder.toString(); in toString()
/packages/apps/Messaging/src/com/android/messaging/util/
DTextUtil.java66 public static void appendWithSeparator(final StringBuilder stringBuilder, final String text, in appendWithSeparator() argument
68 if (stringBuilder.length() > 0) { in appendWithSeparator()
69 stringBuilder.append(separator); in appendWithSeparator()
71 stringBuilder.append(text); in appendWithSeparator()
/packages/apps/Dialer/java/com/android/dialer/commandline/impl/
DHelp.java59 StringBuilder stringBuilder = new StringBuilder(); in run() local
62 stringBuilder in run()
75 stringBuilder.append(String.format(Locale.US, " %20s %s\n", entry.getKey(), description)); in run()
78 return Futures.immediateFuture(stringBuilder.toString()); in run()
/packages/apps/Dialer/java/com/android/incallui/
DLog.java94 StringBuilder stringBuilder = new StringBuilder(originalString.length()); in piiHandle() local
97 stringBuilder.append('*'); in piiHandle()
99 stringBuilder.append(c); in piiHandle()
102 return stringBuilder.toString(); in piiHandle()
/packages/services/Car/service/src/com/android/car/
DJsonReaderImpl.java53 StringBuilder stringBuilder = new StringBuilder(); in jsonFileToString() local
57 stringBuilder.append(buffer, /* offset= */ 0, bufferedContent); in jsonFileToString()
60 return stringBuilder.toString(); in jsonFileToString()
/packages/apps/Dialer/java/com/android/dialer/common/
DLogUtil.java180 StringBuilder stringBuilder = new StringBuilder(phoneNumber.length()); in sanitizePhoneNumber() local
182 stringBuilder.append(sanitizeDialPadChar(c)); in sanitizePhoneNumber()
184 return stringBuilder.toString(); in sanitizePhoneNumber()
/packages/services/Telephony/src/com/android/phone/
DEmergencyShortcutButton.java120 StringBuilder stringBuilder = new StringBuilder(); in setPhoneNumber() local
122 stringBuilder.append(c).append(" "); in setPhoneNumber()
124 mPhoneNumber.setContentDescription(stringBuilder.toString().trim()); in setPhoneNumber()
/packages/apps/Dialer/java/com/android/dialer/contactphoto/
DContactPhotoManagerImpl.java955 private final StringBuilder stringBuilder = new StringBuilder(); field in ContactPhotoManagerImpl.LoaderThread
1142 stringBuilder.setLength(0); in loadThumbnails()
1143 stringBuilder.append(Photo._ID + " IN("); in loadThumbnails()
1146 stringBuilder.append(','); in loadThumbnails()
1148 stringBuilder.append('?'); in loadThumbnails()
1150 stringBuilder.append(')'); in loadThumbnails()
1163 stringBuilder.toString(), in loadThumbnails()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/
DApnEditor.java1099 StringBuilder stringBuilder = new StringBuilder(); in validateApnData() local
1101 stringBuilder.append(type).append(", "); in validateApnData()
1105 if (stringBuilder.length() >= 2) { in validateApnData()
1106 stringBuilder.delete(stringBuilder.length() - 2, stringBuilder.length()); in validateApnData()
1109 stringBuilder); in validateApnData()
/packages/apps/Settings/src/com/android/settings/network/
DApnEditor.java1185 final StringBuilder stringBuilder = new StringBuilder(); in validateApnData() local
1187 stringBuilder.append(type).append(", "); in validateApnData()
1191 if (stringBuilder.length() >= 2) { in validateApnData()
1192 stringBuilder.delete(stringBuilder.length() - 2, stringBuilder.length()); in validateApnData()
1195 stringBuilder); in validateApnData()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java161 final StringBuffer stringBuilder = new StringBuffer(); in testAddTooLongWord() local
163 stringBuilder.append('a'); in testAddTooLongWord()
165 final String validLongWord = stringBuilder.toString(); in testAddTooLongWord()
166 stringBuilder.append('a'); in testAddTooLongWord()
167 final String invalidLongWord = stringBuilder.toString(); in testAddTooLongWord()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java319 StringBuilder stringBuilder = new StringBuilder("["); in makeJsonArray() local
322 stringBuilder.append(","); in makeJsonArray()
324 stringBuilder.append(json[i]); in makeJsonArray()
326 stringBuilder.append("]"); in makeJsonArray()
327 return stringBuilder.toString(); in makeJsonArray()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java9639 StringBuilder stringBuilder = new StringBuilder(); in readToEnd() local
9647 stringBuilder.append((char)ch); in readToEnd()
9650 return stringBuilder.toString(); in readToEnd()