Home
last modified time | relevance | path

Searched refs:getDescriptor (Results 1 – 25 of 217) sorted by relevance

123456789

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDynamicMessageTest.java53 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
56 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(),
59 new TestUtil.ReflectionTester(TestPackedTypes.getDescriptor(), null);
63 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageAccessors()
71 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testSettersAfterBuild()
91 DynamicMessage.newBuilder(TestEmptyMessage.getDescriptor()); in testUnknownFields()
111 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageSettersRejectNull()
120 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionAccessors()
128 DynamicMessage.newBuilder(TestAllExtensions.getDescriptor()); in testDynamicMessageExtensionSettersRejectNull()
134 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()); in testDynamicMessageRepeatedSetters()
[all …]
DDescriptorsTest.java92 FileDescriptor file = UnittestProto.getDescriptor(); in testFileDescriptor()
101 assertEquals(Arrays.asList(UnittestImport.getDescriptor()), in testFileDescriptor()
104 Descriptor messageType = TestAllTypes.getDescriptor(); in testFileDescriptor()
113 EnumDescriptor enumType = ForeignEnum.getDescriptor(); in testFileDescriptor()
118 assertEquals(Arrays.asList(ImportEnum.getDescriptor(), in testFileDescriptor()
119 ImportEnumForMap.getDescriptor()), in testFileDescriptor()
120 UnittestImport.getDescriptor().getEnumTypes()); in testFileDescriptor()
125 ServiceDescriptor service = TestService.getDescriptor(); in testFileDescriptor()
131 UnittestImport.getDescriptor().getServices()); in testFileDescriptor()
137 UnittestProto.optionalInt32Extension.getDescriptor(); in testFileDescriptor()
[all …]
DMessageTest.java168 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testRequiredDynamic()
181 Descriptors.Descriptor descriptor = TestRequiredForeign.getDescriptor(); in testRequiredDynamicForeign()
291 DynamicMessage.newBuilder(TestRequired.getDescriptor()).build(); in testDynamicUninitializedException()
301 DynamicMessage.newBuilder(TestRequired.getDescriptor()) in testDynamicBuildPartial()
308 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicParseUnititialized()
318 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicRepeatedMessageNull()
320 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()) in testDynamicRepeatedMessageNull()
342 Descriptors.Descriptor descriptor = TestRequired.getDescriptor(); in testDynamicRepeatedMessageNotNull()
344 DynamicMessage.newBuilder(TestAllTypes.getDescriptor()) in testDynamicRepeatedMessageNotNull()
DWireFormatTest.java275 Descriptors.Descriptor descriptor = TestFieldOrderings.getDescriptor(); in testInterleavedFieldsAndExtensions()
277 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testInterleavedFieldsAndExtensions()
281 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testInterleavedFieldsAndExtensions()
282 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testInterleavedFieldsAndExtensions()
313 Descriptors.Descriptor descriptor = TestFieldOrderings.getDescriptor(); in testParseMultipleExtensionRangesDynamic()
315 DynamicMessage.newBuilder(TestFieldOrderings.getDescriptor()) in testParseMultipleExtensionRangesDynamic()
319 .setField(UnittestProto.myExtensionInt.getDescriptor(), 23) in testParseMultipleExtensionRangesDynamic()
320 .setField(UnittestProto.myExtensionString.getDescriptor(), "bar") in testParseMultipleExtensionRangesDynamic()
330 TestMessageSetExtension1.getDescriptor().getExtensions().get(0).getNumber();
332 TestMessageSetExtension2.getDescriptor().getExtensions().get(0).getNumber();
[all …]
DTestBadIdentifiers.java52 TestBadIdentifiersProto.getDescriptor(); in testGetDescriptor()
54 .getDefaultInstance().getDescriptor(); in testGetDescriptor()
58 .NestedDescriptor.getDefaultInstance().getDescriptor(); in testGetDescriptor()
DAnyTest.java87 "xxx.com/" + TestAllTypes.getDescriptor().getFullName(), in testCustomTypeUrls()
100 "yyy.com/" + TestAllTypes.getDescriptor().getFullName(), in testCustomTypeUrls()
113 "/" + TestAllTypes.getDescriptor().getFullName(), in testCustomTypeUrls()
DGeneratedMessageTest.java88 new TestUtil.ReflectionTester(TestAllTypes.getDescriptor(), null);
543 TestAllTypes.getDescriptor().getOneofs().get(0); in testReflectionGetOneof()
545 TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testReflectionGetOneof()
556 TestAllTypes.getDescriptor().getOneofs().get(0); in testReflectionClearOneof()
558 TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testReflectionClearOneof()
600 new TestUtil.ReflectionTester(TestAllExtensions.getDescriptor(),
627 value = message.getField(UnittestProto.repeatedStringExtension.getDescriptor()); in testUnsetRepeatedExtensionGetField()
632 value = message.getField(UnittestProto.repeatedNestedMessageExtension.getDescriptor()); in testUnsetRepeatedExtensionGetField()
803 assertEquals(MultipleFilesTestProto.getDescriptor(), in testMultipleFilesOption()
804 MessageWithNoOuter.getDescriptor().getFile()); in testMultipleFilesOption()
[all …]
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyEnum.java52 …RubyEnumDescriptor rubyEnumDescriptorescriptor = (RubyEnumDescriptor) getDescriptor(context, recv); in lookup()
53 Descriptors.EnumDescriptor descriptor = rubyEnumDescriptorescriptor.getDescriptor(); in lookup()
68 …RubyEnumDescriptor rubyEnumDescriptorescriptor = (RubyEnumDescriptor) getDescriptor(context, recv); in resolve()
69 Descriptors.EnumDescriptor descriptor = rubyEnumDescriptorescriptor.getDescriptor(); in resolve()
83 public static IRubyObject getDescriptor(ThreadContext context, IRubyObject recv) { in getDescriptor() method in RubyEnum
/external/proguard/src/proguard/classfile/visitor/
DMemberDescriptorFilter.java73 if (accepted(programField.getDescriptor(programClass))) in visitProgramField()
82 if (accepted(programMethod.getDescriptor(programClass))) in visitProgramMethod()
91 if (accepted(libraryField.getDescriptor(libraryClass))) in visitLibraryField()
100 if (accepted(libraryMethod.getDescriptor(libraryClass))) in visitLibraryMethod()
DSimilarMemberVisitor.java86 programField.getDescriptor(programClass), in visitProgramField()
98 libraryField.getDescriptor(libraryClass), in visitLibraryField()
110 … programMethod.getDescriptor(programClass), in visitProgramMethod()
122 … libraryMethod.getDescriptor(libraryClass), in visitLibraryMethod()
DSimpleClassPrinter.java112 programField.getDescriptor(programClass))); in visitProgramField()
130 programMethod.getDescriptor(programClass))); in visitProgramMethod()
147 libraryField.getDescriptor(libraryClass))); in visitLibraryField()
165 libraryMethod.getDescriptor(libraryClass))); in visitLibraryMethod()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java475 printers.put(Any.getDescriptor().getFullName(), in buildWellKnownTypePrinters()
492 printers.put(BoolValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
493 printers.put(Int32Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
494 printers.put(UInt32Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
495 printers.put(Int64Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
496 printers.put(UInt64Value.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
497 printers.put(StringValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
498 printers.put(BytesValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
499 printers.put(FloatValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
500 printers.put(DoubleValue.getDescriptor().getFullName(), wrappersPrinter); in buildWellKnownTypePrinters()
[all …]
/external/proguard/src/proguard/classfile/editor/
DMemberAdder.java150 …+programClass+"."+programField.getName(programClass)+" "+programField.getDescriptor(programClass)+… in visitProgramField()
187 String descriptor = programMethod.getDescriptor(programClass); in visitProgramMethod()
200 …Class.getName()+"."+programMethod.getName(programClass)+programMethod.getDescriptor(programClass)+… in visitProgramMethod()
215 …Class.getName()+"."+programMethod.getName(programClass)+programMethod.getDescriptor(programClass)+… in visitProgramMethod()
234 …getClass.getName()+"."+targetMethod.getName(targetClass)+targetMethod.getDescriptor(targetClass)+"… in visitProgramMethod()
247 …Class.getName()+"."+programMethod.getName(programClass)+programMethod.getDescriptor(programClass)+… in visitProgramMethod()
DMemberReferenceFixer.java131 String newType = referencedMember.getDescriptor(referencedClass); in visitFieldrefConstant()
159 String newType = referencedMember.getDescriptor(referencedClass); in visitInterfaceMethodrefConstant()
215 String newType = referencedMember.getDescriptor(referencedClass); in visitMethodrefConstant()
303 String newType = referencedMember.getDescriptor(referencedClass); in visitEnclosingMethodAttribute()
433 …()+"."+referencedMember.getName(referencedClass)+" "+referencedMember.getDescriptor(referencedClas… in debug()
445 …()+"."+referencedMember.getName(referencedClass)+" "+referencedMember.getDescriptor(referencedClas… in debug()
/external/javassist/src/main/javassist/
DSerialVersionUID.java123 out.writeUTF(field.getFieldInfo2().getDescriptor()); in calculateDefault()
140 return c1.getMethodInfo2().getDescriptor().compareTo( in calculateDefault()
141 c2.getMethodInfo2().getDescriptor()); in calculateDefault()
152 .getDescriptor().replace('/', '.')); in calculateDefault()
163 value = m1.getMethodInfo2().getDescriptor() in calculateDefault()
164 .compareTo(m2.getMethodInfo2().getDescriptor()); in calculateDefault()
181 .getDescriptor().replace('/', '.')); in calculateDefault()
/external/proguard/src/proguard/optimize/evaluation/
DSimpleEnumUseChecker.java157 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] stor… in visitSimpleInstruction()
177 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] retu… in visitSimpleInstruction()
194 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] uses… in visitSimpleInstruction()
241 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] call… in visitConstantInstruction()
281 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] is c… in visitConstantInstruction()
303 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] is c… in visitConstantInstruction()
332 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] comp… in visitBranchInstruction()
337 …leEnumUseChecker: ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] comp… in visitBranchInstruction()
367 programMethod.getDescriptor(programClass))) in visitProgramMethod()
371 …Class.getName()+"."+programMethod.getName(programClass)+programMethod.getDescriptor(programClass)+… in visitProgramMethod()
[all …]
/external/javassist/src/main/javassist/bytecode/
DFieldInfo.java69 return getName() + " " + getDescriptor(); in toString()
82 descriptor = cp.addUtf8Info(getDescriptor()); in compact()
118 descriptor = cp.addUtf8Info(getDescriptor()); in prune()
171 public String getDescriptor() { in getDescriptor() method in FieldInfo
181 if (!desc.equals(getDescriptor())) in setDescriptor()
DClassFile.java416 String desc = minfo.getDescriptor(); in renameClass()
425 String desc = finfo.getDescriptor(); in renameClass()
453 String desc = minfo.getDescriptor(); in renameClass()
462 String desc = finfo.getDescriptor(); in renameClass()
480 String desc = minfo.getDescriptor(); in getRefClasses()
489 String desc = finfo.getDescriptor(); in getRefClasses()
570 testExistingField(finfo.getName(), finfo.getDescriptor()); in addField()
660 String descriptor = newMinfo.getDescriptor(); in testExistingMethod()
675 String desc = minfo.getDescriptor(); in isDuplicated()
/external/proguard/src/proguard/shrink/
DShortestUsagePrinter.java119 String type = programField.getDescriptor(programClass); in visitProgramField()
135 String type = programMethod.getDescriptor(programClass); in visitProgramMethod()
153 String type = libraryField.getDescriptor(libraryClass); in visitLibraryField()
169 String type = libraryMethod.getDescriptor(libraryClass); in visitLibraryMethod()
/external/proguard/src/proguard/
DDescriptorKeepChecker.java125 if (ClassUtil.isInternalClassType(programMethod.getDescriptor(programClass))) in visitProgramMethod()
155 … referencingMember.getDescriptor(referencingClass)) : in visitProgramClass()
159 … referencingMember.getDescriptor(referencingClass))) + in visitProgramClass()
/external/proguard/src/proguard/optimize/
DMemberDescriptorSpecializer.java81 …ass.getName()+"."+programField.getName(programClass)+" "+programField.getDescriptor(programClass)); in visitProgramField()
106 ClassUtil.internalMethodParameterCount(programMethod.getDescriptor(programClass)); in visitProgramMethod()
121 …Class.getName()+"."+programMethod.getName(programClass)+programMethod.getDescriptor(programClass)); in visitProgramMethod()
DDuplicateInitializerInvocationFixer.java120 …em.out.println(" ["+clazz.getName()+"."+method.getName(clazz)+method.getDescriptor(clazz)+"] Inse… in visitConstantInstruction()
154 programMethod.getDescriptor(programClass).length() - descriptor.length(); in visitProgramMethod()
161 …Class.getName()+"."+programMethod.getName(programClass)+programMethod.getDescriptor(programClass)+… in visitProgramMethod()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DGeneratedMessage.java816 if (extension.getDescriptor().getContainingType() != in verifyExtensionContainingType()
821 extension.getDescriptor().getContainingType().getFullName() + in verifyExtensionContainingType()
833 return extensions.hasField(extension.getDescriptor()); in hasExtension()
843 final FieldDescriptor descriptor = extension.getDescriptor(); in getExtensionCount()
854 FieldDescriptor descriptor = extension.getDescriptor(); in getExtension()
879 FieldDescriptor descriptor = extension.getDescriptor(); in getExtension()
1149 if (extension.getDescriptor().getContainingType() != in verifyExtensionContainingType()
1154 extension.getDescriptor().getContainingType().getFullName() + in verifyExtensionContainingType()
1166 return extensions.hasField(extension.getDescriptor()); in hasExtension()
1176 final FieldDescriptor descriptor = extension.getDescriptor(); in getExtensionCount()
[all …]
DExtensionRegistry.java247 if (extension.getDescriptor().getJavaType() == in newExtensionInfo()
252 extension.getDescriptor().getFullName()); in newExtensionInfo()
254 return new ExtensionInfo(extension.getDescriptor(), in newExtensionInfo()
257 return new ExtensionInfo(extension.getDescriptor(), null); in newExtensionInfo()
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DFieldMaskUtilTest.java62 assertTrue(FieldMaskUtil.isValid(NestedTestAllTypes.getDescriptor(), "payload")); in testIsValid()
63 assertFalse(FieldMaskUtil.isValid(NestedTestAllTypes.getDescriptor(), "nonexist")); in testIsValid()
66 NestedTestAllTypes.getDescriptor(), FieldMaskUtil.fromString("payload"))); in testIsValid()
68 NestedTestAllTypes.getDescriptor(), FieldMaskUtil.fromString("nonexist"))); in testIsValid()

123456789