Home
last modified time | relevance | path

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

12345678910>>...25

/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/apps/Contacts/src/com/android/contacts/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.java159 final Builder builder = beginKeepTogether(); in buildDiffWrapper() local
160 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, joinedRawContactId); in buildDiffWrapper()
162 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId); in buildDiffWrapper()
164 builder.withValueBackReference( in buildDiffWrapper()
167 diffWrapper.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
179 final Builder builder = beginKeepTogether(); in buildDiffWrapper() local
180 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); in buildDiffWrapper()
181 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID2, firstBatch); in buildDiffWrapper()
182 diffWrapper.add(new CPOWrapper(builder.build(), CompatUtils.TYPE_UPDATE)); in buildDiffWrapper()
190 final Builder builder = beginKeepTogether(); in buildDiffWrapper() local
[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/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/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java209 private ProvisioningParams(Builder builder) { in ProvisioningParams() argument
210 provisioningId = builder.mProvisioningId; in ProvisioningParams()
211 timeZone = builder.mTimeZone; in ProvisioningParams()
212 localTime = builder.mLocalTime; in ProvisioningParams()
213 locale = builder.mLocale; in ProvisioningParams()
215 wifiInfo = builder.mWifiInfo; in ProvisioningParams()
217 deviceAdminComponentName = builder.mDeviceAdminComponentName; in ProvisioningParams()
218 deviceAdminPackageName = builder.mDeviceAdminPackageName; in ProvisioningParams()
219 deviceAdminLabel = builder.mDeviceAdminLabel; in ProvisioningParams()
220 organizationName = builder.mOrganizationName; in ProvisioningParams()
[all …]
DWifiInfo.java106 Builder builder = new Builder(); in createBuilderFromPersistableBundle() local
107 builder.setSsid(bundle.getString(EXTRA_PROVISIONING_WIFI_SSID)); in createBuilderFromPersistableBundle()
108 builder.setHidden(bundle.getBoolean(EXTRA_PROVISIONING_WIFI_HIDDEN)); in createBuilderFromPersistableBundle()
109 builder.setSecurityType(bundle.getString(EXTRA_PROVISIONING_WIFI_SECURITY_TYPE)); in createBuilderFromPersistableBundle()
110 builder.setPassword(bundle.getString(EXTRA_PROVISIONING_WIFI_PASSWORD)); in createBuilderFromPersistableBundle()
111 builder.setProxyHost(bundle.getString(EXTRA_PROVISIONING_WIFI_PROXY_HOST)); in createBuilderFromPersistableBundle()
112 builder.setProxyPort(bundle.getInt(EXTRA_PROVISIONING_WIFI_PROXY_PORT)); in createBuilderFromPersistableBundle()
113 builder.setProxyBypassHosts(bundle.getString(EXTRA_PROVISIONING_WIFI_PROXY_BYPASS)); in createBuilderFromPersistableBundle()
114 builder.setPacUrl(bundle.getString(EXTRA_PROVISIONING_WIFI_PAC_URL)); in createBuilderFromPersistableBundle()
115 return builder; in createBuilderFromPersistableBundle()
[all …]
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
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 …]
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 …]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorCallLog.java37 CallEntry.builder().setType(Calls.MISSED_TYPE).setNumber("+1-302-6365454"),
38 CallEntry.builder()
42 CallEntry.builder().setType(Calls.REJECTED_TYPE).setNumber("+1-302-6365454"),
43 CallEntry.builder().setType(Calls.INCOMING_TYPE).setNumber("+1-302-6365454"),
44 CallEntry.builder()
48 CallEntry.builder().setType(Calls.OUTGOING_TYPE).setNumber("+1-302-6365454"),
49 CallEntry.builder().setType(Calls.BLOCKED_TYPE).setNumber("+1-302-6365454"),
50 CallEntry.builder().setType(Calls.OUTGOING_TYPE).setNumber("(425) 739-5600"),
51 CallEntry.builder().setType(Calls.ANSWERED_EXTERNALLY_TYPE).setNumber("(425) 739-5600"),
52 CallEntry.builder().setType(Calls.MISSED_TYPE).setNumber("+1 (425) 739-5600"),
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallServiceNotifier.java113 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount()
133 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount()
152 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount()
189 final Notification.Builder builder = new Notification.Builder(context); in getPhoneAccountNotification() local
193 builder.setOngoing(false); in getPhoneAccountNotification()
194 builder.setPriority(Notification.PRIORITY_HIGH); in getPhoneAccountNotification()
197 builder.setContentIntent(intent); in getPhoneAccountNotification()
199 builder.setSmallIcon(android.R.drawable.stat_sys_phone_call); in getPhoneAccountNotification()
201 builder.setContentText("Test phone accounts via telecom APIs."); in getPhoneAccountNotification()
202 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/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/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/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java357 final Notification.Builder builder = getNotificationBuilder(); in buildAndSendNotification() local
358 builder.setPublicVersion(publicBuilder.build()); in buildAndSendNotification()
361 builder.setContentIntent(createLaunchPendingIntent(false /* isFullScreen */)); in buildAndSendNotification()
373 builder.setChannelId(NotificationChannelId.INCOMING_CALL); in buildAndSendNotification()
375 configureFullScreenIntent(builder, createLaunchPendingIntent(true /* isFullScreen */)); in buildAndSendNotification()
377 builder.setCategory(Notification.CATEGORY_CALL); in buildAndSendNotification()
379 builder.setPriority(Notification.PRIORITY_MAX); in buildAndSendNotification()
391 builder.setChannelId(NotificationChannelId.ONGOING_CALL); in buildAndSendNotification()
397 builder.setColorized(true); in buildAndSendNotification()
398 builder.setChannelId(NotificationChannelId.ONGOING_CALL); in buildAndSendNotification()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java196 final Notification.Builder builder; in updateWithLocked() local
198 builder = new Notification.Builder(mContext, CHANNEL_ACTIVE); in updateWithLocked()
199 builder.setSmallIcon(android.R.drawable.stat_sys_download); in updateWithLocked()
201 builder = new Notification.Builder(mContext, CHANNEL_WAITING); in updateWithLocked()
202 builder.setSmallIcon(android.R.drawable.stat_sys_warning); in updateWithLocked()
204 builder = new Notification.Builder(mContext, CHANNEL_COMPLETE); in updateWithLocked()
205 builder.setSmallIcon(android.R.drawable.stat_sys_download_done); in updateWithLocked()
210 builder.setColor(res.getColor( in updateWithLocked()
221 builder.setWhen(firstShown); in updateWithLocked()
222 builder.setOnlyAlertOnce(true); in updateWithLocked()
[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/DeskClock/src/com/android/deskclock/data/
DWeekdays.java247 final StringBuilder builder = new StringBuilder(19); in toString() local
248 builder.append("["); in toString()
250 builder.append(builder.length() > 1 ? " M" : "M"); in toString()
253 builder.append(builder.length() > 1 ? " T" : "T"); in toString()
256 builder.append(builder.length() > 1 ? " W" : "W"); in toString()
259 builder.append(builder.length() > 1 ? " Th" : "Th"); in toString()
262 builder.append(builder.length() > 1 ? " F" : "F"); in toString()
265 builder.append(builder.length() > 1 ? " Sa" : "Sa"); in toString()
268 builder.append(builder.length() > 1 ? " Su" : "Su"); in toString()
270 builder.append("]"); in toString()
[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 …]
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperation.java99 private void appendInfoTo(StringBuilder builder) { in appendInfoTo() argument
100 builder.append("opType=").append(mOpType); in appendInfoTo()
101 builder.append(", srcs=").append(mSrcs.toString()); in appendInfoTo()
102 builder.append(", destination=").append(mDestination.toString()); in appendInfoTo()
127 StringBuilder builder = new StringBuilder(); in toString() local
129 builder.append("CopyOperation{"); in toString()
130 super.appendInfoTo(builder); in toString()
131 builder.append("}"); in toString()
133 return builder.toString(); in toString()
167 StringBuilder builder = new StringBuilder(); in toString() local
[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 …]

12345678910>>...25