Home
last modified time | relevance | path

Searched refs:elementType (Results 1 – 11 of 11) sorted by relevance

/system/tools/hidl/
DVectorType.cpp34 bool VectorType::isCompatibleElementType(const Type* elementType) const { in isCompatibleElementType()
35 if (elementType->isScalar()) { in isCompatibleElementType()
38 if (elementType->isString()) { in isCompatibleElementType()
41 if (elementType->isEnum()) { in isCompatibleElementType()
44 if (elementType->isBitField()) { in isCompatibleElementType()
47 if (elementType->isCompoundType()) { in isCompatibleElementType()
48 if (static_cast<const CompoundType*>(elementType)->containsInterface()) { in isCompatibleElementType()
53 if (elementType->isInterface()) { in isCompatibleElementType()
56 if (elementType->isHandle()) { in isCompatibleElementType()
59 if (elementType->isMemory()) { in isCompatibleElementType()
[all …]
DFmqType.cpp168 bool FmqType::isCompatibleElementType(const Type* elementType) const { in isCompatibleElementType()
169 return (!elementType->isInterface() && !elementType->needsEmbeddedReadWrite()); in isCompatibleElementType()
DVectorType.h35 bool isCompatibleElementType(const Type* elementType) const override;
96 const Type *elementType,
DArrayType.cpp27 ArrayType::ArrayType(const Reference<Type>& elementType, ConstantExpression* size, Scope* parent) in ArrayType() argument
28 : Type(parent, elementType.localName()), mElementType(elementType) { in ArrayType()
29 CHECK(!elementType.isEmptyReference()); in ArrayType()
DFmqType.h67 bool isCompatibleElementType(const Type* elementType) const override;
DArrayType.h31 ArrayType(const Reference<Type>& elementType, ConstantExpression* size, Scope* parent);
DType.h362 void setElementType(const Reference<Type>& elementType);
370 virtual bool isCompatibleElementType(const Type* elementType) const = 0;
DType.cpp743 void TemplatedType::setElementType(const Reference<Type>& elementType) { in setElementType() argument
746 CHECK(!elementType.isEmptyReference()); in setElementType()
748 mElementType = elementType; in setElementType()
DEnumType.h184 bool isCompatibleElementType(const Type* elementType) const override;
DEnumType.cpp866 bool BitFieldType::isCompatibleElementType(const Type* elementType) const { in isCompatibleElementType()
867 return elementType->isEnum(); in isCompatibleElementType()
/system/tools/hidl/hidl2aidl/
DAidlTranslate.cpp241 const Type* elementType; in containerTranslation() local
246 elementType = static_cast<const ArrayType*>(field.field->get())->getElementType(); in containerTranslation()
251 elementType = static_cast<const VectorType*>(field.field->get())->getElementType(); in containerTranslation()
259 if (elementType->isArray() || elementType->isVector()) { in containerTranslation()
265 if (elementType->isNamedType() && !elementType->isEnum()) { in containerTranslation()
275 out << "out." << field.field->name() << " = new " << elementType->getJavaType(true) in containerTranslation()
279 h2aScalarChecks(out, *elementType, inputAccess + javaElementAccess, backend); in containerTranslation()
293 h2aScalarChecks(out, *elementType, inputAccessElement, backend); in containerTranslation()
295 << wrapCppSource(inputAccessElement, *elementType, parent->fqName(), backend) in containerTranslation()