Home
last modified time | relevance | path

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

/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DNameLookupBuilderTest.java76 private TestNameLookupBuilder mBuilder; field in NameLookupBuilderTest
81 mBuilder = new TestNameLookupBuilder( in setUp()
86 mBuilder.insertNameLookup(0, 0, "", FullNameStyle.UNDEFINED); in testEmptyName()
87 assertEquals("", mBuilder.inserted()); in testEmptyName()
91 mBuilder.insertNameLookup(0, 0, "Foo", FullNameStyle.UNDEFINED); in testSingleUniqueName()
92 assertEquals("(0:Foo)(2:Foo)", mBuilder.inserted()); in testSingleUniqueName()
96 mBuilder.insertNameLookup(0, 0, "Mr. Foo", FullNameStyle.UNDEFINED); in testSingleUniqueNameWithPrefix()
97 assertEquals("(0:Mr.Foo)(2:MrFoo)(1:Foo.Mr)(2:FooMr)", mBuilder.inserted()); in testSingleUniqueNameWithPrefix()
101 mBuilder.insertNameLookup(0, 0, "Foo Bar", FullNameStyle.UNDEFINED); in testTwoUniqueNames()
102 assertEquals("(0:Foo.Bar)(2:FooBar)(1:Bar.Foo)(2:BarFoo)", mBuilder.inserted()); in testTwoUniqueNames()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchResultBuilderTest.java46 private Builder mBuilder; field in SearchResultBuilderTest
54 mBuilder = new Builder(); in setUp()
65 mBuilder.setTitle(TITLE) in testAllInfo_BuildSearchResult()
72 SearchResult result = mBuilder.build(); in testAllInfo_BuildSearchResult()
85 mBuilder.setTitle(TITLE) in testNoStableId_BuildSearchResultException()
92 mBuilder.build(); in testNoStableId_BuildSearchResultException()
97 mBuilder.setSummary(SUMMARY) in testNoTitle_BuildSearchResultException()
104 mBuilder.build(); in testNoTitle_BuildSearchResultException()
109 mBuilder.setTitle(TITLE) in testNoRank_BuildSearchResult_pass()
116 assertThat(mBuilder.build()).isNotNull(); in testNoRank_BuildSearchResult_pass()
[all …]
DDatabaseRowTest.java40 private Builder mBuilder; field in DatabaseRowTest
67 mBuilder = createBuilder(); in setUp()
118 mBuilder.setPayload(payload); in testRowWithInlinePayload_genericPayloadNotAdded()
137 mBuilder.setPayload(payload); in testRowWithInlinePayload_intentAddedToInlinePayload()
149 return mBuilder.build(mContext); in generateRow()
153 mBuilder = new DatabaseRow.Builder(); in createBuilder()
154 mBuilder.setLocale(LOCALE) in createBuilder()
173 return mBuilder; in createBuilder()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialogFragment.java52 private AlertDialog.Builder mBuilder; field in BluetoothPairingDialogFragment
78 mBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog()
207 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createUserEntryDialog()
209 mBuilder.setView(createPinEntryView()); in createUserEntryDialog()
210 mBuilder.setPositiveButton(getString(android.R.string.ok), this); in createUserEntryDialog()
211 mBuilder.setNegativeButton(getString(android.R.string.cancel), this); in createUserEntryDialog()
212 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog()
285 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createConfirmationDialog()
287 mBuilder.setView(createView()); in createConfirmationDialog()
288 mBuilder.setPositiveButton(getString(R.string.bluetooth_pairing_accept), this); in createConfirmationDialog()
[all …]
/packages/apps/TV/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java99 private final SpannableStringBuilder mBuilder = new SpannableStringBuilder(); field in CaptionWindowLayout
539 mBuilder.clear(); in clearText()
545 mBuilder.clear(); in updateText()
548 int length = mBuilder.length(); in updateText()
549 mBuilder.append(text); in updateText()
551 mBuilder.setSpan(characterStyle, length, mBuilder.length(), in updateText()
555 String[] lines = TextUtils.split(mBuilder.toString(), "\n"); in updateText()
562 mBuilder.delete(0, mBuilder.length() - truncatedText.length()); in updateText()
566 int start = 0, last = mBuilder.length() - 1; in updateText()
568 while ((start <= end) && (mBuilder.charAt(start) <= ' ')) { in updateText()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java82 protected final SpannableStringBuilder mBuilder = new SpannableStringBuilder(); field in HtmlUtils.SpannedConverter
104 mBuilder.append(textString.substring(mTextConverterIndex)); in appendPlainTextFromConverter()
115 mSeenTags.push(new TagWrapper(tag, mBuilder.length())); in handleStart()
161 final int end = mBuilder.length(); in handleEnd()
163 mBuilder.setSpan(marker, start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in handleEnd()
172 final int end = mBuilder.length(); in handleFont()
179 mBuilder.setSpan(new ForegroundColorSpan(c | 0xFF000000), start, end, in handleFont()
189 mBuilder.setSpan(new AbsoluteSizeSpan(i * WEB_TO_ANDROID_SIZE_MULTIPLIER, in handleFont()
199 mBuilder.setSpan(new TypefaceSpan(family.trim()), start, end, in handleFont()
207 return mBuilder.length(); in getPlainTextLength()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/camera2proxy/
DCaptureRequestBuilderProxy.java27 private final CaptureRequest.Builder mBuilder; field in CaptureRequestBuilderProxy
30 mBuilder = builder; in CaptureRequestBuilderProxy()
37 mBuilder.addTarget(outputTarget); in addTarget()
44 return mBuilder.build(); in build()
51 return mBuilder.get(key); in get()
58 mBuilder.removeTarget(outputTarget); in removeTarget()
65 mBuilder.set(key, value); in set()
72 mBuilder.setTag(tag); in setTag()
/packages/apps/Contacts/src/com/android/contacts/model/
DBuilderWrapper.java29 private Builder mBuilder; field in BuilderWrapper
33 mBuilder = builder; in BuilderWrapper()
46 return mBuilder; in getBuilder()
49 public void setBuilder(Builder mBuilder) { in setBuilder() argument
50 this.mBuilder = mBuilder; in setBuilder()
/packages/apps/Dialer/java/com/android/contacts/common/model/
DBuilderWrapper.java30 private Builder mBuilder; field in BuilderWrapper
34 mBuilder = builder; in BuilderWrapper()
47 return mBuilder; in getBuilder()
50 public void setBuilder(Builder mBuilder) { in setBuilder() argument
51 this.mBuilder = mBuilder; in setBuilder()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DDigestMd5Utils.java124 private StringBuilder mBuilder = new StringBuilder(); field in DigestMd5Utils.Data.ResponseBuilder
127 if (mBuilder.length() != 0) { in appendQuoted()
128 mBuilder.append(","); in appendQuoted()
130 mBuilder.append(key).append("=\"").append(value).append("\""); in appendQuoted()
135 if (mBuilder.length() != 0) { in append()
136 mBuilder.append(","); in append()
138 mBuilder.append(key).append("=").append(value); in append()
144 return mBuilder.toString(); in toString()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeSettingsTest.java40 private ZenModeSettings.SummaryBuilder mBuilder; field in ZenModeSettingsTest
46 mBuilder = new ZenModeSettings.SummaryBuilder(mContext); in setUp()
53 final String result = mBuilder.append(original, false, R.string.zen_mode_alarms); in testAppend_conditionFalse_shouldNotAppend()
63 final String result = mBuilder.append(original, true, R.string.zen_mode_alarms); in testAppend_conditionTrue_shouldAppend()
75 final String result = mBuilder.prepend(original, true, R.string.zen_mode_reminders);
87 final String result = mBuilder.getPrioritySettingSummary(policy);
/packages/apps/Settings/src/com/android/settings/sim/
DSimPreferenceDialog.java53 AlertDialog.Builder mBuilder; field in SimPreferenceDialog
70 mBuilder = new AlertDialog.Builder(mContext); in onCreate()
74 mBuilder.setView(mDialogLayout); in onCreate()
150 mBuilder.setTitle(String.format(res.getString(R.string.sim_editor_title), in createEditDialog()
153 mBuilder.setPositiveButton(R.string.okay, new DialogInterface.OnClickListener() { in createEditDialog()
173 mBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { in createEditDialog()
180 mBuilder.setOnDismissListener(new DialogInterface.OnDismissListener() { in createEditDialog()
187 mBuilder.create().show(); in createEditDialog()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DProcessingService.java45 private Notification.Builder mBuilder = null; field in ProcessingService
241 mBuilder = in handleSaveRequest()
247 startForeground(mNotificationId, mBuilder.build()); in handleSaveRequest()
258 mBuilder.setLargeIcon(bitmap); in updateNotificationWithBitmap()
259 mNotifyMgr.notify(mNotificationId, mBuilder.build()); in updateNotificationWithBitmap()
263 mBuilder.setProgress(max, current, false); in updateProgress()
264 mNotifyMgr.notify(mNotificationId, mBuilder.build()); in updateProgress()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMessageTestUtils.java215 final StringBuilder mBuilder = new StringBuilder(); field in MessageTestUtils.TextBuilder
222 mBuilder.append(preamble); in TextBuilder()
261 mBuilder.append(text); in addText()
271 mBuilder.append(epilogue); in build()
272 return mBuilder.toString(); in build()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DRequestBuilder.java120 private final CaptureRequestBuilderProxy mBuilder; field in RequestBuilder
133 mBuilder = builder; in RequestBuilder()
156 mBuilder.set(key, value); in setParam()
172 timestamps, mBuilder)); in addStream()
184 return new RequestImpl(mBuilder, mAllocations, in build()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DTwoDigitFormatter.java18 final StringBuilder mBuilder = new StringBuilder(); field in TwoDigitFormatter
41 mBuilder.delete(0, mBuilder.length()); in format()
53 return new java.util.Formatter(mBuilder, locale); in createFormatter()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DAbstractHtmlTemplates.java45 protected StringBuilder mBuilder; field in AbstractHtmlTemplates
56 mBuilder = null; in emit()
61 mBuilder = new StringBuilder(BUFFER_SIZE_CHARS); in reset()
62 mFormatter = new Formatter(mBuilder, null /* no localization */); in reset()
DHtmlConversationTemplates.java213 mBuilder.length() << 1, mBuilder.capacity() << 1); in endConversation()
/packages/apps/UnifiedEmail/src/com/android/mail/print/
DHtmlPrintTemplates.java104 mBuilder.length() << 1, mBuilder.capacity() << 1); in endPrintConversation()
125 mBuilder.length() << 1, mBuilder.capacity() << 1); in endPrintConversationNoJavascript()
/packages/apps/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java196 StringBuilder mBuilder = new StringBuilder(128); field in RunningServiceDetails
267 detail.mActiveItem = detail.mViewHolder.bind(mState, bi, mBuilder); in addServiceDetailsView()
342 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView()
470 mMergedItem, mBuilder);
635 mSnippetActiveItem.updateTime(getActivity(), mBuilder);
638 mActiveDetails.get(i).mActiveItem.updateTime(getActivity(), mBuilder);
DRunningProcessesView.java70 StringBuilder mBuilder = new StringBuilder(128); field in RunningProcessesView
308 ActiveItem ai = vh.bind(mState, item, mBuilder); in bindView()
490 ai.updateTime(getContext(), mBuilder); in updateTimes() local
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageHeaderView.java730 private final StringBuilder mBuilder = new StringBuilder(); field in MessageHeaderView.RecipientListsBuilder
765 mBuilder.append(mComma); in appendBcc()
768 mBuilder.append(mContext.getString(R.string.bcc_header_for_recipient_summary)); in appendBcc()
808 mBuilder.append(mComma); in appendRecipients()
810 mBuilder.append(mBidiFormatter.unicodeWrap(name)); in appendRecipients()
826 return mContext.getString(R.string.to_message_header, mBuilder); in build()
/packages/apps/Music/src/com/android/music/
DMusicPicker.java156 private final StringBuilder mBuilder = new StringBuilder(); field in MusicPicker.TrackListAdapter
235 final StringBuilder builder = mBuilder; in bindView()
DTrackBrowserActivity.java1294 private final StringBuilder mBuilder = new StringBuilder();
1435 final StringBuilder builder = mBuilder;
/packages/apps/LegacyCamera/src/com/android/camera/
DCamera.java195 private final StringBuilder mBuilder = new StringBuilder(); field in Camera
196 private final Formatter mFormatter = new Formatter(mBuilder);
642 mBuilder.delete(0, mBuilder.length()); in updateExposureOnScreenIndicator()