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/Car/libs/car-ui-lib/src/com/android/car/ui/
DAlertDialogBuilder.java50 private AlertDialog.Builder mBuilder; field in AlertDialogBuilder
65 mBuilder = new AlertDialog.Builder(context, themeResId); in AlertDialogBuilder()
70 return mBuilder.getContext(); in getContext()
89 mBuilder.setTitle(title); in setTitle()
118 mBuilder.setMessage(messageId); in setMessage()
128 mBuilder.setMessage(message); in setMessage()
155 mBuilder.setIcon(icon); in setIcon()
169 mBuilder.setIconAttribute(attrId); in setIconAttribute()
182 mBuilder.setPositiveButton(textId, listener); in setPositiveButton()
196 mBuilder.setPositiveButton(text, listener); in setPositiveButton()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCard.java52 private final Builder mBuilder; field in ContextualCard
170 return mBuilder; in mutate()
174 mBuilder = builder; in ContextualCard()
199 mBuilder = new Builder(); in ContextualCard()
201 mBuilder.setName(mName); in ContextualCard()
203 mBuilder.setCardType(mCardType); in ContextualCard()
205 mBuilder.setRankingScore(mRankingScore); in ContextualCard()
207 mBuilder.setSliceUri(Uri.parse(mSliceUri)); in ContextualCard()
209 mBuilder.setCategory(mCategory); in ContextualCard()
212 mBuilder.setLocalizedToLocale(mLocalizedToLocale); in ContextualCard()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/
DContextualCard.java52 private final Builder mBuilder; field in ContextualCard
165 return mBuilder; in mutate()
169 mBuilder = builder; in ContextualCard()
193 mBuilder = new Builder(); in ContextualCard()
195 mBuilder.setName(mName); in ContextualCard()
197 mBuilder.setCardType(mCardType); in ContextualCard()
199 mBuilder.setRankingScore(mRankingScore); in ContextualCard()
201 mBuilder.setSliceUri(Uri.parse(mSliceUri)); in ContextualCard()
203 mBuilder.setCategory(mCategory); in ContextualCard()
206 mBuilder.setLocalizedToLocale(mLocalizedToLocale); in ContextualCard()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DZenModeSettingsTest.java41 private ZenModeSettings.SummaryBuilder mBuilder; field in ZenModeSettingsTest
47 mBuilder = new ZenModeSettings.SummaryBuilder(mContext); in setUp()
54 mBuilder.getBlockedEffectsSummary(policy)); in testBlockedEffectsSummary_none()
61 mBuilder.getBlockedEffectsSummary(policy)); in testBlockedEffectsSummary_some()
68 mBuilder.getBlockedEffectsSummary(policy)); in testBlockedEffectsSummary_all()
74 assertThat(mBuilder.getCallsSettingSummary(policy)).isEqualTo("Don\u2019t allow any calls"); in testGetCallsSettingSummary_none()
81 assertThat(mBuilder.getCallsSettingSummary(policy)).isEqualTo("Allow from contacts"); in testGetCallsSettingSummary_contacts()
87 assertThat(mBuilder.getCallsSettingSummary(policy)).isEqualTo("Allow from repeat callers"); in testGetCallsSettingSummary_repeatCallers()
95 assertThat(mBuilder.getCallsSettingSummary(policy)) in testGetCallsSettingSummary_starredRepeatCallers()
102 assertThat(mBuilder.getSoundSettingSummary(policy)).isEqualTo("Muted"); in testGetSoundSettingSummary_allOff()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingDialogFragment.java53 private AlertDialog.Builder mBuilder; field in BluetoothPairingDialogFragment
79 mBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog()
208 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createUserEntryDialog()
210 mBuilder.setView(createPinEntryView()); in createUserEntryDialog()
211 mBuilder.setPositiveButton(getString(android.R.string.ok), this); in createUserEntryDialog()
212 mBuilder.setNegativeButton(getString(android.R.string.cancel), this); in createUserEntryDialog()
213 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog()
287 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createConfirmationDialog()
289 mBuilder.setView(createView()); in createConfirmationDialog()
290 mBuilder.setPositiveButton(getString(R.string.bluetooth_pairing_accept), this); in createConfirmationDialog()
[all …]
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingDialogFragment.java53 private AlertDialog.Builder mBuilder; field in BluetoothPairingDialogFragment
79 mBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog()
208 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createUserEntryDialog()
210 mBuilder.setView(createPinEntryView()); in createUserEntryDialog()
211 mBuilder.setPositiveButton(getString(android.R.string.ok), this); in createUserEntryDialog()
212 mBuilder.setNegativeButton(getString(android.R.string.cancel), this); in createUserEntryDialog()
213 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog()
287 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createConfirmationDialog()
289 mBuilder.setView(createView()); in createConfirmationDialog()
290 mBuilder.setPositiveButton(getString(R.string.bluetooth_pairing_accept), this); in createConfirmationDialog()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingDialogFragment.java51 private AlertDialog.Builder mBuilder; field in BluetoothPairingDialogFragment
77 mBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog()
205 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createUserEntryDialog()
207 mBuilder.setView(createPinEntryView()); in createUserEntryDialog()
208 mBuilder.setPositiveButton(getString(android.R.string.ok), this); in createUserEntryDialog()
209 mBuilder.setNegativeButton(getString(android.R.string.cancel), this); in createUserEntryDialog()
210 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog()
283 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createConfirmationDialog()
285 mBuilder.setView(createView()); in createConfirmationDialog()
286 mBuilder.setPositiveButton(getString(R.string.bluetooth_pairing_accept), this); in createConfirmationDialog()
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpServingParamsTest.java53 private DhcpServingParams.Builder mBuilder; field in DhcpServingParamsTest
71 mBuilder = new DhcpServingParams.Builder() in setUp()
89 final DhcpServingParams params = mBuilder in testBuild_Immutable()
120 mBuilder.setDhcpLeaseTimeSecs(-1).build(); in testBuild_NegativeLeaseTime()
126 mBuilder.setDhcpLeaseTimeSecs(1L << 32).build(); in testBuild_LeaseTimeTooLarge()
132 final DhcpServingParams params = mBuilder in testBuild_InfiniteLeaseTime()
140 final DhcpServingParams params = mBuilder.setLinkMtu(MTU_UNSET).build(); in testBuild_UnsetMtu()
146 mBuilder.setLinkMtu(20).build(); in testBuild_MtuTooSmall()
151 mBuilder.setLinkMtu(65_536).build(); in testBuild_MtuTooLarge()
156 mBuilder.setServerAddr(new LinkAddress(parseNumericAddress("fe80::1111"), 120)).build(); in testBuild_IPv6Addr()
[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/TV/tuner/src/com/android/tv/tuner/cc/
DCaptionWindowLayout.java106 private final SpannableStringBuilder mBuilder = new SpannableStringBuilder(); field in CaptionWindowLayout
639 mBuilder.clear(); in clearText()
653 mBuilder.clear(); in updateText()
656 int length = mBuilder.length(); in updateText()
657 mBuilder.append(text); in updateText()
659 mBuilder.setSpan( in updateText()
662 mBuilder.length(), in updateText()
666 String[] lines = TextUtils.split(mBuilder.toString(), "\n"); in updateText()
673 mBuilder.delete(0, mBuilder.length() - truncatedText.length()); in updateText()
677 int start = 0, last = mBuilder.length() - 1; in updateText()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/
DCustomThemeManager.java32 private final CustomTheme.Builder mBuilder; field in CustomThemeManager
36 mBuilder = new Builder(); in CustomThemeManager()
37 overlayPackages.forEach(mBuilder::addOverlayPackage); in CustomThemeManager()
48 option.buildStep(mBuilder); in apply()
55 return mBuilder.getPackages(); in getOverlayPackages()
59 return ((CustomTheme.Builder)mBuilder.setId(id).setTitle(title)).build(context); in buildPartialCustomTheme()
72 return mBuilder.createPreviewInfo(context); in buildCustomThemePreviewInfo()
/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/Settings/src/com/android/settings/sim/
DSimPreferenceDialog.java55 AlertDialog.Builder mBuilder; field in SimPreferenceDialog
72 mBuilder = new AlertDialog.Builder(mContext); in onCreate()
76 mBuilder.setView(mDialogLayout); in onCreate()
153 mBuilder.setTitle(String.format(res.getString(R.string.sim_editor_title), in createEditDialog()
156 mBuilder.setPositiveButton(R.string.okay, new DialogInterface.OnClickListener() { in createEditDialog()
176 mBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { in createEditDialog()
183 mBuilder.setOnDismissListener(new DialogInterface.OnDismissListener() { in createEditDialog()
190 mBuilder.create().show(); in createEditDialog()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimPreferenceDialog.java55 AlertDialog.Builder mBuilder; field in SimPreferenceDialog
72 mBuilder = new AlertDialog.Builder(mContext); in onCreate()
76 mBuilder.setView(mDialogLayout); in onCreate()
153 mBuilder.setTitle(String.format(res.getString(R.string.sim_editor_title), in createEditDialog()
156 mBuilder.setPositiveButton(R.string.okay, new DialogInterface.OnClickListener() { in createEditDialog()
176 mBuilder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() { in createEditDialog()
183 mBuilder.setOnDismissListener(new DialogInterface.OnDismissListener() { in createEditDialog()
190 mBuilder.create().show(); in createEditDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiScanningRequiredFragmentTest.java58 private AlertDialog.Builder mBuilder; field in WifiScanningRequiredFragmentTest
93 mFragment.addButtonIfNeeded(mBuilder); in learnMore_launchesHelpWhenIntentFound()
94 verify(mBuilder, never()) in learnMore_launchesHelpWhenIntentFound()
98 mFragment.addButtonIfNeeded(mBuilder); in learnMore_launchesHelpWhenIntentFound()
99 verify(mBuilder, times(1)) in learnMore_launchesHelpWhenIntentFound()
/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/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/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/Settings/src/com/android/settings/applications/
DRunningServiceDetails.java197 StringBuilder mBuilder = new StringBuilder(128); field in RunningServiceDetails
268 detail.mActiveItem = detail.mViewHolder.bind(mState, bi, mBuilder); in addServiceDetailsView()
343 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView()
471 mMergedItem, mBuilder);
633 mSnippetActiveItem.updateTime(getActivity(), mBuilder);
636 mActiveDetails.get(i).mActiveItem.updateTime(getActivity(), mBuilder);
DRunningProcessesView.java73 StringBuilder mBuilder = new StringBuilder(128); field in RunningProcessesView
311 ActiveItem ai = vh.bind(mState, item, mBuilder); in bindView()
500 ai.updateTime(getContext(), mBuilder); in updateTimes() local
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningServiceDetails.java197 StringBuilder mBuilder = new StringBuilder(128); field in RunningServiceDetails
268 detail.mActiveItem = detail.mViewHolder.bind(mState, bi, mBuilder); in addServiceDetailsView()
343 detail.mActiveItem = detail.mViewHolder.bind(mState, pi, mBuilder); in addProcessDetailsView()
471 mMergedItem, mBuilder);
633 mSnippetActiveItem.updateTime(getActivity(), mBuilder);
636 mActiveDetails.get(i).mActiveItem.updateTime(getActivity(), mBuilder);
DRunningProcessesView.java73 StringBuilder mBuilder = new StringBuilder(128); field in RunningProcessesView
311 ActiveItem ai = vh.bind(mState, item, mBuilder); in bindView()
500 ai.updateTime(getContext(), mBuilder); in updateTimes() local
/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()