diff options
author | Alex Kutsan <akutsan@luxoft.com> | 2017-01-12 13:24:28 +0200 |
---|---|---|
committer | Alex Kutsan <akutsan@luxoft.com> | 2017-01-13 10:00:45 +0200 |
commit | b0860333448a1d8a11937dcd4eab459848beb54e (patch) | |
tree | d9923c163d1faee1b789290e161a9d665ee11d0d /src/components/application_manager/include/application_manager | |
parent | c5e69c4f3bb3fab43bf5d9d2303a39858b60e7fc (diff) | |
download | sdl_core-b0860333448a1d8a11937dcd4eab459848beb54e.tar.gz |
Use secconds against ms in RPCs
Related issue : APPLINK-31433
Diffstat (limited to 'src/components/application_manager/include/application_manager')
3 files changed, 7 insertions, 6 deletions
diff --git a/src/components/application_manager/include/application_manager/message_helper.h b/src/components/application_manager/include/application_manager/message_helper.h index 1484fd6113..891d5af335 100644 --- a/src/components/application_manager/include/application_manager/message_helper.h +++ b/src/components/application_manager/include/application_manager/message_helper.h @@ -341,11 +341,11 @@ class MessageHelper { * @brief Send request to SyncP process to read file and send * Policy Table Snapshot using Retry Strategy * @param file_path Path to file with PTS - * @param timeout Timeout to wait for PTU + * @param timeout Timeout to wait for PTU in seconds * @param retries Seconds between retries */ static void SendPolicyUpdate(const std::string& file_path, - int timeout, + const uint32_t timeout, const std::vector<int>& retries, ApplicationManager& app_mngr); diff --git a/src/components/application_manager/include/application_manager/policies/policy_handler.h b/src/components/application_manager/include/application_manager/policies/policy_handler.h index 9234d6cc40..33b37fb2c8 100644 --- a/src/components/application_manager/include/application_manager/policies/policy_handler.h +++ b/src/components/application_manager/include/application_manager/policies/policy_handler.h @@ -96,7 +96,7 @@ class PolicyHandler : public PolicyHandlerInterface, #ifdef EXTERNAL_PROPRIETARY_MODE void OnSnapshotCreated(const BinaryMessage& pt_string, const std::vector<int>& retry_delay_seconds, - int timeout_exchange) OVERRIDE; + uint32_t timeout_exchange) OVERRIDE; #else // EXTERNAL_PROPRIETARY_MODE void OnSnapshotCreated(const BinaryMessage& pt_string) OVERRIDE; #endif // EXTERNAL_PROPRIETARY_MODE @@ -123,7 +123,8 @@ class PolicyHandler : public PolicyHandlerInterface, virtual std::string GetLockScreenIconUrl() const OVERRIDE; void ResetRetrySequence() OVERRIDE; uint32_t NextRetryTimeout() OVERRIDE; - int TimeoutExchange() OVERRIDE; + uint32_t TimeoutExchangeSec() OVERRIDE; + uint32_t TimeoutExchangeMSec() OVERRIDE; void OnExceededTimeout() OVERRIDE; void OnSystemReady() OVERRIDE; void PTUpdatedAt(Counters counter, int value) OVERRIDE; diff --git a/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h b/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h index b7512df28b..bb886cd5f6 100644 --- a/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h +++ b/src/components/application_manager/include/application_manager/resumption/resume_ctrl_impl.h @@ -380,8 +380,8 @@ class ResumeCtrlImpl : public ResumeCtrl, /** * @brief CheckDelayAfterIgnOn should check if SDL was started less - * then N secconds ago. N will be readed from profile. - * @return true if SDL started N secconds ago, otherwise return false + * then N seconds ago. N will be readed from profile. + * @return true if SDL started N seconds ago, otherwise return false */ bool CheckDelayAfterIgnOn(); |