Home
last modified time | relevance | path

Searched refs:timeZoneId (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/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…
33 int32_t GetTimeZone(std::string &timeZoneId) override;
/ohos5.0/base/global/i18n/frameworks/zone/test/unittest/
H A Dzone_util_test.cpp320 std::string timeZoneId = util.GetDefaultZone(vec[i]); variable
321 EXPECT_TRUE(timeZoneList.find(timeZoneId) != timeZoneList.end());
322 if (timeZoneList.find(timeZoneId) == timeZoneList.end()) {
324 EXPECT_EQ(timeZoneId, "");
/ohos5.0/base/time/time_service/services/ipc/stub/
H A Dtime_service_stub.cpp130 std::string timeZoneId = data.ReadString(); in OnSetTimeZone() local
142 int32_t ret = SetTimeZone(timeZoneId); in OnSetTimeZone()
151 std::string timeZoneId; in OnGetTimeZone() local
152 int32_t ret = GetTimeZone(timeZoneId); in OnGetTimeZone()
157 reply.WriteString(timeZoneId); in OnGetTimeZone()
/ohos5.0/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()
187 int32_t TimeServiceProxy::GetTimeZone(std::string &timeZoneId) in GetTimeZone() argument
201 timeZoneId = reply.ReadString(); in GetTimeZone()
/ohos5.0/base/time/time_service/services/
H A Dtime_system_ability.h55 …int32_t SetTimeZone(const std::string &timeZoneId, APIVersion apiVersion = APIVersion::API_VERSION…
56 int32_t GetTimeZone(std::string &timeZoneId) override;
H A Dtime_system_ability.cpp689 int32_t TimeSystemAbility::SetTimeZone(const std::string &timeZoneId, APIVersion apiVersion) in SetTimeZone() argument
691 if (!TimeZoneInfo::GetInstance().SetTimezone(timeZoneId)) { in SetTimeZone()
692 TIME_HILOGE(TIME_MODULE_SERVICE, "Set timezone failed :%{public}s", timeZoneId.c_str()); in SetTimeZone()
701 int32_t TimeSystemAbility::GetTimeZone(std::string &timeZoneId) in GetTimeZone() argument
703 if (!TimeZoneInfo::GetInstance().GetTimezone(timeZoneId)) { in GetTimeZone()
707 TIME_HILOGD(TIME_MODULE_SERVICE, "Current timezone : %{public}s", timeZoneId.c_str()); in GetTimeZone()
/ohos5.0/base/time/time_service/interfaces/inner_api/src/
H A Dtime_service_client.cpp443 std::string timeZoneId; in GetTimeZone() local
451 if (proxy->GetTimeZone(timeZoneId) != ERR_OK) { in GetTimeZone()
455 return timeZoneId; in GetTimeZone()
/ohos5.0/base/time/time_service/interfaces/inner_api/include/
H A Dtime_service_client.h77 TIME_API bool SetTimeZone(const std::string &timeZoneId);