Christopher Wiley | eb1acc1 | 2015-09-16 11:25:13 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015, The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #include "generate_cpp.h" |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 18 | #include "parse_helpers.h" |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 19 | |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 20 | #include <cctype> |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 21 | #include <memory> |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 22 | #include <random> |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 23 | #include <string> |
| 24 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 25 | #include <base/stringprintf.h> |
| 26 | |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 27 | #include "aidl_language.h" |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 28 | #include "ast_cpp.h" |
| 29 | #include "code_writer.h" |
Christopher Wiley | eb1acc1 | 2015-09-16 11:25:13 -0700 | [diff] [blame] | 30 | #include "logging.h" |
| 31 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 32 | using android::base::StringPrintf; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 33 | using std::string; |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 34 | using std::unique_ptr; |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 35 | using std::vector; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 36 | |
Christopher Wiley | eb1acc1 | 2015-09-16 11:25:13 -0700 | [diff] [blame] | 37 | namespace android { |
| 38 | namespace aidl { |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 39 | namespace cpp { |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 40 | namespace internals { |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 41 | namespace { |
Christopher Wiley | eb1acc1 | 2015-09-16 11:25:13 -0700 | [diff] [blame] | 42 | |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 43 | const char kAndroidStatusLiteral[] = "android::status_t"; |
| 44 | const char kIBinderHeader[] = "binder/IBinder.h"; |
| 45 | const char kIInterfaceHeader[] = "binder/IInterface.h"; |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 46 | |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 47 | string UpperCase(const std::string& s) { |
| 48 | string result = s; |
| 49 | for (char& c : result) |
| 50 | c = toupper(c); |
| 51 | return result; |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 52 | } |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 53 | |
Casey Dahlin | 0ee3758 | 2015-09-30 16:31:55 -0700 | [diff] [blame] | 54 | string GetCPPVarDec(const TypeNamespace& types, const AidlType& type, |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 55 | const string& var_name, bool use_pointer) { |
Casey Dahlin | f2d23f7 | 2015-10-02 16:19:19 -0700 | [diff] [blame^] | 56 | const Type* cpp_type = types.Find(type.GetName()); |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 57 | if (cpp_type == nullptr) { |
| 58 | // We should have caught this in type resolution. |
| 59 | LOG(FATAL) << "internal error"; |
| 60 | } |
| 61 | return StringPrintf("%s%s %s%s", |
| 62 | cpp_type->CppType().c_str(), |
| 63 | (use_pointer) ? "*" : "", |
| 64 | var_name.c_str(), |
Casey Dahlin | 0ee3758 | 2015-09-30 16:31:55 -0700 | [diff] [blame] | 65 | type.Brackets().c_str()); |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 66 | } |
| 67 | |
Casey Dahlin | 5c69deb | 2015-10-01 14:44:12 -0700 | [diff] [blame] | 68 | unique_ptr<Declaration> BuildMethodDecl(const AidlMethod& method, |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 69 | const TypeNamespace& types, |
| 70 | bool for_interface) { |
| 71 | vector<string> args; |
Casey Dahlin | 5c69deb | 2015-10-01 14:44:12 -0700 | [diff] [blame] | 72 | for (const unique_ptr<AidlArgument>& arg : *method.args) { |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 73 | args.push_back(GetCPPVarDec( |
Casey Dahlin | 0ee3758 | 2015-09-30 16:31:55 -0700 | [diff] [blame] | 74 | types, arg->GetType(), arg->GetName(), |
Casey Dahlin | c378c99 | 2015-09-29 16:50:40 -0700 | [diff] [blame] | 75 | AidlArgument::OUT_DIR & arg->GetDirection())); |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 76 | } |
| 77 | |
Casey Dahlin | 5c69deb | 2015-10-01 14:44:12 -0700 | [diff] [blame] | 78 | string return_arg = GetCPPVarDec(types, *method.type, "_aidl_return", true); |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 79 | args.push_back(return_arg); |
| 80 | |
| 81 | uint32_t modifiers = 0; |
| 82 | if (for_interface) { |
| 83 | modifiers |= MethodDecl::IS_VIRTUAL; |
| 84 | modifiers |= MethodDecl::IS_PURE_VIRTUAL; |
| 85 | } else { |
| 86 | modifiers |= MethodDecl::IS_OVERRIDE; |
| 87 | } |
| 88 | |
| 89 | return unique_ptr<Declaration>{ |
| 90 | new MethodDecl{kAndroidStatusLiteral, |
Casey Dahlin | 5c69deb | 2015-10-01 14:44:12 -0700 | [diff] [blame] | 91 | method.name.Literal(), |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 92 | args, |
| 93 | modifiers}}; |
| 94 | } |
| 95 | |
| 96 | unique_ptr<CppNamespace> NestInNamespaces(unique_ptr<Declaration> decl) { |
| 97 | using N = CppNamespace; |
| 98 | using NPtr = unique_ptr<N>; |
| 99 | return NPtr{new N{"android", NPtr{new N{"generated", std::move(decl)}}}}; |
| 100 | } |
| 101 | |
| 102 | } // namespace |
| 103 | |
| 104 | enum class ClassNames { BASE, CLIENT, SERVER, INTERFACE }; |
| 105 | |
| 106 | string ClassName(const interface_type& interface, ClassNames type) { |
| 107 | string c_name = interface.name.Literal(); |
| 108 | |
| 109 | if (c_name.length() >= 2 && c_name[0] == 'I' && isupper(c_name[1])) |
| 110 | c_name = c_name.substr(1); |
| 111 | |
| 112 | switch (type) { |
| 113 | case ClassNames::CLIENT: |
| 114 | c_name = "Bp" + c_name; |
| 115 | break; |
| 116 | case ClassNames::SERVER: |
| 117 | c_name = "Bn" + c_name; |
| 118 | break; |
| 119 | case ClassNames::INTERFACE: |
| 120 | c_name = "I" + c_name; |
| 121 | break; |
| 122 | case ClassNames::BASE: |
| 123 | break; |
| 124 | } |
| 125 | return c_name; |
| 126 | } |
| 127 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 128 | unique_ptr<Document> BuildClientSource(const TypeNamespace& types, |
| 129 | const interface_type& parsed_doc) { |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 130 | unique_ptr<CppNamespace> ns{new CppNamespace{"android"}}; |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 131 | return unique_ptr<Document>{new CppSource{ {}, std::move(ns)}}; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 132 | } |
| 133 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 134 | unique_ptr<Document> BuildServerSource(const TypeNamespace& types, |
| 135 | const interface_type& parsed_doc) { |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 136 | unique_ptr<CppNamespace> ns{new CppNamespace{"android"}}; |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 137 | return unique_ptr<Document>{new CppSource{ {}, std::move(ns)}}; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 138 | } |
| 139 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 140 | unique_ptr<Document> BuildInterfaceSource(const TypeNamespace& types, |
| 141 | const interface_type& parsed_doc) { |
Christopher Wiley | 1dd458d | 2015-09-30 11:05:52 -0700 | [diff] [blame] | 142 | const string i_name = ClassName(parsed_doc, ClassNames::INTERFACE); |
| 143 | const string bp_name = ClassName(parsed_doc, ClassNames::CLIENT); |
| 144 | vector<string> include_list{i_name + ".h", bp_name + ".h"}; |
| 145 | |
| 146 | string fq_name = i_name; |
| 147 | if (parsed_doc.package != nullptr && strlen(parsed_doc.package) > 0) { |
| 148 | fq_name = StringPrintf("%s.%s", parsed_doc.package, i_name.c_str()); |
| 149 | } |
| 150 | |
| 151 | unique_ptr<ConstructorDecl> meta_if{new ConstructorDecl{ |
| 152 | "IMPLEMENT_META_INTERFACE", |
| 153 | {ClassName(parsed_doc, ClassNames::BASE), '"' + fq_name + '"'} |
| 154 | }}; |
| 155 | |
| 156 | return unique_ptr<Document>{new CppSource{ |
| 157 | include_list, |
| 158 | NestInNamespaces(std::move(meta_if))}}; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 159 | } |
| 160 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 161 | unique_ptr<Document> BuildClientHeader(const TypeNamespace& types, |
| 162 | const interface_type& parsed_doc) { |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 163 | const string i_name = ClassName(parsed_doc, ClassNames::INTERFACE); |
| 164 | const string bp_name = ClassName(parsed_doc, ClassNames::CLIENT); |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 165 | |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 166 | unique_ptr<ConstructorDecl> constructor{new ConstructorDecl(bp_name, {})}; |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 167 | unique_ptr<ConstructorDecl> destructor{ |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 168 | new ConstructorDecl("~" + bp_name, {})}; |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 169 | |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 170 | vector<unique_ptr<Declaration>> publics; |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 171 | publics.push_back(std::move(constructor)); |
| 172 | publics.push_back(std::move(destructor)); |
| 173 | |
Casey Dahlin | 5c69deb | 2015-10-01 14:44:12 -0700 | [diff] [blame] | 174 | for (const auto& item : *parsed_doc.methods) { |
| 175 | publics.push_back(BuildMethodDecl(*item, types, false)); |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 176 | } |
| 177 | |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 178 | unique_ptr<ClassDecl> bp_class{ |
| 179 | new ClassDecl{bp_name, |
| 180 | "public android::BpInterface<" + i_name + ">", |
| 181 | std::move(publics), |
| 182 | {} |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 183 | }}; |
| 184 | |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 185 | return unique_ptr<Document>{new CppHeader{ |
| 186 | bp_name + "_H", |
| 187 | {kIBinderHeader, |
| 188 | kIInterfaceHeader, |
| 189 | "utils/Errors.h", |
| 190 | i_name + ".h"}, |
| 191 | NestInNamespaces(std::move(bp_class))}}; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 192 | } |
| 193 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 194 | unique_ptr<Document> BuildServerHeader(const TypeNamespace& types, |
| 195 | const interface_type& parsed_doc) { |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 196 | const string i_name = ClassName(parsed_doc, ClassNames::INTERFACE); |
| 197 | const string bn_name = ClassName(parsed_doc, ClassNames::SERVER); |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 198 | |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 199 | unique_ptr<Declaration> on_transact{ |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 200 | new MethodDecl(kAndroidStatusLiteral, "onTransact", |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 201 | { "uint32_t code", |
| 202 | "const android::Parcel& data", |
| 203 | "android::Parcel* reply", |
| 204 | "uint32_t flags = 0" |
| 205 | })}; |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 206 | |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 207 | std::vector<unique_ptr<Declaration>> publics; |
Casey Dahlin | b7d0f7f | 2015-09-22 17:21:08 -0700 | [diff] [blame] | 208 | publics.push_back(std::move(on_transact)); |
| 209 | |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 210 | unique_ptr<ClassDecl> bn_class{ |
| 211 | new ClassDecl{bn_name, |
| 212 | "public android::BnInterface<" + i_name + ">", |
| 213 | std::move(publics), |
| 214 | {} |
Casey Dahlin | b7d0f7f | 2015-09-22 17:21:08 -0700 | [diff] [blame] | 215 | }}; |
Casey Dahlin | 082f1d1 | 2015-09-21 14:06:25 -0700 | [diff] [blame] | 216 | |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 217 | return unique_ptr<Document>{new CppHeader{ |
| 218 | bn_name + "_H", |
| 219 | {"binder/IInterface.h", |
| 220 | i_name + ".h"}, |
| 221 | NestInNamespaces(std::move(bn_class))}}; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 222 | } |
| 223 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 224 | unique_ptr<Document> BuildInterfaceHeader(const TypeNamespace& types, |
| 225 | const interface_type& parsed_doc) { |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 226 | unique_ptr<ClassDecl> if_class{ |
| 227 | new ClassDecl{ClassName(parsed_doc, ClassNames::INTERFACE), |
| 228 | "public android::IInterface"}}; |
| 229 | if_class->AddPublic(unique_ptr<Declaration>{ |
| 230 | new ConstructorDecl{ |
| 231 | "DECLARE_META_INTERFACE", |
| 232 | {ClassName(parsed_doc, ClassNames::BASE)}}}); |
| 233 | |
| 234 | unique_ptr<Enum> call_enum{new Enum{"Call"}}; |
Casey Dahlin | 5c69deb | 2015-10-01 14:44:12 -0700 | [diff] [blame] | 235 | for (const auto& method : *parsed_doc.methods) { |
| 236 | if_class->AddPublic(BuildMethodDecl(*method, types, true)); |
Christopher Wiley | 0c732db | 2015-09-29 14:36:44 -0700 | [diff] [blame] | 237 | call_enum->AddValue( |
| 238 | UpperCase(method->name.data), |
| 239 | StringPrintf("android::IBinder::FIRST_CALL_TRANSACTION + %d", |
| 240 | method->assigned_id)); |
| 241 | } |
| 242 | if_class->AddPublic(std::move(call_enum)); |
| 243 | |
| 244 | return unique_ptr<Document>{new CppSource{ |
| 245 | {kIBinderHeader, |
| 246 | kIInterfaceHeader}, |
| 247 | NestInNamespaces(std::move(if_class))}}; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 248 | } |
| 249 | |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 250 | bool GenerateCppForFile(const std::string& name, unique_ptr<Document> doc) { |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 251 | if (!doc) { |
| 252 | return false; |
| 253 | } |
| 254 | unique_ptr<CodeWriter> writer = GetFileWriter(name); |
| 255 | doc->Write(writer.get()); |
| 256 | return true; |
| 257 | } |
| 258 | |
Casey Dahlin | a834dd4 | 2015-09-23 11:52:15 -0700 | [diff] [blame] | 259 | } // namespace internals |
| 260 | |
| 261 | using namespace internals; |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 262 | |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 263 | bool GenerateCpp(const CppOptions& options, |
| 264 | const TypeNamespace& types, |
| 265 | const interface_type& parsed_doc) { |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 266 | bool success = true; |
| 267 | |
| 268 | success &= GenerateCppForFile(options.ClientCppFileName(), |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 269 | BuildClientSource(types, parsed_doc)); |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 270 | success &= GenerateCppForFile(options.ClientHeaderFileName(), |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 271 | BuildClientHeader(types, parsed_doc)); |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 272 | success &= GenerateCppForFile(options.ServerCppFileName(), |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 273 | BuildServerSource(types, parsed_doc)); |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 274 | success &= GenerateCppForFile(options.ServerHeaderFileName(), |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 275 | BuildServerHeader(types, parsed_doc)); |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 276 | success &= GenerateCppForFile(options.InterfaceCppFileName(), |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 277 | BuildInterfaceSource(types, parsed_doc)); |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 278 | success &= GenerateCppForFile(options.InterfaceHeaderFileName(), |
Christopher Wiley | e3550c6 | 2015-09-29 13:26:10 -0700 | [diff] [blame] | 279 | BuildInterfaceHeader(types, parsed_doc)); |
Christopher Wiley | 9a8e1d9 | 2015-09-19 10:34:33 -0700 | [diff] [blame] | 280 | |
| 281 | return success; |
Christopher Wiley | eb1acc1 | 2015-09-16 11:25:13 -0700 | [diff] [blame] | 282 | } |
| 283 | |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 284 | } // namespace cpp |
Christopher Wiley | eb1acc1 | 2015-09-16 11:25:13 -0700 | [diff] [blame] | 285 | } // namespace aidl |
Christopher Wiley | f944e79 | 2015-09-29 10:00:46 -0700 | [diff] [blame] | 286 | } // namespace android |