From ae66394b6b0a45c88c4174bdb1ee7491c0cb76e7 Mon Sep 17 00:00:00 2001 From: Robert Judka Date: Wed, 26 Aug 2020 22:35:40 -0500 Subject: [PATCH] [HOTFIX] revert handling ping and voice session until aasdk change --- include/openauto/Service/AndroidAutoEntity.hpp | 4 ++-- openauto/Service/AndroidAutoEntity.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/openauto/Service/AndroidAutoEntity.hpp b/include/openauto/Service/AndroidAutoEntity.hpp index 2d0ee3a..8882c0b 100644 --- a/include/openauto/Service/AndroidAutoEntity.hpp +++ b/include/openauto/Service/AndroidAutoEntity.hpp @@ -54,10 +54,10 @@ public: void onShutdownRequest(const aasdk::proto::messages::ShutdownRequest& request) override; void onShutdownResponse(const aasdk::proto::messages::ShutdownResponse& response) override; void onNavigationFocusRequest(const aasdk::proto::messages::NavigationFocusRequest& request) override; - void onPingRequest(const aasdk::proto::messages::PingRequest& request) override; + // void onPingRequest(const aasdk::proto::messages::PingRequest& request) override; // TODO handling ping and voice session void onPingResponse(const aasdk::proto::messages::PingResponse& response) override; void onChannelError(const aasdk::error::Error& e) override; - void onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request) override; + // void onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request) override; // TODO handling ping and voice session private: using std::enable_shared_from_this::shared_from_this; diff --git a/openauto/Service/AndroidAutoEntity.cpp b/openauto/Service/AndroidAutoEntity.cpp index 7e0d0de..08ddf99 100644 --- a/openauto/Service/AndroidAutoEntity.cpp +++ b/openauto/Service/AndroidAutoEntity.cpp @@ -223,7 +223,7 @@ void AndroidAutoEntity::onNavigationFocusRequest(const aasdk::proto::messages::N controlServiceChannel_->receive(this->shared_from_this()); } -void AndroidAutoEntity::onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request) +/* void AndroidAutoEntity::onVoiceSessionRequest(const aasdk::proto::messages::VoiceSessionRequest& request) { OPENAUTO_LOG(info) << "[AndroidAutoEntity] Voice session request, type: " << (request.type()==1)?("START"):((request.type()==2)?("STOP"):("UNKNOWN")); @@ -243,7 +243,7 @@ void AndroidAutoEntity::onPingRequest(const aasdk::proto::messages::PingRequest& promise->then([]() {}, std::bind(&AndroidAutoEntity::onChannelError, this->shared_from_this(), std::placeholders::_1)); controlServiceChannel_->sendPingResponse(response, std::move(promise)); controlServiceChannel_->receive(this->shared_from_this()); -} +} */ // TODO handling ping and voice session void AndroidAutoEntity::onPingResponse(const aasdk::proto::messages::PingResponse&) {