Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 - 25 of 36) sorted by relevance

12

/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Dresolver.cpp138 std::string timeZone = ""; in GetTimeZone() local
143 return timeZone; in GetTimeZone()
147 timeZone = (hour >= 0) ? "+" : "-"; in GetTimeZone()
151 timeZone.append("0"); in GetTimeZone()
153 timeZone.append(std::to_string(absHour)); in GetTimeZone()
158 timeZone.append("0"); in GetTimeZone()
160 timeZone.append(std::to_string(absMinute)); in GetTimeZone()
162 return timeZone; in GetTimeZone()
/base/time/time_service/interfaces/kits/c/src/
H A Dtime_service.c22 TimeService_ErrCode OH_TimeService_GetTimeZone(char *timeZone, uint32_t len) in OH_TimeService_GetTimeZone() argument
24 int ret = GetParameter(TIMEZONE_KEY, "", timeZone, len); in OH_TimeService_GetTimeZone()
/base/time/time_service/test/fuzztest/timemanager_fuzzer/timesettimezone_fuzzer/
H A Dtimesettimezone_fuzzer.cpp30 std::string timeZone(reinterpret_cast<const char *>(rawData), size); in FuzzTimeSetTimezone()
31 TimeServiceClient::GetInstance()->SetTimeZone(timeZone); in FuzzTimeSetTimezone()
32 TimeServiceClient::GetInstance()->SetTimeZone(timeZone); in FuzzTimeSetTimezone()
33 TimeServiceClient::GetInstance()->SetTimeZoneV9(timeZone); in FuzzTimeSetTimezone()
35 TimeServiceClient::GetInstance()->SetTimeZone(timeZone, code); in FuzzTimeSetTimezone()
/base/hiviewdfx/hiview/base/event_store/utility/reader/
H A Dcontent_reader_version_2.cpp58 uint8_t timeZone; member
119 header.timeZone = ContentHeaderV2.timeZone; in GetContentHeader()
H A Dcontent_reader_version_1.cpp58 uint8_t timeZone; member
117 header.timeZone = contentHeaderV1.timeZone; in GetContentHeader()
/base/telephony/core_service/services/network_search/src/
H A Dnitz_update.cpp310 std::string timeZone = util.GetDefaultZone(countryCode.c_str()); in UpdateCountryCode() local
311 if (timeZone.empty()) { in UpdateCountryCode()
313 timeZone = util.GetDefaultZone(countryCode.c_str(), offset); in UpdateCountryCode()
315 if (timeZone.empty()) { in UpdateCountryCode()
319 SaveTimeZone(timeZone); in UpdateCountryCode()
322 void NitzUpdate::SaveTimeZone(std::string &timeZone) in SaveTimeZone() argument
325 if (timeZone == lastTimeZone) { in SaveTimeZone()
327 timeZone.c_str(), slotId_); in SaveTimeZone()
331 timeZone_ = timeZone; in SaveTimeZone()
332 bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTimeZone(timeZone); in SaveTimeZone()
[all...]
/base/telephony/sms_mms/services/sms/gsm/
H A Dgsm_sms_param_encode.cpp216 int32_t timeZone = timeStamp->time.absolute.timeZone; in EncodeTimePdu() local
230 if (timeZone < 0) { in EncodeTimePdu()
233 char value = (static_cast<uint8_t>(timeStamp->time.absolute.timeZone % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
234 (timeStamp->time.absolute.timeZone / DIGIT_TEN) + resultValue.front(); in EncodeTimePdu()
/base/time/time_service/interfaces/kits/c/include/
H A Dtime_service.h60 * @param timeZone Pointer to an array of characters indicating the time zone ID. On success, the string indicates the
66 * Returns {@link TIMESERVICE_ERR_INVALID_PARAMETER} if <b>timeZone</b> is a null pointer or the length of the
71 TimeService_ErrCode OH_TimeService_GetTimeZone(char *timeZone, uint32_t len);
/base/hiviewdfx/hiview/base/event_raw/encoded/
H A Draw_data_builder.cpp39 AppendTimeStamp(header.timestamp).AppendTimeZone(header.timeZone).AppendLog(header.log). in RawDataBuilder()
154 RawDataBuilder& RawDataBuilder::AppendTimeZone(const std::string& timeZone) in AppendTimeZone() argument
156 header_.timeZone = static_cast<uint8_t>(ParseTimeZone(timeZone)); in AppendTimeZone()
160 RawDataBuilder& RawDataBuilder::AppendTimeZone(const uint8_t timeZone) in AppendTimeZone() argument
162 header_.timeZone = timeZone; in AppendTimeZone()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_easy/include/
H A Deasy_event_builder.h36 uint8_t timeZone; member
/base/time/time_service/framework/js/napi/system_time/src/
H A Djs_systemtime.cpp36 std::string timeZone = ""; member
131 AsyncContext *asyncContext = new (std::nothrow) AsyncContext{ .env = env, .timeZone = timezoneId }; in JSSystemTimeSetTimeZone()
144 asyncContext->isOK = TimeServiceClient::GetInstance()->SetTimeZone(asyncContext->timeZone, errorCode); in JSSystemTimeSetTimeZone()
399 asyncContext->timeZone = TimeServiceClient::GetInstance()->GetTimeZone(); in JSSystemTimeGetTimeZone()
406 if (asyncContext->timeZone == "") { in JSSystemTimeGetTimeZone()
412 napi_create_string_utf8(env, asyncContext->timeZone.c_str(), asyncContext->timeZone.length(), &result); in JSSystemTimeGetTimeZone()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include/
H A Draw_data_base_def.h55 uint8_t timeZone; member
/base/hiviewdfx/hiview/base/event_store/include/
H A Dbase_def.h97 uint8_t timeZone; member
/base/telephony/core_service/services/network_search/include/
H A Dnitz_update.h49 void SaveTimeZone(std::string &timeZone);
/base/global/i18n/frameworks/intl/src/
H A Ddate_time_format.cpp379 if (configs.count("timeZone") > 0) { in ParseConfigsPartTwo()
380 timeZone = configs["timeZone"]; in ParseConfigsPartTwo()
574 std::string timezoneStr = timeZone.empty() ? GetSystemTimezone() : timeZone; in Format()
595 std::string timezoneStr = timeZone.empty() ? GetSystemTimezone() : timeZone; in FormatRange()
637 if (!timeZone.empty()) { in GetResolvedOptions()
638 map.insert(std::make_pair("timeZone", timeZone)); in GetResolvedOptions()
[all...]
/base/hiviewdfx/hisysevent/frameworks/native/test/unittest/common/
H A Dhisysevent_c_wrapper_test.cpp88 const std::string& timeZone) in CreateSysEventRecord()
93 memcpy_s(record.tz, MAX_LENGTH_OF_TIME_ZONE, timeZone.c_str(), timeZone.length() + EXT_BYTE_CNT) != EOK) { in CreateSysEventRecord()
87 CreateSysEventRecord(const std::string& domain, const std::string& name, const std::string& timeZone) CreateSysEventRecord() argument
/base/telephony/sms_mms/services/sms/include/
H A Dsms_pdu_code_type.h76 int32_t timeZone; // gsm member
/base/hiviewdfx/hiview/base/event_raw/include/base/
H A Draw_data_base_def.h91 uint8_t timeZone; member
194 + sizeof(HiSysEventHeader::timestamp) + sizeof(HiSysEventHeader::timeZone) + sizeof(HiSysEventHeader::uid);
/base/hiviewdfx/hiview/base/event_raw/include/encoded/
H A Draw_data_builder.h62 RawDataBuilder& AppendTimeZone(const std::string& timeZone);
63 RawDataBuilder& AppendTimeZone(const uint8_t timeZone);
495 val = static_cast<std::decay_t<T>>(header_.timeZone); in ParseTimeZoneFromHeader()
499 val = ParseTimeZone(header_.timeZone); in ParseTimeZoneFromHeader()
525 .timeZone = 0,
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_easy/
H A Dhisysevent_easy.c83 header->timeZone = ParseTimeZone(timezone); in InitEventHeader()
/base/hiviewdfx/hiview/base/event_raw/decoded/
H A Ddecoded_event.cpp108 auto timeZone = ParseTimeZone(static_cast<size_t>(header_.timeZone)); in AppendBaseInfo() local
109 AppendValue(ss, BASE_INFO_KEY_TIME_ZONE, timeZone); in AppendBaseInfo()
/base/global/i18n/frameworks/intl/include/
H A Ddate_time_format.h66 std::string timeZone; member in OHOS::Global::I18n::DateTimeFormat
/base/hiviewdfx/hiview/base/event_raw/include/decoded/
H A Ddecoded_event.h132 .timeZone = 0,
/base/telephony/sms_mms/test/fuzztest/gsmsmsparamcodec_fuzzer/
H A Dgsmsmsparamcodec_fuzzer.cpp217 stamp->time.absolute.timeZone = size; in EncodePduItemsTest()
/base/telephony/sms_mms/test/fuzztest/gsmsmsmessage_fuzzer/
H A Dgsmsmsmessage_fuzzer.cpp84 times.time.absolute.timeZone = static_cast<uint8_t>(size); in CalcReplyEncodeAddress()

Completed in 13 milliseconds

12