Home
last modified time | relevance | path

Searched refs:toBuilder (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DConfigFactory.java160 newLinks.add(link.toBuilder() in getLinks()
172 EventMetric.Builder metric = template.toBuilder() in addEventMetric()
192 CountMetric.Builder metric = template.toBuilder() in addCountMetric()
213 DurationMetric.Builder metric = template.toBuilder() in addDurationMetric()
234 GaugeMetric.Builder metric = template.toBuilder() in addGaugeMetric()
255 ValueMetric.Builder metric = template.toBuilder() in addValueMetric()
275 Predicate.Builder predicate = template.toBuilder() in addPredicate()
278 Predicate.Combination.Builder cb = template.getCombination().toBuilder() in addPredicate()
286 SimplePredicate.Builder sc = template.getSimplePredicate().toBuilder() in addPredicate()
302 AtomMatcher.Builder matcher = template.toBuilder() in addMatcher()
[all …]
/frameworks/base/core/jni/android/graphics/text/
DMeasuredText.cpp42 static inline minikin::MeasuredTextBuilder* toBuilder(jlong ptr) { in toBuilder() function
73 toBuilder(builderPtr)->addStyleRun(start, end, std::move(minikinPaint), isRtl); in nAddStyleRun()
79 toBuilder(builderPtr)->addReplacementRun(start, end, width, in nAddReplacementRun()
91 return toJLong(toBuilder(builderPtr)->build(textBuffer, computeHyphenation, computeLayout, in nBuildMeasuredText()
97 delete toBuilder(builderPtr); in nFreeBuilder()
/frameworks/base/core/jni/android/graphics/fonts/
DFontFamily.cpp36 static inline NativeFamilyBuilder* toBuilder(jlong ptr) { in toBuilder() function
55 toBuilder(builderPtr)->fonts.push_back(toFontWrapper(fontPtr)->font); in FontFamily_Builder_addFont()
61 std::unique_ptr<NativeFamilyBuilder> builder(toBuilder(builderPtr)); in FontFamily_Builder_build()
DFont.cpp47 static inline NativeFontBuilder* toBuilder(jlong ptr) { in toBuilder() function
132 toBuilder(builderPtr)->axes.emplace_back(static_cast<minikin::AxisTag>(tag), value); in Font_Builder_addAxis()
139 std::unique_ptr<NativeFontBuilder> builder(toBuilder(builderPtr)); in Font_Builder_build()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DLazyStringEndToEndTest.java99 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed()
105 assertSame(repeated0, proto.toBuilder().getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed()
106 assertSame(repeated1, proto.toBuilder().getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed()
DNestedBuildersTest.java176 Vehicle vehicle3 = vehicle1.toBuilder().build(); in testMerge()
DAbstractMessageTest.java98 public Builder toBuilder() { in toBuilder() method in AbstractMessageTest.AbstractMessageWrapper
99 return new Builder(wrappedMessage.toBuilder()); in toBuilder()
DDynamicMessageTest.java260 DynamicMessage derived = message.toBuilder().build(); in testToBuilder()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DLazyStringEndToEndTest.java123 assertSame(optional, proto.toBuilder().getOptionalStringBytes()); in testNoStringCachingIfOnlyBytesAccessed()
129 assertSame(repeated0, proto.toBuilder().getRepeatedStringBytes(0)); in testNoStringCachingIfOnlyBytesAccessed()
130 assertSame(repeated1, proto.toBuilder().getRepeatedStringBytes(1)); in testNoStringCachingIfOnlyBytesAccessed()
DMapForProto2LiteTest.java162 mapBuilder = map.toBuilder(); in testUpdateMapValues()
308 builder = message.toBuilder(); in testGettersAndSetters()
313 builder = message.toBuilder(); in testGettersAndSetters()
318 builder = message.toBuilder(); in testGettersAndSetters()
383 builder = message.toBuilder(); in testSerializeAndParse()
390 builder = message.toBuilder(); in testSerializeAndParse()
596 builder = message.toBuilder().putInt32ToInt32Field(4, 44); in testCount()
DMapTest.java236 usingMutableMapBuilder = usingMutableMap.toBuilder(); in testUpdateMapValues()
241 usingAccessorsBuilder = usingAccessors.toBuilder(); in testUpdateMapValues()
440 builder = message.toBuilder(); in testGettersAndSetters()
445 builder = message.toBuilder(); in testGettersAndSetters()
450 builder = message.toBuilder(); in testGettersAndSetters()
550 builder = message.toBuilder(); in testSerializeAndParse()
557 builder = message.toBuilder(); in testSerializeAndParse()
861 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testReflectionApi()
953 builder = message.toBuilder(); in testUnknownEnumValues()
989 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testUnknownEnumValuesInReflectionApi()
[all …]
DMapForProto2Test.java234 usingMutableMapBuilder = usingMutableMap.toBuilder(); in testUpdateMapValues()
239 usingAccessorsBuilder = usingAccessors.toBuilder(); in testUpdateMapValues()
438 builder = message.toBuilder(); in testGettersAndSetters()
443 builder = message.toBuilder(); in testGettersAndSetters()
448 builder = message.toBuilder(); in testGettersAndSetters()
515 builder = message.toBuilder(); in testSerializeAndParse()
522 builder = message.toBuilder(); in testSerializeAndParse()
749 Message.Builder mapEntryBuilder = mapEntry.toBuilder(); in testReflectionApi()
928 builder = message.toBuilder().putInt32ToInt32Field(4, 44); in testCount()
DLiteEqualsAndHashTest.java103 Foo fooWithValueAndExtension = fooWithOnlyValue.toBuilder() in testEqualsAndHashCodeWithUnknownFields()
DLazyFieldTest.java112 TestAllTypes.Builder builder = TestUtil.getAllSet().toBuilder(); in changeValue()
DAnyTest.java66 TestAny.Builder containerBuilder = container.toBuilder(); in testAnyGeneratedApi()
DNestedBuildersTest.java175 Vehicle vehicle3 = vehicle1.toBuilder().build(); in testMerge()
DAbstractMessageTest.java105 public Builder toBuilder() { in toBuilder() method in AbstractMessageTest.AbstractMessageWrapper
106 return new Builder(wrappedMessage.toBuilder()); in toBuilder()
DLiteTest.java126 TestAllExtensionsLite message2 = message.toBuilder().build(); in testLiteExtensions()
1412 extendableMessageBuilder = extendableMessage.toBuilder(); in testSanityCopyOnWrite()
1639 one = one.toBuilder().mergeFrom(one).build(); in testMergeFrom_sanity()
1640 two = two.toBuilder().mergeFrom(bytes).build(); in testMergeFrom_sanity()
1661 TestAllTypesLite two = one.toBuilder().mergeFrom(one).mergeFrom(bytes).build(); in testEquals_notEqual()
2196 one.toBuilder().mergeFrom(two).build(), in testEquals_sanity()
2197 two.toBuilder().mergeFrom(two.toByteArray()).build()); in testEquals_sanity()
2205 Foo fooWithValueAndExtension = fooWithOnlyValue.toBuilder() in testEqualsAndHashCodeWithUnknownFields()
2223 Foo fooWithValueAndExtension = fooWithOnlyValue.toBuilder() in testEqualsAndHashCodeWithExtensions()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskTreeTest.java220 NestedTestAllTypes clearedSource = source.toBuilder().clearPayload().build(); in testMerge()
242 builder = source.toBuilder(); in testMerge()
245 builder = source.toBuilder(); in testMerge()
254 builder = source.toBuilder(); in testMerge()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DLazyFieldLite.java345 setValue(value.toBuilder().mergeFrom(input, extensionRegistry).build()); in mergeFrom()
355 return value.toBuilder().mergeFrom(otherBytes, extensionRegistry).build(); in mergeValueAndBytes()
DMessageLite.java144 Builder toBuilder(); in toBuilder() method
DMessage.java105 Builder toBuilder(); in toBuilder() method
DMapEntryLite.java127 MessageLite.Builder subBuilder = ((MessageLite) value).toBuilder(); in parseField()
/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java126 this(context, name, version, 0, openParams.toBuilder()); in SQLiteOpenHelper()
383 params = params.toBuilder().addOpenFlags(SQLiteDatabase.OPEN_READONLY).build(); in getDatabaseLocked()
/frameworks/base/core/java/android/app/
DPerson.java61 public Builder toBuilder() { in toBuilder() method in Person

12