Home
last modified time | relevance | path

Searched refs:getDefaultInstance (Results 1 – 25 of 48) sorted by relevance

12

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DLiteTest.java292 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()
298 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()
302 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()
312 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()
318 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()
322 ForeignMessageLite.getDefaultInstance(), in testSanityCopyOnWrite()
332 OptionalGroup.getDefaultInstance(), message.getOptionalGroup()); in testSanityCopyOnWrite()
337 OptionalGroup.getDefaultInstance(), message.getOptionalGroup()); in testSanityCopyOnWrite()
340 OptionalGroup.getDefaultInstance(), builder.getOptionalGroup()); in testSanityCopyOnWrite()
348 OptionalGroup.getDefaultInstance(), message.getOptionalGroup()); in testSanityCopyOnWrite()
[all …]
DLazyFieldLiteTest.java53 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testGetValue()
55 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testGetValue()
61 assertEquals(message, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testGetValueEx()
63 assertNotEqual(message, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testGetValueEx()
70 assertNotEqual(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testSetValue()
71 message = lazyField.getValue(TestAllTypes.getDefaultInstance()); in testSetValue()
73 assertEquals(message, lazyField.getValue(TestAllTypes.getDefaultInstance())); in testSetValue()
80 assertNotEqual(message, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testSetValueEx()
81 MessageLite value = lazyField.getValue(TestAllExtensions.getDefaultInstance()); in testSetValueEx()
83 assertEquals(value, lazyField.getValue(TestAllExtensions.getDefaultInstance())); in testSetValueEx()
[all …]
DSingleFieldBuilderTest.java53 TestAllTypes.getDefaultInstance(), in testBasicUseAndInvalidations()
56 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testBasicUseAndInvalidations()
57 assertEquals(TestAllTypes.getDefaultInstance(), in testBasicUseAndInvalidations()
83 TestAllTypes.getDefaultInstance(), in testSetMessage()
109 TestAllTypes.getDefaultInstance(), in testClear()
113 assertNotSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()
115 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()
118 assertNotSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()
120 assertSame(TestAllTypes.getDefaultInstance(), builder.getMessage()); in testClear()
129 TestAllTypes.getDefaultInstance(), in testMerge()
[all …]
DTestBadIdentifiers.java54 .getDefaultInstance().getDescriptor(); in testGetDescriptor()
56 .getDefaultInstance().getDescriptorForType(); in testGetDescriptor()
58 .NestedDescriptor.getDefaultInstance().getDescriptor(); in testGetDescriptor()
60 .Descriptor.NestedDescriptor.getDefaultInstance() in testGetDescriptor()
66 TestBadIdentifiersProto.TestConflictingFieldNames.getDefaultInstance(); in testConflictingFieldNames()
DServiceTest.java103 FooRequest.getDefaultInstance()); in testGetPrototype()
105 FooResponse.getDefaultInstance()); in testGetPrototype()
107 BarRequest.getDefaultInstance()); in testGetPrototype()
109 BarResponse.getDefaultInstance()); in testGetPrototype()
125 EasyMock.same(FooResponse.getDefaultInstance()), in testStub()
131 EasyMock.same(BarResponse.getDefaultInstance()), in testStub()
156 EasyMock.same(FooResponse.getDefaultInstance()))).andReturn(fooResponse); in testBlockingStub()
161 EasyMock.same(BarResponse.getDefaultInstance()))).andReturn(barResponse); in testBlockingStub()
177 MessageWithNoOuter request = MessageWithNoOuter.getDefaultInstance(); in testNewReflectiveService()
209 MessageWithNoOuter request = MessageWithNoOuter.getDefaultInstance(); in testNewReflectiveBlockingService()
[all …]
DUnknownFieldSetLiteTest.java52 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); in testDefaultInstance()
121 assertFalse(unknownFields1.equals(UnknownFieldSetLite.getDefaultInstance())); in testEqualsAndHashCode()
122 assertFalse(unknownFields1.hashCode() == UnknownFieldSetLite.getDefaultInstance().hashCode()); in testEqualsAndHashCode()
148 UnknownFieldSetLite.getDefaultInstance(), UnknownFieldSetLite.getDefaultInstance()); in testMutableCopyOf_empty()
280 TestAllTypesLite testAllTypes = TestAllTypesLite.getDefaultInstance(); in testEndToEnd()
DMessageTest.java57 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance())
115 TestRequired.getDefaultInstance();
337 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
339 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
340 .addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()) in testDynamicRepeatedMessageNotNull()
DGeneratedMessageTest.java91 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance()
92 TestAllTypes.getDefaultInstance().getDefaultInstanceForType()); in testDefaultInstance()
93 assertSame(TestAllTypes.getDefaultInstance(), in testDefaultInstance()
161 builder.addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()); in testProtosShareRepeatedArraysIfDidntChange()
175 builder.addRepeatedForeignMessage(ForeignMessage.getDefaultInstance()); in testRepeatedArraysAreImmutable()
471 TestUtil.assertClear(TestAllTypes.getDefaultInstance()); in testDefaults()
475 TestExtremeDefaultValues.getDefaultInstance(); in testDefaults()
534 TestAllTypes.getDefaultInstance()); in testReflectionDefaults()
568 assertTrue(TestAllTypes.getDefaultInstance().getDefaultNestedEnum() in testEnumInterface()
619 TestUtil.assertExtensionsClear(TestAllExtensions.getDefaultInstance()); in testExtensionDefaults()
[all …]
DFieldPresenceTest.java255 builder.setOptionalNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testMessageField()
264 builder.setOptionalNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testSerializeAndParse()
290 builder.setOptionalNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testRepeatedFields()
293 builder.addRepeatedNestedMessage(TestAllTypes.NestedMessage.getDefaultInstance()); in testRepeatedFields()
365 DynamicMessage.getDefaultInstance( in testUnknownFields()
DMapForProto2LiteTest.java258 messageMap.put(1, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
259 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
262 messageMap.put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
267 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
269 builder.getMutableInt32ToMessageField().put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
271 newMap(1, TestMap.MessageValue.getDefaultInstance(), in testMutableMapLifecycle()
272 2, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
DMapForProto2Test.java237 messageMap.put(1, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
238 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
241 messageMap.put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
246 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
248 builder.getMutableInt32ToMessageField().put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
250 newMap(1, TestMap.MessageValue.getDefaultInstance(), in testMutableMapLifecycle()
251 2, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
557 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessage()
571 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testReflectionEqualsAndHashCode()
659 .getDefaultInstance().getDescriptorForType().getName()); in testMapInitializationOrder()
DMapTest.java238 messageMap.put(1, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
239 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
242 messageMap.put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
247 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
249 builder.getMutableInt32ToMessageField().put(2, TestMap.MessageValue.getDefaultInstance()); in testMutableMapLifecycle()
251 newMap(1, TestMap.MessageValue.getDefaultInstance(), in testMutableMapLifecycle()
252 2, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
650 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testDynamicMessage()
664 DynamicMessage.getDefaultInstance(TestMap.getDescriptor()); in testReflectionEqualsAndHashCode()
DRepeatedFieldBuilderTest.java106 builder.addBuilder(0, TestAllTypes.getDefaultInstance()) in testVariousMethods()
108 builder.addBuilder(TestAllTypes.getDefaultInstance()).setOptionalInt32(3); in testVariousMethods()
DLiteEqualsAndHashTest.java123 TestRecursiveOneof.getDefaultInstance().hashCode(); in testRecursiveHashcode()
DDescriptorsTest.java159 assertEquals(DescriptorProtos.MessageOptions.getDefaultInstance(), in testDescriptor()
217 assertEquals(DescriptorProtos.FieldOptions.getDefaultInstance(), in testFieldDescriptor()
248 assertEquals(DescriptorProtos.FieldOptions.getDefaultInstance(), in testFieldDescriptor()
310 assertEquals(DescriptorProtos.EnumOptions.getDefaultInstance(), in testEnumDescriptor()
DAbstractMessageTest.java351 TestRequired.getDefaultInstance();
409 .setOptionalForeignMessage(ForeignMessage.getDefaultInstance())
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java79 public static DynamicMessage getDefaultInstance(Descriptor type) { in getDefaultInstance() method in DynamicMessage
84 UnknownFieldSet.getDefaultInstance()); in getDefaultInstance()
166 return getDefaultInstance(type); in getDefaultInstanceForType()
204 result = getDefaultInstance(field.getMessageType()); in getField()
339 this.unknownFields = UnknownFieldSet.getDefaultInstance();
353 unknownFields = UnknownFieldSet.getDefaultInstance();
441 return getDefaultInstance(type);
501 result = getDefaultInstance(field.getMessageType());
DUnknownFieldSet.java76 public static UnknownFieldSet getDefaultInstance() { in getDefaultInstance() method in UnknownFieldSet
126 return (result == null) ? Field.getDefaultInstance() : result; in getField()
347 result = getDefaultInstance(); in build()
370 return UnknownFieldSet.getDefaultInstance(); in getDefaultInstanceForType()
408 if (other != getDefaultInstance()) { in mergeFrom()
728 public static Field getDefaultInstance() { in getDefaultInstance() method in UnknownFieldSet.Field
DMapEntry.java211 return UnknownFieldSet.getDefaultInstance(); in getUnknownFields()
421 return UnknownFieldSet.getDefaultInstance(); in getUnknownFields()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskUtil.java135 Descriptor descriptor = Internal.getDefaultInstance(type).getDescriptorForType(); in fromFieldNumbers()
153 Internal.getDefaultInstance(type).getDescriptorForType(); in isValid()
175 Internal.getDefaultInstance(type).getDescriptorForType(); in isValid()
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/
DMailer.java79 Session session = Session.getDefaultInstance(props, null); in sendMessage()
132 Session session = Session.getDefaultInstance(props, null); in sendTextMessage()
179 Session session = Session.getDefaultInstance(props, null); in sendMultiPartMessage()
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java123 return com.google.protobuf.UnknownFieldSet.getDefaultInstance(); in getUnknownFields()
397 return com.google.protobuf.jruby.SentinelOuterClass.Sentinel.getDefaultInstance(); in getDefaultInstanceForType()
580 defaultString_ = getDefaultInstance().getDefaultString(); in clearDefaultString()
700 defaultBytes_ = getDefaultInstance().getDefaultBytes(); in clearDefaultBytes()
723 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel getDefaultInstance() { in getDefaultInstance() method in SentinelOuterClass.Sentinel
/external/testng/src/main/java/org/testng/internal/
DClassImpl.java114 private Object getDefaultInstance() { in getDefaultInstance() method in ClassImpl
190 result = new Object[] { getDefaultInstance() }; in getInstances()
/external/google-tv-pairing-protocol/java/jar/
Dprotobuf-java-2.2.0-lite.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskUtilTest.java81 assertEquals("", FieldMaskUtil.toString(FieldMask.getDefaultInstance())); in testToString()

12