summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Roman <manuelroman@google.com>2012-01-03 22:03:37 -0800
committerMike Lockwood <lockwood@google.com>2012-02-10 14:44:07 -0800
commit01060b08fbf258d21d344b38d9967b9ef0b50fd5 (patch)
tree7dfd4c62ab8bfd8dc3a86da95273a55ca08ef88f
parent7dc2973951e9d25e26cdc5a90297ac6c69e43083 (diff)
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
-rw-r--r--tools/aidl/generate_java_rpc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/aidl/generate_java_rpc.cpp b/tools/aidl/generate_java_rpc.cpp
index 60517e8fb5cf..ecff3a1ad3e7 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));
}
// =================================================