Home
last modified time | relevance | path

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

1234567891011

/system/tools/hidl/
DType.cpp32 Type::Type(Scope* parent, const std::string& definedName) in Type() function in android::Type
35 Type::~Type() {} in ~Type()
37 bool Type::isScope() const { in isScope()
41 bool Type::isInterface() const { in isInterface()
45 bool Type::isScalar() const { in isScalar()
49 bool Type::isString() const { in isString()
53 bool Type::isEnum() const { in isEnum()
57 bool Type::isBitField() const { in isBitField()
61 bool Type::isHandle() const { in isHandle()
65 bool Type::isTypeDef() const { in isTypeDef()
[all …]
DType.h40 struct Type : DocCommentable { struct
41 Type(Scope* parent, const std::string& definedName);
42 virtual ~Type();
62 Type* resolve();
63 virtual const Type* resolve() const;
66 std::vector<Type*> getDefinedTypes();
67 virtual std::vector<const Type*> getDefinedTypes() const;
70 std::vector<Reference<Type>*> getReferences();
71 virtual std::vector<const Reference<Type>*> getReferences() const;
79 std::vector<Reference<Type>*> getStrongReferences();
[all …]
DMethod.h41 struct Type;
55 Method(const std::string& 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.cpp111 err = setParseStage(Type::ParseStage::PARSE, Type::ParseStage::POST_PARSE); in postParse()
151 err = setParseStage(Type::ParseStage::POST_PARSE, Type::ParseStage::COMPLETED); in postParse()
159 std::unordered_set<const Type*> visitedTypes; in constantExpressionRecursivePass()
161 return mRootScope.recursivePass(Type::ParseStage::POST_PARSE, in constantExpressionRecursivePass()
162 [&](Type* type) -> status_t { in constantExpressionRecursivePass()
176 std::unordered_set<const Type*> visitedTypes; in constantExpressionRecursivePass()
178 return mRootScope.recursivePass(Type::ParseStage::POST_PARSE, in constantExpressionRecursivePass()
179 [&](const Type* type) -> status_t { in constantExpressionRecursivePass()
190 status_t AST::setParseStage(Type::ParseStage oldStage, Type::ParseStage newStage) { in setParseStage()
191 std::unordered_set<const Type*> visited; in setParseStage()
[all …]
DScope.cpp121 std::vector<const Type*> Scope::getDefinedTypes() const { in getDefinedTypes()
122 std::vector<const Type*> ret; in getDefinedTypes()
137 void Scope::topologicalReorder(const std::unordered_map<const Type*, size_t>& reversedOrder) { in topologicalReorder() argument
138 auto less = [&](const Type* lhs, const Type* rhs) { in topologicalReorder()
162 for (const Type* type : mTypes) { in emitTypeDeclarations()
171 for (const Type* type : mTypes) { in emitTypeDeclarations()
178 for (const Type* type : mTypes) { in emitGlobalTypeDeclarations()
184 for (const Type* type : mTypes) { in emitPackageTypeDeclarations()
190 for (const Type* type : mTypes) { in emitPackageTypeHeaderDefinitions()
196 for (const Type* type : mTypes) { in emitPackageHwDeclarations()
[all …]
DTypeDef.h29 Scope* parent, const Reference<Type>& type);
35 Type* referencedType();
36 const Type* referencedType() const;
44 const Type* resolve() const override;
46 std::vector<const Reference<Type>*> getReferences() const override;
52 Reference<Type> mReferencedType;
DMethod.cpp35 Method::Method(const std::string& name, std::vector<NamedReference<Type>*>* args, in Method()
36 std::vector<NamedReference<Type>*>* results, bool oneway, in Method()
65 const std::vector<NamedReference<Type>*>& Method::args() const { in args()
69 const std::vector<NamedReference<Type>*>& Method::results() const { in results()
77 std::vector<Reference<Type>*> Method::getReferences() { in getReferences()
79 std::vector<Reference<Type>*> ret(constRet.size()); in getReferences()
81 [](const auto* ref) { return const_cast<Reference<Type>*>(ref); }); in getReferences()
85 std::vector<const Reference<Type>*> Method::getReferences() const { in getReferences()
86 std::vector<const Reference<Type>*> ret; in getReferences()
92 std::vector<Reference<Type>*> Method::getStrongReferences() { in getStrongReferences()
[all …]
DTypeDef.cpp26 Scope* parent, const Reference<Type>& type) in TypeDef()
34 Type* TypeDef::referencedType() { in referencedType()
38 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;
113 bool deepIsJavaCompatible(std::unordered_set<const Type*>* visited) const override;
114 bool deepContainsPointer(std::unordered_set<const Type*>* visited) const override;
119 Reference<Type> mElementType;
/system/tools/aidl/
Daidl_const_expressions.cpp60 case Type::BOOLEAN: \
62 case Type::INT8: \
64 case Type::INT32: \
66 case Type::INT64: \
144 bool AidlUnaryConstExpression::IsCompatibleType(Type type, const string& op) { in IsCompatibleType()
147 case Type::BOOLEAN: // fall-through in IsCompatibleType()
148 case Type::INT8: // fall-through in IsCompatibleType()
149 case Type::INT32: // fall-through in IsCompatibleType()
150 case Type::INT64: in IsCompatibleType()
152 case Type::FLOATING: in IsCompatibleType()
[all …]
Daidl_language.cpp113 {AidlAnnotation::Type::NULLABLE, "nullable", {}}, in AllSchemas()
114 {AidlAnnotation::Type::UTF8_IN_CPP, "utf8InCpp", {}}, in AllSchemas()
115 {AidlAnnotation::Type::VINTF_STABILITY, "VintfStability", {}}, in AllSchemas()
116 {AidlAnnotation::Type::UNSUPPORTED_APP_USAGE, in AllSchemas()
123 {AidlAnnotation::Type::JAVA_STABLE_PARCELABLE, "JavaOnlyStableParcelable", {}}, in AllSchemas()
124 {AidlAnnotation::Type::HIDE, "Hide", {}}, in AllSchemas()
125 {AidlAnnotation::Type::BACKING, "Backing", {{"type", "String"}}}, in AllSchemas()
126 {AidlAnnotation::Type::JAVA_PASSTHROUGH, "JavaPassthrough", {{"annotation", "String"}}}, in AllSchemas()
127 {AidlAnnotation::Type::JAVA_DEBUG, "JavaDebug", {}}, in AllSchemas()
128 {AidlAnnotation::Type::IMMUTABLE, "Immutable", {}}, in AllSchemas()
[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 …]
DFunctionDeclaration.h27 struct Type;
30 FunctionDeclaration(Type* type,
37 const Type * getType() const;
47 const Type *mType;
DType.h30 struct Type { struct
50 Type *generics; argument
57 Qualifier(Qualification qualification, Type* generics) in Qualifier()
67 Type(std::vector<Qualifier*> *qualifiers);
68 ~Type();
112 DISALLOW_COPY_AND_ASSIGN(Type); argument
/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 …]
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dacl_connection.h32 Phy::Type phy_type);
48 Phy::Type GetPhyType() const;
53 Phy::Type type_{Phy::Type::BR_EDR};

1234567891011