/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/sidebar/ |
D | RootItemListBuilderTest.java | 64 private RootItemListBuilder mBuilder; field in RootItemListBuilderTest 68 mBuilder = new RootItemListBuilder( in testGetList_empty() 71 List<RootItem> result = mBuilder.getList(); in testGetList_empty() 77 mBuilder = new RootItemListBuilder( in testGetList_singleUser() 80 mBuilder.add(HAMMY_DEFAULT_USER); in testGetList_singleUser() 81 mBuilder.add(PICKLES_DEFAULT_USER); in testGetList_singleUser() 82 mBuilder.add(HOME_DEFAULT_USER); in testGetList_singleUser() 84 List<RootItem> result = mBuilder.getList(); in testGetList_singleUser() 91 mBuilder = new RootItemListBuilder(UserId.DEFAULT_USER, in testGetList_twoUsers_allMultiProfileRootsMatchOther_defaultUser() 94 mBuilder.add(DOWNLOADS_DEFAULT_USER); // support multi-profile in testGetList_twoUsers_allMultiProfileRootsMatchOther_defaultUser() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | NameLookupBuilderTest.java | 76 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/modules/Connectivity/tests/common/java/android/net/ |
D | OemNetworkPreferencesTest.java | 46 private final OemNetworkPreferences.Builder mBuilder = new OemNetworkPreferences.Builder(); field in OemNetworkPreferencesTest 51 () -> mBuilder.addNetworkPreference(null, TEST_PREF)); in testBuilderAddNetworkPreferenceRequiresNonNullPackageName() 57 () -> mBuilder.clearNetworkPreference(null)); in testBuilderRemoveNetworkPreferenceRequiresNonNullPackageName() 63 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsCorrectValue() 66 mBuilder.build().getNetworkPreferences(); in testGetNetworkPreferenceReturnsCorrectValue() 75 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsUnmodifiableValue() 78 mBuilder.build().getNetworkPreferences(); in testGetNetworkPreferenceReturnsUnmodifiableValue() 90 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testToStringReturnsCorrectValue() 92 final String networkPreferencesString = mBuilder.build().getNetworkPreferences().toString(); in testToStringReturnsCorrectValue() 100 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testOemNetworkPreferencesParcelable() [all …]
|
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/ |
D | AlertDialogBuilder.java | 64 private AlertDialog.Builder mBuilder; field in AlertDialogBuilder 137 mBuilder = new AlertDialog.Builder(context, themeResId); in AlertDialogBuilder() 144 return mBuilder.getContext(); in getContext() 163 mBuilder.setTitle(title); in setTitle() 192 mBuilder.setMessage(messageId); in setMessage() 202 mBuilder.setMessage(message); in setMessage() 253 mBuilder.setIconAttribute(attrId); in setIconAttribute() 266 mBuilder.setPositiveButton(textId, listener); in setPositiveButton() 280 mBuilder.setPositiveButton(text, listener); in setPositiveButton() 294 mBuilder.setNegativeButton(textId, listener); in setNegativeButton() [all …]
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCard.java | 53 private final Builder mBuilder; field in ContextualCard 137 return mBuilder; in mutate() 141 mBuilder = builder; in ContextualCard() 160 mBuilder = new Builder(); in ContextualCard() 162 mBuilder.setName(mName); in ContextualCard() 164 mBuilder.setCardType(mCardType); in ContextualCard() 166 mBuilder.setRankingScore(mRankingScore); in ContextualCard() 168 mBuilder.setSliceUri(Uri.parse(mSliceUri)); in ContextualCard() 170 mBuilder.setCategory(mCategory); in ContextualCard() 172 mBuilder.setPackageName(mPackageName); in ContextualCard() [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialogFragment.java | 53 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/ |
D | BluetoothPairingDialogFragment.java | 52 private AlertDialog.Builder mBuilder; field in BluetoothPairingDialogFragment 78 mBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog() 198 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createUserEntryDialog() 200 mBuilder.setView(createPinEntryView()); in createUserEntryDialog() 201 mBuilder.setPositiveButton(getString(android.R.string.ok), this); in createUserEntryDialog() 202 mBuilder.setNegativeButton(getString(android.R.string.cancel), this); in createUserEntryDialog() 203 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog() 276 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createConfirmationDialog() 278 mBuilder.setView(createView()); in createConfirmationDialog() 279 mBuilder.setPositiveButton(getString(R.string.bluetooth_pairing_accept), this); in createConfirmationDialog() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpServingParamsTest.java | 53 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/ |
D | CaptureRequestBuilderProxy.java | 27 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/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeSettingsTest.java | 43 private ZenModeSettings.SummaryBuilder mBuilder; field in ZenModeSettingsTest 49 mBuilder = new ZenModeSettings.SummaryBuilder(mContext); in setUp() 56 mBuilder.getBlockedEffectsSummary(policy)); in testBlockedEffectsSummary_none() 63 mBuilder.getBlockedEffectsSummary(policy)); in testBlockedEffectsSummary_some() 70 mBuilder.getBlockedEffectsSummary(policy)); in testBlockedEffectsSummary_all() 77 assertThat(mBuilder.getCallsSettingSummary(policy)).isEqualTo("None"); in testGetCallsSettingSummary_none() 84 assertThat(mBuilder.getCallsSettingSummary(policy)).isEqualTo("Contacts"); in testGetCallsSettingSummary_contacts() 90 assertThat(mBuilder.getCallsSettingSummary(policy)).isEqualTo("Repeat callers"); in testGetCallsSettingSummary_repeatCallers() 98 assertThat(mBuilder.getCallsSettingSummary(policy)) in testGetCallsSettingSummary_starredRepeatCallers()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockSettingsHelper.java | 113 @NonNull private final Builder mBuilder; field in ChooseLockSettingsHelper 117 mBuilder = builder; in ChooseLockSettingsHelper() 299 return launchConfirmationActivity(mBuilder.mRequestCode, mBuilder.mTitle, mBuilder.mHeader, in launch() 300 mBuilder.mDescription, mBuilder.mReturnCredentials, mBuilder.mExternal, in launch() 301 mBuilder.mForceVerifyPath, mBuilder.mUserId, mBuilder.mAlternateButton, in launch() 302 mBuilder.mAllowAnyUserId, mBuilder.mForegroundOnly, in launch() 303 mBuilder.mRequestGatekeeperPasswordHandle); in launch()
|
/packages/apps/ThemePicker/src/com/android/customization/model/theme/custom/ |
D | CustomThemeManager.java | 41 private CustomTheme.Builder mBuilder; field in CustomThemeManager 45 mBuilder = new Builder(); in CustomThemeManager() 46 overlayPackages.forEach(mBuilder::addOverlayPackage); in CustomThemeManager() 57 option.buildStep(mBuilder); in apply() 64 return mBuilder.getPackages(); in getOverlayPackages() 68 return ((CustomTheme.Builder)mBuilder.setId(id).setTitle(title)).build(context); in buildPartialCustomTheme() 81 return mBuilder.createPreviewInfo(context); in buildCustomThemePreviewInfo() 98 mBuilder = themeBundleProvider.parseCustomTheme(packages); in readCustomTheme()
|
/packages/apps/Contacts/src/com/android/contacts/model/ |
D | BuilderWrapper.java | 29 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/ |
D | BuilderWrapper.java | 30 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/TV/tuner/src/com/android/tv/tuner/cc/ |
D | CaptionWindowLayout.java | 106 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/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiScanningRequiredFragmentTest.java | 62 private AlertDialog.Builder mBuilder; field in WifiScanningRequiredFragmentTest 98 mFragment.addButtonIfNeeded(mBuilder); in learnMore_launchesHelpWhenIntentFound() 99 verify(mBuilder, never()) in learnMore_launchesHelpWhenIntentFound() 103 mFragment.addButtonIfNeeded(mBuilder); in learnMore_launchesHelpWhenIntentFound() 104 verify(mBuilder, times(1)) in learnMore_launchesHelpWhenIntentFound() 111 mFragment.addButtonIfNeeded(mBuilder); in learnMore_launchesHelp_shouldStartActivityForResult()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | EnabledNetworkModePreferenceController.java | 60 private PreferenceEntriesBuilder mBuilder; field in EnabledNetworkModePreferenceController 121 mBuilder.setPreferenceEntries(); in updateState() 122 mBuilder.setPreferenceValueAndSummary(); in updateState() 124 listPreference.setEntries(mBuilder.getEntries()); in updateState() 125 listPreference.setEntryValues(mBuilder.getEntryValues()); in updateState() 126 listPreference.setValue(Integer.toString(mBuilder.getSelectedEntryValue())); in updateState() 127 listPreference.setSummary(mBuilder.getSummary()); in updateState() 137 mBuilder.setPreferenceValueAndSummary(newPreferredNetworkMode); in onPreferenceChange() 138 listPreference.setValue(Integer.toString(mBuilder.getSelectedEntryValue())); in onPreferenceChange() 139 listPreference.setSummary(mBuilder.getSummary()); in onPreferenceChange() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/core/ |
D | RequestBuilder.java | 120 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/ |
D | TwoDigitFormatter.java | 18 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/Gallery2/src/com/android/gallery3d/filtershow/pipeline/ |
D | ProcessingService.java | 45 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/modules/NeuralNetworks/common/ |
D | SharedMemory.cpp | 57 ConstantMemoryBuilder::ConstantMemoryBuilder(uint32_t poolIndex) : mBuilder(poolIndex) {} in ConstantMemoryBuilder() 60 const auto location = mBuilder.append(length); in append() 67 return mBuilder.empty(); in empty() 72 auto memory = NN_TRY(mBuilder.finish()); in finish()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/ |
D | TemplateSliceBuilder.java | 43 private final Slice.Builder mBuilder; field in TemplateSliceBuilder 50 mBuilder = null; in TemplateSliceBuilder() 56 mBuilder = new Slice.Builder(uri); in TemplateSliceBuilder() 75 return mBuilder; in getBuilder()
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | ActionDisabledLearnMoreButtonLauncherImpl.java | 40 private final AlertDialogBuilder mBuilder; field in ActionDisabledLearnMoreButtonLauncherImpl 43 mBuilder = requireNonNull(builder, "builder cannot be null"); in ActionDisabledLearnMoreButtonLauncherImpl() 50 mBuilder.setNeutralButton(R.string.learn_more, (dialog, which) -> action.run()); in setLearnMoreButton()
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | ActionDisabledLearnMoreButtonLauncherImpl.java | 42 private final AlertDialog.Builder mBuilder; field in ActionDisabledLearnMoreButtonLauncherImpl 46 mBuilder = requireNonNull(builder, "builder cannot be null"); in ActionDisabledLearnMoreButtonLauncherImpl() 53 mBuilder.setNeutralButton(R.string.learn_more, (dialog, which) -> action.run()); in setLearnMoreButton()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningServiceDetails.java | 197 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);
|