/base/global/i18n/frameworks/intl/test/fuzztest/timezone_fuzzer/ |
H A D | timezone_fuzzer.cpp | 34 I18nTimeZone timezone(text, isDST); in DoSomethingInterestingWithMyAPI() 37 timezone.GetOffset(date); in DoSomethingInterestingWithMyAPI() 40 timezone.GetRawOffset(); in DoSomethingInterestingWithMyAPI() 41 timezone.GetID(); in DoSomethingInterestingWithMyAPI() 42 timezone.GetDisplayName(); in DoSomethingInterestingWithMyAPI() 43 timezone.GetDisplayName(isDST); in DoSomethingInterestingWithMyAPI() 44 timezone.GetDisplayName(text); in DoSomethingInterestingWithMyAPI() 45 timezone.GetDisplayName(text, isDST); in DoSomethingInterestingWithMyAPI()
|
/base/time/time_service/framework/cj/src/ |
H A D | system_date_time.cpp | 28 const std::string TIMEZONE_KEY = "persist.time.timezone"; 133 int SystemDateTimeImpl::SetTimeZone(char* timezone) in SetTimeZone() argument 135 auto innerCode = TimeServiceClient::GetInstance()->SetTimeZoneV9(timezone); in SetTimeZone() 156 int32_t GetTimezone(std::string &timezone) in GetTimezone() argument 158 timezone = OHOS::system::GetParameter(TIMEZONE_KEY, "Asia/Shanghai"); in GetTimezone() 159 if (timezone.empty()) { in GetTimezone()
|
H A D | system_date_time_ffi.cpp | 105 RetCode FfiOHOSSysSetTimezone(char* timezone) in FfiOHOSSysSetTimezone() argument 107 RetCode ret = SystemDateTimeImpl::SetTimeZone(timezone); in FfiOHOSSysSetTimezone()
|
/base/global/i18n/frameworks/intl/src/ |
H A D | i18n_timezone.cpp | 51 const char *I18nTimeZone::TIMEZONE_KEY = "persist.time.timezone"; 65 const char *I18nTimeZone::TIMEZONE_SECOND_ROOT_TAG = "timezone"; 608 timezone = icu::TimeZone::createTimeZone(unicodeZoneID); in I18nTimeZone() 611 timezone = icu::TimeZone::createTimeZone(unicodeZoneID); in I18nTimeZone() 618 timezone = icu::TimeZone::createDefault(); in I18nTimeZone() 622 timezone = icu::TimeZone::createTimeZone(unicodeZoneID); in I18nTimeZone() 629 if (timezone != nullptr) { in ~I18nTimeZone() 630 delete timezone; in ~I18nTimeZone() 631 timezone = nullptr; in ~I18nTimeZone() 637 return timezone; in GetTimeZone() [all...] |
H A D | i18n_calendar.cpp | 32 #include "unicode/timezone.h"
175 icu::TimeZone *timezone = icu::TimeZone::createTimeZone(zone);
in SetTimeZone() local 176 if (timezone != nullptr) {
in SetTimeZone() 179 icuCalendar->setTimeZone(*timezone);
in SetTimeZone() 181 delete(timezone);
in SetTimeZone()
|
/base/time/time_service/framework/js/napi/system_date_time/src/ |
H A D | napi_system_date_time.cpp | 35 const std::string TIMEZONE_KEY = "persist.time.timezone"; 380 std::string timezone; in SetTimezone() member 386 setTimezoneContext->status = NapiUtils::GetValue(env, argv[ARGV_FIRST], setTimezoneContext->timezone); in SetTimezone() 388 "The type of 'timezone' must be string", JsErrorCode::PARAMETER_ERROR); in SetTimezone() 393 auto innerCode = TimeServiceClient::GetInstance()->SetTimeZoneV9(setTimezoneContext->timezone); in SetTimezone() 406 std::string timezone; in GetTimezone() member 415 auto innerCode = TimeServiceClient::GetInstance()->GetTimeZone(getTimezoneContext->timezone); in GetTimezone() 422 getTimezoneContext->status = napi_create_string_utf8(env, getTimezoneContext->timezone.c_str(), in GetTimezone() 423 getTimezoneContext->timezone.size(), &output); in GetTimezone() 424 TIME_HILOGI(TIME_MODULE_JS_NAPI, "%{public}s, ", getTimezoneContext->timezone in GetTimezone() 434 std::string timezone; GetTimezoneSync() member 522 GetTimezone(std::string &timezone) GetTimezone() argument [all...] |
/base/time/time_service/framework/cj/include/ |
H A D | system_date_time_ffi.h | 31 FFI_EXPORT RetCode FfiOHOSSysSetTimezone(char* timezone);
|
H A D | system_date_time.h | 39 static int SetTimeZone(char* timezone);
|
/base/time/time_service/framework/js/napi/system_date_time/include/ |
H A D | napi_system_date_time.h | 49 static int32_t GetTimezone(std::string &timezone);
|
/base/global/i18n/frameworks/zone/src/ |
H A D | zone_util.cpp | 22 #include "unicode/timezone.h"
40 const char *ZoneUtil::TIMEZONE_KEY = "persist.time.timezone";
290 HILOG_ERROR_I18N("ZoneUtil::LookupTimezoneByCountry can't find default timezone for region %{public}s",
in LookupTimezoneByCountry() 464 TimeZone *timezone = TimeZone::createTimeZone(unicodeZoneID);
in Match() local 468 timezone->getOffset(nitzData.currentMillis, static_cast<UBool>(local), rawOffset, dstOffset, status);
in Match() 500 HILOG_ERROR_I18N("ZoneUtil::CheckSameDstOffset can not get timezone defaultID offset");
in CheckSameDstOffset() 506 TimeZone *timezone = TimeZone::createTimeZone(unicodeZoneID);
in CheckSameDstOffset() local 507 timezone->getOffset(currentMillis, (UBool)local, rawOffset, dstOffset, status);
in CheckSameDstOffset() 509 HILOG_ERROR_I18N("ZoneUtil::CheckSameDstOffset can not get timezone unicodeZoneID offset");
in CheckSameDstOffset()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_easy/ |
H A D | hisysevent_easy.c | 83 header->timeZone = ParseTimeZone(timezone); in InitEventHeader()
|
/base/hiviewdfx/hiview/plugins/freeze_detector/ |
H A D | resolver.cpp | 140 struct timezone tz; in GetTimeZone()
|
/base/time/time_service/services/time/src/ |
H A D | time_zone_info.cpp | 27 constexpr const char *TIMEZONE_KEY = "persist.time.timezone"; 46 TIME_HILOGW(TIME_MODULE_SERVICE, "No found timezone from system parameter."); in Init() 62 TIME_HILOGI(TIME_MODULE_SERVICE, "Set timezone : %{public}s, Current timezone : %{public}s, uid: %{public}d", in SetTimezone() 66 TIME_HILOGE(TIME_MODULE_SERVICE, "Invalid timezone"); in SetTimezone() 97 TIME_HILOGE(TIME_MODULE_SERVICE, "Open timezone list config file failed."); in GetTimeZoneAvailableIDs() 122 struct timezone tz {}; in SetTimezoneToKernel() 131 TIME_HILOGE(TIME_MODULE_SERVICE, "Settimeofday timezone fail: %{public}d.", result); in SetTimezoneToKernel() 134 TIME_HILOGD(TIME_MODULE_SERVICE, "Settimeofday timezone success "); in SetTimezoneToKernel()
|
/base/global/i18n/frameworks/intl/include/ |
H A D | i18n_timezone.h | 26 #include "unicode/timezone.h" 88 icu::TimeZone *timezone = nullptr; member in OHOS::Global::I18n::I18nTimeZone
|
/base/telephony/sms_mms/utils/ |
H A D | sms_common_utils.cpp | 204 /* timezone value is tiemzone + daylight. So should not add daylight */ in ConvertTime() 205 rawtime -= timezone; in ConvertTime()
|
/base/global/i18n/interfaces/js/kits/src/ |
H A D | i18n_timezone_addon.cpp | 294 napi_value timezone = StaticGetTimeZone(env, argTimeZoneId, true); in GetTimezonesByLocation() local 295 status = napi_set_element(env, timezoneList, i, timezone); in GetTimezonesByLocation()
|
H A D | i18n_calendar_addon.cpp | 305 HILOG_ERROR_I18N("Create timezone string failed"); in GetTimeZone() 328 HILOG_ERROR_I18N("SetTimeZone: Get timezone length failed"); in SetTimeZone() 334 HILOG_ERROR_I18N("SetTimeZone: Get timezone failed"); in SetTimeZone() 337 std::string timezone(buf.data()); in SetTimeZone() 344 obj->calendar_->SetTimeZone(timezone); in SetTimeZone()
|
/base/startup/init/services/init/standard/ |
H A D | init.c | 107 struct timezone tz = { 0 };
in SystemInit()
|
/base/telephony/ril_adapter/services/vendor/src/ |
H A D | vendor_util.c | 131 gettimeofday(&now, (struct timezone *)NULL); in SetWaitTimeout()
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
H A D | hisysevent.cpp | 94 header_.timeZone = static_cast<uint8_t>(ParseTimeZone(timezone)); in WritebaseInfo()
|
/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test_extent.cpp | 413 std::unique_ptr<I18nTimeZone> timezone = I18nTimeZone::CreateInstance(timezoneId, true); in HWTEST_F() local
|