Home
last modified time | relevance | path

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

12345678910>>...64

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendDialogInfoTest.java42 private static SuspendDialogInfo.Builder createDefaultDialogBuilder() { in createDefaultDialogBuilder()
43 return new SuspendDialogInfo.Builder() in createDefaultDialogBuilder()
53 final SuspendDialogInfo.Builder dialogBuilder1 = createDefaultDialogBuilder(); in equalsComparesIcons()
54 final SuspendDialogInfo.Builder dialogBuilder2 = createDefaultDialogBuilder(); in equalsComparesIcons()
63 final SuspendDialogInfo.Builder dialogBuilder1 = createDefaultDialogBuilder(); in equalsComparesTitleIds()
64 final SuspendDialogInfo.Builder dialogBuilder2 = createDefaultDialogBuilder(); in equalsComparesTitleIds()
73 final SuspendDialogInfo.Builder dialogBuilder1 = new SuspendDialogInfo.Builder() in equalsIgnoresTitleStringsWhenIdsSet()
76 final SuspendDialogInfo.Builder dialogBuilder2 = new SuspendDialogInfo.Builder() in equalsIgnoresTitleStringsWhenIdsSet()
85 final SuspendDialogInfo.Builder dialogBuilder1 = new SuspendDialogInfo.Builder() in equalsComparesTitleStringsWhenNoIdsSet()
87 final SuspendDialogInfo.Builder dialogBuilder2 = new SuspendDialogInfo.Builder() in equalsComparesTitleStringsWhenNoIdsSet()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/people/
DPeopleSpaceTileTest.java79 PeopleSpaceTile tile = new PeopleSpaceTile.Builder( in testId()
80 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testId()
84 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testId()
89 tile = new PeopleSpaceTile.Builder("12", null, null, null).build(); in testId()
95 PeopleSpaceTile tile = new PeopleSpaceTile.Builder( in testUserName()
96 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testUserName()
100 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testUserName()
105 tile = new PeopleSpaceTile.Builder(null, "Name 2", null, null).build(); in testUserName()
111 PeopleSpaceTile tile = new PeopleSpaceTile.Builder( in testUserIcon()
112 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).setUserIcon( in testUserIcon()
[all …]
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/
DEsimOdsaOperation.java176 public static Builder builder() { in builder()
177 return new AutoValue_EsimOdsaOperation.Builder() in builder()
202 @AutoValue.Builder
203 public abstract static class Builder { class in EsimOdsaOperation
214 public abstract Builder setOperation(String value); in setOperation()
230 public abstract Builder setOperationType(int value); in setOperationType()
238 public abstract Builder setCompanionTerminalId(String value); in setCompanionTerminalId()
246 public abstract Builder setCompanionTerminalVendor(String value); in setCompanionTerminalVendor()
254 public abstract Builder setCompanionTerminalModel(String value); in setCompanionTerminalModel()
262 public abstract Builder setCompanionTerminalSoftwareVersion(String value); in setCompanionTerminalSoftwareVersion()
[all …]
DServiceEntitlementRequest.java123 public static Builder builder() { in builder()
124 return new AutoValue_ServiceEntitlementRequest.Builder() in builder()
142 @AutoValue.Builder
143 public abstract static class Builder { class in ServiceEntitlementRequest
151 public abstract Builder setConfigurationVersion(int value); in setConfigurationVersion()
159 public abstract Builder setEntitlementVersion(String value); in setEntitlementVersion()
167 public abstract Builder setAuthenticationToken(String value); in setAuthenticationToken()
175 public abstract Builder setTerminalId(String value); in setTerminalId()
182 public abstract Builder setTerminalVendor(String value); in setTerminalVendor()
189 public abstract Builder setTerminalModel(String value); in setTerminalModel()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DSysUiStatsEvent.java26 static class Builder { class in SysUiStatsEvent
27 private final StatsEvent.Builder mBuilder;
29 protected Builder(StatsEvent.Builder builder) { in Builder() method in SysUiStatsEvent.Builder
37 public Builder setAtomId(int atomId) { in setAtomId()
42 public Builder writeInt(int value) { in writeInt()
47 public Builder addBooleanAnnotation(byte annotation, boolean value) { in addBooleanAnnotation()
52 public Builder writeString(String value) { in writeString()
57 public Builder writeBoolean(boolean value) { in writeBoolean()
62 public Builder writeByteArray(byte[] value) { in writeByteArray()
69 Builder newBuilder() { in newBuilder()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/
DNotificationTest.java19 import static android.app.Notification.Builder.ensureColorSpanContrast;
120 Notification n = new Notification.Builder(mContext, "test") in testColorizedByPermission()
126 n = new Notification.Builder(mContext, "test") in testColorizedByPermission()
131 n = new Notification.Builder(mContext, "test") in testColorizedByPermission()
140 Notification n = new Notification.Builder(mContext, "test") in testColorizedByForeground()
146 n = new Notification.Builder(mContext, "test") in testColorizedByForeground()
151 n = new Notification.Builder(mContext, "test") in testColorizedByForeground()
160 Notification n = new Notification.Builder(mContext).build(); in testHasCompletedProgress_noProgress()
167 Notification n = new Notification.Builder(mContext) in testHasCompletedProgress_complete()
170 Notification n2 = new Notification.Builder(mContext) in testHasCompletedProgress_complete()
[all …]
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
DHttpRequest.java55 @AutoValue.Builder
56 public abstract static class Builder { class in HttpRequest
60 public abstract Builder setUrl(String url); in setUrl()
67 public abstract Builder setRequestMethod(String requestMethod); in setRequestMethod()
70 public abstract Builder setPostData(JSONObject postData); in setPostData()
72 abstract ImmutableListMultimap.Builder<String, String> requestPropertiesBuilder(); in requestPropertiesBuilder()
75 public Builder addRequestProperty(String key, String value) { in addRequestProperty()
85 public Builder addRequestProperty(String key, List<String> value) { in addRequestProperty()
97 public abstract Builder setTimeoutInSec(int timeoutInSec); in setTimeoutInSec()
103 public abstract Builder setNetwork(@Nullable Network network); in setNetwork()
[all …]
DHttpResponse.java50 @AutoValue.Builder
51 public abstract static class Builder { class in HttpResponse
54 public abstract Builder setContentType(int contentType); in setContentType()
56 public abstract Builder setBody(String body); in setBody()
58 public abstract Builder setResponseCode(int responseCode); in setResponseCode()
60 public abstract Builder setResponseMessage(String responseMessage); in setResponseMessage()
65 public abstract Builder setCookies(List<String> cookies); in setCookies()
68 public static Builder builder() { in builder()
69 return new AutoValue_HttpResponse.Builder() in builder()
/frameworks/base/media/java/android/mtp/
DMtpObjectInfo.java355 public static class Builder { class in MtpObjectInfo
358 public Builder() { in Builder() method in MtpObjectInfo.Builder
369 public Builder(MtpObjectInfo objectInfo) { in Builder() method in MtpObjectInfo.Builder
393 public Builder setObjectHandle(int value) { in setObjectHandle()
398 public Builder setAssociationDesc(int value) { in setAssociationDesc()
403 public Builder setAssociationType(int value) { in setAssociationType()
408 public Builder setCompressedSize(long value) { in setCompressedSize()
413 public Builder setDateCreated(long value) { in setDateCreated()
418 public Builder setDateModified(long value) { in setDateModified()
423 public Builder setFormat(int value) { in setFormat()
[all …]
/frameworks/compile/libbcc/lib/
DRSKernelExpand.cpp354 llvm::IRBuilder<> Builder(Begin); in createEmptyExpandedForEachKernel() local
355 Builder.CreateRetVoid(); in createEmptyExpandedForEachKernel()
402 llvm::IRBuilder<> Builder(Begin); in createEmptyExpandedReduceAccumulator() local
403 Builder.CreateRetVoid(); in createEmptyExpandedReduceAccumulator()
425 llvm::BasicBlock *createLoop(llvm::IRBuilder<> &Builder, in createLoop() argument
434 CondBB = Builder.GetInsertBlock(); in createLoop()
435 AfterBB = llvm::SplitBlock(CondBB, &*Builder.GetInsertPoint(), nullptr, nullptr); in createLoop()
439 Builder.SetInsertPoint(CondBB); in createLoop()
443 IVVar = Builder.CreateAlloca(LowerBound->getType(), nullptr, BCC_INDEX_VAR_NAME); in createLoop()
444 Builder.CreateStore(LowerBound, IVVar); in createLoop()
[all …]
/frameworks/base/media/java/android/media/tv/tuner/filter/
DSectionSettingsWithSectionBits.java76 public static Builder builder(@Filter.Type int mainType) { in builder()
77 return new Builder(mainType); in builder()
83 public static class Builder extends SectionSettings.Builder<Builder> { class in SectionSettingsWithSectionBits
88 private Builder(int mainType) { in Builder() method in SectionSettingsWithSectionBits.Builder
98 public Builder setFilter(@NonNull byte[] filter) { in setFilter()
108 public Builder setMask(@NonNull byte[] mask) { in setMask()
118 public Builder setMode(@NonNull byte[] mode) { in setMode()
133 Builder self() { in self()
DSectionSettingsWithTableInfo.java65 public static Builder builder(@Filter.Type int mainType) { in builder()
66 return new Builder(mainType); in builder()
72 public static class Builder extends SectionSettings.Builder<Builder> { class in SectionSettingsWithTableInfo
76 private Builder(int mainType) { in Builder() method in SectionSettingsWithTableInfo.Builder
84 public Builder setTableId(int tableId) { in setTableId()
92 public Builder setVersion(int version) { in setVersion()
107 Builder self() { in self()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DTelephonyNetworkRequestTest.java37 private static final ApnSetting INTERNET_APN_SETTING = new ApnSetting.Builder()
55 private static final ApnSetting MMS_APN_SETTING = new ApnSetting.Builder()
72 private static final ApnSetting ENTERPRISE_APN_SETTING = new ApnSetting.Builder()
104 NetworkRequest nativeRequest = new NetworkRequest.Builder() in testGetNativeRequest()
115 new NetworkRequest.Builder() in testPriority()
119 new NetworkRequest.Builder() in testPriority()
130 new TelephonyNetworkSpecifier.Builder().setSubscriptionId(5).build(); in testGetNetworkSpecifier()
133 new NetworkRequest.Builder() in testGetNetworkSpecifier()
144 new NetworkRequest.Builder() in testGetCapabilities()
171 new NetworkRequest.Builder() in testGetApnTypeNetworkCapability()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/time/
DTimeZoneCapabilitiesTest.java45 TimeZoneCapabilities.Builder builder1 = new TimeZoneCapabilities.Builder(TEST_USER_HANDLE) in testEquals()
49 TimeZoneCapabilities.Builder builder2 = new TimeZoneCapabilities.Builder(TEST_USER_HANDLE) in testEquals()
104 TimeZoneCapabilities.Builder builder = new TimeZoneCapabilities.Builder(TEST_USER_HANDLE) in testParcelable()
123 new TimeZoneConfiguration.Builder() in testTryApplyConfigChanges_permitted()
127 TimeZoneCapabilities capabilities = new TimeZoneCapabilities.Builder(TEST_USER_HANDLE) in testTryApplyConfigChanges_permitted()
133 TimeZoneConfiguration configChange = new TimeZoneConfiguration.Builder() in testTryApplyConfigChanges_permitted()
137 TimeZoneConfiguration expected = new TimeZoneConfiguration.Builder(oldConfiguration) in testTryApplyConfigChanges_permitted()
146 new TimeZoneConfiguration.Builder() in testTryApplyConfigChanges_notPermitted()
150 TimeZoneCapabilities capabilities = new TimeZoneCapabilities.Builder(TEST_USER_HANDLE) in testTryApplyConfigChanges_notPermitted()
156 TimeZoneConfiguration configChange = new TimeZoneConfiguration.Builder() in testTryApplyConfigChanges_notPermitted()
[all …]
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DBrightnessConfigurationTest.java60 BrightnessConfiguration.Builder builder = new BrightnessConfiguration.Builder( in testSetCurveIsUnmodified()
72 new BrightnessConfiguration.Builder(lux, NITS_LEVELS); in testCurveMustHaveZeroLuxPoint()
77 new BrightnessConfiguration.Builder(null, null); in testCurveMustNotHaveNullArrays()
82 new BrightnessConfiguration.Builder(new float[0], new float[0]); in testCurveMustNotHaveEmptyArrays()
90 new BrightnessConfiguration.Builder(lux, NITS_LEVELS); in testCurveMustNotHaveArraysOfDifferentLengths()
96 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurveMustNotHaveArraysOfDifferentLengths()
105 new BrightnessConfiguration.Builder(lux, NITS_LEVELS); in testCurvesMustNotContainNaN()
111 new BrightnessConfiguration.Builder(LUX_LEVELS, nits); in testCurvesMustNotContainNaN()
117 BrightnessConfiguration.Builder config = new BrightnessConfiguration.Builder( in testLuxMultipliersMustBePositive()
130 BrightnessConfiguration.Builder builder = in testParceledConfigIsEquivalent()
[all …]
/frameworks/base/core/java/android/content/pm/
DAppSearchShortcutPerson.java59 public static final AppSearchSchema SCHEMA = new AppSearchSchema.Builder(SCHEMA_TYPE)
60 .addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_NAME)
66 ).addProperty(new AppSearchSchema.StringPropertyConfig.Builder(KEY_KEY)
72 ).addProperty(new AppSearchSchema.BooleanPropertyConfig.Builder(KEY_IS_BOT)
76 ).addProperty(new AppSearchSchema.BooleanPropertyConfig.Builder(KEY_IS_IMPORTANT)
80 ).addProperty(new AppSearchSchema.BytesPropertyConfig.Builder(KEY_ICON)
97 return new Builder(id).setName(person.getName()) in instance()
116 return new Person.Builder().setName(getPropertyString(KEY_NAME)) in toPerson()
126 public static class Builder extends GenericDocument.Builder<Builder> { class in AppSearchShortcutPerson
128 public Builder(@NonNull final String id) { in Builder() method in AppSearchShortcutPerson.Builder
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DSimpleSurfaceAnimatable.java43 private final Supplier<SurfaceControl.Builder> mAnimationLeashFactory;
53 private SimpleSurfaceAnimatable(Builder builder) { in SimpleSurfaceAnimatable()
102 public SurfaceControl.Builder makeAnimationLeash() { in makeAnimationLeash()
144 static class Builder { class in SimpleSurfaceAnimatable
176 private Supplier<SurfaceControl.Builder> mAnimationLeashFactory;
185 public SimpleSurfaceAnimatable.Builder setCommitTransactionRunnable( in setCommitTransactionRunnable()
199 public SimpleSurfaceAnimatable.Builder setOnAnimationLeashCreated( in setOnAnimationLeashCreated()
213 public SimpleSurfaceAnimatable.Builder setOnAnimationLeashLost( in setOnAnimationLeashLost()
222 public Builder setSyncTransactionSupplier( in setSyncTransactionSupplier()
231 public Builder setPendingTransactionSupplier( in setPendingTransactionSupplier()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java46 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToDisallowed()
71 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyAllowedToUnset()
88 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyDisallowedToUnset()
106 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyDisallowedToAllowed()
124 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyUnsetToAllowed()
131 ZenPolicy.Builder builder2 = new ZenPolicy.Builder(); in testZenPolicyApplyUnsetToAllowed()
142 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyMoreSevereCallSenders()
160 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyLessSevereCallSenders()
178 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyApplyMoreSevereMessageSenders()
196 ZenPolicy.Builder builder = new ZenPolicy.Builder(); in testZenPolicyMessagesInvalid()
[all …]
/frameworks/base/core/java/android/app/
DAlertDialog.java454 public static class Builder { class in AlertDialog
468 public Builder(Context context) { in Builder() method in AlertDialog.Builder
498 public Builder(Context context, int themeResId) { in Builder() method in AlertDialog.Builder
520 public Builder setTitle(@StringRes int titleId) { in setTitle()
530 public Builder setTitle(CharSequence title) { in setTitle()
551 public Builder setCustomTitle(View customTitleView) { in setCustomTitle()
561 public Builder setMessage(@StringRes int messageId) { in setMessage()
571 public Builder setMessage(CharSequence message) { in setMessage()
583 public Builder setIcon(@DrawableRes int iconId) { in setIcon()
598 public Builder setIcon(Drawable icon) { in setIcon()
[all …]
/frameworks/minikin/tests/unittest/
DFontCollectionTest.cpp238 using Builder = FontCollection::FamilyMatchResult::Builder; in TEST() typedef
239 EXPECT_TRUE(Builder().empty()); in TEST()
240 EXPECT_EQ(0u, Builder().size()); in TEST()
241 EXPECT_EQ(1u, Builder().add(5).size()); in TEST()
242 EXPECT_EQ(2u, Builder().add(5).add(4).size()); in TEST()
245 EXPECT_TRUE(Builder().add(5).reset().empty()); in TEST()
246 EXPECT_EQ(0u, Builder().add(5).reset().size()); in TEST()
250 using Builder = FontCollection::FamilyMatchResult::Builder; in TEST() typedef
252 auto r = Builder().build(); in TEST()
256 r = Builder().add(1).build(); in TEST()
[all …]
/frameworks/base/media/java/android/media/tv/tuner/frontend/
DIsdbtFrontendSettings.java344 public static Builder builder() { in builder()
345 return new Builder(); in builder()
351 public static class Builder { class in IsdbtFrontendSettings
360 private Builder() { in Builder() method in IsdbtFrontendSettings.Builder
372 public Builder setFrequency(int frequency) { in setFrequency()
383 public Builder setFrequencyLong(long frequency) { in setFrequencyLong()
399 public Builder setModulation(@Modulation int modulation) { in setModulation()
404 IsdbtLayerSettings.Builder layerBuilder = IsdbtLayerSettings.builder(); in setModulation()
421 public Builder setBandwidth(@Bandwidth int bandwidth) { in setBandwidth()
431 public Builder setMode(@Mode int mode) { in setMode()
[all …]
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DFabricatedOverlaysTest.java75 final OverlayManagerTransaction.Builder cleanUp = new OverlayManagerTransaction.Builder(); in tearDown()
87 final FabricatedOverlay overlay = new FabricatedOverlay.Builder( in testFabricatedOverlay()
93 mOverlayManager.commit(new OverlayManagerTransaction.Builder() in testFabricatedOverlay()
101 mOverlayManager.commit(new OverlayManagerTransaction.Builder() in testFabricatedOverlay()
110 mOverlayManager.commit(new OverlayManagerTransaction.Builder() in testFabricatedOverlay()
119 final FabricatedOverlay overlay = new FabricatedOverlay.Builder( in testRegisterEnableAtomic()
125 mOverlayManager.commit(new OverlayManagerTransaction.Builder() in testRegisterEnableAtomic()
135 FabricatedOverlay overlay = new FabricatedOverlay.Builder( in testRegisterTwice()
141 mOverlayManager.commit(new OverlayManagerTransaction.Builder() in testRegisterTwice()
147 overlay = new FabricatedOverlay.Builder( in testRegisterTwice()
[all …]
/frameworks/base/core/java/android/content/integrity/
DAppInstallMetadata.java54 private AppInstallMetadata(Builder builder) { in AppInstallMetadata()
158 public static final class Builder { class in AppInstallMetadata
172 public Builder() { in Builder() method in AppInstallMetadata.Builder
182 public Builder setAllowedInstallersAndCert( in setAllowedInstallersAndCert()
194 public Builder setPackageName(@NonNull String packageName) { in setPackageName()
208 public Builder setAppCertificates(@NonNull List<String> appCertificates) { in setAppCertificates()
222 public Builder setAppCertificateLineage(@NonNull List<String> appCertificateLineage) { in setAppCertificateLineage()
233 public Builder setInstallerName(@NonNull String installerName) { in setInstallerName()
247 public Builder setInstallerCertificates(@NonNull List<String> installerCertificates) { in setInstallerCertificates()
258 public Builder setVersionCode(long versionCode) { in setVersionCode()
[all …]
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanBeaconInfo.java46 public static class Builder { class in LowpanBeaconInfo
47 final LowpanIdentity.Builder mIdentityBuilder = new LowpanIdentity.Builder();
50 public Builder setLowpanIdentity(LowpanIdentity x) { in setLowpanIdentity()
55 public Builder setName(String x) { in setName()
60 public Builder setXpanid(byte x[]) { in setXpanid()
65 public Builder setPanid(int x) { in setPanid()
70 public Builder setChannel(int x) { in setChannel()
75 public Builder setType(String x) { in setType()
80 public Builder setRssi(int x) { in setRssi()
85 public Builder setLqi(int x) { in setLqi()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DVoicemail.java62 public static Builder createForInsertion(long timestamp, String number) { in createForInsertion()
63 return new Builder().setNumber(number).setTimestamp(timestamp); in createForInsertion()
72 public static Builder createForUpdate(long id, String sourceData) { in createForUpdate()
73 return new Builder().setId(id).setSourceData(sourceData); in createForUpdate()
82 public static class Builder { class in Voicemail
96 private Builder() { in Builder() method in Voicemail.Builder
99 public Builder setNumber(String number) { in setNumber()
104 public Builder setTimestamp(long timestamp) { in setTimestamp()
109 public Builder setPhoneAccount(PhoneAccountHandle phoneAccount) { in setPhoneAccount()
114 public Builder setId(long id) { in setId()
[all …]

12345678910>>...64