Searched refs:builder (Results 1 - 25 of 187) sorted by relevance

12345678

/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntityDiff.java50 Builder builder;
55 builder = ContentProviderOperation.newInsert(targetUri);
56 builder.withValues(after.getEntityValues());
57 diff.add(builder.build());
60 // Add builder with reference to original _id when needed
61 builder = ContentProviderOperation.newInsert(child.uri);
62 builder.withValues(child.values);
64 builder.withValueBackReference(childForeignKey, 0);
66 diff.add(builder.build());
72 builder
[all...]
H A DEntityDelta.java318 final StringBuilder builder = new StringBuilder();
319 builder.append("\n(");
320 builder.append(mValues.toString());
321 builder.append(") = {");
324 builder.append("\n\t");
325 child.toString(builder);
328 builder.append("\n}\n");
329 return builder.toString();
334 * appending it to the given list, which only happens if builder is valid.
337 ContentProviderOperation.Builder builder) {
336 possibleAdd(ArrayList<ContentProviderOperation> diff, ContentProviderOperation.Builder builder) argument
756 toString(StringBuilder builder) argument
[all...]
H A DEntitySet.java144 final Builder builder = beginKeepTogether();
145 builder.withValue(AggregationExceptions.RAW_CONTACT_ID1, rawContactId);
146 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID2, firstBatch);
147 diff.add(builder.build());
155 final Builder builder = beginKeepTogether();
156 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID1, firstInsertRow);
157 builder.withValueBackReference(AggregationExceptions.RAW_CONTACT_ID2, firstBatch);
158 diff.add(builder.build());
179 final Builder builder = ContentProviderOperation
181 builder
[all...]
/packages/apps/Browser/src/com/android/browser/preferences/
H A DInvertedContrastPreview.java61 StringBuilder builder = new StringBuilder("<html><body style=\"width: 1000px\">");
64 builder.append("<br />");
67 builder.append("<img src=\"");
68 builder.append(IMG_ROOT);
69 builder.append(thumb);
70 builder.append("\" />&nbsp;");
72 builder.append("</body></html>");
73 mHtml = builder.toString();
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DSplitContactConfirmationDialogFragment.java42 final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
43 builder.setTitle(R.string.splitConfirmation_title);
44 builder.setIconAttribute(android.R.attr.alertDialogIcon);
45 builder.setMessage(R.string.splitConfirmation);
46 builder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
53 builder.setNegativeButton(android.R.string.cancel, null);
54 builder.setCancelable(false);
55 return builder.create();
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DPostalSplitter.java112 final StringBuilder builder = new StringBuilder();
120 builder.append(postal.country);
123 if (hasCountry) builder.append(SPACE);
124 builder.append(postal.postcode);
130 builder.append(NEWLINE);
133 builder.append(postal.region);
136 if (hasRegion) builder.append(SPACE);
137 builder.append(postal.city);
140 if (hasRegion || hasCity) builder.append(SPACE);
141 builder
[all...]
H A DDataRowHandlerForIm.java41 public void appendSearchableData(IndexBuilder builder) { argument
42 int protocol = builder.getInt(Im.PROTOCOL);
43 String customProtocol = builder.getString(Im.CUSTOM_PROTOCOL);
44 builder.appendContent(
46 builder.appendContentFromColumn(Im.DATA, IndexBuilder.SEPARATOR_SLASH);
H A DSearchIndexManager.java387 private void insertIndexRow(SQLiteDatabase db, long contactId, IndexBuilder builder) { argument
389 mValues.put(SearchIndexColumns.CONTENT, builder.getContent());
390 mValues.put(SearchIndexColumns.NAME, builder.getName());
391 mValues.put(SearchIndexColumns.TOKENS, builder.getTokens());
442 public abstract void addToken(StringBuilder builder, String token); argument
464 public void addToken(StringBuilder builder, String token) {
465 if (builder.length() != 0) builder.append(' ');
467 builder.append("content:");
468 builder
486 addToken(StringBuilder builder, String token) argument
498 addToken(StringBuilder builder, String token) argument
[all...]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
H A DConstants.java94 final StringBuilder builder = new StringBuilder();
101 builder.append("AndroidDownloadManager");
103 builder.append("/").append(Build.VERSION.RELEASE);
105 builder.append(" (Linux; U; Android");
107 builder.append(" ").append(Build.VERSION.RELEASE);
110 builder.append(";");
112 builder.append(" ").append(Build.MODEL);
115 builder.append(" Build/").append(Build.ID);
118 builder.append(")");
120 DEFAULT_USER_AGENT = builder
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
H A DHtmlUtilsTest.java64 final SpannableStringBuilder builder = new SpannableStringBuilder("01234\n\n");
66 setSpans(builder);
69 checkPostProcess(HtmlUtils.postprocess(getContext(), builder));
72 checkPostProcess(HtmlUtils.postprocess(getContext(), new SpannedString(builder)));
80 final SpannableStringBuilder builder = new SpannableStringBuilder("01234");
82 setSpans(builder);
85 checkPostProcess(HtmlUtils.postprocess(getContext(), builder));
88 checkPostProcess(HtmlUtils.postprocess(getContext(), new SpannedString(builder)));
91 private void setSpans(SpannableStringBuilder builder) { argument
92 builder
[all...]
/packages/apps/Calendar/src/com/android/calendar/
H A DAsyncQueryServiceHelper.java104 StringBuilder builder = new StringBuilder();
105 builder.append("OperationInfo [\n\t token= ");
106 builder.append(token);
107 builder.append(",\n\t op= ");
108 builder.append(Operation.opToChar(op));
109 builder.append(",\n\t uri= ");
110 builder.append(uri);
111 builder.append(",\n\t authority= ");
112 builder.append(authority);
113 builder
[all...]
/packages/apps/Contacts/src/com/android/contacts/util/
H A DHtmlUtils.java80 final SpannableStringBuilder builder;
82 builder = (SpannableStringBuilder) original;
84 builder = new SpannableStringBuilder(original);
87 final QuoteSpan[] quoteSpans = builder.getSpans(0, length, QuoteSpan.class);
93 replaceSpan(builder, quoteSpans[i], new StreamItemQuoteSpan(color, width));
97 final ImageSpan[] imageSpans = builder.getSpans(0, length, ImageSpan.class);
101 replaceSpan(builder, span, new ImageSpan(span.getDrawable(),
109 for (int i = builder.length() - 1; i >= 0; i--) {
110 if (builder.charAt(i) != '\n') {
118 return builder;
129 replaceSpan(SpannableStringBuilder builder, Object originalSpan, Object newSpan) argument
[all...]
H A DNameConverter.java61 Builder builder = ContactsContract.AUTHORITY_URI.buildUpon().appendPath("complete_name");
64 appendQueryParameter(builder, key, structuredName.get(key));
67 return fetchDisplayName(context, builder.build());
77 Builder builder = ContactsContract.AUTHORITY_URI.buildUpon().appendPath("complete_name");
80 appendQueryParameter(builder, key, values.getAsString(key));
83 return fetchDisplayName(context, builder.build());
118 Builder builder = ContactsContract.AUTHORITY_URI.buildUpon().appendPath("complete_name");
120 appendQueryParameter(builder, StructuredName.DISPLAY_NAME, displayName);
121 Cursor cursor = context.getContentResolver().query(builder.build(), STRUCTURED_NAME_FIELDS,
161 private static void appendQueryParameter(Builder builder, Strin argument
[all...]
/packages/apps/VideoEditor/src/com/android/videoeditor/
H A DAlertDialogs.java60 final AlertDialog.Builder builder = new AlertDialog.Builder(context);
61 builder.setTitle(title);
63 builder.setIcon(context.getResources().getDrawable(iconId));
65 builder.setMessage(content);
66 builder.setPositiveButton(positive, positiveListener);
67 builder.setNegativeButton(negative, negativeListener);
68 builder.setOnCancelListener(cancelListener);
69 builder.setCancelable(cancelable);
71 final AlertDialog dialog = builder.create();
98 final AlertDialog.Builder builder
[all...]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DDbQueryUtils.java69 StringBuilder builder = new StringBuilder();
72 if (builder.length() > 0) {
73 builder.append(" AND ");
75 builder.append("(");
76 builder.append(clause);
77 builder.append(")");
80 return builder.toString();
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DHelpUtils.java78 Uri.Builder builder = baseUri.buildUpon();
81 builder.appendQueryParameter(PARAM_LANGUAGE_CODE, Locale.getDefault().toString());
93 builder.appendQueryParameter(PARAM_VERSION, sCachedVersionCode);
100 builder.appendQueryParameter(PARAM_VERSION, sCachedVersionCode);
104 return builder.build();
/packages/wallpapers/Galaxy4/src/com/android/galaxy4/
H A DGalaxyRS.java172 ProgramVertex.Builder builder = new ProgramVertex.Builder(mRS);
173 builder.setShader(mRes, R.raw.spacecloud_vs);
174 builder.addConstant(mPvConsts.getType());
175 builder.addInput(mSpaceCloudsMesh.getVertexAllocation(0).getType().getElement());
176 ProgramVertex pvs = builder.create();
183 builder = new ProgramVertex.Builder(mRS);
184 builder.setShader(mRes, R.raw.bgstar_vs);
185 builder.addConstant(mPvConsts.getType());
186 builder.addInput(mBgStarsMesh.getVertexAllocation(0).getType().getElement());
187 pvs = builder
[all...]
/packages/wallpapers/Basic/src/com/android/wallpaper/galaxy/
H A DGalaxyRS.java150 ProgramFragmentFixedFunction.Builder builder = new ProgramFragmentFixedFunction.Builder(mRS);
151 builder.setTexture(ProgramFragmentFixedFunction.Builder.EnvMode.REPLACE,
153 ProgramFragment pfb = builder.create();
157 builder = new ProgramFragmentFixedFunction.Builder(mRS);
158 builder.setPointSpriteTexCoordinateReplacement(true);
159 builder.setTexture(ProgramFragmentFixedFunction.Builder.EnvMode.MODULATE,
161 builder.setVaryingColor(true);
162 ProgramFragment pfs = builder.create();
168 ProgramStore.Builder builder = new ProgramStore.Builder(mRS);
169 builder
[all...]
/packages/apps/Contacts/src/com/android/contacts/model/
H A DRawContactDelta.java377 final StringBuilder builder = new StringBuilder();
378 builder.append("\n(");
379 builder.append("Uri=");
380 builder.append(mContactsQueryUri);
381 builder.append(", Values=");
382 builder.append(mValues != null ? mValues.toString() : "null");
383 builder.append(", Entries={");
386 builder.append("\n\t");
387 child.toString(builder);
390 builder
398 possibleAdd(ArrayList<ContentProviderOperation> diff, ContentProviderOperation.Builder builder) argument
897 toString(StringBuilder builder) argument
[all...]
/packages/apps/Exchange/exchange2/src/com/android/exchange/provider/
H A DGalResult.java60 PackedString.Builder builder = new PackedString.Builder(); field in class:GalResult.GalData
83 return builder.get(field);
87 builder.put(field, value);
91 return builder.toString();
/packages/apps/Phone/src/com/android/phone/
H A DEditPinPreference.java84 protected void onPrepareDialogBuilder(AlertDialog.Builder builder) { argument
85 super.onPrepareDialogBuilder(builder);
89 builder.setPositiveButton(null, this);
90 builder.setNegativeButton(null, this);
H A DSimContacts.java154 ContentProviderOperation.Builder builder =
158 builder.withValue(RawContacts.ACCOUNT_NAME, account.name);
159 builder.withValue(RawContacts.ACCOUNT_TYPE, account.type);
161 builder.withValues(sEmptyContentValues);
163 operationList.add(builder.build());
165 builder = ContentProviderOperation.newInsert(Data.CONTENT_URI);
166 builder.withValueBackReference(StructuredName.RAW_CONTACT_ID, 0);
167 builder.withValue(Data.MIMETYPE, StructuredName.CONTENT_ITEM_TYPE);
168 builder.withValue(StructuredName.DISPLAY_NAME, name);
169 operationList.add(builder
[all...]
/packages/apps/Settings/src/com/android/settings/
H A DBugreportPreference.java34 protected void onPrepareDialogBuilder(Builder builder) { argument
35 super.onPrepareDialogBuilder(builder);
36 builder.setPositiveButton(com.android.internal.R.string.report, this);
37 builder.setMessage(com.android.internal.R.string.bugreport_message);
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartAxis.java42 public long buildLabel(Resources res, SpannableStringBuilder builder, long value); argument
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DGroupNameDialogFragment.java45 final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
46 final LayoutInflater layoutInflater = LayoutInflater.from(builder.getContext());
51 builder.setTitle(getTitleResourceId());
52 builder.setView(view);
54 builder.setPositiveButton(android.R.string.ok,
63 builder.setNegativeButton(android.R.string.cancel, null);
64 final AlertDialog dialog = builder.create();

Completed in 329 milliseconds

12345678