/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | GeneratedMessageTest.java | 68 TestAllTypes.newBuilder().getDefaultInstanceForType()); in testDefaultInstance() 72 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testAccessors() 79 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testDoubleBuildError() 90 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testClearAfterBuildError() 101 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testSettersRejectNull() 167 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testRepeatedSetters() 175 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testRepeatedSettersRejectNull() 196 TestAllTypes.NestedMessage.newBuilder().setBb(218).build()); in testRepeatedSettersRejectNull() 198 TestAllTypes.NestedMessage.newBuilder().setBb(456).build()); in testRepeatedSettersRejectNull() 224 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testRepeatedAppend() [all …]
|
D | UnknownFieldSetTest.java | 68 UnknownFieldSet.Builder bizarroFields = UnknownFieldSet.newBuilder(); in getBizarroData() 71 UnknownFieldSet.Field.newBuilder().addVarint(1).build(); in getBizarroData() 73 UnknownFieldSet.Field.newBuilder().addFixed32(1).build(); in getBizarroData() 156 TestEmptyMessage.newBuilder().mergeFrom(emptyMessage).build(); in testCopyFrom() 163 TestEmptyMessage.newBuilder() in testMergeFrom() 165 UnknownFieldSet.newBuilder() in testMergeFrom() 167 UnknownFieldSet.Field.newBuilder() in testMergeFrom() 170 UnknownFieldSet.Field.newBuilder() in testMergeFrom() 175 TestEmptyMessage.newBuilder() in testMergeFrom() 177 UnknownFieldSet.newBuilder() in testMergeFrom() [all …]
|
D | MessageTest.java | 52 TestAllTypes.newBuilder() 60 TestAllTypes.newBuilder() 63 .setOptionalForeignMessage(ForeignMessage.newBuilder().setC(3).build()) 79 TestAllTypes.newBuilder(MERGE_DEST) in testMergeFrom() 92 TestAllTypes.newBuilder(MERGE_DEST) in testMergeFromDynamic() 93 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testMergeFromDynamic() 102 DynamicMessage.newBuilder(MERGE_DEST) in testDynamicMergeFrom() 103 .mergeFrom(DynamicMessage.newBuilder(MERGE_SOURCE).build()) in testDynamicMergeFrom() 115 TestRequired.newBuilder().setA(1).setB(2).setC(3).build(); 118 TestRequired.Builder builder = TestRequired.newBuilder(); in testRequired() [all …]
|
D | DynamicMessageTest.java | 58 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors() 66 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDoubleBuildError() 78 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testClearAfterBuildError() 90 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageSettersRejectNull() 99 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionAccessors() 107 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionSettersRejectNull() 113 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSetters() 122 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSettersRejectNull() 130 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()).build()); in testDynamicMessageDefaults() 137 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageSerializedSize() [all …]
|
D | TextFormatTest.java | 140 TestEmptyMessage.newBuilder() in testPrintUnknownFields() 142 UnknownFieldSet.newBuilder() in testPrintUnknownFields() 144 UnknownFieldSet.Field.newBuilder() in testPrintUnknownFields() 150 UnknownFieldSet.newBuilder() in testPrintUnknownFields() 152 UnknownFieldSet.Field.newBuilder() in testPrintUnknownFields() 158 UnknownFieldSet.Field.newBuilder() in testPrintUnknownFields() 164 UnknownFieldSet.Field.newBuilder() in testPrintUnknownFields() 198 final Object value = NestedMessage.newBuilder().setBb(42).build(); in testPrintField() 228 Message message = TestAllTypes.newBuilder() in testPrintExotic() 268 TestMessageSet.newBuilder() in testPrintMessageSet() [all …]
|
D | AbstractMessageTest.java | 185 TestAllTypes.newBuilder(TestUtil.getAllSet())) in testClear() 192 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder()) in testCopy() 217 new AbstractMessageWrapper.Builder(TestAllTypes.newBuilder()); in testParsing() 236 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder()); in testPackedParsing() 255 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder()); in testParsePackedToUnpacked() 264 new AbstractMessageWrapper.Builder(TestPackedTypes.newBuilder()); in testParseUnpackedToPacked() 272 new AbstractMessageWrapper.Builder(TestUnpackedTypes.newBuilder()); in testUnpackedParsing() 282 TestOptimizedForSize.newBuilder().setI(1).build(); in testOptimizedForSize() 293 TestRequired.newBuilder().setA(1).setB(2).setC(3).build(); 296 TestRequired.Builder builder = TestRequired.newBuilder(); in testIsInitialized() [all …]
|
D | WireFormatTest.java | 263 TestFieldOrderings.newBuilder() in testInterleavedFieldsAndExtensions() 274 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testInterleavedFieldsAndExtensions() 295 TestFieldOrderings.newBuilder() in testParseMultipleExtensionRanges() 312 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testParseMultipleExtensionRangesDynamic() 334 TestMessageSet.newBuilder() in testSerializeMessageSet() 337 TestMessageSetExtension1.newBuilder().setI(123).build()) in testSerializeMessageSet() 340 TestMessageSetExtension2.newBuilder().setStr("foo").build()) in testSerializeMessageSet() 342 UnknownFieldSet.newBuilder() in testSerializeMessageSet() 344 UnknownFieldSet.Field.newBuilder() in testSerializeMessageSet() 382 RawMessageSet.newBuilder() in testParseMessageSet() [all …]
|
D | LiteTest.java | 66 TestAllTypesLite.newBuilder() in testLite() 70 TestAllTypesLite.NestedMessage.newBuilder().setBb(7)) in testLite() 89 TestAllExtensionsLite.newBuilder() in testLiteExtensions() 95 TestAllTypesLite.NestedMessage.newBuilder().setBb(7).build()) in testLiteExtensions()
|
D | ServiceTest.java | 79 FooRequest fooRequest = FooRequest.newBuilder().build(); in testCallMethod() 80 BarRequest barRequest = BarRequest.newBuilder().build(); in testCallMethod() 114 FooRequest fooRequest = FooRequest.newBuilder().build(); in testStub() 115 BarRequest barRequest = BarRequest.newBuilder().build(); in testStub() 142 FooRequest fooRequest = FooRequest.newBuilder().build(); in testBlockingStub() 143 BarRequest barRequest = BarRequest.newBuilder().build(); in testBlockingStub() 149 FooResponse fooResponse = FooResponse.newBuilder().build(); in testBlockingStub() 150 BarResponse barResponse = BarResponse.newBuilder().build(); in testBlockingStub() 231 UnittestNoGenericServices.TestMessage.newBuilder() in testNoGenericServices()
|
D | CodedInputStreamTest.java | 301 UnknownFieldSet.Builder unknownFields = UnknownFieldSet.newBuilder(); in testSkipWholeMessage() 362 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in testReadHugeBlob() 376 TestAllTypes message3 = TestAllTypes.newBuilder(message2) in testReadHugeBlob() 405 return TestRecursiveMessage.newBuilder().setI(5).build(); in makeRecursiveMessage() 407 return TestRecursiveMessage.newBuilder() in makeRecursiveMessage()
|
D | TestUtil.java | 266 TestAllTypes.Builder builder = TestAllTypes.newBuilder(); in getAllSet() 276 TestAllExtensions.Builder builder = TestAllExtensions.newBuilder(); in getAllExtensionsSet() 282 TestAllExtensionsLite.Builder builder = TestAllExtensionsLite.newBuilder(); in getAllLiteExtensionsSet() 288 TestPackedTypes.Builder builder = TestPackedTypes.newBuilder(); in getPackedSet() 294 TestUnpackedTypes.Builder builder = TestUnpackedTypes.newBuilder(); in getUnpackedSet() 300 TestPackedExtensions.Builder builder = TestPackedExtensions.newBuilder(); in getPackedExtensionsSet() 307 TestPackedExtensionsLite.newBuilder(); in getLitePackedExtensionsSet() 334 TestAllTypes.OptionalGroup.newBuilder().setA(117).build()); in setAllFields() 336 TestAllTypes.NestedMessage.newBuilder().setBb(118).build()); in setAllFields() 338 ForeignMessage.newBuilder().setC(119).build()); in setAllFields() [all …]
|
D | DescriptorsTest.java | 433 FileDescriptorProto fileDescriptorProto = FileDescriptorProto.newBuilder() in testDescriptorValidatorException() 435 .addMessageType(DescriptorProto.newBuilder() in testDescriptorValidatorException() 437 .addField(FieldDescriptorProto.newBuilder() in testDescriptorValidatorException()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheEvictionTest.java | 46 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testEviction_setMaxSegmentSize() 56 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testEviction_setMaxSegmentWeight() 66 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxSizeOneSegment() 81 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxWeightOneSegment() 98 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxSize() 117 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_maxWeight() 137 CacheBuilder.newBuilder().maximumSize(MAX_SIZE).build(loader); in testUpdateRecency_onGet() 149 final LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testUpdateRecency_onInvalidate() 166 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_lru() 198 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testEviction_weightedLru() [all …]
|
D | NullCacheTest.java | 44 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet() 61 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet_expireAfterWrite() 78 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet_expireAfterAccess() 94 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testGet_computeNull() 110 LoadingCache<Object, Object> map = CacheBuilder.newBuilder() in testGet_runtimeException()
|
D | CacheBuilderTest.java | 59 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testNewBuilder() 86 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testInitialCapacity_small() 100 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testInitialCapacity_smallest() 114 CacheBuilder.newBuilder().initialCapacity(Integer.MAX_VALUE); in testInitialCapacity_large() 138 LoadingCache<?, ?> cache = CacheBuilder.newBuilder() in testConcurrencyLevel_small() 146 CacheBuilder.newBuilder().concurrencyLevel(Integer.MAX_VALUE); in testConcurrencyLevel_large() 276 CacheBuilder.newBuilder() in testTimeToLive_small() 303 CacheBuilder.newBuilder() in testTimeToIdle_small() 322 CacheBuilder.newBuilder() in testTimeToIdleAndToLive() 406 final LoadingCache<String, String> cache = CacheBuilder.newBuilder() in testRemovalNotification_clear() [all …]
|
D | CacheExpirationTest.java | 53 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiration_expireAfterWrite() 65 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiration_expireAfterAccess() 102 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiringGet_expireAfterWrite() 114 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testExpiringGet_expireAfterAccess() 195 LoadingCache<Integer, AtomicInteger> cache = CacheBuilder.newBuilder() in testRemovalListener_expireAfterWrite() 216 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testRemovalScheduler_expireAfterWrite() 228 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testRemovalScheduler_expireAfterAccess() 240 LoadingCache<String, Integer> cache = CacheBuilder.newBuilder() in testRemovalScheduler_expireAfterBoth() 253 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpirationOrder_access() 305 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testExpirationOrder_write() [all …]
|
D | CacheLoadingTest.java | 100 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testLoad() 173 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testReload() 220 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testRefresh() 279 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder() in testRefresh_getIfPresent() 323 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testBulkLoad_default() 370 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_loadAll() 432 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_extra() 467 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_clobber() 505 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_clobberNullValue() 543 LoadingCache<Object, Object> cache = CacheBuilder.newBuilder().build(loader); in testBulkLoad_clobberNullKey() [all …]
|
D | CacheManualTest.java | 30 Cache<Object, Object> cache = CacheBuilder.newBuilder().build(); in testGetIfPresent() 106 Cache<Integer, Integer> cache = CacheBuilder.newBuilder().build(); in testGetAllPresent()
|
D | CacheRefreshTest.java | 34 LoadingCache<Integer, Integer> cache = CacheBuilder.newBuilder() in testAutoRefresh()
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | DynamicMessage.java | 75 return newBuilder(type).mergeFrom(input).buildParsed(); in parseFrom() 84 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed(); in parseFrom() 90 return newBuilder(type).mergeFrom(data).buildParsed(); in parseFrom() 97 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed(); in parseFrom() 103 return newBuilder(type).mergeFrom(data).buildParsed(); in parseFrom() 110 return newBuilder(type).mergeFrom(data, extensionRegistry).buildParsed(); in parseFrom() 116 return newBuilder(type).mergeFrom(input).buildParsed(); in parseFrom() 123 return newBuilder(type).mergeFrom(input, extensionRegistry).buildParsed(); in parseFrom() 127 public static Builder newBuilder(Descriptor type) { in newBuilder() method in DynamicMessage 135 public static Builder newBuilder(Message prototype) { in newBuilder() method in DynamicMessage [all …]
|
D | UnknownFieldSet.java | 63 public static Builder newBuilder() { in newBuilder() method in UnknownFieldSet 71 public static Builder newBuilder(final UnknownFieldSet copyFrom) { in newBuilder() method in UnknownFieldSet 72 return newBuilder().mergeFrom(copyFrom); in newBuilder() 239 return newBuilder().mergeFrom(input).build(); in parseFrom() 245 return newBuilder().mergeFrom(data).build(); in parseFrom() 251 return newBuilder().mergeFrom(data).build(); in parseFrom() 257 return newBuilder().mergeFrom(input).build(); in parseFrom() 261 return newBuilder(); in newBuilderForType() 265 return newBuilder().mergeFrom(this); in toBuilder() 315 lastField = Field.newBuilder(); in getFieldBuilder() [all …]
|
D | GeneratedMessage.java | 186 return internalGetFieldAccessorTable().getField(field).newBuilder(); in newBuilderForField() 252 UnknownFieldSet.newBuilder(result.unknownFields) in mergeUnknownFields() 1038 Message.Builder newBuilder(); in newBuilder() method 1095 public Message.Builder newBuilder() { in newBuilder() method in GeneratedMessage.FieldAccessorTable.SingularFieldAccessor 1165 public Message.Builder newBuilder() { in newBuilder() method in GeneratedMessage.FieldAccessorTable.RepeatedFieldAccessor 1277 public Message.Builder newBuilder() { in newBuilder() method in GeneratedMessage.FieldAccessorTable.SingularMessageFieldAccessor 1318 public Message.Builder newBuilder() { in newBuilder() method in GeneratedMessage.FieldAccessorTable.RepeatedMessageFieldAccessor
|
D | AbstractMessage.java | 253 UnknownFieldSet.newBuilder(getUnknownFields()); in mergeFrom() 498 UnknownFieldSet.Field.newBuilder() in mergeMessageSetExtensionFromCodedStream() 513 UnknownFieldSet.Field.newBuilder() in mergeMessageSetExtensionFromCodedStream() 538 UnknownFieldSet.newBuilder(getUnknownFields()) in mergeUnknownFields()
|
/external/protobuf/examples/ |
D | AddPerson.java | 17 Person.Builder person = Person.newBuilder(); in PromptForAddress() 39 Person.PhoneNumber.newBuilder().setNumber(number); in PromptForAddress() 68 AddressBook.Builder addressBook = AddressBook.newBuilder(); in main()
|
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/ |
D | Phonemetadata.java | 46 public static Builder newBuilder() { in newBuilder() method in Phonemetadata.NumberFormat 203 public static Builder newBuilder() { in newBuilder() method in Phonemetadata.PhoneNumberDesc 305 public static Builder newBuilder() { in newBuilder() method in Phonemetadata.PhoneMetadata 923 public static Builder newBuilder() { in newBuilder() method in Phonemetadata.PhoneMetadataCollection
|