Home
last modified time | relevance | path

Searched refs:Prototype (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/startop/view_compiler/
Ddex_testcase_generator.cc48 auto return5{cbuilder.CreateMethod("return5", Prototype{TypeDescriptor::Int()})}; in GenerateSimpleTestCases()
58 auto returnInteger5{cbuilder.CreateMethod("returnInteger5", Prototype{integer_type})}; in GenerateSimpleTestCases()
64 object, integer_type, Prototype{TypeDescriptor::Void(), TypeDescriptor::Int()}, five); in GenerateSimpleTestCases()
71 Prototype{TypeDescriptor::Int(), TypeDescriptor::Int()})}; 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()
178 MethodBuilder returnNull{cbuilder.CreateMethod("returnNull", Prototype{string_type})}; in GenerateSimpleTestCases()
[all …]
Ddex_layout_compiler.cc27 using dex::Prototype;
54 Prototype{TypeDescriptor::Int()})},
57 Prototype{kView, kView, kString, kContext, kAttributeSet})},
60 Prototype{TypeDescriptor::FromClassname("android.view.ViewGroup$LayoutParams"),
64 Prototype{TypeDescriptor::Void(),
71 kLayoutInflater, "from", Prototype{kLayoutInflater, kContext}); in BuildGetLayoutInflater()
78 method_->dex_file()->GetOrDeclareMethod(kContext, "getResources", Prototype{kResources}); in BuildGetResources()
85 kResources, "getLayout", Prototype{kXmlResourceParser, TypeDescriptor::Int()}); in BuildGetLayoutResource()
95 Prototype{kAttributeSet, TypeDescriptor::FromClassname("org.xmlpull.v1.XmlPullParser")}); in BuildLayoutResourceToAttributeSet()
159 Prototype{TypeDescriptor::Void(), kContext, kAttributeSet}, in StartView()
Ddex_builder.h88 class Prototype {
91 explicit Prototype(TypeDescriptor return_type, TypeDescriptors... param_types) in Prototype() function
102 bool operator<(const Prototype& rhs) const {
356 void BuildNew(Value target, TypeDescriptor type, Prototype constructor, const T&... args);
525 MethodBuilder CreateMethod(const std::string& name, Prototype prototype);
564 Prototype prototype);
566 std::optional<const Prototype> GetPrototypeByMethodId(size_t method_id) const;
571 ir::Proto* GetOrEncodeProto(Prototype prototype);
588 Prototype prototype;
605 std::map<Prototype, ir::Proto*> proto_map_;
[all …]
Ddex_builder.cc167 MethodBuilder method{cbuilder.CreateMethod("foo", Prototype{TypeDescriptor::Int(), string_type})}; in WriteTestDexFile()
172 dex_file.GetOrDeclareMethod(string_type, "length", Prototype{TypeDescriptor::Int()}); in WriteTestDexFile()
266 ir::Proto* Prototype::Encode(DexBuilder* dex) const { in Encode()
281 std::string Prototype::Shorty() const { in Shorty()
290 const TypeDescriptor& Prototype::ArgType(size_t index) const { in ArgType()
298 MethodBuilder ClassBuilder::CreateMethod(const std::string& name, Prototype prototype) { in CreateMethod()
659 Prototype prototype) { in GetOrDeclareMethod()
686 std::optional<const Prototype> DexBuilder::GetPrototypeByMethodId(size_t method_id) const { in GetPrototypeByMethodId()
695 ir::Proto* DexBuilder::GetOrEncodeProto(Prototype prototype) { in GetOrEncodeProto()
Dmain.cc43 using startop::dex::Prototype;
155 Prototype{TypeDescriptor::FromClassname("android.view.View"), in main()
Dapk_layout_compiler.cc130 dex::Prototype{dex::TypeDescriptor::FromClassname("android.view.View"), in CompileApkAssetsLayouts()