Loading tools/aidl/generate_java_rpc.cpp +15 −0 Original line number Diff line number Diff line Loading @@ -293,6 +293,7 @@ public: private: void generate_ctor(); void generate_get_endpoint_info(); }; RpcProxyClass::RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType) Loading @@ -312,6 +313,7 @@ RpcProxyClass::RpcProxyClass(const interface_type* iface, InterfaceType* interfa // methods generate_ctor(); generate_get_endpoint_info(); } RpcProxyClass::~RpcProxyClass() Loading @@ -335,6 +337,19 @@ RpcProxyClass::generate_ctor() ctor->statements->Add(new Assignment(this->endpoint, endpoint)); } void RpcProxyClass::generate_get_endpoint_info() { Method* get = new Method; get->modifiers = PUBLIC; get->returnType = RPC_ENDPOINT_INFO_TYPE; get->name = "getEndpointInfo"; get->statements = new StatementBlock; this->elements.push_back(get); get->statements->Add(new ReturnStatement(this->endpoint)); } // ================================================= class EventListenerClass : public DispatcherClass { Loading Loading
tools/aidl/generate_java_rpc.cpp +15 −0 Original line number Diff line number Diff line Loading @@ -293,6 +293,7 @@ public: private: void generate_ctor(); void generate_get_endpoint_info(); }; RpcProxyClass::RpcProxyClass(const interface_type* iface, InterfaceType* interfaceType) Loading @@ -312,6 +313,7 @@ RpcProxyClass::RpcProxyClass(const interface_type* iface, InterfaceType* interfa // methods generate_ctor(); generate_get_endpoint_info(); } RpcProxyClass::~RpcProxyClass() Loading @@ -335,6 +337,19 @@ RpcProxyClass::generate_ctor() ctor->statements->Add(new Assignment(this->endpoint, endpoint)); } void RpcProxyClass::generate_get_endpoint_info() { Method* get = new Method; get->modifiers = PUBLIC; get->returnType = RPC_ENDPOINT_INFO_TYPE; get->name = "getEndpointInfo"; get->statements = new StatementBlock; this->elements.push_back(get); get->statements->Add(new ReturnStatement(this->endpoint)); } // ================================================= class EventListenerClass : public DispatcherClass { Loading