Home
last modified time | relevance | path

Searched refs:LiteralExpression (Results 1 – 8 of 8) sorted by relevance

/system/tools/aidl/
Dast_cpp_unittest.cpp161 args.emplace_back(new LiteralExpression("foo()")); in TEST_F()
167 Statement s(new LiteralExpression("foo")); in TEST_F()
173 new LiteralExpression("lhs"), "&&", new LiteralExpression("rhs")); in TEST_F()
212 IfStatement s(new LiteralExpression("foo")); in TEST_F()
217 IfStatement s2(new LiteralExpression("bar")); in TEST_F()
Dtype_java.cpp65 addTo->Add(new LiteralExpression("/* WriteToParcel error " + m_javaType + in WriteToParcel()
73 addTo->Add(new LiteralExpression("/* CreateFromParcel error " + in CreateFromParcel()
81 addTo->Add(new LiteralExpression("/* ReadFromParcel error " + in ReadFromParcel()
87 return new LiteralExpression("0"); in BuildWriteToParcelFlags()
93 return new LiteralExpression("0"); in BuildWriteToParcelFlags()
195 new Ternary(v, new LiteralExpression("1"), new LiteralExpression("0")))); in WriteToParcel()
201 new Assignment(v, new Comparison(new LiteralExpression("0"), "!=", in CreateFromParcel()
326 new MethodCall(parcel, "writeInt", 1, new LiteralExpression("0"))); in WriteToParcel()
331 new MethodCall(parcel, "writeInt", 1, new LiteralExpression("1"))); in WriteToParcel()
350 ifpart->expression = new Comparison(new LiteralExpression("0"), "!=", in CreateFromParcel()
[all …]
Dgenerate_java_binder.cpp81 new LiteralExpression("DESCRIPTOR")); in StubClass()
145 queryLocalInterface->arguments.push_back(new LiteralExpression("DESCRIPTOR")); in make_as_interface()
161 new LiteralExpression(interfaceType->JavaType())); in make_as_interface()
229 lencheck->expression = new Comparison(len, "<", new LiteralExpression("0")); in generate_new_array()
308 new LiteralExpression("DESCRIPTOR"))); in generate_method()
426 _data, "writeInterfaceToken", 1, new LiteralExpression("DESCRIPTOR"))); in generate_method()
438 new MethodCall(_data, "writeInt", 1, new LiteralExpression("-1"))); in generate_method()
453 new LiteralExpression("Stub." + transactCodeName), _data, in generate_method()
455 new LiteralExpression(oneway ? "android.os.IBinder.FLAG_ONEWAY" : "0")); in generate_method()
495 new LiteralExpression("DESCRIPTOR"))); in generate_interface_descriptors()
[all …]
Dast_cpp.cpp109 arguments_.emplace_back(new LiteralExpression(s)); in ArgList()
225 new LiteralExpression(expression_str))); in AddLiteral()
320 : Assignment(left, new LiteralExpression{right}) {} in Assignment()
368 : expression_(new LiteralExpression(expression)) {} in Statement()
388 LiteralExpression::LiteralExpression(const std::string& expression) in LiteralExpression() function in android::aidl::cpp::LiteralExpression
391 void LiteralExpression::Write(CodeWriter* to) const { in Write()
Dgenerate_cpp.cpp68 new LiteralExpression(kAndroidStatusVarName), "!=", in BreakOnStatusNotOk()
69 new LiteralExpression(kAndroidStatusOk))); in BreakOnStatusNotOk()
76 new LiteralExpression(kAndroidStatusVarName), "!=", in GotoErrorOnBadStatus()
77 new LiteralExpression(kAndroidStatusOk))); in GotoErrorOnBadStatus()
85 new LiteralExpression(kAndroidStatusVarName), "!=", in ReturnOnStatusNotOk()
86 new LiteralExpression(kAndroidStatusOk))); in ReturnOnStatusNotOk()
336 new LiteralExpression(StringPrintf("!%s.isOk()", kStatusVarName))); in DefineClientTransaction()
488 new LiteralExpression(StringPrintf("!%s.isOk()", kStatusVarName))); in HandleServerTransaction()
567 new LiteralExpression(string(kAndroidStatusVarName) + in BuildServerSource()
Dast_cpp.h350 class LiteralExpression : public AstNode {
352 explicit LiteralExpression(const std::string& expression);
353 ~LiteralExpression() = default;
359 DISALLOW_COPY_AND_ASSIGN(LiteralExpression);
Dast_java.h69 struct LiteralExpression : public Expression { struct
72 explicit LiteralExpression(const std::string& value); argument
73 virtual ~LiteralExpression() = default;
Dast_java.cpp82 LiteralExpression::LiteralExpression(const string& v) : value(v) {} in LiteralExpression() function in android::aidl::java::LiteralExpression
84 void LiteralExpression::Write(CodeWriter* to) const { in Write()