Home
last modified time | relevance | path

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

12345678910>>...79

/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DSparseRectFArrayTest.java71 assertNull(builder.build().get(-1)); in testBuilder()
72 assertNull(builder.build().get(0)); in testBuilder()
73 assertNull(builder.build().get(99)); in testBuilder()
74 assertEquals(0, builder.build().getFlags(99, 0 /* valueIfKeyNotFound */)); in testBuilder()
75 assertEquals(1, builder.build().getFlags(99, 1 /* valueIfKeyNotFound */)); in testBuilder()
76 assertEquals(testRect, builder.build().get(100)); in testBuilder()
77 assertEquals(testFlags, builder.build().getFlags(100, 0 /* valueIfKeyNotFound */)); in testBuilder()
78 assertEquals(testFlags, builder.build().getFlags(100, 1 /* valueIfKeyNotFound */)); in testBuilder()
79 assertNull(builder.build().get(101)); in testBuilder()
80 assertEquals(0, builder.build().getFlags(101, 0 /* valueIfKeyNotFound */)); in testBuilder()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/people/
DPeopleSpaceTileTest.java80 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testId()
84 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testId()
86 .build(); in testId()
89 tile = new PeopleSpaceTile.Builder("12", null, null, null).build(); in testId()
96 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).build(); in testUserName()
100 .Builder(new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps) in testUserName()
102 .build(); in testUserName()
105 tile = new PeopleSpaceTile.Builder(null, "Name 2", null, null).build(); in testUserName()
112 new ShortcutInfo.Builder(mContext, "123").build(), mLauncherApps).setUserIcon( in testUserIcon()
113 mIcon).build(); in testUserIcon()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendDialogInfoTest.java53 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons()
56 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons()
63 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitleIds()
66 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitleIds()
78 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsIgnoresTitleStringsWhenIdsSet()
88 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitleStringsWhenNoIdsSet()
96 .build(); in titleStringClearedWhenResIdSet()
105 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonTextIds()
108 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonTextIds()
120 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsIgnoresButtonStringsWhenIdsSet()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/time/
DTimeZoneCapabilitiesTest.java54 TimeZoneCapabilities one = builder1.build(); in testEquals()
55 TimeZoneCapabilities two = builder2.build(); in testEquals()
61 TimeZoneCapabilities one = builder1.build(); in testEquals()
62 TimeZoneCapabilities two = builder2.build(); in testEquals()
68 TimeZoneCapabilities one = builder1.build(); in testEquals()
69 TimeZoneCapabilities two = builder2.build(); in testEquals()
75 TimeZoneCapabilities one = builder1.build(); in testEquals()
76 TimeZoneCapabilities two = builder2.build(); in testEquals()
82 TimeZoneCapabilities one = builder1.build(); in testEquals()
83 TimeZoneCapabilities two = builder2.build(); in testEquals()
[all …]
DTimeCapabilitiesTest.java48 .build(); in testBuilder()
57 .build(); in testBuilder()
66 .build(); in testBuilder()
75 .build(); in testBuilder()
87 .build(); in userHandle_notIgnoredInEquals()
92 .build(); in userHandle_notIgnoredInEquals()
103 assertRoundTripParcelable(builder.build()); in testParcelable()
106 assertRoundTripParcelable(builder.build()); in testParcelable()
109 assertRoundTripParcelable(builder.build()); in testParcelable()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/le/
DScanFilterTest.java62 ScanFilter filter = mFilterBuilder.setDeviceName("Ped").build(); in testsetNameFilter()
65 filter = mFilterBuilder.setDeviceName("Pem").build(); in testsetNameFilter()
72 ScanFilter filter = mFilterBuilder.setDeviceAddress(DEVICE_MAC).build(); in testDeviceFilter()
75 filter = mFilterBuilder.setDeviceAddress("11:22:33:44:55:66").build(); in testDeviceFilter()
82 ParcelUuid.fromString("0000110A-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter()
86 ParcelUuid.fromString("0000110C-0000-1000-8000-00805F9B34FB")).build(); in testsetServiceUuidFilter()
92 .build(); in testsetServiceUuidFilter()
101 ScanFilter filter = mFilterBuilder.setServiceData(serviceDataUuid, setServiceData).build(); in testsetServiceDataFilter()
105 filter = mFilterBuilder.setServiceData(serviceDataUuid, emptyData).build(); in testsetServiceDataFilter()
110 filter = mFilterBuilder.setServiceData(serviceDataUuid, prefixData).build(); in testsetServiceDataFilter()
[all …]
/frameworks/base/core/tests/coretests/src/android/app/timezonedetector/
DTelephonyTimeZoneSuggestionTest.java42 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals()
49 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals()
50 TelephonyTimeZoneSuggestion two = builder2.build(); in testEquals()
58 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals()
59 TelephonyTimeZoneSuggestion three = builder3.build(); in testEquals()
68 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals()
69 TelephonyTimeZoneSuggestion two = builder2.build(); in testEquals()
77 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals()
78 TelephonyTimeZoneSuggestion two = builder2.build(); in testEquals()
84 TelephonyTimeZoneSuggestion one = builder1.build(); in testEquals()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DVibratorInfoTest.java54 VibratorInfo noCapabilities = new VibratorInfo.Builder(TEST_VIBRATOR_ID).build(); in testHasAmplitudeControl()
59 .build(); in testHasAmplitudeControl()
67 .build(); in testHasCapabilities()
74 VibratorInfo noEffects = new VibratorInfo.Builder(TEST_VIBRATOR_ID).build(); in testIsEffectSupported()
77 .build(); in testIsEffectSupported()
91 .build(); in testIsPrimitiveSupported()
98 .build(); in testIsPrimitiveSupported()
107 .build(); in testGetPrimitiveDuration()
110 assertEquals(0, new VibratorInfo.Builder(TEST_VIBRATOR_ID).build() in testGetPrimitiveDuration()
121 .build(); in testCompositionLimits()
[all …]
/frameworks/av/media/codec2/components/base/
DSimpleC2Interface.cpp49 .build()); in BaseParams()
54 .build()); in BaseParams()
67 .build()); in BaseParams()
73 .build()); in BaseParams()
78 .build()); in BaseParams()
84 .build()); in BaseParams()
89 .build()); in BaseParams()
135 .build()); in BaseParams()
141 .build()); in BaseParams()
147 .build()); in BaseParams()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchImplTest.java108 .build()); in testRewriteSchema_addType()
114 SchemaTypeConfigProto.newBuilder().setSchemaType("Foo").build(); in testRewriteSchema_addType()
130 .build()) in testRewriteSchema_addType()
131 .build()) in testRewriteSchema_addType()
139 .build()) in testRewriteSchema_addType()
140 .build(); in testRewriteSchema_addType()
142 SchemaTypeConfigProto.newBuilder().setSchemaType("RefType").build(); in testRewriteSchema_addType()
148 .build(); in testRewriteSchema_addType()
185 .build()) in testRewriteSchema_addType()
207 .build()) in testRewriteSchema_addType()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatConfigTest.java105 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testUnknownChangeEnabled()
113 .build(); in testDisabledChangeDisabled()
115 assertThat(compatConfig.isChangeEnabled(1234L, ApplicationInfoBuilder.create().build())) in testDisabledChangeDisabled()
123 .build(); in testTargetSdkChangeDisabled()
126 ApplicationInfoBuilder.create().withTargetSdk(2).build())) in testTargetSdkChangeDisabled()
134 .build(); in testTargetSdkChangeEnabled()
137 ApplicationInfoBuilder.create().withTargetSdk(3).build())).isTrue(); in testTargetSdkChangeEnabled()
144 .build(); in testDisabledOverrideTargetSdkChange()
147 ApplicationInfoBuilder.create().withTargetSdk(3).build())).isFalse(); in testDisabledOverrideTargetSdkChange()
155 .build(); in testGetDisabledChanges()
[all …]
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/
DIndentingPrintWriterBenchmark.java45 final Node manyChildren = Node.build("ManyChildren", Node.build("1"), Node.build("2"), in setUp()
46 Node.build("3"), Node.build("4"), Node.build("5"), Node.build("6"), Node.build("7"), in setUp()
47 Node.build("8"), Node.build("9"), Node.build("10")); in setUp()
49 mSimple = Node.build("RED"); in setUp()
50 mComplex = Node.build("PARENT", Node.build("RED"), Node.build("GREEN", in setUp()
51 Node.build("BLUE", manyChildren, manyChildren), manyChildren, manyChildren), in setUp()
108 public static Node build(String name, Node... children) { in build() method in IndentingPrintWriterBenchmark.Node
/frameworks/base/core/tests/coretests/src/android/app/timedetector/
DTelephonyTimeSuggestionTest.java36 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
42 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
43 TelephonyTimeSuggestion two = builder2.build(); in testEquals()
50 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
56 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
57 TelephonyTimeSuggestion two = builder2.build(); in testEquals()
66 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
67 TelephonyTimeSuggestion three = builder3.build(); in testEquals()
76 TelephonyTimeSuggestion one = builder1.build(); in testEquals()
77 TelephonyTimeSuggestion two = builder2.build(); in testEquals()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java45 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
51 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
69 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset()
73 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset()
86 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyDisallowedToUnset()
90 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToUnset()
105 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed()
109 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed()
123 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyUnsetToAllowed()
127 ZenPolicy remindersUnset = builder2.build(); in testZenPolicyApplyUnsetToAllowed()
[all …]
DNotificationTest.java77 Notification before = nb.build(); in testDoesNotStripsExtenders()
351 .build(); in testActionsDifferent_null()
353 .build(); in testActionsDifferent_null()
364 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentSame()
365 .build(); in testActionsDifferentSame()
367 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentSame()
368 .build(); in testActionsDifferentSame()
379 .addAction(new Notification.Action.Builder(icon, "TEXT 1", intent).build()) in testActionsDifferentText()
380 .build(); in testActionsDifferentText()
382 .addAction(new Notification.Action.Builder(icon, "TEXT 2", intent).build()) in testActionsDifferentText()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationRankingManagerTest.kt102 .build()) in <lambda>()
106 .build() in <lambda>()
116 .build()) in <lambda>()
120 .build() in <lambda>()
132 .build() in <lambda>()
143 .build() in <lambda>()
147 .build() in <lambda>()
158 .build() in <lambda>()
170 .build() in <lambda>()
180 .build() in <lambda>()
[all …]
DNotificationEntryTest.java89 .setNotification(n.build()) in setup()
91 .build(); in setup()
111 .setNotification(n.build()) in testIsExemptFromDndVisualSuppression_media()
112 .build(); in testIsExemptFromDndVisualSuppression_media()
130 .build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
132 modifyRanking(entry).setSuppressedVisualEffects(SUPPRESSED_EFFECT_AMBIENT).build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
136 new Notification.Builder(mContext, "").setCategory(CATEGORY_CALL).build()) in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
137 .build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
145 .build()) in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
146 .build(); in testIsNotExemptFromDndVisualSuppression_hiddenCategories()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/appsearch/external/localstorage/converter/
DGenericDocumentToProtoConverterTest.java48 .build();
53 .build();
55 SchemaTypeConfigProto.newBuilder().setSchemaType(SCHEMA_TYPE_1).build();
57 SchemaTypeConfigProto.newBuilder().setSchemaType(SCHEMA_TYPE_2).build();
78 .build(); in testDocumentProtoConvert()
126 DocumentProto documentProto = documentProtoBuilder.build(); in testDocumentProtoConvert()
148 PropertyProto.newBuilder().setName(emptyStringPropertyName).build()) in testConvertDocument_whenPropertyHasEmptyList()
149 .build(); in testConvertDocument_whenPropertyHasEmptyList()
156 .build(); in testConvertDocument_whenPropertyHasEmptyList()
161 .build(); in testConvertDocument_whenPropertyHasEmptyList()
[all …]
/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
DIndexableProcessor.java84 .build(); in process()
90 .build(); in process()
149 .build(); in process()
155 .addMethod(baseConstructorBuilder.build()) in process()
158 .build(); in process()
159 final JavaFile searchIndexableResourcesBase = JavaFile.builder(PACKAGE, baseClass).build(); in process()
165 .addMethod(mobileConstructorBuilder.build()) in process()
166 .build()) in process()
167 .build(); in process()
173 .addMethod(tvConstructorBuilder.build()) in process()
[all …]
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/
DFabricatedOverlaysTest.java82 mOverlayManager.commit(cleanUp.build()); in tearDown()
90 .build(); in testFabricatedOverlay()
95 .build()); in testFabricatedOverlay()
103 .build()); in testFabricatedOverlay()
112 .build()); in testFabricatedOverlay()
122 .build(); in testRegisterEnableAtomic()
128 .build()); in testRegisterEnableAtomic()
138 .build(); in testRegisterTwice()
144 .build()); in testRegisterTwice()
150 .build(); in testRegisterTwice()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java118 AudioAttributes.USAGE_NOTIFICATION_RINGTONE).build());
123 .build();
135 .build();
153 .build();
170 .build();
176 .build();
185 .build();
192 .build();
203 .build();
209 .build();
[all …]
/frameworks/libs/service_entitlement/tests/src/com/android/libraries/entitlement/eapaka/
DEapAkaApiTest.java125 .build(); in queryEntitlementStatus_hasAuthenticationToken()
128 CarrierConfig.builder().setServerUrl(TEST_URL).setNetwork(mMockNetwork).build(); in queryEntitlementStatus_hasAuthenticationToken()
130 ServiceEntitlementRequest.builder().setAuthenticationToken(TOKEN).build(); in queryEntitlementStatus_hasAuthenticationToken()
153 .setCookies(ImmutableList.of(COOKIE_VALUE, COOKIE_VALUE_1)).build(); in queryEntitlementStatus_noAuthenticationToken()
156 .build(); in queryEntitlementStatus_noAuthenticationToken()
159 CarrierConfig carrierConfig = CarrierConfig.builder().setServerUrl(TEST_URL).build(); in queryEntitlementStatus_noAuthenticationToken()
160 ServiceEntitlementRequest request = ServiceEntitlementRequest.builder().build(); in queryEntitlementStatus_noAuthenticationToken()
184 .build(); in queryEntitlementStatus_hasAuthenticationToken_multipleAppIds()
189 CarrierConfig.builder().setServerUrl(TEST_URL).setTimeoutInSec(70).build(); in queryEntitlementStatus_hasAuthenticationToken_multipleAppIds()
191 ServiceEntitlementRequest.builder().setAuthenticationToken(TOKEN).build(); in queryEntitlementStatus_hasAuthenticationToken_multipleAppIds()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultCrossProfileIntentFiltersUtils.java56 .build();
72 .build();
89 .build();
104 .build();
118 .build();
128 .build();
144 .build();
156 .build();
167 .build();
179 .build();
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/
DNotificationHelperTest.java70 .build();
84 .build();
94 .build();
101 .build();
109 .build();
113 .setShortcutInfo(new ShortcutInfo.Builder(mContext, SHORTCUT_ID_1).build())
116 .build();
120 .setShortcutInfo(new ShortcutInfo.Builder(mContext, SHORTCUT_ID_1).build())
123 .build();
128 .setShortcutInfo(new ShortcutInfo.Builder(mContext, SHORTCUT_ID_1).build())
[all …]
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java52 .setIpAddress(new LinkAddress("192.0.2.10/24")).build(), "ip=192.0.2.10/24"); in createStaticIpConfiguration()
62 .setDomains("android").build(), in createStaticIpConfiguration()
70 .setDomains("android").build(), in createStaticIpConfiguration()
129 .build(); in createNetworkCapabilities()
140 .build(); in createNetworkCapabilities()
153 .build(), in createNetworkCapabilities()
165 .build(), in createNetworkCapabilities()
183 .build(), in createNetworkCapabilities()
190 .build(), in createNetworkCapabilities()
197 .build(), in createNetworkCapabilities()
[all …]

12345678910>>...79