Home
last modified time | relevance | path

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

12345678

/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 …]
DEntitySet.java144 final Builder builder = beginKeepTogether(); in buildDiff() local
145 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); in buildDiff()
146 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID2, firstBatch); in buildDiff()
147 diff.add(builder.build()); in buildDiff()
155 final Builder builder = beginKeepTogether(); in buildDiff() local
156builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID1, firstInsertRow); in buildDiff()
157 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID2, firstBatch); in buildDiff()
158 diff.add(builder.build()); in buildDiff()
179 final Builder builder = ContentProviderOperation in beginKeepTogether() local
181 builder.withValue(AggregationExceptions.TYPE, AggregationExceptions.TYPE_KEEP_TOGETHER); in beginKeepTogether()
[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.java387 private void insertIndexRow(SQLiteDatabase db, long contactId, IndexBuilder builder) { in insertIndexRow() argument
389 mValues.put(SearchIndexColumns.CONTENT, builder.getContent()); in insertIndexRow()
390 mValues.put(SearchIndexColumns.NAME, builder.getName()); in insertIndexRow()
391 mValues.put(SearchIndexColumns.TOKENS, builder.getTokens()); in insertIndexRow()
442 public abstract void addToken(StringBuilder builder, String token); in addToken() argument
464 public void addToken(StringBuilder builder, String token) { in getDigitsQueryBuilder()
465 if (builder.length() != 0) builder.append(' '); in getDigitsQueryBuilder()
467 builder.append("content:"); in getDigitsQueryBuilder()
468 builder.append(token); in getDigitsQueryBuilder()
469 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/Contacts/src/com/android/contacts/util/
DHtmlUtils.java80 final SpannableStringBuilder builder; in postprocess() local
82 builder = (SpannableStringBuilder) original; in postprocess()
84 builder = new SpannableStringBuilder(original); in postprocess()
87 final QuoteSpan[] quoteSpans = builder.getSpans(0, length, QuoteSpan.class); in postprocess()
93 replaceSpan(builder, quoteSpans[i], new StreamItemQuoteSpan(color, width)); in postprocess()
97 final ImageSpan[] imageSpans = builder.getSpans(0, length, ImageSpan.class); in postprocess()
101 replaceSpan(builder, span, new ImageSpan(span.getDrawable(), in postprocess()
109 for (int i = builder.length() - 1; i >= 0; i--) { in postprocess()
110 if (builder.charAt(i) != '\n') { in postprocess()
118 return builder; in postprocess()
[all …]
DNameConverter.java61 Builder builder = ContactsContract.AUTHORITY_URI.buildUpon().appendPath("complete_name"); in structuredNameToDisplayName() local
64 appendQueryParameter(builder, key, structuredName.get(key)); in structuredNameToDisplayName()
67 return fetchDisplayName(context, builder.build()); in structuredNameToDisplayName()
77 Builder builder = ContactsContract.AUTHORITY_URI.buildUpon().appendPath("complete_name"); in structuredNameToDisplayName() local
80 appendQueryParameter(builder, key, values.getAsString(key)); in structuredNameToDisplayName()
83 return fetchDisplayName(context, builder.build()); in structuredNameToDisplayName()
118 Builder builder = ContactsContract.AUTHORITY_URI.buildUpon().appendPath("complete_name"); in displayNameToStructuredName() local
120 appendQueryParameter(builder, StructuredName.DISPLAY_NAME, displayName); in displayNameToStructuredName()
121 Cursor cursor = context.getContentResolver().query(builder.build(), STRUCTURED_NAME_FIELDS, in displayNameToStructuredName()
161 private static void appendQueryParameter(Builder builder, String field, String value) { in appendQueryParameter() argument
[all …]
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
DGalaxyRS.java172 ProgramVertex.Builder builder = new ProgramVertex.Builder(mRS); in createProgramVertex() local
173 builder.setShader(mRes, R.raw.spacecloud_vs); in createProgramVertex()
174 builder.addConstant(mPvConsts.getType()); in createProgramVertex()
175 builder.addInput(mSpaceCloudsMesh.getVertexAllocation(0).getType().getElement()); in createProgramVertex()
176 ProgramVertex pvs = builder.create(); in createProgramVertex()
183 builder = new ProgramVertex.Builder(mRS); in createProgramVertex()
184 builder.setShader(mRes, R.raw.bgstar_vs); in createProgramVertex()
185 builder.addConstant(mPvConsts.getType()); in createProgramVertex()
186 builder.addInput(mBgStarsMesh.getVertexAllocation(0).getType().getElement()); in createProgramVertex()
187 pvs = builder.create(); in createProgramVertex()
[all …]
/packages/apps/Contacts/src/com/android/contacts/model/
DRawContactDelta.java377 final StringBuilder builder = new StringBuilder(); in toString() local
378 builder.append("\n("); in toString()
379 builder.append("Uri="); in toString()
380 builder.append(mContactsQueryUri); in toString()
381 builder.append(", Values="); in toString()
382 builder.append(mValues != null ? mValues.toString() : "null"); in toString()
383 builder.append(", Entries={"); in toString()
386 builder.append("\n\t"); in toString()
387 child.toString(builder); in toString()
390 builder.append("\n})\n"); in toString()
[all …]
DRawContactDeltaList.java164 final Builder builder = beginKeepTogether(); in buildDiff() local
165 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, joinedRawContactId); in buildDiff()
167 builder.withValue(AggregationExceptions.RAW_CONTACT_ID2, rawContactId); in buildDiff()
169 builder.withValueBackReference( in buildDiff()
172 diff.add(builder.build()); in buildDiff()
184 final Builder builder = beginKeepTogether(); in buildDiff() local
185 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId); in buildDiff()
186 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID2, firstBatch); in buildDiff()
187 diff.add(builder.build()); in buildDiff()
195 final Builder builder = beginKeepTogether(); in buildDiff() local
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DHtmlUtilsTest.java64 final SpannableStringBuilder builder = new SpannableStringBuilder("01234\n\n"); in testPostProcess_with_newlines() local
66 setSpans(builder); in testPostProcess_with_newlines()
69 checkPostProcess(HtmlUtils.postprocess(getContext(), builder)); in testPostProcess_with_newlines() local
72 checkPostProcess(HtmlUtils.postprocess(getContext(), new SpannedString(builder))); in testPostProcess_with_newlines()
80 final SpannableStringBuilder builder = new SpannableStringBuilder("01234"); in testPostProcess_no_newlines() local
82 setSpans(builder); in testPostProcess_no_newlines()
85 checkPostProcess(HtmlUtils.postprocess(getContext(), builder)); in testPostProcess_no_newlines() local
88 checkPostProcess(HtmlUtils.postprocess(getContext(), new SpannedString(builder))); in testPostProcess_no_newlines()
91 private void setSpans(SpannableStringBuilder builder) { in setSpans() argument
92 builder.setSpan(new ImageSpan(new ColorDrawable(), ImageSpan.ALIGN_BOTTOM), 0, 2, 0); in setSpans()
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/
DAlertDialogs.java60 final AlertDialog.Builder builder = new AlertDialog.Builder(context); in createAlert() local
61 builder.setTitle(title); in createAlert()
63 builder.setIcon(context.getResources().getDrawable(iconId)); in createAlert()
65 builder.setMessage(content); in createAlert()
66 builder.setPositiveButton(positive, positiveListener); in createAlert()
67 builder.setNegativeButton(negative, negativeListener); in createAlert()
68 builder.setOnCancelListener(cancelListener); in createAlert()
69 builder.setCancelable(cancelable); in createAlert()
71 final AlertDialog dialog = builder.create(); in createAlert()
98 final AlertDialog.Builder builder = new AlertDialog.Builder(context); in createEditDialog() local
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadNotifier.java106 final Notification.Builder builder = new Notification.Builder(mContext); in updateWithLocked() local
116 builder.setWhen(firstShown); in updateWithLocked()
120 builder.setSmallIcon(android.R.drawable.stat_sys_download); in updateWithLocked()
122 builder.setSmallIcon(android.R.drawable.stat_sys_warning); in updateWithLocked()
124 builder.setSmallIcon(android.R.drawable.stat_sys_download_done); in updateWithLocked()
133 builder.setContentIntent(PendingIntent.getBroadcast(mContext, 0, intent, 0)); in updateWithLocked()
134 builder.setOngoing(true); in updateWithLocked()
155 builder.setContentIntent(PendingIntent.getBroadcast(mContext, 0, intent, 0)); in updateWithLocked()
159 builder.setDeleteIntent(PendingIntent.getBroadcast(mContext, 0, hideIntent, 0)); in updateWithLocked()
189 builder.setProgress(100, percent, false); in updateWithLocked()
[all …]
DConstants.java96 final StringBuilder builder = new StringBuilder();
103 builder.append("AndroidDownloadManager");
105 builder.append("/").append(Build.VERSION.RELEASE);
107 builder.append(" (Linux; U; Android");
109 builder.append(" ").append(Build.VERSION.RELEASE);
112 builder.append(";");
114 builder.append(" ").append(Build.MODEL);
117 builder.append(" Build/").append(Build.ID);
120 builder.append(")");
122 DEFAULT_USER_AGENT = builder.toString();
/packages/wallpapers/MusicVisualization/src/com/android/musicvis/vis5/
DVisualization5RS.java203 Sampler.Builder builder = new Sampler.Builder(mRS); in createScript() local
204 builder.setMinification(Value.LINEAR); in createScript()
205 builder.setMagnification(Value.LINEAR); in createScript()
206 builder.setWrapS(Value.WRAP); in createScript()
207 builder.setWrapT(Value.WRAP); in createScript()
208 mSamplerNoMip = builder.create(); in createScript()
212 Sampler.Builder builder = new Sampler.Builder(mRS); in createScript() local
213 builder.setMinification(Value.LINEAR_MIP_LINEAR); in createScript()
214 builder.setMagnification(Value.LINEAR); in createScript()
215 builder.setWrapS(Value.WRAP); in createScript()
[all …]
/packages/apps/Phone/src/com/android/phone/
DSimContacts.java154 ContentProviderOperation.Builder builder = in actuallyImportOneSimContact() local
158 builder.withValue(RawContacts.ACCOUNT_NAME, account.name); in actuallyImportOneSimContact()
159 builder.withValue(RawContacts.ACCOUNT_TYPE, account.type); in actuallyImportOneSimContact()
161 builder.withValues(sEmptyContentValues); in actuallyImportOneSimContact()
163 operationList.add(builder.build()); in actuallyImportOneSimContact()
165 builder = ContentProviderOperation.newInsert(Data.CONTENT_URI); in actuallyImportOneSimContact()
166 builder.withValueBackReference(StructuredName.RAW_CONTACT_ID, 0); in actuallyImportOneSimContact()
167 builder.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE); in actuallyImportOneSimContact()
168 builder.withValue(StructuredName.DISPLAY_NAME, name); in actuallyImportOneSimContact()
169 operationList.add(builder.build()); in actuallyImportOneSimContact()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DUriCodec.java96 private void appendEncoded(StringBuilder builder, String s, Charset charset, in appendEncoded() argument
111 appendHex(builder, s.substring(escapeStart, i), charset); in appendEncoded()
116 builder.append(s, i, i + 3); in appendEncoded()
119 builder.append('+'); in appendEncoded()
121 builder.append(c); in appendEncoded()
128 appendHex(builder, s.substring(escapeStart, s.length()), charset); in appendEncoded()
134 StringBuilder builder = new StringBuilder(s.length() + 16); in encode() local
135 appendEncoded(builder, s, charset, false); in encode()
136 return builder.toString(); in encode()
139 public final void appendEncoded(StringBuilder builder, String s) { in appendEncoded() argument
[all …]
/packages/apps/Contacts/src/com/android/contacts/editor/
DSplitContactConfirmationDialogFragment.java42 final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); in onCreateDialog() local
43 builder.setTitle(R.string.splitConfirmation_title); in onCreateDialog()
44 builder.setIconAttribute(android.R.attr.alertDialogIcon); in onCreateDialog()
45 builder.setMessage(R.string.splitConfirmation); in onCreateDialog()
46 builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() { in onCreateDialog()
53 builder.setNegativeButton(android.R.string.cancel, null); in onCreateDialog()
54 builder.setCancelable(false); in onCreateDialog()
55 return builder.create(); in onCreateDialog()
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
DGalaxyRS.java150 … ProgramFragmentFixedFunction.Builder builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment() local
151 builder.setTexture(ProgramFragmentFixedFunction.Builder.EnvMode.REPLACE, in createProgramFragment()
153 ProgramFragment pfb = builder.create(); in createProgramFragment()
157 builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
158 builder.setPointSpriteTexCoordinateReplacement(true); in createProgramFragment()
159 builder.setTexture(ProgramFragmentFixedFunction.Builder.EnvMode.MODULATE, in createProgramFragment()
161 builder.setVaryingColor(true); in createProgramFragment()
162 ProgramFragment pfs = builder.create(); in createProgramFragment()
168 ProgramStore.Builder builder = new ProgramStore.Builder(mRS); in createProgramFragmentStore() local
169 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ZERO); in createProgramFragmentStore()
[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 …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DContactsSyncAdapter.java239 public void addValues(RowBuilder builder); in addValues() argument
367 public void addValues(RowBuilder builder) { in addValues() argument
368 builder.withValue(Email.DATA, email); in addValues()
369 builder.withValue(Email.DISPLAY_NAME, displayName); in addValues()
386 public void addValues(RowBuilder builder) { in addValues() argument
387 builder.withValue(Im.DATA, im); in addValues()
406 public void addValues(RowBuilder builder) { in addValues() argument
407 builder.withValue(Im.DATA, phone); in addValues()
408 builder.withValue(Phone.TYPE, type); in addValues()
984 Builder builder; field in ContactsSyncAdapter.RowBuilder
[all …]
/packages/apps/Browser/src/com/android/browser/preferences/
DInvertedContrastPreview.java61 StringBuilder builder = new StringBuilder("<html><body style=\"width: 1000px\">"); in init() local
64 builder.append("<br />"); in init()
67 builder.append("<img src=\""); in init()
68 builder.append(IMG_ROOT); in init()
69 builder.append(thumb); in init()
70 builder.append("\" />&nbsp;"); in init()
72 builder.append("</body></html>"); in init()
73 mHtml = builder.toString(); in init()
/packages/wallpapers/MagicSmoke/src/com/android/magicsmoke/
DMagicSmokeRS.java333 ProgramVertex.Builder builder = new ProgramVertex.Builder(mRS); in createScript() local
334 builder.setShader(mResources, R.raw.pv5tex); in createScript()
335 builder.addConstant(mVSConst.getAllocation().getType()); in createScript()
336 builder.addInput(ScriptField_VertexInputs_s.createElement(mRS)); in createScript()
338 mPV5tex = builder.create(); in createScript()
341 builder.setShader(mResources, R.raw.pv4tex); in createScript()
342 mPV4tex = builder.create(); in createScript()
370 ProgramFragment.Builder builder = new ProgramFragment.Builder(mRS); in createScript() local
371 builder.setShader(mResources, R.raw.pf5tex); in createScript()
373 builder.addTexture(Program.TextureType.TEXTURE_2D); in createScript()
[all …]
/packages/wallpapers/Basic/src/com/android/wallpaper/fall/
DFallRS.java261 … ProgramFragmentFixedFunction.Builder builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment() local
262 builder.setTexture(ProgramFragmentFixedFunction.Builder.EnvMode.REPLACE, in createProgramFragment()
264 mPfBackground = builder.create(); in createProgramFragment()
269 builder = new ProgramFragmentFixedFunction.Builder(mRS); in createProgramFragment()
270 builder.setTexture(ProgramFragmentFixedFunction.Builder.EnvMode.MODULATE, in createProgramFragment()
272 mPfSky = builder.create(); in createProgramFragment()
279 ProgramStore.Builder builder = new ProgramStore.Builder(mRS); in createProgramFragmentStore() local
280 builder.setDepthFunc(ALWAYS); in createProgramFragmentStore()
281 builder.setBlendFunc(BlendSrcFunc.ONE, BlendDstFunc.ONE); in createProgramFragmentStore()
282 builder.setDitherEnabled(false); in createProgramFragmentStore()
[all …]

12345678