Home
last modified time | relevance | path

Searched refs:typeClass (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMessageBuilderContext.java85 IRubyObject typeClass = runtime.getNil(); in optional() local
86 if (args.length > 3) typeClass = args[3]; in optional()
87 msgdefAddField(context, "optional", args[0], args[1], args[2], typeClass); in optional()
106 IRubyObject typeClass = context.runtime.getNil(); in required() local
107 if (args.length > 3) typeClass = args[3]; in required()
108 msgdefAddField(context, "required", args[0], args[1], args[2], typeClass); in required()
123 IRubyObject typeClass = context.runtime.getNil(); in repeated() local
124 if (args.length > 3) typeClass = args[3]; in repeated()
125 msgdefAddField(context, "repeated", args[0], args[1], args[2], typeClass); in repeated()
148 IRubyObject typeClass = args.length > 4 ? args[4] : context.runtime.getNil(); in map() local
[all …]
DRubyRepeatedField.java64 …Ruby runtime, RubyClass klazz, Descriptors.FieldDescriptor.Type fieldType, IRubyObject typeClass) { in RubyRepeatedField() argument
68 this.typeClass = typeClass; in RubyRepeatedField()
84 typeClass = args[1]; in initialize()
87 Utils.validateTypeClass(context, fieldType, typeClass); in initialize()
113 value = Utils.checkType(context, fieldType, value, (RubyModule) typeClass); in indexSet()
169 value = Utils.checkType(context, fieldType, value, (RubyModule) typeClass); in push()
238 if (! fieldType.equals(repeatedField.fieldType) || (typeClass != null && ! in plus()
239 typeClass.equals(repeatedField.typeClass))) in plus()
259 if (! fieldType.equals(repeatedField.fieldType) || (typeClass != null && ! in concat()
260 typeClass.equals(repeatedField.typeClass))) in concat()
[all …]
DUtils.java50 public static Descriptors.FieldDescriptor.Type rubyToFieldType(IRubyObject typeClass) { in rubyToFieldType() argument
51 return Descriptors.FieldDescriptor.Type.valueOf(typeClass.asJavaString().toUpperCase()); in rubyToFieldType()
68 IRubyObject value, RubyModule typeClass) { in checkType() argument
112 if (value.getMetaClass() != typeClass) { in checkType()
113 throw runtime.newTypeError(value, typeClass); in checkType()
119 … ((RubyEnumDescriptor) typeClass.getInstanceVariable(DESCRIPTOR_INSTANCE_VAR)).getDescriptor(); in checkType()
237 … IRubyObject type, IRubyObject number, IRubyObject typeClass, RubyClass cFieldDescriptor) { in msgdefCreateField() argument
245 if (!typeClass.isNil()) { in msgdefCreateField()
246 if (!(typeClass instanceof RubyString)) { in msgdefCreateField()
249 fieldDef.setSubmsgName(context, typeClass); in msgdefCreateField()
DRubyOneofBuilderContext.java75 IRubyObject typeClass = args.length > 3 ? args[3] : context.runtime.getNil(); in optional() local
77 name, type, number, typeClass, cFieldDescriptor); in optional()
DRubyMessage.java521 …RubyClass typeClass = (RubyClass) ((RubyDescriptor) getDescriptorForField(context, fieldDescriptor… in convert() local
522 if (!value.getMetaClass().equals(typeClass)) in convert()
563 …RubyClass typeClass = (RubyClass) ((RubyDescriptor) getDescriptorForField(context, fieldDescriptor… in wrapField() local
564 RubyMessage msg = (RubyMessage) typeClass.newInstance(context, Block.NULL_BLOCK); in wrapField()
579 IRubyObject typeClass = context.runtime.getNilClass(); in repeatedFieldForFieldDescriptor() local
584 typeClass = ((RubyDescriptor) descriptor).msgclass(context); in repeatedFieldForFieldDescriptor()
587 typeClass = ((RubyEnumDescriptor) descriptor).enummodule(context); in repeatedFieldForFieldDescriptor()
589 return new RubyRepeatedField(context.runtime, cRepeatedField, type, typeClass); in repeatedFieldForFieldDescriptor()
681 IRubyObject typeClass = context.runtime.getObject(); in setField() local
684typeClass = ((RubyDescriptor) getDescriptorForField(context, fieldDescriptor)).msgclass(context); in setField()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableEnum.java110 Class<?> typeClass = (Class<?>)managedType.getType(); in isTypeMappingSupported() local
112 if (typeClass.isEnum()) { in isTypeMappingSupported()
114 Log.v(TAG, "possible enum detected for " + typeClass); in isTypeMappingSupported()
120 typeClass.getDeclaredConstructor(String.class, int.class); in isTypeMappingSupported()
124 Log.e(TAG, "Can't marshal class " + typeClass + "; no default constructor"); in isTypeMappingSupported()
127 Log.e(TAG, "Can't marshal class " + typeClass + "; not accessible"); in isTypeMappingSupported()