/external/smali/smalidea/src/test/java/org/jf/smalidea/ |
D | SmaliFieldTest.java | 74 PsiField field = smaliClass.findFieldByName("myField", true); in testBasicField() 78 field = smaliClass.findFieldByName("nonExistantField", true); in testBasicField() 80 field = smaliClass.findFieldByName("nonExistantField", false); in testBasicField() 106 PsiField field = smaliClass.findFieldByName("myField", true); in testSmaliSuperField() 110 field = smaliClass.findFieldByName("myField", false); in testSmaliSuperField() 114 field = smaliClass.findFieldByName("baseField", false); in testSmaliSuperField() 117 field = smaliClass.findFieldByName("baseField", true); in testSmaliSuperField() 121 field = smaliClass.findFieldByName("nonExistantField", true); in testSmaliSuperField() 123 field = smaliClass.findFieldByName("nonExistantField", false); in testSmaliSuperField() 148 PsiField field = smaliClass.findFieldByName("myField", true); in testJavaSuperField() [all …]
|
D | FieldRenameTest.java | 42 PsiField field = testClass.findFieldByName(oldFieldName, false); in doRename()
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | MessageTest.java | 174 builder.setField(descriptor.findFieldByName("a"), 1); in testRequiredDynamic() 176 builder.setField(descriptor.findFieldByName("b"), 1); in testRequiredDynamic() 178 builder.setField(descriptor.findFieldByName("c"), 1); in testRequiredDynamic() 188 builder.setField(descriptor.findFieldByName("optional_message"), TEST_REQUIRED_UNINITIALIZED); in testRequiredDynamicForeign() 191 builder.setField(descriptor.findFieldByName("optional_message"), TEST_REQUIRED_INITIALIZED); in testRequiredDynamicForeign() 195 descriptor.findFieldByName("repeated_message"), TEST_REQUIRED_UNINITIALIZED); in testRequiredDynamicForeign() 199 descriptor.findFieldByName("repeated_message"), 0, TEST_REQUIRED_INITIALIZED); in testRequiredDynamicForeign() 324 result.getField(result.getDescriptorForType().findFieldByName("repeated_foreign_message")) in testDynamicRepeatedMessageNull() 329 result.getDescriptorForType().findFieldByName("repeated_foreign_message"))); in testDynamicRepeatedMessageNull() 350 result.getField(result.getDescriptorForType().findFieldByName("repeated_foreign_message")) in testDynamicRepeatedMessageNotNull() [all …]
|
D | TextFormatParseInfoTreeTest.java | 43 DESCRIPTOR.findFieldByName("optional_int32"); 45 DESCRIPTOR.findFieldByName("optional_boolean"); 47 DESCRIPTOR.findFieldByName("repeated_int32"); 49 DESCRIPTOR.findFieldByName("optional_nested_message"); 51 DESCRIPTOR.findFieldByName("repeated_nested_message"); 53 TestAllTypes.NestedMessage.getDescriptor().findFieldByName("bb");
|
D | DescriptorsTest.java | 166 assertEquals(field, messageType.findFieldByName("optional_int32")); in testDescriptor() 167 assertNull(messageType.findFieldByName("no_such_field")); in testDescriptor() 192 FieldDescriptor primitiveField = messageType.findFieldByName("optional_int32"); in testFieldDescriptor() 193 FieldDescriptor enumField = messageType.findFieldByName("optional_nested_enum"); in testFieldDescriptor() 194 FieldDescriptor messageField = messageType.findFieldByName("optional_foreign_message"); in testFieldDescriptor() 195 FieldDescriptor cordField = messageType.findFieldByName("optional_cord"); in testFieldDescriptor() 243 FieldDescriptor requiredField = TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorLabel() 244 FieldDescriptor optionalField = TestAllTypes.getDescriptor().findFieldByName("optional_int32"); in testFieldDescriptorLabel() 245 FieldDescriptor repeatedField = TestAllTypes.getDescriptor().findFieldByName("repeated_int32"); in testFieldDescriptorLabel() 256 FieldDescriptor requiredField = TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorJsonName() [all …]
|
D | GeneratedMessageTest.java | 520 Descriptors.FieldDescriptor field = TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testReflectionGetOneof() 531 Descriptors.FieldDescriptor field = TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testReflectionClearOneof() 738 MessageWithNoOuter.getDescriptor().findFieldByName("foreign_enum"); in testMultipleFilesOption() 1074 FieldDescriptor fieldDescriptor = descriptor.findFieldByName("optional_nested_message"); in testGetFieldBuilder() 1075 FieldDescriptor foreignFieldDescriptor = descriptor.findFieldByName("optional_foreign_message"); in testGetFieldBuilder() 1076 FieldDescriptor importFieldDescriptor = descriptor.findFieldByName("optional_import_message"); in testGetFieldBuilder() 1086 fieldBuilder1.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() 1096 foreignFieldBuilder1.getDescriptorForType().findFieldByName("c"); in testGetFieldBuilder() 1106 importFieldBuilder1.getDescriptorForType().findFieldByName("d"); in testGetFieldBuilder() 1117 fieldBuilder2.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() [all …]
|
D | UnknownEnumValueTest.java | 133 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testUnknownEnumValueInReflectionApi() 134 FieldDescriptor repeatedNestedEnumField = descriptor.findFieldByName("repeated_nested_enum"); in testUnknownEnumValueInReflectionApi() 135 FieldDescriptor packedNestedEnumField = descriptor.findFieldByName("packed_nested_enum"); in testUnknownEnumValueInReflectionApi() 179 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testUnknownEnumValueWithDynamicMessage() 180 FieldDescriptor repeatedNestedEnumField = descriptor.findFieldByName("repeated_nested_enum"); in testUnknownEnumValueWithDynamicMessage() 181 FieldDescriptor packedNestedEnumField = descriptor.findFieldByName("packed_nested_enum"); in testUnknownEnumValueWithDynamicMessage() 282 FieldDescriptor repeatedPackedField = descriptor.findFieldByName("repeated_packed_enum"); in testUnknownEnumValuesInProto2WithDynamicMessage()
|
D | FieldPresenceTest.java | 174 FieldDescriptor optionalInt32Field = descriptor.findFieldByName("optional_int32"); in testFieldPresenceByReflection() 175 FieldDescriptor optionalStringField = descriptor.findFieldByName("optional_string"); in testFieldPresenceByReflection() 176 FieldDescriptor optionalBytesField = descriptor.findFieldByName("optional_bytes"); in testFieldPresenceByReflection() 177 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testFieldPresenceByReflection() 218 FieldDescriptor optionalInt32Field = descriptor.findFieldByName("optional_int32"); in testFieldPresenceDynamicMessage() 219 FieldDescriptor optionalStringField = descriptor.findFieldByName("optional_string"); in testFieldPresenceDynamicMessage() 220 FieldDescriptor optionalBytesField = descriptor.findFieldByName("optional_bytes"); in testFieldPresenceDynamicMessage() 221 FieldDescriptor optionalNestedEnumField = descriptor.findFieldByName("optional_nested_enum"); in testFieldPresenceDynamicMessage()
|
D | WireFormatTest.java | 211 .setField(descriptor.findFieldByName("my_int"), 1L) in testInterleavedFieldsAndExtensions() 212 .setField(descriptor.findFieldByName("my_string"), "foo") in testInterleavedFieldsAndExtensions() 213 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testInterleavedFieldsAndExtensions() 269 .setField(descriptor.findFieldByName("my_int"), 1L) in testParseMultipleExtensionRangesDynamic() 270 .setField(descriptor.findFieldByName("my_string"), "foo") in testParseMultipleExtensionRangesDynamic() 271 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testParseMultipleExtensionRangesDynamic()
|
D | Proto2UnknownEnumValueTest.java | 42 TestAllTypes.getDescriptor().findFieldByName("optional_nested_enum"); 44 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum");
|
D | UnknownFieldSetTest.java | 61 Descriptors.FieldDescriptor field = descriptor.findFieldByName(name); in getField() 125 TestAllTypes.OptionalGroup.getDescriptor().findFieldByName("a"); in testGroup() 251 TestAllTypes.getDescriptor().findFieldByName("optional_nested_enum"); in testParseUnknownEnumValue() 253 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum"); in testParseUnknownEnumValue()
|
D | TextFormatTest.java | 244 final FieldDescriptor dataField = OneString.getDescriptor().findFieldByName("data"); in testPrintField() 249 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testPrintField() 890 .printFieldValue(TestAllTypes.getDescriptor().findFieldByName(fieldName), value, sb); in assertPrintFieldValue() 906 final FieldDescriptor dataField = OneString.getDescriptor().findFieldByName("data"); in testShortDebugString_field() 912 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testShortDebugString_field() 1307 FieldDescriptor nestedField = descriptor.findFieldByName("optional_nested_message"); in testParseInfoTreeBuilding() 1313 nestedField = descriptor.findFieldByName("repeated_nested_message"); in testParseInfoTreeBuilding() 1336 List<TextFormatParseLocation> locs = tree.getLocations(descriptor.findFieldByName(fieldName)); in assertLocation()
|
D | DynamicMessageTest.java | 248 FieldDescriptor bytesField = TestAllTypes.getDescriptor().findFieldByName("oneof_bytes"); in testDynamicMessageCopy() 249 FieldDescriptor uint32Field = TestAllTypes.getDescriptor().findFieldByName("oneof_uint32"); in testDynamicMessageCopy() 311 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum"); in testSettersForRepeatedEnumField()
|
D | MapForProto2Test.java | 618 return TestMap.getDescriptor().findFieldByName(name); in f() 622 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in getFieldValue() 628 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in setFieldValue() 653 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in newMapEntry() 655 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() 656 FieldDescriptor valueField = entryBuilder.getDescriptorForType().findFieldByName("value"); in newMapEntry() 667 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in setMapValues() 1161 message.getDescriptorForType().findFieldByName("map_field"), 0); in testMapInitializationOrder()
|
D | MapTest.java | 709 return TestMap.getDescriptor().findFieldByName(name); in f() 713 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in getFieldValue() 719 FieldDescriptor field = mapEntry.getDescriptorForType().findFieldByName(name); in setFieldValue() 744 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in newMapEntry() 746 FieldDescriptor keyField = entryBuilder.getDescriptorForType().findFieldByName("key"); in newMapEntry() 747 FieldDescriptor valueField = entryBuilder.getDescriptorForType().findFieldByName("value"); in newMapEntry() 758 FieldDescriptor field = builder.getDescriptorForType().findFieldByName(name); in setMapValues() 969 FieldDescriptor field = descriptor.findFieldByName("int32_to_enum_field"); in testUnknownEnumValuesInReflectionApi() 1411 TestMap.MessageValue.getDescriptor().findFieldByName("value"), 10) in testInitFromFullyDynamicMessage()
|
/external/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | MessageTest.java | 173 builder.setField(descriptor.findFieldByName("a"), 1); in testRequiredDynamic() 175 builder.setField(descriptor.findFieldByName("b"), 1); in testRequiredDynamic() 177 builder.setField(descriptor.findFieldByName("c"), 1); in testRequiredDynamic() 187 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign() 191 builder.setField(descriptor.findFieldByName("optional_message"), in testRequiredDynamicForeign() 195 builder.addRepeatedField(descriptor.findFieldByName("repeated_message"), in testRequiredDynamicForeign() 199 builder.setRepeatedField(descriptor.findFieldByName("repeated_message"), 0, in testRequiredDynamicForeign() 326 .findFieldByName("repeated_foreign_message")) instanceof List<?>); in testDynamicRepeatedMessageNull() 328 .findFieldByName("repeated_foreign_message")), 0); in testDynamicRepeatedMessageNull() 350 .findFieldByName("repeated_foreign_message")) instanceof List<?>); in testDynamicRepeatedMessageNotNull() [all …]
|
D | DescriptorsTest.java | 170 assertEquals(field, messageType.findFieldByName("optional_int32")); in testDescriptor() 171 assertNull(messageType.findFieldByName("no_such_field")); in testDescriptor() 197 messageType.findFieldByName("optional_int32"); in testFieldDescriptor() 199 messageType.findFieldByName("optional_nested_enum"); in testFieldDescriptor() 201 messageType.findFieldByName("optional_foreign_message"); in testFieldDescriptor() 203 messageType.findFieldByName("optional_cord"); in testFieldDescriptor() 262 TestRequired.getDescriptor().findFieldByName("a"); in testFieldDescriptorLabel() 264 TestAllTypes.getDescriptor().findFieldByName("optional_int32"); in testFieldDescriptorLabel() 266 TestAllTypes.getDescriptor().findFieldByName("repeated_int32"); in testFieldDescriptorLabel() 278 assertFalse(d.findFieldByName("optional_int32").hasDefaultValue()); in testFieldDescriptorDefault() [all …]
|
D | GeneratedMessageTest.java | 631 MessageWithNoOuter.getDescriptor().findFieldByName("foreign_enum"); in testMultipleFilesOption() 830 descriptor.findFieldByName("optional_nested_message"); in testGetFieldBuilder() 832 descriptor.findFieldByName("optional_foreign_message"); in testGetFieldBuilder() 834 descriptor.findFieldByName("optional_import_message"); in testGetFieldBuilder() 842 fieldBuilder1.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() 851 foreignFieldBuilder1.getDescriptorForType().findFieldByName("c"); in testGetFieldBuilder() 860 importFieldBuilder1.getDescriptorForType().findFieldByName("d"); in testGetFieldBuilder() 871 fieldBuilder2.getDescriptorForType().findFieldByName("bb"); in testGetFieldBuilder() 880 foreignFieldBuilder2.getDescriptorForType().findFieldByName("c"); in testGetFieldBuilder() 889 importFieldBuilder2.getDescriptorForType().findFieldByName("d"); in testGetFieldBuilder() [all …]
|
D | WireFormatTest.java | 212 .setField(descriptor.findFieldByName("my_int"), 1L) in testInterleavedFieldsAndExtensions() 213 .setField(descriptor.findFieldByName("my_string"), "foo") in testInterleavedFieldsAndExtensions() 214 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testInterleavedFieldsAndExtensions() 250 .setField(descriptor.findFieldByName("my_int"), 1L) in testParseMultipleExtensionRangesDynamic() 251 .setField(descriptor.findFieldByName("my_string"), "foo") in testParseMultipleExtensionRangesDynamic() 252 .setField(descriptor.findFieldByName("my_float"), 1.0F) in testParseMultipleExtensionRangesDynamic()
|
D | UnknownFieldSetTest.java | 60 Descriptors.FieldDescriptor field = descriptor.findFieldByName(name); in getField() 131 TestAllTypes.OptionalGroup.getDescriptor().findFieldByName("a"); in testGroup() 272 TestAllTypes.getDescriptor().findFieldByName("optional_nested_enum"); in testParseUnknownEnumValue() 274 TestAllTypes.getDescriptor().findFieldByName("repeated_nested_enum"); in testParseUnknownEnumValue()
|
D | TextFormatTest.java | 208 OneString.getDescriptor().findFieldByName("data"); in testPrintField() 214 TestAllTypes.getDescriptor().findFieldByName("optional_nested_message"); in testPrintField() 492 TestAllTypes.getDescriptor().findFieldByName(fieldName), in assertPrintFieldValue()
|
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/ |
D | JsonFormat.java | 797 FieldDescriptor typeUrlField = descriptor.findFieldByName("type_url"); in printAny() 798 FieldDescriptor valueField = descriptor.findFieldByName("value"); in printAny() 836 FieldDescriptor valueField = descriptor.findFieldByName("value"); in printWrapper() 874 FieldDescriptor field = descriptor.findFieldByName("fields"); in printStruct() 904 FieldDescriptor field = descriptor.findFieldByName("values"); in printListValue() 997 FieldDescriptor keyField = type.findFieldByName("key"); in printMapFieldValue() 998 FieldDescriptor valueField = type.findFieldByName("value"); in printMapFieldValue() 1426 FieldDescriptor typeUrlField = descriptor.findFieldByName("type_url"); in mergeAny() 1427 FieldDescriptor valueField = descriptor.findFieldByName("value"); in mergeAny() 1497 FieldDescriptor field = descriptor.findFieldByName("fields"); in mergeStruct() [all …]
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/ |
D | SmaliFieldReference.java | 123 return containingClass.findFieldByName(memberName.getText(), true); in resolve()
|
D | SmaliClass.java | 219 @Nullable @Override public PsiField findFieldByName(@NonNls String name, boolean checkBases) { in findFieldByName() method in SmaliClass 220 return PsiClassImplUtil.findFieldByName(this, name, checkBases); in findFieldByName()
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | AbstractMessage.java | 200 Descriptors.FieldDescriptor key = descriptor.findFieldByName("key"); in convertMapEntryListToMap() 201 Descriptors.FieldDescriptor value = descriptor.findFieldByName("value"); in convertMapEntryListToMap()
|