Home
last modified time | relevance | path

Searched refs:Type (Results 1 – 25 of 221) sorted by relevance

123456789

/system/tools/hidl/
DType.cpp31 Type::Type(Scope* parent) : mParent(parent) {} in Type() function in android::Type
33 Type::~Type() {} in ~Type()
35 bool Type::isScope() const { in isScope()
39 bool Type::isInterface() const { in isInterface()
43 bool Type::isScalar() const { in isScalar()
47 bool Type::isString() const { in isString()
51 bool Type::isEnum() const { in isEnum()
55 bool Type::isBitField() const { in isBitField()
59 bool Type::isHandle() const { in isHandle()
63 bool Type::isTypeDef() const { in isTypeDef()
[all …]
DType.h40 struct Type : DocCommentable { struct
41 Type(Scope* parent);
42 virtual ~Type();
61 Type* resolve();
62 virtual const Type* resolve() const;
65 std::vector<Type*> getDefinedTypes();
66 virtual std::vector<const Type*> getDefinedTypes() const;
69 std::vector<Reference<Type>*> getReferences();
70 virtual std::vector<const Reference<Type>*> getReferences() const;
78 std::vector<Reference<Type>*> getStrongReferences();
[all …]
DMethod.h41 struct Type;
55 Method(const char* name, std::vector<NamedReference<Type>*>* args,
56 std::vector<NamedReference<Type>*>* results, bool oneway,
60 const std::vector<NamedReference<Type>*>& args() const;
61 const std::vector<NamedReference<Type>*>& results() const;
70 std::vector<Reference<Type>*> getReferences();
71 std::vector<const Reference<Type>*> getReferences() const;
73 std::vector<Reference<Type>*> getStrongReferences();
74 std::vector<const Reference<Type>*> getStrongReferences() const;
105 const NamedReference<Type>* canElideCallback() const;
[all …]
DAST.cpp98 err = setParseStage(Type::ParseStage::PARSE, Type::ParseStage::POST_PARSE); in postParse()
138 err = setParseStage(Type::ParseStage::POST_PARSE, Type::ParseStage::COMPLETED); in postParse()
146 std::unordered_set<const Type*> visitedTypes; in constantExpressionRecursivePass()
148 return mRootScope.recursivePass(Type::ParseStage::POST_PARSE, in constantExpressionRecursivePass()
149 [&](Type* type) -> status_t { in constantExpressionRecursivePass()
163 std::unordered_set<const Type*> visitedTypes; in constantExpressionRecursivePass()
165 return mRootScope.recursivePass(Type::ParseStage::POST_PARSE, in constantExpressionRecursivePass()
166 [&](const Type* type) -> status_t { in constantExpressionRecursivePass()
177 status_t AST::setParseStage(Type::ParseStage oldStage, Type::ParseStage newStage) { in setParseStage()
178 std::unordered_set<const Type*> visited; in setParseStage()
[all …]
DScope.cpp119 std::vector<const Type*> Scope::getDefinedTypes() const { in getDefinedTypes()
120 std::vector<const Type*> ret; in getDefinedTypes()
134 void Scope::topologicalReorder(const std::unordered_map<const Type*, size_t>& reversedOrder) { in topologicalReorder() argument
135 auto less = [&](const Type* lhs, const Type* rhs) { in topologicalReorder()
153 for (const Type* type : mTypes) { in emitTypeDeclarations()
162 for (const Type* type : mTypes) { in emitTypeDeclarations()
169 for (const Type* type : mTypes) { in emitGlobalTypeDeclarations()
175 for (const Type* type : mTypes) { in emitPackageTypeDeclarations()
181 for (const Type* type : mTypes) { in emitPackageTypeHeaderDefinitions()
187 for (const Type* type : mTypes) { in emitPackageHwDeclarations()
[all …]
DTypeDef.h27 const Reference<Type>& type);
33 Type* referencedType();
34 const Type* referencedType() const;
42 const Type* resolve() const override;
44 std::vector<const Reference<Type>*> getReferences() const override;
49 Reference<Type> mReferencedType;
DMethod.cpp30 Method::Method(const char* name, std::vector<NamedReference<Type>*>* args, in Method()
31 std::vector<NamedReference<Type>*>* results, bool oneway, in Method()
60 const std::vector<NamedReference<Type>*>& Method::args() const { in args()
64 const std::vector<NamedReference<Type>*>& Method::results() const { in results()
72 std::vector<Reference<Type>*> Method::getReferences() { in getReferences()
74 std::vector<Reference<Type>*> ret(constRet.size()); in getReferences()
76 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences()
80 std::vector<const Reference<Type>*> Method::getReferences() const { in getReferences()
81 std::vector<const Reference<Type>*> ret; in getReferences()
87 std::vector<Reference<Type>*> Method::getStrongReferences() { in getStrongReferences()
[all …]
DAST.h45 struct Type;
76 Type* lookupType(const FQName& fqName, Scope* scope);
92 status_t setParseStage(Type::ParseStage oldStage, Type::ParseStage newStage);
179 std::vector<const Type *> *exportedTypes) const;
230 std::map<AST *, std::set<Type *>> mImportedTypes;
233 std::map<FQName, Type *> mDefinedTypesByFullName;
241 Type* lookupTypeLocally(const FQName& fqName, Scope* scope);
242 status_t lookupAutofilledType(const FQName &fqName, Type **returnedType);
243 Type *lookupTypeFromImports(const FQName &fqName);
248 Type *findDefinedType(const FQName &fqName, FQName *matchingName) const;
[all …]
DTypeDef.cpp25 Scope* parent, const Reference<Type>& type) in TypeDef()
33 Type* TypeDef::referencedType() { in referencedType()
37 const Type* TypeDef::referencedType() const { in referencedType()
58 const Type* TypeDef::resolve() const { in resolve()
62 std::vector<const Reference<Type>*> TypeDef::getReferences() const { in getReferences()
DArrayType.h30 struct ArrayType : public Type {
31 ArrayType(const Reference<Type>& elementType, ConstantExpression* size, Scope* parent);
34 bool deepCanCheckEquality(std::unordered_set<const Type*>* visited) const override;
36 const Type* getElementType() const;
43 std::vector<const Reference<Type>*> getReferences() const override;
110 bool deepNeedsResolveReferences(std::unordered_set<const Type*>* visited) const override;
136 bool deepIsJavaCompatible(std::unordered_set<const Type*>* visited) const override;
137 bool deepContainsPointer(std::unordered_set<const Type*>* visited) const override;
142 Reference<Type> mElementType;
/system/tools/aidl/
Dtype_java.h31 class Type : public ValidatableType {
39 Type(const JavaTypeNamespace* types, const std::string& name, int kind, bool canWriteToParcel);
40 Type(const JavaTypeNamespace* types, const std::string& package, const std::string& name,
42 virtual ~Type() = default;
60 std::unique_ptr<Type> m_array_type;
63 Type();
64 Type(const Type&);
71 class BasicArrayType : public Type {
86 class BasicType : public Type {
98 class FileDescriptorArrayType : public Type {
[all …]
Dtype_cpp.cpp43 Type* const kNoArrayType = nullptr;
44 Type* const kNoNullableType = nullptr;
46 class VoidType : public Type {
48 VoidType() : Type(ValidatableType::KIND_BUILT_IN, kNoPackage, "void", in VoidType()
54 class CppArrayType : public Type {
66 : Type(kind, package, in CppArrayType()
104 class PrimitiveType : public Type {
113 : Type(ValidatableType::KIND_BUILT_IN, kNoPackage, aidl_type, {header}, in PrimitiveType()
130 class ByteType : public Type {
133 : Type(ValidatableType::KIND_BUILT_IN, kNoPackage, "byte", in ByteType()
[all …]
Dtype_java.cpp41 Type::Type(const JavaTypeNamespace* types, const string& name, int kind, bool canWriteToParcel) in Type() function in android::aidl::java::Type
42 : Type(types, "", name, kind, canWriteToParcel, "", -1) {} in Type()
44 Type::Type(const JavaTypeNamespace* types, const string& package, const string& name, int kind, in Type() function in android::aidl::java::Type
51 string Type::InstantiableName() const { return JavaType(); } in InstantiableName()
53 Expression* Type::BuildWriteToParcelFlags(int flags) const { in BuildWriteToParcelFlags()
70 : Type(types, name, ValidatableType::KIND_BUILT_IN, true), in BasicType()
80 : Type(types, name, ValidatableType::KIND_BUILT_IN, true), in BasicArrayType()
88 : Type(types, "java.io", "FileDescriptor", ValidatableType::KIND_BUILT_IN, true) { in FileDescriptorType()
93 : Type(types, "java.io", "FileDescriptor", ValidatableType::KIND_BUILT_IN, true) {} in FileDescriptorArrayType()
98 : Type(types, "android.os", "ParcelFileDescriptor", ValidatableType::KIND_BUILT_IN, true) { in ParcelFileDescriptorType()
[all …]
Dtype_cpp.h32 class Type : public ValidatableType {
34 Type(int kind, // from ValidatableType
41 Type* array_type = nullptr,
42 Type* nullable_type = nullptr,
45 virtual ~Type() = default;
50 const Type* ArrayType() const override { return array_type_.get(); } in ArrayType()
51 const Type* NullableType() const override { return nullable_type_.get(); } in NullableType()
82 const std::unique_ptr<Type> array_type_;
83 const std::unique_ptr<Type> nullable_type_;
85 DISALLOW_COPY_AND_ASSIGN(Type);
[all …]
/system/libvintf/include/vintf/
DSerializeFlags.h27 class Type {
29 explicit constexpr Type(uint32_t value) : mValue(value) {} in Type() function
32 constexpr Type enable##name() const { return Type(mValue | (1 << bit)); } \
33 constexpr Type disable##name() const { return Type(mValue & ~(1 << bit)); } \
55 constexpr Type EVERYTHING = Type(~0);
56 constexpr Type NO_HALS = EVERYTHING.disableHals();
57 constexpr Type NO_AVB = EVERYTHING.disableAvb();
58 constexpr Type NO_SEPOLICY = EVERYTHING.disableSepolicy();
59 constexpr Type NO_VNDK = EVERYTHING.disableVndk();
60 constexpr Type NO_KERNEL = EVERYTHING.disableKernel();
[all …]
DCheckFlags.h26 class Type {
29 [[nodiscard]] constexpr Type enable##name() const { return Type(mValue | (1 << bit)); } \
30 [[nodiscard]] constexpr Type disable##name() const { return Type(mValue & ~(1 << bit)); } \
38 explicit constexpr Type(int32_t value) : mValue(value) {} in Type() function
44 constexpr Type ENABLE_ALL_CHECKS{~0};
45 constexpr Type DISABLE_ALL_CHECKS{0};
47 constexpr Type DISABLE_AVB_CHECK = ENABLE_ALL_CHECKS.disableAvb();
49 constexpr Type DISABLE_RUNTIME_INFO = ENABLE_ALL_CHECKS.disableRuntimeInfo();
52 constexpr Type DEFAULT = DISABLE_AVB_CHECK;
/system/tools/hidl/c2hal/
DType.cpp24 Type::Type(std::vector<Qualifier*> *qualifiers) in Type() function in android::Type
28 Type::~Type() { in ~Type()
43 void Type::setArrays(std::vector<Expression*> *arrays) { in setArrays()
47 const std::string Type::decorateName(const std::string &name) const { in decorateName()
63 std::map<std::string, std::string> Type::kSignedToUnsignedMap = {
74 const std::string Type::signedToUnsigned(const std::string &signedType) { in signedToUnsigned()
84 std::map<std::string, std::string> Type::kCToHidlMap = {
107 const std::string Type::cToHidlType(const std::string &cType) { in cToHidlType()
117 const std::string Type::getHidlType() const { in getHidlType()
130 case Type::Qualifier::STRUCT: in getHidlType()
[all …]
DExpression.cpp32 Expression::Type Expression::integralType(const std::string& integer) { in integralType()
34 return Type::S32; in integralType()
38 return Type::U32; in integralType()
42 return Type::S64; in integralType()
46 return Type::U64; in integralType()
51 return Type::UNKNOWN; in integralType()
54 Expression::Type Expression::coalesceTypes(Type lhs, Type rhs) { in coalesceTypes()
67 return (Type)MAX_RANK(lhs); in coalesceTypes()
75 return Type::UNKNOWN; in coalesceTypes()
89 Type getType(const AST &ast) override { in getType()
[all …]
DExpression.h34 enum Type { enum
42 static std::string getTypeDescription(Type type) { in getTypeDescription()
54 static std::string getTypeName(Type type) { in getTypeName()
66 static Type integralType(const std::string& integer);
67 static Type coalesceTypes(Type lhs, Type rhs);
70 static Expression *atom(Type type, const std::string &value, bool isId = false);
77 virtual Type getType(const AST &scope) = 0;
DCompositeDeclaration.cpp29 const Type::Qualifier::Qualification qualifier, in CompositeDeclaration()
53 const Type::Qualifier::Qualification &CompositeDeclaration::getQualifier() const { in getQualifier()
71 CHECK(mQualifier == Type::Qualifier::STRUCT || in generateSource()
72 mQualifier == Type::Qualifier::UNION || in generateSource()
73 mQualifier == Type::Qualifier::ENUM); in generateSource()
75 out << Type::qualifierText(mQualifier) << " " << getName(); in generateSource()
77 if (mQualifier == Type::Qualifier::ENUM) { in generateSource()
141 auto subStruct = new CompositeDeclaration(Type::Qualifier::STRUCT, in processContents()
155 if (mQualifier != Type::Qualifier::STRUCT) { in isInterface()
168 CHECK(mQualifier == Type::Qualifier::ENUM); in setEnumTypeName()
Dc2hal_y.yy21 #include "Type.h"
160 android::Type *type;
161 android::Type::Qualifier *qualifier;
162 android::Type::Qualifier::Qualification qualification;
163 std::vector<android::Type::Qualifier*> *qualifiers;
267 $$ = new CompositeDeclaration(Type::Qualifier::STRUCT,
326 $$ = new CompositeDeclaration(Type::Qualifier::ENUM, $2, $6);
437 $$ = new VarDeclaration(new Type(NULL), "...");
444 $$ = new Type($1);
451 $$ = new std::vector<Type::Qualifier *>;
[all …]
/system/nvram/messages/include/nvram/messages/
Dtagged_union.h104 using Type = Member; member
141 using Type = typename MemberForTag<TagType, tag, Tail...>::Type;
149 using Type = TaggedUnionMember<tag, MemberType>;
155 using Type = Elem;
165 using Type = typename detail::MemberForTag<TagType, tag, Member...>::Type;
171 Construct<static_cast<TagType>(detail::Head<Member...>::Type::kTag)>();
201 const typename MemberLookup<tag>::Type::Type* get() const {
208 typename MemberLookup<tag>::Type::Type* get() {
217 typename MemberLookup<tag>::Type::Type& Activate() {
225 const typename MemberLookup<tag>::Type::Type* GetUnchecked() const {
[all …]
Dtype_traits.h32 using Type = T; member
36 using Type = T;
41 using Type = T;
45 using Type = T;
49 using Type = T;
57 using Type = T;
76 using Type = typename make_index_sequence_builder<size - 1,
78 indices...>::Type;
83 using Type = index_sequence<indices...>;
87 constexpr typename make_index_sequence_builder<size>::Type
[all …]
Dproto.hpp115 template <typename Type, typename Enable = void>
123 static_assert(sizeof(Type) == 0,
133 template <typename Codec, typename Type>
134 NVRAM_NOINLINE bool EncodeField(const Type& value, ProtoWriter* writer) { in EncodeField()
141 template <typename Codec, typename Type>
142 NVRAM_NOINLINE bool DecodeField(Type& value, ProtoReader* reader) { in DecodeField()
167 template <typename Type>
180 static constexpr bool value = IsCastConvertible<Type, uint64_t>::value &&
181 IsCastConvertible<uint64_t, Type>::value;
185 template <typename Type>
[all …]
/system/iorap/include/binder/
Dapp_launch_event.h38 enum class Type : int32_t { enum
54 Type type{Type::kUninitialized};
64 AppLaunchEvent(Type type,
86 type = static_cast<Type>(type_int); in readFromParcel()
93 case Type::kIntentStarted: in readFromParcel()
96 case Type::kIntentFailed: in readFromParcel()
99 case Type::kActivityLaunched: { in readFromParcel()
106 case Type::kActivityLaunchFinished: in readFromParcel()
109 case Type::kActivityLaunchCancelled: in readFromParcel()
132 case Type::kIntentStarted: in writeToParcel()
[all …]

123456789