Home
last modified time | relevance | path

Searched refs:types (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/system/tools/aidl/
Dtype_java.cpp41 Type::Type(const JavaTypeNamespace* types, const string& name, int kind, bool canWriteToParcel) in Type() argument
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() argument
47 m_types(types), in Type()
66 BasicType::BasicType(const JavaTypeNamespace* types, const string& name, in BasicType() argument
70 : Type(types, name, ValidatableType::KIND_BUILT_IN, true), in BasicType()
73 m_array_type.reset(new BasicArrayType(types, name, writeArrayParcel, in BasicType()
77 BasicArrayType::BasicArrayType(const JavaTypeNamespace* types, const string& name, in BasicArrayType() argument
80 : Type(types, name, ValidatableType::KIND_BUILT_IN, true), in BasicArrayType()
87 FileDescriptorType::FileDescriptorType(const JavaTypeNamespace* types) in FileDescriptorType() argument
[all …]
Dgenerate_ndk.h29 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types,
33 void GenerateSource(CodeWriter& out, const AidlTypenames& types, const AidlInterface& defined_type,
35 void GenerateClassSource(CodeWriter& out, const AidlTypenames& types,
37 void GenerateClientSource(CodeWriter& out, const AidlTypenames& types,
39 void GenerateServerSource(CodeWriter& out, const AidlTypenames& types,
41 void GenerateInterfaceSource(CodeWriter& out, const AidlTypenames& types,
43 void GenerateClientHeader(CodeWriter& out, const AidlTypenames& types,
45 void GenerateServerHeader(CodeWriter& out, const AidlTypenames& types,
47 void GenerateInterfaceHeader(CodeWriter& out, const AidlTypenames& types,
50 void GenerateParcelHeader(CodeWriter& out, const AidlTypenames& types,
[all …]
Dgenerate_cpp.h33 bool GenerateCpp(const string& output_file, const Options& options, const cpp::TypeNamespace& types,
37 std::unique_ptr<Document> BuildClientSource(const TypeNamespace& types,
40 std::unique_ptr<Document> BuildServerSource(const TypeNamespace& types,
43 std::unique_ptr<Document> BuildInterfaceSource(const TypeNamespace& types,
46 std::unique_ptr<Document> BuildClientHeader(const TypeNamespace& types,
49 std::unique_ptr<Document> BuildServerHeader(const TypeNamespace& types,
52 std::unique_ptr<Document> BuildInterfaceHeader(const TypeNamespace& types,
56 std::unique_ptr<Document> BuildParcelHeader(const TypeNamespace& types,
59 std::unique_ptr<Document> BuildParcelSource(const TypeNamespace& types,
Dtype_java.h39 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,
73 BasicArrayType(const JavaTypeNamespace* types, const std::string& name,
88 BasicType(const JavaTypeNamespace* types, const std::string& name,
100 explicit FileDescriptorArrayType(const JavaTypeNamespace* types);
107 explicit FileDescriptorType(const JavaTypeNamespace* types);
112 explicit ParcelFileDescriptorArrayType(const JavaTypeNamespace* types);
119 explicit ParcelFileDescriptorType(const JavaTypeNamespace* types);
126 explicit BooleanArrayType(const JavaTypeNamespace* types);
132 explicit BooleanType(const JavaTypeNamespace* types);
[all …]
Dgenerate_ndk.cpp39 const AidlTypenames& types, const AidlInterface& defined_type, in GenerateNdkInterface() argument
43 GenerateInterfaceHeader(*i_writer, types, defined_type, options); in GenerateNdkInterface()
49 GenerateClientHeader(*bp_writer, types, defined_type, options); in GenerateNdkInterface()
55 GenerateServerHeader(*bn_writer, types, defined_type, options); in GenerateNdkInterface()
59 GenerateSource(*source_writer, types, defined_type, options); in GenerateNdkInterface()
64 const AidlTypenames& types, const AidlStructuredParcelable& defined_type, in GenerateNdkParcel() argument
69 GenerateParcelHeader(*header_writer, types, defined_type, options); in GenerateNdkParcel()
85 GenerateParcelSource(*source_writer, types, defined_type, options); in GenerateNdkParcel()
96 void GenerateNdk(const string& output_file, const Options& options, const AidlTypenames& types, in GenerateNdk() argument
100 GenerateNdkParcel(output_file, options, types, *parcelable, io_delegate); in GenerateNdk()
[all …]
Dgenerate_java_binder.cpp73 StubClass(const Type* type, const InterfaceType* interfaceType, JavaTypeNamespace* types,
95 Expression* get_transact_descriptor(const JavaTypeNamespace* types,
100 JavaTypeNamespace* types);
108 StubClass::StubClass(const Type* type, const InterfaceType* interfaceType, JavaTypeNamespace* types, in StubClass() argument
119 this->extends = types->BinderNativeType()->JavaType(); in StubClass()
124 new Variable(types->StringType()->JavaType(), "DESCRIPTOR")); in StubClass()
143 make_as_interface(interfaceType, types); in StubClass()
148 asBinder->returnType = types->IBinderType()->JavaType(); in StubClass()
159 getDefaultTransactionName->returnType = types->StringType()->JavaType(); in StubClass()
161 Variable* code = new Variable(types->IntType()->JavaType(), "transactionCode"); in StubClass()
[all …]
Daidl.cpp155 bool register_types(const AidlStructuredParcelable* parcel, TypeNamespace* types) { in register_types() argument
157 if (!types->MaybeAddContainerType(v->GetType())) { in register_types()
161 const ValidatableType* type = types->GetReturnType(v->GetType(), *parcel); in register_types()
170 bool register_types(const AidlInterface* c, TypeNamespace* types) { in register_types() argument
172 if (!types->MaybeAddContainerType(m->GetType())) { in register_types()
176 const ValidatableType* return_type = types->GetReturnType(m->GetType(), *c); in register_types()
187 if (!types->MaybeAddContainerType(arg->GetType())) { in register_types()
191 const ValidatableType* arg_type = types->GetArgType(*arg, index, *c); in register_types()
201 const ValidatableType* return_type = types->GetReturnType(*specifier, *c); in register_types()
407 TypeNamespace* types, AidlTypenames& typenames) { in parse_preprocessed_file() argument
[all …]
Dast_java_unittest.cpp42 JavaTypeNamespace types; in TEST() local
43 types.Init(); in TEST()
44 Type class_type(&types, "TestClass", ValidatableType::KIND_GENERATED, false); in TEST()
45 Type extend_type(&types, "SuperClass", ValidatableType::KIND_BUILT_IN, false); in TEST()
Dgenerate_cpp.cpp95 ArgList BuildArgList(const TypeNamespace& types, const AidlMethod& method, bool for_declaration, in BuildArgList() argument
129 if (return_type != types.VoidType()) { in BuildArgList()
144 const TypeNamespace& types, in BuildMethodDecl() argument
157 BuildArgList(types, method, true /* for method decl */), in BuildMethodDecl()
228 unique_ptr<Declaration> DefineClientTransaction(const TypeNamespace& types, in DefineClientTransaction() argument
235 ArgList{BuildArgList(types, method, true /* for method decl */)}}}; in DefineClientTransaction()
317 if (method.GetType().GetLanguageType<Type>() != types.VoidType()) { in DefineClientTransaction()
351 if (return_type != types.VoidType()) { in DefineClientTransaction()
434 unique_ptr<Document> BuildClientSource(const TypeNamespace& types, const AidlInterface& interface, in BuildClientSource() argument
471 m = DefineClientTransaction(types, interface, *method, options); in BuildClientSource()
[all …]
Daidl_to_ndk.h39 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode);
44 const AidlTypenames& types; member
56 const AidlTypenames& types, const AidlMethod& method,
82 std::string NdkMethodDecl(const AidlTypenames& types, const AidlMethod& method,
Daidl_to_ndk.cpp238 static TypeInfo::Aspect GetTypeAspect(const AidlTypenames& types, const AidlTypeSpecifier& aidl) { in GetTypeAspect() argument
252 const AidlDefinedType* type = types.TryGetDefinedType(aidl_name); in GetTypeAspect()
290 std::string NdkNameOf(const AidlTypenames& types, const AidlTypeSpecifier& aidl, StorageMode mode) { in NdkNameOf() argument
291 TypeInfo::Aspect aspect = GetTypeAspect(types, aidl); in NdkNameOf()
310 TypeInfo::Aspect aspect = GetTypeAspect(c.types, c.type); in WriteToParcelFor()
315 TypeInfo::Aspect aspect = GetTypeAspect(c.types, c.type); in ReadFromParcelFor()
320 const AidlTypenames& types, const AidlMethod& method, in NdkArgList() argument
326 std::string type = NdkNameOf(types, a->GetType(), mode); in NdkArgList()
332 std::string type = NdkNameOf(types, method.GetType(), StorageMode::OUT_ARGUMENT); in NdkArgList()
340 std::string NdkMethodDecl(const AidlTypenames& types, const AidlMethod& method, in NdkMethodDecl() argument
[all …]
/system/core/libmemtrack/
Dmemtrack.cpp43 memtrack_proc_type types[static_cast<int>(MemtrackType::NUM_TYPES)]; member
108 int ret = memtrack_proc_get_type(&p->types[i], pid, (MemtrackType)i); in memtrack_proc_get()
117 const std::vector<MemtrackType>& types, uint32_t flags) in memtrack_proc_sum() argument
121 for (size_t i = 0; i < types.size(); i++) { in memtrack_proc_sum()
122 memtrack_proc_type type = p->types[static_cast<int>(types[i])]; in memtrack_proc_sum()
136 std::vector<MemtrackType> types = {MemtrackType::GRAPHICS}; in memtrack_proc_graphics_total() local
137 return memtrack_proc_sum(p, types, 0); in memtrack_proc_graphics_total()
142 std::vector<MemtrackType> types = { MemtrackType::GRAPHICS }; in memtrack_proc_graphics_pss() local
143 return memtrack_proc_sum(p, types, in memtrack_proc_graphics_pss()
149 std::vector<MemtrackType> types = { MemtrackType::GL }; in memtrack_proc_gl_total() local
[all …]
/system/bt/vendor_libs/test_vendor_lib/types/
DAndroid.bp1 // Bluetooth types
3 name: "libbt-rootcanal-types-header",
10 name: "libbt-rootcanal-types",
23 header_libs: ["libbt-rootcanal-types-header"],
24 export_header_lib_headers: ["libbt-rootcanal-types-header"],
39 "libbt-rootcanal-types",
/system/libhidl/transport/
DHidlTransportUtils.cpp39 auto chainRet = interface->interfaceChain([&](const hidl_vec<hidl_string> &types) { in canCastInterface() argument
40 for (size_t i = 0; i < types.size(); i++) { in canCastInterface()
41 if (types[i] == castTo) { in canCastInterface()
64 auto ret = interface->interfaceDescriptor([&](const hidl_string &types) { in getDescriptor() argument
65 myDescriptor = types.c_str(); in getDescriptor()
/system/bt/types/
DAndroid.bp1 // Bluetooth types
3 name: "libbluetooth-types-header",
10 name: "libbluetooth-types",
23 header_libs: ["libbluetooth-types-header"],
24 export_header_lib_headers: ["libbluetooth-types-header"],
/system/sepolicy/prebuilts/api/29.0/public/
Dattributes5 # All types used for devices.
10 # All types used for processes.
13 # All types used for filesystems.
18 # All types used for context= mounts.
21 # All types used for files that can exist on a labeled fs.
22 # Do not use for pseudo file types.
27 # All types used for domain entry points.
30 # All types used for /data files.
33 # All types in /data, not in /data/vendor
37 # All types in /system
[all …]
/system/sepolicy/public/
Dattributes5 # All types used for devices.
10 # All types used for processes.
13 # All types used for filesystems.
18 # All types used for context= mounts.
21 # All types used for files that can exist on a labeled fs.
22 # Do not use for pseudo file types.
27 # All types used for domain entry points.
30 # All types used for /data files.
33 # All types in /data, not in /data/vendor
37 # All types in /system
[all …]
/system/sepolicy/prebuilts/api/26.0/public/
Dattributes5 # All types used for devices.
10 # All types used for processes.
13 # All types used for filesystems.
18 # All types used for context= mounts.
21 # All types used for files that can exist on a labeled fs.
22 # Do not use for pseudo file types.
27 # All types used for domain entry points.
30 # All types used for /data files.
32 # All types in /data, not in /data/vendor
34 # All types in /vendor
[all …]
/system/sepolicy/prebuilts/api/28.0/public/
Dattributes5 # All types used for devices.
10 # All types used for processes.
13 # All types used for filesystems.
18 # All types used for context= mounts.
21 # All types used for files that can exist on a labeled fs.
22 # Do not use for pseudo file types.
27 # All types used for domain entry points.
30 # All types used for /data files.
33 # All types in /data, not in /data/vendor
36 # All types in /vendor
[all …]
/system/sepolicy/prebuilts/api/27.0/private/compat/26.0/
D26.0.ignore.cil1 ;; new_objects - a collection of types that have been introduced that have no
2 ;; analogue in older policy. Thus, we do not need to map these types to
29 ;; private_objects - a collection of types that were labeled differently in
31 ;; Thus, these types are also not mapped, but recorded for checkapi tests
/system/sepolicy/prebuilts/api/27.0/public/
Dattributes5 # All types used for devices.
10 # All types used for processes.
13 # All types used for filesystems.
18 # All types used for context= mounts.
21 # All types used for files that can exist on a labeled fs.
22 # Do not use for pseudo file types.
27 # All types used for domain entry points.
30 # All types used for /data files.
33 # All types in /data, not in /data/vendor
35 # All types in /vendor
[all …]
/system/sepolicy/tools/sepolicy-analyze/
DREADME14 Equivalent types are candidates for being coalesced into a single
16 separate, for example: - the types may differ in a respect not
21 other of the types and thus the correct action may be to tighten
24 types may not yet be defined or may be unconfined in the policy
31 between the two types. This may be used in looking for similar
32 types that are not equivalent but may be candidates for coalescing.
39 directly in terms of individual types and the other is written in
40 terms of attributes associated with those same types. The rule
41 with individual types is a candidate for removal. The rule with
42 individual types may be directly represented in the source policy
[all …]
/system/core/init/
Ddescriptors.cpp84 auto types = android::base::Split(type(), "+"); in Create() local
86 … ((types[0] == "stream" ? SOCK_STREAM : (types[0] == "dgram" ? SOCK_DGRAM : SOCK_SEQPACKET))); in Create()
87 bool passcred = types.size() > 1 && types[1] == "passcred"; in Create()
/system/sepolicy/prebuilts/api/28.0/private/compat/27.0/
D27.0.ignore.cil1 ;; new_objects - a collection of types that have been introduced that have no
2 ;; analogue in older policy. Thus, we do not need to map these types to
129 ;; private_objects - a collection of types that were labeled differently in
131 ;; Thus, these types are also not mapped, but recorded for checkapi tests
/system/tools/xsdc/tests/resources/predefined_types/api/
Dcurrent.txt2 package predefined.types {
128 method public predefined.types.DateTypes getDateTypes();
129 method public predefined.types.ListPrimitiveTypes getListPrimitiveTypes();
130 method public predefined.types.MiscTypes getMiscTypes();
131 method public predefined.types.NumericTypes getNumericTypes();
132 method public predefined.types.StringTypes getStringTypes();
133 method public void setDateTypes(predefined.types.DateTypes);
134 method public void setListPrimitiveTypes(predefined.types.ListPrimitiveTypes);
135 method public void setMiscTypes(predefined.types.MiscTypes);
136 method public void setNumericTypes(predefined.types.NumericTypes);
[all …]

12345678910>>...12