/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 | 48 private final OemNetworkPreferences.Builder mBuilder = new OemNetworkPreferences.Builder(); field in OemNetworkPreferencesTest 53 () -> mBuilder.addNetworkPreference(null, TEST_PREF)); in testBuilderAddNetworkPreferenceRequiresNonNullPackageName() 59 () -> mBuilder.clearNetworkPreference(null)); in testBuilderRemoveNetworkPreferenceRequiresNonNullPackageName() 65 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsCorrectValue() 68 mBuilder.build().getNetworkPreferences(); in testGetNetworkPreferenceReturnsCorrectValue() 77 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testGetNetworkPreferenceReturnsUnmodifiableValue() 80 mBuilder.build().getNetworkPreferences(); in testGetNetworkPreferenceReturnsUnmodifiableValue() 92 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testToStringReturnsCorrectValue() 94 final String networkPreferencesString = mBuilder.build().getNetworkPreferences().toString(); in testToStringReturnsCorrectValue() 102 mBuilder.addNetworkPreference(TEST_PACKAGE, TEST_PREF); in testOemNetworkPreferencesParcelable() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | AnspImsPreferModePolicyBuilderTest.java | 44 private AnspImsPreferModePolicyBuilder mBuilder; field in AnspImsPreferModePolicyBuilderTest 50 mBuilder = in setUp() 58 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() 65 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() 72 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() 79 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() 86 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() 93 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() 100 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() 109 mBuilder.getPolicyInMap( in testGetPolicyInMap_rove_in() [all …]
|
D | AccessNetworkSelectionPolicyBuilderTest.java | 59 private AccessNetworkSelectionPolicyBuilder mBuilder = null; field in AccessNetworkSelectionPolicyBuilderTest 219 mBuilder = in setUp() 243 return mBuilder.getPolicy(direction, condition); in getPolicy() 441 mBuilder.addThresholdGroup( in testAddThresholdGroup_RoveIn() 472 mBuilder.addThresholdGroup( in testAddThresholdGroup_RoveIn() 516 mBuilder.addThresholdGroup( in testAddThresholdGroup_RoveIn() 548 mBuilder.addThresholdGroup( in testAddThresholdGroup_RoveIn() 592 mBuilder.addThresholdGroup( in testAddThresholdGroup_RoveIn() 611 mBuilder.addThresholdGroup( in testAddThresholdGroup_RoveIn() 635 mBuilder.addThresholdGroup( in testAddThresholdGroup_RoveOut() [all …]
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/ |
D | PersonBuilderHelper.java | 59 final private Person.Builder mBuilder; field in PersonBuilderHelper 67 mBuilder = builder; in PersonBuilderHelper() 78 final ContactPoint.Builder mBuilder; field in PersonBuilderHelper.ContactPointBuilderHelper 82 mBuilder = Objects.requireNonNull(builder); in ContactPointBuilderHelper() 94 mBuilder.addPhone(mPhoneNumberVariants.get(i)); in buildContactPoint() 96 return mBuilder.build(); in buildContactPoint() 114 builderHelper.mBuilder.setCreationTimestampMillis(0); in buildPerson() 115 mBuilder.addContactPoint(builderHelper.buildContactPoint()); in buildPerson() 118 mBuilder.setScore(0); in buildPerson() 119 mBuilder.setFingerprint(EMPTY_BYTE_ARRAY); in buildPerson() [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/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/ |
D | Ikev2VpnProfileBuilderShimImpl.java | 41 protected final Ikev2VpnProfile.Builder mBuilder; field in Ikev2VpnProfileBuilderShimImpl 44 mBuilder = builder; in Ikev2VpnProfileBuilderShimImpl() 49 mBuilder = new Ikev2VpnProfile.Builder(serverAddr, identity); in Ikev2VpnProfileBuilderShimImpl() 62 mBuilder.setAuthPsk(psk); in setAuthPsk() 70 mBuilder.setAuthUsernamePassword(user, pass, serverRootCa); in setAuthUsernamePassword() 78 mBuilder.setAuthDigitalSignature(userCert, key, serverRootCa); in setAuthDigitalSignature() 84 mBuilder.setBypassable(true); in setBypassable() 90 mBuilder.setProxy(proxy); in setProxy() 96 mBuilder.setMaxMtu(mtu); in setMaxMtu() 102 mBuilder.setMetered(isMetered); in setMetered() [all …]
|
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/ |
D | DhcpServingParamsTest.java | 53 private DhcpServingParams.Builder mBuilder; field in DhcpServingParamsTest 72 mBuilder = new DhcpServingParams.Builder() in setUp() 91 final DhcpServingParams params = mBuilder in testBuild_Immutable() 122 mBuilder.setDhcpLeaseTimeSecs(-1).build(); in testBuild_NegativeLeaseTime() 128 mBuilder.setDhcpLeaseTimeSecs(1L << 32).build(); in testBuild_LeaseTimeTooLarge() 134 final DhcpServingParams params = mBuilder in testBuild_InfiniteLeaseTime() 142 final DhcpServingParams params = mBuilder.setLinkMtu(MTU_UNSET).build(); in testBuild_UnsetMtu() 148 mBuilder.setLinkMtu(20).build(); in testBuild_MtuTooSmall() 153 mBuilder.setLinkMtu(65_536).build(); in testBuild_MtuTooLarge() 158 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/src/com/android/settings/bluetooth/ |
D | BluetoothPairingDialogFragment.java | 53 private AlertDialog.Builder mBuilder; field in BluetoothPairingDialogFragment 80 mBuilder = new AlertDialog.Builder(getActivity()); in onCreateDialog() 222 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createUserEntryDialog() 224 mBuilder.setView(createPinEntryView()); in createUserEntryDialog() 225 mBuilder.setPositiveButton(getString(android.R.string.ok), this); in createUserEntryDialog() 226 mBuilder.setNegativeButton(getString(android.R.string.cancel), this); in createUserEntryDialog() 227 AlertDialog dialog = mBuilder.create(); in createUserEntryDialog() 300 mBuilder.setTitle(getString(R.string.bluetooth_pairing_request, in createConfirmationDialog() 302 mBuilder.setView(createView()); in createConfirmationDialog() 303 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/apps/Settings/src/com/android/settings/password/ |
D | ChooseLockSettingsHelper.java | 125 @NonNull private final Builder mBuilder; field in ChooseLockSettingsHelper 130 mBuilder = builder; in ChooseLockSettingsHelper() 398 return launchConfirmationActivity(mBuilder.mRequestCode, mBuilder.mTitle, mBuilder.mHeader, in launch() 399 mBuilder.mDescription, mBuilder.mReturnCredentials, mBuilder.mExternal, in launch() 400 mBuilder.mForceVerifyPath, mBuilder.mUserId, mBuilder.mAlternateButton, in launch() 401 mBuilder.mCheckBoxLabel, mBuilder.mRemoteLockscreenValidation, in launch() 402 mBuilder.mRemoteLockscreenValidationSession, in launch() 403 mBuilder.mRemoteLockscreenValidationServiceComponent, mBuilder.mAllowAnyUserId, in launch() 404 mBuilder.mForegroundOnly, mBuilder.mRequestGatekeeperPasswordHandle, in launch() 405 mBuilder.mRequestWriteRepairModePassword, mBuilder.mTaskOverlay); in launch()
|
/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/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/modules/NeuralNetworks/runtime/ |
D | FlatbufferModelBuilder.cpp | 30 flatbuffers::Verifier verifier(mBuilder.GetBufferPointer(), mBuilder.GetSize()); in verifyModel() 39 auto emptyBuffer = tflite::CreateBufferDirect(mBuilder, &emptyData); in initializeBufferVector() 51 auto metadata = tflite::CreateMetadataDirect(mBuilder, std::to_string(i).c_str() /* name */, in createMetadataVector() 72 mBuilder, 3 /* version*/, &mOpCodesVector /* operator_codes */, in createTfliteModel() 76 mBuilder.Finish(flatbufferModel); in createTfliteModel() 78 const tflite::Model* tfliteModel = tflite::GetModel(mBuilder.GetBufferPointer()); in createTfliteModel() 90 SubGraphContext context(&mModel, &subgraph, &mBuilder, &mOpCodesVector, in createSubGraphFlatbuffer()
|
/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/Settings/tests/unit/src/com/android/settings/network/ |
D | ResetNetworkRestrictionViewBuilderTest.java | 54 private ResetNetworkRestrictionViewBuilder mBuilder; field in ResetNetworkRestrictionViewBuilderTest 65 mBuilder = new ResetNetworkRestrictionViewBuilder(mActivity) { in build_getNull_whenNoRestriction() 72 assertThat(mBuilder.build()).isNull(); in build_getNull_whenNoRestriction() 77 mBuilder = new ResetNetworkRestrictionViewBuilder(mActivity) { in build_getView_whenUserRestriction() 84 assertThat(mBuilder.build()).isNotNull(); in build_getView_whenUserRestriction() 95 mBuilder = new ResetNetworkRestrictionViewBuilder(mActivity) { in build_getView_whenEnforceAdminRestriction() 108 assertThat(mBuilder.build()).isNotNull(); in build_getView_whenEnforceAdminRestriction()
|
D | ResetNetworkOperationBuilderTest.java | 62 private ResetNetworkOperationBuilder mBuilder; field in ResetNetworkOperationBuilderTest 69 mBuilder = spy(new ResetNetworkOperationBuilder(mContext)); in setUp() 77 mBuilder.resetConnectivityManager().build().run(); in resetConnectivityManager_performReset_whenBuildAndRun() 87 mBuilder.resetVpnManager().build().run(); in resetVpnManager_performReset_whenBuildAndRun() 97 mBuilder.resetWifiManager().build().run(); in resetWifiManager_performReset_whenBuildAndRun() 108 mBuilder.resetWifiP2pManager(null).build().run(); in resetWifiP2pManager_performReset_whenBuildAndRun() 127 mBuilder.resetTelephonyAndNetworkPolicyManager(subId).build().run(); in resetTelephonyAndNetworkPolicyManager_performReset_whenBuildAndRun()
|
/packages/modules/Connectivity/nearby/tests/unit/src/android/nearby/ |
D | NearbyDeviceParcelableTest.java | 49 private NearbyDeviceParcelable.Builder mBuilder; field in NearbyDeviceParcelableTest 53 mBuilder = in setUp() 101 NearbyDeviceParcelable nearbyDeviceParcelable = mBuilder.build(); in testWriteParcel() 119 NearbyDeviceParcelable nearbyDeviceParcelable = mBuilder.setFastPairModelId(null).build(); in testWriteParcel_nullModelId() 133 NearbyDeviceParcelable nearbyDeviceParcelable = mBuilder.setBluetoothAddress(null).build(); in testWriteParcel_nullBluetoothAddress() 146 NearbyDeviceParcelable nearbyDeviceParcelable = mBuilder.setBluetoothAddress(null).build(); in describeContents() 161 mBuilder.setPublicCredential(publicCredential).build(); in testEqual() 163 mBuilder.setPublicCredential(publicCredential).build(); in testEqual()
|
/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/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/presence/ |
D | ExtendedAdvertisementTest.java | 84 private PresenceBroadcastRequest.Builder mBuilder; field in ExtendedAdvertisementTest 98 mBuilder = in setUp() 111 mBuilder.build()); in test_createFromRequest() 128 mBuilder.build()); in test_createFromRequest_encodeAndDecode() 150 mBuilder.setVersion(BroadcastRequest.PRESENCE_VERSION_V0); in test_createFromRequest_invalidParameter() 151 assertThat(ExtendedAdvertisement.createFromRequest(mBuilder.build())).isNull(); in test_createFromRequest_invalidParameter() 184 ExtendedAdvertisement adv = ExtendedAdvertisement.createFromRequest(mBuilder.build()); in test_toBytes() 208 ExtendedAdvertisement adv = ExtendedAdvertisement.createFromRequest(mBuilder.build()); in test_toString() 217 ExtendedAdvertisement adv = ExtendedAdvertisement.createFromRequest(mBuilder.build()); in test_getDataElements_accordingToType()
|
/packages/modules/NeuralNetworks/runtime/operation_converters/ |
D | SubGraphContext.cpp | 35 mBuilder(builder), in SubGraphContext() 50 return tflite::CreateSubGraphDirect(*mBuilder, &mTensorVector, &mInputTensors, &mOutputTensors, in finish() 90 *mBuilder, static_cast<int8_t>(builtinCode) /* deprecated_builtin_code */, in addOpCode() 93 opCode = tflite::CreateOperatorCode(*mBuilder, 0 /* deprecated_builtin_code */, in addOpCode() 139 auto dataVectorFlatbuffer = mBuilder->CreateVector(data, length); in addBufferFromData() 141 auto buffer = tflite::CreateBuffer(*mBuilder, dataVectorFlatbuffer); in addBufferFromData() 165 *mBuilder, &minVector /* min */, &maxVector /* max */, &scaleVector /* scale */, in createTensorFlatbufferFromOperand() 206 *mBuilder, &shape, NN_TRY(getTensorFlatbufferOperandType(operand.type)) /* type */, in createTensorFlatbufferFromOperand()
|
/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()
|