Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 458) sorted by relevance

12345678910>>...19

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/
DHttpUrlConnectionBuilderTests.java43 HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder(); in testSetUrl_malformed() local
45 builder.setUrl("dadasd!@%@!:11"); in testSetUrl_malformed()
53 HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder(); in testSetConnectTimeout_invalid() local
55 builder.setConnectTimeout(-1); in testSetConnectTimeout_invalid()
63 HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder(); in testSetConnectTimeout() local
64 builder.setUrl("https://www.example.com"); in testSetConnectTimeout()
65 builder.setConnectTimeout(8765); in testSetConnectTimeout()
66 HttpURLConnection connection = builder.build(); in testSetConnectTimeout()
71 HttpUrlConnectionBuilder builder = new HttpUrlConnectionBuilder(); in testSetReadTimeout_invalid() local
73 builder.setReadTimeout(-1); in testSetReadTimeout_invalid()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java41 final StringBuilder builder = new StringBuilder(); in formatAttributeMap() local
42 builder.append(DICTIONARY_TAG + "="); in formatAttributeMap()
44 builder.append(attributeMap.get(DictionaryHeader.DICTIONARY_ID_KEY)); in formatAttributeMap()
51 builder.append("," + key + "=" + value); in formatAttributeMap()
53 builder.append("\n"); in formatAttributeMap()
54 return builder.toString(); in formatAttributeMap()
58 final StringBuilder builder = new StringBuilder(); in formatWordProperty() local
59 builder.append(" " + WORD_TAG + "=" + wordProperty.mWord); in formatWordProperty()
60 builder.append(","); in formatWordProperty()
61 builder.append(formatProbabilityInfo(wordProperty.mProbabilityInfo)); in formatWordProperty()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntityDiff.java50 Builder builder; in buildDiff() local
55 builder = ContentProviderOperation.newInsert(targetUri); in buildDiff()
56 builder.withValues(after.getEntityValues()); in buildDiff()
57 diff.add(builder.build()); in buildDiff()
61 builder = ContentProviderOperation.newInsert(child.uri); in buildDiff()
62 builder.withValues(child.values); in buildDiff()
64 builder.withValueBackReference(childForeignKey, 0); in buildDiff()
66 diff.add(builder.build()); in buildDiff()
72 builder = ContentProviderOperation.newDelete(child.uri); in buildDiff()
73 builder.withSelection(getSelectIdClause(child.values), null); in buildDiff()
[all …]
DEntityDelta.java318 final StringBuilder builder = new StringBuilder(); in toString() local
319 builder.append("\n("); in toString()
320 builder.append(mValues.toString()); in toString()
321 builder.append(") = {"); in toString()
324 builder.append("\n\t"); in toString()
325 child.toString(builder); in toString()
328 builder.append("\n}\n"); in toString()
329 return builder.toString(); in toString()
337 ContentProviderOperation.Builder builder) { in possibleAdd() argument
338 if (builder != null) { in possibleAdd()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallServiceNotifier.java113 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount()
132 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount()
150 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount()
187 final Notification.Builder builder = new Notification.Builder(context); in getPhoneAccountNotification() local
191 builder.setOngoing(false); in getPhoneAccountNotification()
192 builder.setPriority(Notification.PRIORITY_HIGH); in getPhoneAccountNotification()
195 builder.setContentIntent(intent); in getPhoneAccountNotification()
197 builder.setSmallIcon(android.R.drawable.stat_sys_phone_call); in getPhoneAccountNotification()
199 builder.setContentText("Test phone accounts via telecom APIs."); in getPhoneAccountNotification()
200 builder.setContentTitle("Test Phone Accounts"); in getPhoneAccountNotification()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DPostalSplitter.java112 final StringBuilder builder = new StringBuilder(); in joinJaJp() local
120 builder.append(postal.country); in joinJaJp()
123 if (hasCountry) builder.append(SPACE); in joinJaJp()
124 builder.append(postal.postcode); in joinJaJp()
130 builder.append(NEWLINE); in joinJaJp()
133 builder.append(postal.region); in joinJaJp()
136 if (hasRegion) builder.append(SPACE); in joinJaJp()
137 builder.append(postal.city); in joinJaJp()
140 if (hasRegion || hasCity) builder.append(SPACE); in joinJaJp()
141 builder.append(postal.neighborhood); in joinJaJp()
[all …]
DSearchIndexManager.java393 private void insertIndexRow(SQLiteDatabase db, long contactId, IndexBuilder builder) { in insertIndexRow() argument
395 mValues.put(SearchIndexColumns.CONTENT, builder.getContent()); in insertIndexRow()
396 mValues.put(SearchIndexColumns.NAME, builder.getName()); in insertIndexRow()
397 mValues.put(SearchIndexColumns.TOKENS, builder.getTokens()); in insertIndexRow()
448 public abstract void addToken(StringBuilder builder, String token); in addToken() argument
470 public void addToken(StringBuilder builder, String token) { in getDigitsQueryBuilder()
471 if (builder.length() != 0) builder.append(' '); in getDigitsQueryBuilder()
473 builder.append("content:"); in getDigitsQueryBuilder()
474 builder.append(token); in getDigitsQueryBuilder()
475 builder.append("* "); in getDigitsQueryBuilder()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactDelta.java373 final StringBuilder builder = new StringBuilder(); in toString() local
374 builder.append("\n("); in toString()
375 builder.append("Uri="); in toString()
376 builder.append(mContactsQueryUri); in toString()
377 builder.append(", Values="); in toString()
378 builder.append(mValues != null ? mValues.toString() : "null"); in toString()
379 builder.append(", Entries={"); in toString()
382 builder.append("\n\t"); in toString()
383 child.toString(builder); in toString()
386 builder.append("\n})\n"); in toString()
[all …]
DRawContactDeltaList.java161 final Builder builder = beginKeepTogether(); in buildDiff() local
162 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, joinedRawContactId); in buildDiff()
164 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId); in buildDiff()
166 builder.withValueBackReference( in buildDiff()
169 diff.add(builder.build()); in buildDiff()
181 final Builder builder = beginKeepTogether(); in buildDiff() local
182 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); in buildDiff()
183 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID2, firstBatch); in buildDiff()
184 diff.add(builder.build()); in buildDiff()
192 final Builder builder = beginKeepTogether(); in buildDiff() local
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DAsyncQueryServiceHelper.java104 StringBuilder builder = new StringBuilder(); in toString() local
105 builder.append("OperationInfo [\n\t token= "); in toString()
106 builder.append(token); in toString()
107 builder.append(",\n\t op= "); in toString()
108 builder.append(Operation.opToChar(op)); in toString()
109 builder.append(",\n\t uri= "); in toString()
110 builder.append(uri); in toString()
111 builder.append(",\n\t authority= "); in toString()
112 builder.append(authority); in toString()
113 builder.append(",\n\t delayMillis= "); in toString()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DAvatarUriUtil.java129 final Builder builder = new Builder(); in joinAvatarUriToGroup() local
130 builder.scheme(SCHEME); in joinAvatarUriToGroup()
131 builder.authority(AUTHORITY); in joinAvatarUriToGroup()
132 builder.appendPath(TYPE_GROUP_URI); in joinAvatarUriToGroup()
138 builder.appendQueryParameter(PARAM_PARTICIPANT, uri.toString()); in joinAvatarUriToGroup()
140 return builder.build(); in joinAvatarUriToGroup()
212 final Builder builder = new Builder(); in createSimIconUri() local
213 builder.scheme(SCHEME); in createSimIconUri()
214 builder.authority(AUTHORITY); in createSimIconUri()
215 builder.appendPath(TYPE_SIM_SELECTOR_URI); in createSimIconUri()
[all …]
DAccessibilityUtil.java123 final StringBuilder builder) { in getVocalizedNumber() argument
126 builder.append(res.getString(R.string.content_description_for_number_zero)); in getVocalizedNumber()
127 builder.append(" "); in getVocalizedNumber()
130 builder.append(res.getString(R.string.content_description_for_number_one)); in getVocalizedNumber()
131 builder.append(" "); in getVocalizedNumber()
134 builder.append(res.getString(R.string.content_description_for_number_two)); in getVocalizedNumber()
135 builder.append(" "); in getVocalizedNumber()
138 builder.append(res.getString(R.string.content_description_for_number_three)); in getVocalizedNumber()
139 builder.append(" "); in getVocalizedNumber()
142 builder.append(res.getString(R.string.content_description_for_number_four)); in getVocalizedNumber()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/customizer/
DEstonianEECustomizer.java36 protected void setNordicKeys(final ExpectedKeyboardBuilder builder) { in setNordicKeys() argument
37 builder in setNordicKeys()
48 protected void setMoreKeysOfA(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfA() argument
49 builder in setMoreKeysOfA()
62 protected void setMoreKeysOfI(final ExpectedKeyboardBuilder builder, final int elementId) { in setMoreKeysOfI() argument
71 builder.setMoreKeysOf("i", in setMoreKeysOfI()
76 builder.setMoreKeysOf("i", in setMoreKeysOfI()
81 protected void setMoreKeysOfO(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfO() argument
82 builder in setMoreKeysOfO()
94 protected void setMoreKeysOfU(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfU() argument
[all …]
DSerbianLatinCustomizer.java33 protected void setSerbianKeys(final ExpectedKeyboardBuilder builder) { in setSerbianKeys() argument
34 builder in setSerbianKeys()
48 protected void setMoreKeysOfS(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfS() argument
53 protected void setMoreKeysOfC(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfC() argument
58 protected void setMoreKeysOfD(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfD() argument
63 protected void setMoreKeysOfZ(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfZ() argument
68 public ExpectedKeyboardBuilder setAccentedLetters(final ExpectedKeyboardBuilder builder) { in setAccentedLetters() argument
69 setSerbianKeys(builder); in setAccentedLetters()
70 setMoreKeysOfS(builder); in setAccentedLetters()
71 setMoreKeysOfC(builder); in setAccentedLetters()
[all …]
DFinnishCustomizer.java27 protected void setNordicKeys(final ExpectedKeyboardBuilder builder) { in setNordicKeys() argument
28 builder in setNordicKeys()
41 protected void setMoreKeysOfA(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfA() argument
42 builder in setMoreKeysOfA()
52 protected void setMoreKeysOfO(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfO() argument
53 builder in setMoreKeysOfO()
66 public ExpectedKeyboardBuilder setAccentedLetters(final ExpectedKeyboardBuilder builder) { in setAccentedLetters() argument
67 setNordicKeys(builder); in setAccentedLetters()
68 setMoreKeysOfA(builder); in setAccentedLetters()
69 setMoreKeysOfO(builder); in setAccentedLetters()
[all …]
DNorwegianCustomizer.java35 protected void setNordicKeys(final ExpectedKeyboardBuilder builder) { in setNordicKeys() argument
36 builder in setNordicKeys()
49 protected void setMoreKeysOfA(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfA() argument
50 builder in setMoreKeysOfA()
60 protected void setMoreKeysOfO(final ExpectedKeyboardBuilder builder) { in setMoreKeysOfO() argument
61 builder in setMoreKeysOfO()
74 public ExpectedKeyboardBuilder setAccentedLetters(final ExpectedKeyboardBuilder builder) { in setAccentedLetters() argument
75 setNordicKeys(builder); in setAccentedLetters()
76 setMoreKeysOfA(builder); in setAccentedLetters()
77 setMoreKeysOfO(builder); in setAccentedLetters()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraZslImpl.java723 private void addRegionsToCaptureRequestBuilder(CaptureRequest.Builder builder) { in addRegionsToCaptureRequestBuilder() argument
724 builder.set(CaptureRequest.CONTROL_AE_REGIONS, mAERegions); in addRegionsToCaptureRequestBuilder()
725 builder.set(CaptureRequest.CONTROL_AF_REGIONS, mAFRegions); in addRegionsToCaptureRequestBuilder()
726 builder.set(CaptureRequest.SCALER_CROP_REGION, mCropRegion); in addRegionsToCaptureRequestBuilder()
729 private void addFlashToCaptureRequestBuilder(CaptureRequest.Builder builder, Flash flashMode) { in addFlashToCaptureRequestBuilder() argument
732 builder.set(CaptureRequest.CONTROL_AE_MODE, in addFlashToCaptureRequestBuilder()
734 builder.set(CaptureRequest.FLASH_MODE, CaptureRequest.FLASH_MODE_SINGLE); in addFlashToCaptureRequestBuilder()
737 builder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_ON); in addFlashToCaptureRequestBuilder()
738 builder.set(CaptureRequest.FLASH_MODE, CaptureRequest.FLASH_MODE_OFF); in addFlashToCaptureRequestBuilder()
741 builder.set(CaptureRequest.CONTROL_AE_MODE, in addFlashToCaptureRequestBuilder()
[all …]
/packages/apps/TV/src/com/android/tv/parental/
DContentRatingsParser.java179 ContentRatingSystem.Builder builder = new ContentRatingSystem.Builder(mContext); in parseRatingSystemDefinition() local
181 builder.setDomain(domain); in parseRatingSystemDefinition()
186 builder.setName(parser.getAttributeValue(i)); in parseRatingSystemDefinition()
190 builder.addCountry(country); in parseRatingSystemDefinition()
194 builder.setTitle(getTitle(parser, i)); in parseRatingSystemDefinition()
197 builder.setDescription( in parseRatingSystemDefinition()
212 builder.addRatingBuilder(parseRatingDefinition(parser)); in parseRatingSystemDefinition()
215 builder.addSubRatingBuilder(parseSubRatingDefinition(parser)); in parseRatingSystemDefinition()
218 builder.addOrderBuilder(parseOrder(parser)); in parseRatingSystemDefinition()
227 builder.setIsCustom(isCustom); in parseRatingSystemDefinition()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/
DLayoutBase.java73 ExpectedKeyboardBuilder convertCommonLayoutToKeyboard(final ExpectedKeyboardBuilder builder, in convertCommonLayoutToKeyboard() argument
77 builder.setKeysOfRow(numberOfRows, (Object[])customizer.getSpaceKeys(isPhone)); in convertCommonLayoutToKeyboard()
78 builder.addKeysOnTheLeftOfRow( in convertCommonLayoutToKeyboard()
80 builder.addKeysOnTheRightOfRow( in convertCommonLayoutToKeyboard()
83 builder.addKeysOnTheRightOfRow(numberOfRows - 1, DELETE_KEY) in convertCommonLayoutToKeyboard()
87 builder.addKeysOnTheRightOfRow(1, DELETE_KEY) in convertCommonLayoutToKeyboard()
92 builder.addKeysOnTheLeftOfRow( in convertCommonLayoutToKeyboard()
94 builder.addKeysOnTheRightOfRow( in convertCommonLayoutToKeyboard()
96 return builder; in convertCommonLayoutToKeyboard()
121 final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder( in getCommonAlphabetShiftLayout() local
[all …]
DPcQwerty.java40 final ExpectedKeyboardBuilder builder = new ExpectedKeyboardBuilder(ALPHABET_COMMON); in getCommonAlphabetLayout() local
41 customizer.setAccentedLetters(builder); in getCommonAlphabetLayout()
42 builder.replaceKeyOfLabel(ROW1_1, key("`", moreKey("~"))) in getCommonAlphabetLayout()
59 builder.replaceKeyOfLabel(ROW1_13, key("=", in getCommonAlphabetLayout()
65 builder.replaceKeyOfLabel(ROW1_13, key("=", in getCommonAlphabetLayout()
68 return builder.build(); in getCommonAlphabetLayout()
73 final ExpectedKeyboardBuilder builder; in getCommonAlphabetShiftLayout() local
76 builder = new ExpectedKeyboardBuilder(getCommonAlphabetLayout(isPhone)); in getCommonAlphabetShiftLayout()
78 builder = new ExpectedKeyboardBuilder(ALPHABET_COMMON); in getCommonAlphabetShiftLayout()
80 customizer.setAccentedLetters(builder); in getCommonAlphabetShiftLayout()
[all …]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DStatusBarNotifier.java282 final Notification.Builder builder = getNotificationBuilder(); in buildAndSendNotification() local
283 builder.setPublicVersion(publicBuilder.build()); in buildAndSendNotification()
287 builder.setContentIntent(inCallPendingIntent); in buildAndSendNotification()
292 configureFullScreenIntent(builder, inCallPendingIntent, call); in buildAndSendNotification()
294 builder.setCategory(Notification.CATEGORY_CALL); in buildAndSendNotification()
298 builder.setContentText(content); in buildAndSendNotification()
299 builder.setSmallIcon(iconResId); in buildAndSendNotification()
300 builder.setContentTitle(contentTitle); in buildAndSendNotification()
301 builder.setLargeIcon(largeIcon); in buildAndSendNotification()
302 builder.setColor(mContext.getResources().getColor(R.color.dialer_theme_color)); in buildAndSendNotification()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryStats.java77 final StringBuilder builder = new StringBuilder(mDictType); in toString() local
79 builder.append(" ("); in toString()
80 builder.append(mContentVersion); in toString()
81 builder.append(")"); in toString()
83 builder.append(": "); in toString()
85 builder.append(mWordCount); in toString()
86 builder.append(" words"); in toString()
88 builder.append(mDictFileName); in toString()
89 builder.append(" / "); in toString()
90 builder.append(getFileSizeString()); in toString()
[all …]
/packages/services/Telephony/src/com/android/phone/
DSimContacts.java155 ContentProviderOperation.Builder builder = in actuallyImportOneSimContact() local
159 builder.withValue(RawContacts.ACCOUNT_NAME, account.name); in actuallyImportOneSimContact()
160 builder.withValue(RawContacts.ACCOUNT_TYPE, account.type); in actuallyImportOneSimContact()
162 builder.withValues(sEmptyContentValues); in actuallyImportOneSimContact()
164 operationList.add(builder.build()); in actuallyImportOneSimContact()
166 builder = ContentProviderOperation.newInsert(Data.CONTENT_URI); in actuallyImportOneSimContact()
167 builder.withValueBackReference(StructuredName.RAW_CONTACT_ID, 0); in actuallyImportOneSimContact()
168 builder.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); in actuallyImportOneSimContact()
169 builder.withValue(StructuredName.DISPLAY_NAME, name); in actuallyImportOneSimContact()
170 operationList.add(builder.build()); in actuallyImportOneSimContact()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java181 final Notification.Builder builder = new Notification.Builder(mContext); in updateWithLocked() local
182 builder.setColor(res.getColor( in updateWithLocked()
193 builder.setWhen(firstShown); in updateWithLocked()
197 builder.setSmallIcon(android.R.drawable.stat_sys_download); in updateWithLocked()
199 builder.setSmallIcon(android.R.drawable.stat_sys_warning); in updateWithLocked()
201 builder.setSmallIcon(android.R.drawable.stat_sys_download_done); in updateWithLocked()
214 builder.setContentIntent(PendingIntent.getBroadcast(mContext, in updateWithLocked()
216 builder.setOngoing(true); in updateWithLocked()
225 builder.addAction( in updateWithLocked()
239 builder.setAutoCancel(true); in updateWithLocked()
[all …]
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetModel.java98 StringBuilder builder = new StringBuilder(); in toString() local
99 builder.append("EventInfo [visibTitle="); in toString()
100 builder.append(visibTitle); in toString()
101 builder.append(", title="); in toString()
102 builder.append(title); in toString()
103 builder.append(", visibWhen="); in toString()
104 builder.append(visibWhen); in toString()
105 builder.append(", id="); in toString()
106 builder.append(id); in toString()
107 builder.append(", when="); in toString()
[all …]

12345678910>>...19