diff options
author | Manuel Roman <manuelroman@google.com> | 2012-01-03 22:03:37 -0800 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2012-02-10 14:44:07 -0800 |
commit | 01060b08fbf258d21d344b38d9967b9ef0b50fd5 (patch) | |
tree | 7dfd4c62ab8bfd8dc3a86da95273a55ca08ef88f /tools | |
parent | 7dc2973951e9d25e26cdc5a90297ac6c69e43083 (diff) | |
download | frameworks_base-01060b08fbf258d21d344b38d9967b9ef0b50fd5.zip frameworks_base-01060b08fbf258d21d344b38d9967b9ef0b50fd5.tar.gz frameworks_base-01060b08fbf258d21d344b38d9967b9ef0b50fd5.tar.bz2 |
Modified the constructor of EndpointBase
We introduced changes to the Endpoint lifecycle.
Modified the AIDL compiler to take into account the
changes. Just affected the constructor, which needs
now an extra parameter: placeInfo
Diffstat (limited to 'tools')
-rw-r--r-- | tools/aidl/generate_java_rpc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/aidl/generate_java_rpc.cpp b/tools/aidl/generate_java_rpc.cpp index 60517e8..ecff3a1 100644 --- a/tools/aidl/generate_java_rpc.cpp +++ b/tools/aidl/generate_java_rpc.cpp @@ -15,6 +15,8 @@ Type* RPC_BROKER_TYPE = new Type("com.android.athome.connector", "Broker", Type::BUILT_IN, false, false, false); Type* RPC_CONTAINER_TYPE = new Type("com.android.athome.connector", "ConnectorContainer", Type::BUILT_IN, false, false, false); +Type* PLACE_INFO_TYPE = new Type("android.support.place.connector", "PlaceInfo", + Type::BUILT_IN, false, false, false); // TODO: Just use Endpoint, so this works for all endpoints. Type* RPC_CONNECTOR_TYPE = new Type("com.android.athome.connector", "Connector", Type::BUILT_IN, false, false, false); @@ -475,15 +477,17 @@ EndpointBaseClass::generate_ctor() { Variable* container = new Variable(RPC_CONTAINER_TYPE, "container"); Variable* broker = new Variable(RPC_BROKER_TYPE, "broker"); + Variable* place = new Variable(PLACE_INFO_TYPE, "placeInfo"); Method* ctor = new Method; ctor->modifiers = PUBLIC; ctor->name = class_name_leaf(this->type->Name()); ctor->statements = new StatementBlock; ctor->parameters.push_back(container); ctor->parameters.push_back(broker); + ctor->parameters.push_back(place); this->elements.push_back(ctor); - ctor->statements->Add(new MethodCall("super", 2, container, broker)); + ctor->statements->Add(new MethodCall("super", 3, container, broker, place)); } // ================================================= |