Searched refs:TypeDescriptor (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/startop/view_compiler/ |
D | dex_layout_compiler.cc | 28 using dex::TypeDescriptor; 34 const TypeDescriptor kAttributeSet = TypeDescriptor::FromClassname("android.util.AttributeSet"); 35 const TypeDescriptor kContext = TypeDescriptor::FromClassname("android.content.Context"); 36 const TypeDescriptor kLayoutInflater = TypeDescriptor::FromClassname("android.view.LayoutInflater"); 37 const TypeDescriptor kResources = TypeDescriptor::FromClassname("android.content.res.Resources"); 38 const TypeDescriptor kString = TypeDescriptor::FromClassname("java.lang.String"); 39 const TypeDescriptor kView = TypeDescriptor::FromClassname("android.view.View"); 40 const TypeDescriptor kViewGroup = TypeDescriptor::FromClassname("android.view.ViewGroup"); 41 const TypeDescriptor kXmlResourceParser = 42 TypeDescriptor::FromClassname("android.content.res.XmlResourceParser"); [all …]
|
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 | 61 class TypeDescriptor { 64 static const TypeDescriptor Int(); 65 static const TypeDescriptor Void(); 69 static TypeDescriptor FromClassname(const std::string& name); 78 bool operator<(const TypeDescriptor& rhs) const { return descriptor_ < rhs.descriptor_; } 81 explicit TypeDescriptor(std::string descriptor) : descriptor_{descriptor} {} in TypeDescriptor() function 91 explicit Prototype(TypeDescriptor return_type, TypeDescriptors... param_types) in Prototype() 100 const TypeDescriptor& ArgType(size_t index) const; 108 const TypeDescriptor return_type_; 109 const std::vector<TypeDescriptor> param_types_; [all …]
|
D | dex_builder.cc | 31 const TypeDescriptor TypeDescriptor::Int() { return TypeDescriptor{"I"}; }; in Int() 32 const TypeDescriptor TypeDescriptor::Void() { return TypeDescriptor{"V"}; }; in Void() 165 TypeDescriptor string_type = TypeDescriptor::FromClassname("java.lang.String"); in WriteTestDexFile() 167 MethodBuilder method{cbuilder.CreateMethod("foo", Prototype{TypeDescriptor::Int(), string_type})}; in WriteTestDexFile() 172 dex_file.GetOrDeclareMethod(string_type, "length", Prototype{TypeDescriptor::Int()}); in WriteTestDexFile() 185 TypeDescriptor TypeDescriptor::FromClassname(const std::string& name) { in FromClassname() 186 return TypeDescriptor{DotToDescriptor(name.c_str())}; in FromClassname() 249 ir::FieldDecl* DexBuilder::GetOrAddField(TypeDescriptor parent, const std::string& name, in GetOrAddField() 250 TypeDescriptor type) { in GetOrAddField() 290 const TypeDescriptor& Prototype::ArgType(size_t index) const { in ArgType() [all …]
|
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 | 130 dex::Prototype{dex::TypeDescriptor::FromClassname("android.view.View"), in CompileApkAssetsLayouts() 131 dex::TypeDescriptor::FromClassname("android.content.Context"), in CompileApkAssetsLayouts() 132 dex::TypeDescriptor::Int()})); in CompileApkAssetsLayouts()
|