Home
last modified time | relevance | path

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

12345678910>>...55

/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(TEMP_RECT, builder.build().get(100)); in testBuilder()
77 assertEquals(TEMP_FLAGS, builder.build().getFlags(100, 0 /* valueIfKeyNotFound */)); in testBuilder()
78 assertEquals(TEMP_FLAGS, 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/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DLiteTest.java96 .build(); in testLite()
120 TestAllTypesLite.NestedMessage.newBuilder().setBb(7).build()) in testLiteExtensions()
121 .build(); in testLiteExtensions()
126 TestAllExtensionsLite message2 = message.toBuilder().build(); in testLiteExtensions()
172 TestAllTypesLite message = builder.build(); in testSanityCopyOnWrite()
177 messageAfterBuild = builder.build(); in testSanityCopyOnWrite()
184 message = builder.build(); in testSanityCopyOnWrite()
188 messageAfterBuild = builder.build(); in testSanityCopyOnWrite()
197 message = builder.build(); in testSanityCopyOnWrite()
201 messageAfterBuild = builder.build(); in testSanityCopyOnWrite()
[all …]
DLazyMessageLiteTest.java64 .build(); in testSetValues()
68 .build(); in testSetValues()
74 .build(); in testSetValues()
99 .build(); in testSetRepeatedValues()
113 .build(); in testAddAll()
119 .build(); in testAddAll()
128 .build(); in testGetDefaultValues()
150 .build(); in testClearValues()
154 assertEquals(0, outerBuilder.build().getNum()); in testClearValues()
160 assertEquals(100, outerBuilder.build().getNum()); in testClearValues()
[all …]
DLiteEqualsAndHashTest.java64 .build(); in testEquals()
68 .build(); in testEquals()
72 .build(); in testEquals()
83 Bar bar = Bar.newBuilder().setName("bar").build(); in testEquals()
84 BarPrime barPrime = BarPrime.newBuilder().setName("bar").build(); in testEquals()
90 TestOneofEquals message1 = builder.build(); in testOneofEquals()
94 TestOneofEquals message2 = builder.build(); in testOneofEquals()
101 .build(); in testEqualsAndHashCodeWithUnknownFields()
107 .build()) in testEqualsAndHashCodeWithUnknownFields()
108 .build(); in testEqualsAndHashCodeWithUnknownFields()
DDynamicMessageTest.java65 Message message = builder.build(); in testDynamicMessageAccessors()
72 Message firstMessage = builder.build(); in testSettersAfterBuild()
74 builder.build(); in testSettersAfterBuild()
79 Message message = builder.build(); in testSettersAfterBuild()
83 message = builder.build(); in testSettersAfterBuild()
93 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testUnknownFields()
94 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build()) in testUnknownFields()
95 .build()); in testUnknownFields()
96 Message message = builder.build(); in testUnknownFields()
122 Message message = builder.build(); in testDynamicMessageExtensionAccessors()
[all …]
DUnknownFieldSetTest.java75 UnknownFieldSet.Field.newBuilder().addVarint(1).build(); in getBizarroData()
77 UnknownFieldSet.Field.newBuilder().addFixed32(1).build(); in getBizarroData()
90 return bizarroFields.build().toByteString(); in getBizarroData()
160 TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build(); in testCopyFrom()
172 .addVarint(2).build()) in testMergeFrom()
175 .addVarint(4).build()) in testMergeFrom()
176 .build()) in testMergeFrom()
177 .build(); in testMergeFrom()
184 .addVarint(1).build()) in testMergeFrom()
187 .addVarint(3).build()) in testMergeFrom()
[all …]
DMapTest.java76 1, MessageValue.newBuilder().setValue(11).build()); in setMapValuesUsingMutableMap()
78 2, MessageValue.newBuilder().setValue(22).build()); in setMapValuesUsingMutableMap()
80 3, MessageValue.newBuilder().setValue(33).build()); in setMapValuesUsingMutableMap()
105 .putInt32ToMessageField(1, MessageValue.newBuilder().setValue(11).build()) in setMapValuesUsingAccessors()
106 .putInt32ToMessageField(2, MessageValue.newBuilder().setValue(22).build()) in setMapValuesUsingAccessors()
107 .putInt32ToMessageField(3, MessageValue.newBuilder().setValue(33).build()) in setMapValuesUsingAccessors()
117 TestMap usingMutableMap = usingMutableMapBuilder.build(); in testSetMapValues()
122 TestMap usingAccessors = usingAccessorsBuilder.build(); in testSetMapValues()
187 1, MessageValue.newBuilder().setValue(111).build()); in updateMapValuesUsingMutableMap()
190 4, MessageValue.newBuilder().setValue(44).build()); in updateMapValuesUsingMutableMap()
[all …]
DMapForProto2Test.java74 1, MessageValue.newBuilder().setValue(11).build()); in setMapValuesUsingMutableMap()
76 2, MessageValue.newBuilder().setValue(22).build()); in setMapValuesUsingMutableMap()
78 3, MessageValue.newBuilder().setValue(33).build()); in setMapValuesUsingMutableMap()
103 .putInt32ToMessageField(1, MessageValue.newBuilder().setValue(11).build()) in setMapValuesUsingAccessors()
104 .putInt32ToMessageField(2, MessageValue.newBuilder().setValue(22).build()) in setMapValuesUsingAccessors()
105 .putInt32ToMessageField(3, MessageValue.newBuilder().setValue(33).build()) in setMapValuesUsingAccessors()
115 TestMap usingMutableMap = usingMutableMapBuilder.build(); in testSetMapValues()
120 TestMap usingAccessors = usingAccessorsBuilder.build(); in testSetMapValues()
185 1, MessageValue.newBuilder().setValue(111).build()); in updateMapValuesUsingMutableMap()
188 4, MessageValue.newBuilder().setValue(44).build()); in updateMapValuesUsingMutableMap()
[all …]
DTextFormatParseInfoTreeTest.java69 TextFormatParseInfoTree tree = rootBuilder.build(); in testBuildEmptyParseTree()
75 TextFormatParseInfoTree root = rootBuilder.build(); in testGetLocationReturnsSingleLocation()
81 assertTrue(rootBuilder.build().getLocations(OPTIONAL_INT32).isEmpty()); in testGetLocationsReturnsNoParseLocationsForUnknownField()
83 TextFormatParseInfoTree root = rootBuilder.build(); in testGetLocationsReturnsNoParseLocationsForUnknownField()
90 TextFormatParseInfoTree root = rootBuilder.build(); in testGetLocationThrowsIllegalArgumentExceptionForUnknownField()
100 TextFormatParseInfoTree root = rootBuilder.setLocation(OPTIONAL_INT32, LOC0).build(); in testGetLocationThrowsIllegalArgumentExceptionForInvalidIndex()
118 TextFormatParseInfoTree root = rootBuilder.build(); in testGetLocationsReturnsMultipleLocations()
126 TextFormatParseInfoTree root = rootBuilder.build(); in testGetNestedTreeThrowsIllegalArgumentExceptionForUnknownField()
137 TextFormatParseInfoTree root = rootBuilder.build(); in testGetNestedTreesReturnsNoParseInfoTreesForUnknownField()
144 TextFormatParseInfoTree root = rootBuilder.build(); in testGetNestedTreeThrowsIllegalArgumentExceptionForInvalidIndex()
[all …]
DRepeatedFieldBuilderV3Test.java54 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build()); in testBasicUse()
55 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); in testBasicUse()
59 List<TestAllTypes> list = builder.build(); in testBasicUse()
66 List<TestAllTypes> list2 = builder.build(); in testBasicUse()
75 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(0).build()); in testGoingBackAndForth()
76 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); in testGoingBackAndForth()
81 List<TestAllTypes> list = builder.build(); in testGoingBackAndForth()
91 list = builder.build(); in testGoingBackAndForth()
104 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(1).build()); in testVariousMethods()
105 builder.addMessage(TestAllTypes.newBuilder().setOptionalInt32(2).build()); in testVariousMethods()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendDialogInfoTest.java49 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons()
52 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesIcons()
59 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitle()
62 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesTitle()
69 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonText()
72 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesButtonText()
79 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesMessageIds()
82 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesMessageIds()
94 assertEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsIgnoresMessageStringsWhenIdsSet()
104 assertNotEquals(dialogBuilder1.build(), dialogBuilder2.build()); in equalsComparesMessageStringsWhenNoIdsSet()
[all …]
/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/av/media/codec2/components/base/
DSimpleC2Interface.cpp43 .build()); in BaseParams()
56 .build()); in BaseParams()
62 .build()); in BaseParams()
67 .build()); in BaseParams()
73 .build()); in BaseParams()
78 .build()); in BaseParams()
122 .build()); in BaseParams()
128 .build()); in BaseParams()
134 .build()); in BaseParams()
140 .build()); in BaseParams()
[all …]
/frameworks/base/core/tests/benchmarks/src/com/android/internal/util/
DIndentingPrintWriterBenchmark.java42 final Node manyChildren = Node.build("ManyChildren", Node.build("1"), Node.build("2"), in setUp()
43 Node.build("3"), Node.build("4"), Node.build("5"), Node.build("6"), Node.build("7"), in setUp()
44 Node.build("8"), Node.build("9"), Node.build("10")); in setUp()
46 mSimple = Node.build("RED"); in setUp()
47 mComplex = Node.build("PARENT", Node.build("RED"), Node.build("GREEN", in setUp()
48 Node.build("BLUE", manyChildren, manyChildren), manyChildren, manyChildren), in setUp()
105 public static Node build(String name, Node... children) { in build() method in IndentingPrintWriterBenchmark.Node
/frameworks/opt/gamesdk/samples/tuningfork/tftestapp/
Dprotobuf_size_comparisons.txt6 -rwxr-xr-x 1 willosborn primarygroup 30696 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
7 -rwxr-xr-x 1 willosborn primarygroup 1161536 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
8 -rwxr-xr-x 1 willosborn primarygroup 190592 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
9 -rwxr-xr-x 1 willosborn primarygroup 43136 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
10 -rwxr-xr-x 1 willosborn primarygroup 18088 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
11 -rwxr-xr-x 1 willosborn primarygroup 747448 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
12 -rwxr-xr-x 1 willosborn primarygroup 141076 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
13 -rwxr-xr-x 1 willosborn primarygroup 30444 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
14 -rwxr-xr-x 1 willosborn primarygroup 26872 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
15 -rwxr-xr-x 1 willosborn primarygroup 1227344 Oct 23 14:17 ./app/build/intermediates/cmake/release/o…
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DDebugTest.java46 CommonTransitions.getOpenAppCold(testApp, uiDevice).recordAllRuns().build().run(); in openAppCold()
54 CommonTransitions.openAppWarm(testApp, uiDevice).recordAllRuns().build().run(); in openAppWarm()
63 Surface.ROTATION_270).recordAllRuns().build().run(); in changeOrientationFromNaturalToLeft()
71 CommonTransitions.closeAppWithBackKey(testApp, uiDevice).recordAllRuns().build().run(); in closeAppWithBackKey()
79 CommonTransitions.closeAppWithHomeKey(testApp, uiDevice).recordAllRuns().build().run(); in closeAppWithHomeKey()
88 .build().run(); in openAppToSplitScreen()
98 .build().run(); in splitScreenToLauncher()
109 new Rational(2, 3)).includeJankyRuns().recordEachRun().build().run(); in resizeSplitScreen()
120 .build().run(); in editTextSetFocus()
129 .build().run(); in editTextLoseFocusToHome()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenPolicyTest.java41 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
47 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToDisallowed()
65 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyAllowedToUnset()
69 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyAllowedToUnset()
82 ZenPolicy remindersUnset = builder.build(); in testZenPolicyApplyDisallowedToUnset()
86 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToUnset()
101 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed()
105 ZenPolicy remindersDisallowed = builder.build(); in testZenPolicyApplyDisallowedToAllowed()
119 ZenPolicy remindersAllowed = builder.build(); in testZenPolicyApplyUnsetToAllowed()
123 ZenPolicy remindersUnset = builder2.build(); in testZenPolicyApplyUnsetToAllowed()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DDynamicMessageTest.java62 Message message = builder.build(); in testDynamicMessageAccessors()
69 Message firstMessage = builder.build(); in testSettersAfterBuild()
71 builder.build(); in testSettersAfterBuild()
76 Message message = builder.build(); in testSettersAfterBuild()
80 message = builder.build(); in testSettersAfterBuild()
90 .addField(1, UnknownFieldSet.Field.newBuilder().addVarint(1).build()) in testUnknownFields()
91 .addField(2, UnknownFieldSet.Field.newBuilder().addFixed32(1).build()) in testUnknownFields()
92 .build()); in testUnknownFields()
93 Message message = builder.build(); in testUnknownFields()
119 Message message = builder.build(); in testDynamicMessageExtensionAccessors()
[all …]
DUnknownFieldSetTest.java72 UnknownFieldSet.Field.newBuilder().addVarint(1).build(); in getBizarroData()
74 UnknownFieldSet.Field.newBuilder().addFixed32(1).build(); in getBizarroData()
87 return bizarroFields.build().toByteString(); in getBizarroData()
157 TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build(); in testCopyFrom()
169 .addVarint(2).build()) in testMergeFrom()
172 .addVarint(4).build()) in testMergeFrom()
173 .build()) in testMergeFrom()
174 .build(); in testMergeFrom()
181 .addVarint(1).build()) in testMergeFrom()
184 .addVarint(3).build()) in testMergeFrom()
[all …]
DTextFormatTest.java163 .build()) in makeUnknownFieldSet()
164 .build()) in makeUnknownFieldSet()
165 .build()) in makeUnknownFieldSet()
171 .build()) in makeUnknownFieldSet()
177 .build()) in makeUnknownFieldSet()
178 .build(); in makeUnknownFieldSet()
187 .build(); in testPrintUnknownFields()
215 final Object value = NestedMessage.newBuilder().setBb(42).build(); in testPrintField()
278 .build(); in testPrintExotic()
288 TestMessageSetExtension1.newBuilder().setI(123).build()) in testPrintMessageSet()
[all …]
/frameworks/base/packages/SettingsLib/search/processor-src/com/android/settingslib/search/
DIndexableProcessor.java83 .build(); in process()
89 .build(); in process()
142 .build(); in process()
148 .addMethod(baseConstructorBuilder.build()) in process()
151 .build(); in process()
152 final JavaFile searchIndexableResourcesBase = JavaFile.builder(PACKAGE, baseClass).build(); in process()
158 .addMethod(mobileConstructorBuilder.build()) in process()
159 .build()) in process()
160 .build(); in process()
166 .addMethod(tvConstructorBuilder.build()) in process()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java102 .build(); in testMerge()
107 .build(); in testMerge()
126 assertEquals(expected.build(), builder.build()); in testMerge()
134 assertEquals(expected.build(), builder.build()); in testMerge()
140 assertEquals(expected.build(), builder.build()); in testMerge()
148 assertEquals(expected.build(), builder.build()); in testMerge()
156 assertEquals(expected.build(), builder.build()); in testMerge()
167 assertEquals(expected.build(), builder.build()); in testMerge()
175 assertEquals(expected.build(), builder.build()); in testMerge()
186 assertEquals(expected.build(), builder.build()); in testMerge()
[all …]
DJsonFormatTest.java136 Message parsedMessage = builder.build(); in assertRoundTripEquals()
154 TestAllTypes message = builder.build(); in testAllFields()
210 .build(); in testUnknownEnumValues()
222 TestMap mapMessage = mapBuilder.build(); in testUnknownEnumValues()
243 .build(); in testSpecialFloatValues()
268 TestAllTypes message = builder.build(); in testParserAcceptStringForNumbericField()
415 TestAllTypes message = builder.build(); in testParserAcceptNull()
439 TestOneof message = builder.build(); in testNullInOneof()
517 builder.putInt32ToMessageMap(8, NestedMessage.newBuilder().setValue(1234).build()); in testMapFields()
519 TestMap message = builder.build(); in testMapFields()
[all …]
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java123 AudioAttributes.USAGE_NOTIFICATION_RINGTONE).build());
128 .build();
140 .build();
158 .build();
175 .build();
181 .build();
189 .build();
196 .build();
207 .build();
213 .build();
[all …]
/frameworks/opt/net/ethernet/tests/java/com/android/server/ethernet/
DEthernetTrackerTest.java50 new StaticIpConfigBuilder().setIp("192.0.2.10/24").build(), in createStaticIpConfiguration()
60 .build(), in createStaticIpConfiguration()
70 .build(), in createStaticIpConfiguration()
131 StaticIpConfiguration build() { in build() method in EthernetTrackerTest.StaticIpConfigBuilder
148 .build(); in createNetworkCapabilities()
159 .build(); in createNetworkCapabilities()
172 .build(), in createNetworkCapabilities()
184 .build(), in createNetworkCapabilities()
203 .build(), in createNetworkCapabilities()
211 .build(), in createNetworkCapabilities()
[all …]

12345678910>>...55