Home
last modified time | relevance | path

Searched refs:timeZoneId (Results 1 - 7 of 7) sorted by relevance

/base/time/time_service/services/ipc/proxy/inner_api_include/
H A Dtime_service_proxy.h32 int32_t SetTimeZone(const std::string &timeZoneId, APIVersion apiVersion = APIVersion::API_VERSION_7) override;
33 int32_t GetTimeZone(std::string &timeZoneId) override;
/base/time/time_service/services/ipc/stub/
H A Dtime_service_stub.cpp127 std::string timeZoneId = data.ReadString(); in OnSetTimeZone() local
139 int32_t ret = SetTimeZone(timeZoneId); in OnSetTimeZone()
147 std::string timeZoneId; in OnGetTimeZone() local
148 int32_t ret = GetTimeZone(timeZoneId); in OnGetTimeZone()
153 reply.WriteString(timeZoneId); in OnGetTimeZone()
/base/time/time_service/services/
H A Dtime_system_ability.h55 int32_t SetTimeZone(const std::string &timeZoneId, APIVersion apiVersion = APIVersion::API_VERSION_7) override;
56 int32_t GetTimeZone(std::string &timeZoneId) override;
H A Dtime_system_ability.cpp717 int32_t TimeSystemAbility::SetTimeZone(const std::string &timeZoneId, APIVersion apiVersion) in SetTimeZone() argument
719 if (!TimeZoneInfo::GetInstance().SetTimezone(timeZoneId)) { in SetTimeZone()
720 TIME_HILOGE(TIME_MODULE_SERVICE, "Set timezone failed :%{public}s", timeZoneId.c_str()); in SetTimeZone()
729 int32_t TimeSystemAbility::GetTimeZone(std::string &timeZoneId) in GetTimeZone() argument
731 if (!TimeZoneInfo::GetInstance().GetTimezone(timeZoneId)) { in GetTimeZone()
735 TIME_HILOGD(TIME_MODULE_SERVICE, "Current timezone : %{public}s", timeZoneId.c_str()); in GetTimeZone()
/base/time/time_service/services/ipc/proxy/
H A Dtime_service_proxy.cpp162 int32_t TimeServiceProxy::SetTimeZone(const std::string &timeZoneId, APIVersion apiVersion) in SetTimeZone() argument
170 if (!data.WriteString(timeZoneId)) { in SetTimeZone()
171 TIME_HILOGE(TIME_MODULE_CLIENT, "Failed to write timeZoneId"); in SetTimeZone()
187 int32_t TimeServiceProxy::GetTimeZone(std::string &timeZoneId) in GetTimeZone() argument
201 timeZoneId = reply.ReadString(); in GetTimeZone()
/base/time/time_service/interfaces/inner_api/include/
H A Dtime_service_client.h77 TIME_API bool SetTimeZone(const std::string &timeZoneId);
/base/time/time_service/interfaces/inner_api/src/
H A Dtime_service_client.cpp434 std::string timeZoneId; in GetTimeZone() local
442 if (proxy->GetTimeZone(timeZoneId) != ERR_OK) { in GetTimeZone()
446 return timeZoneId; in GetTimeZone()

Completed in 6 milliseconds