Searched refs:TypeDescriptor (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/startop/view_compiler/ |
D | dex_layout_compiler.cc | 54 dex::TypeDescriptor::FromClassname("android.content.res.XmlResourceParser"), "next", 55 dex::Prototype{dex::TypeDescriptor::Int()})}, 57 dex::TypeDescriptor::FromClassname("android.view.LayoutInflater"), "tryCreateView", 58 dex::Prototype{dex::TypeDescriptor::FromClassname("android.view.View"), 59 dex::TypeDescriptor::FromClassname("android.view.View"), 60 dex::TypeDescriptor::FromClassname("java.lang.String"), 61 dex::TypeDescriptor::FromClassname("android.content.Context"), 62 dex::TypeDescriptor::FromClassname("android.util.AttributeSet")})}, 64 dex::TypeDescriptor::FromClassname("android.view.ViewGroup"), "generateLayoutParams", 65 dex::Prototype{dex::TypeDescriptor::FromClassname("android.view.ViewGroup$LayoutParams"), [all …]
|
D | dex_builder_test.cc | 54 auto method{cbuilder.CreateMethod("foo", Prototype{TypeDescriptor::Void()})}; in TEST() 69 cbuilder.CreateMethod("foo", Prototype{TypeDescriptor::Void(), TypeDescriptor::Void()})}; in TEST() 87 auto method{cbuilder.CreateMethod("foo", Prototype{TypeDescriptor::Int()})}; in TEST() 108 cbuilder.CreateMethod("foo", Prototype{TypeDescriptor::Int(), TypeDescriptor::Int()})}; in TEST() 127 "foo", Prototype{TypeDescriptor::Int(), TypeDescriptor::FromClassname("java.lang.String")})}; in TEST() 132 dex_file.GetOrDeclareMethod(TypeDescriptor::FromClassname("java.lang.String"), in TEST() 134 Prototype{TypeDescriptor::Int()}); in TEST() 156 "foo", Prototype{TypeDescriptor::Int()})}; in TEST() 170 dex_file.GetOrDeclareMethod(TypeDescriptor::FromClassname("java.lang.String"), in TEST() 172 Prototype{TypeDescriptor::Int()}); in TEST()
|
D | dex_testcase_generator.cc | 48 auto return5{cbuilder.CreateMethod("return5", Prototype{TypeDescriptor::Int()})}; in GenerateSimpleTestCases() 57 auto integer_type{TypeDescriptor::FromClassname("java.lang.Integer")}; in GenerateSimpleTestCases() 64 object, integer_type, Prototype{TypeDescriptor::Void(), TypeDescriptor::Int()}, five); in GenerateSimpleTestCases() 71 Prototype{TypeDescriptor::Int(), TypeDescriptor::Int()})}; in GenerateSimpleTestCases() 76 auto string_type{TypeDescriptor::FromClassname("java.lang.String")}; in GenerateSimpleTestCases() 78 dex_file.GetOrDeclareMethod(string_type, "length", Prototype{TypeDescriptor::Int()})}; in GenerateSimpleTestCases() 81 cbuilder.CreateMethod("returnStringLength", Prototype{TypeDescriptor::Int(), string_type})}; in GenerateSimpleTestCases() 92 "returnIfZero", Prototype{TypeDescriptor::Int(), TypeDescriptor::Int()})}; in GenerateSimpleTestCases() 113 "returnIfNotZero", Prototype{TypeDescriptor::Int(), TypeDescriptor::Int()})}; in GenerateSimpleTestCases() 149 cbuilder.CreateMethod("backwardsBranch", Prototype{TypeDescriptor::Int()})}; in GenerateSimpleTestCases() [all …]
|
D | dex_builder.h | 59 class TypeDescriptor { 62 static const TypeDescriptor Int(); 63 static const TypeDescriptor Void(); 67 static TypeDescriptor FromClassname(const std::string& name); 76 bool operator<(const TypeDescriptor& rhs) const { return descriptor_ < rhs.descriptor_; } 79 explicit TypeDescriptor(std::string descriptor) : descriptor_{descriptor} {} in TypeDescriptor() function 89 explicit Prototype(TypeDescriptor return_type, TypeDescriptors... param_types) in Prototype() 98 const TypeDescriptor& ArgType(size_t index) const; 106 const TypeDescriptor return_type_; 107 const std::vector<TypeDescriptor> param_types_; [all …]
|
D | dex_builder.cc | 35 const TypeDescriptor TypeDescriptor::Int() { return TypeDescriptor{"I"}; }; in Int() 36 const TypeDescriptor TypeDescriptor::Void() { return TypeDescriptor{"V"}; }; in Void() 148 TypeDescriptor string_type = TypeDescriptor::FromClassname("java.lang.String"); in WriteTestDexFile() 150 MethodBuilder method{cbuilder.CreateMethod("foo", Prototype{TypeDescriptor::Int(), string_type})}; in WriteTestDexFile() 155 dex_file.GetOrDeclareMethod(string_type, "length", Prototype{TypeDescriptor::Int()}); in WriteTestDexFile() 168 TypeDescriptor TypeDescriptor::FromClassname(const std::string& name) { in FromClassname() 169 return TypeDescriptor{art::DotToDescriptor(name.c_str())}; in FromClassname() 256 const TypeDescriptor& Prototype::ArgType(size_t index) const { in ArgType() 262 : parent_(parent), type_descriptor_{TypeDescriptor::FromClassname(name)}, class_(class_def) {} in ClassBuilder() 558 const MethodDeclData& DexBuilder::GetOrDeclareMethod(TypeDescriptor type, const std::string& name, in GetOrDeclareMethod()
|
D | main.cc | 44 using startop::dex::TypeDescriptor; 155 Prototype{TypeDescriptor::FromClassname("android.view.View"), in main() 156 TypeDescriptor::FromClassname("android.content.Context"), in main() 157 TypeDescriptor::Int()})}; in main()
|
D | apk_layout_compiler.cc | 128 dex::Prototype{dex::TypeDescriptor::FromClassname("android.view.View"), in CompileApkAssetsLayouts() 129 dex::TypeDescriptor::FromClassname("android.content.Context"), in CompileApkAssetsLayouts() 130 dex::TypeDescriptor::Int()})); in CompileApkAssetsLayouts()
|