From bdbf67d43cd13cb09d7bc44c65a048619e6afe41 Mon Sep 17 00:00:00 2001 From: fengjiahui4 Date: Thu, 28 Apr 2022 14:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90I4TI4M=E3=80=91fix=20pick=20to=203.0-L?= =?UTF-8?q?TS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fengjiahui4 --- services/time_manager/src/time_service_proxy.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/services/time_manager/src/time_service_proxy.cpp b/services/time_manager/src/time_service_proxy.cpp index 1d69de8..1f3e603 100644 --- a/services/time_manager/src/time_service_proxy.cpp +++ b/services/time_manager/src/time_service_proxy.cpp @@ -94,17 +94,17 @@ bool TimeServiceProxy::StartTimer(uint64_t timerId, uint64_t triggerTimes) if (!data.WriteInterfaceToken(GetDescriptor())) { TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write parcelable"); - return E_TIME_WRITE_PARCEL_ERROR; + return false; } if (!data.WriteUint64(timerId)) { TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write parcelable"); - return E_TIME_WRITE_PARCEL_ERROR; + return false; } if (!data.WriteUint64(triggerTimes)) { TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write parcelable"); - return E_TIME_WRITE_PARCEL_ERROR; + return false; } int32_t result = Remote()->SendRequest(START_TIMER, data, reply, option); if (result != ERR_NONE) { @@ -121,12 +121,12 @@ bool TimeServiceProxy::StopTimer(uint64_t timerId) if (!data.WriteInterfaceToken(GetDescriptor())) { TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write parcelable"); - return E_TIME_WRITE_PARCEL_ERROR; + return false; } if (!data.WriteUint64(timerId)) { TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write parcelable"); - return E_TIME_WRITE_PARCEL_ERROR; + return false; } int32_t result = Remote()->SendRequest(STOP_TIMER, data, reply, option); if (result != ERR_NONE) { @@ -143,12 +143,12 @@ bool TimeServiceProxy::DestroyTimer(uint64_t timerId) if (!data.WriteInterfaceToken(GetDescriptor())) { TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write parcelable"); - return E_TIME_WRITE_PARCEL_ERROR; + return false; } if (!data.WriteUint64(timerId)) { TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write parcelable"); - return E_TIME_WRITE_PARCEL_ERROR; + return false; } int32_t result = Remote()->SendRequest(DESTORY_TIMER, data, reply, option); if (result != ERR_NONE) { @@ -353,4 +353,4 @@ int32_t TimeServiceProxy::GetThreadTimeNs(int64_t ×) return result; } } // namespace MiscServices -} // namespace OHOS \ No newline at end of file +} // namespace OHOS