Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 – 25 of 26) sorted by relevance

12

/base/time/time_service/test/fuzztest/timesettimezone_fuzzer/
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()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dresolver.cpp135 std::string timeZone = ""; in GetTimeZone() local
140 return timeZone; in GetTimeZone()
144 timeZone = (hour >= 0) ? "+" : "-"; in GetTimeZone()
148 timeZone.append("0"); in GetTimeZone()
150 timeZone.append(std::to_string(absHour)); in GetTimeZone()
155 timeZone.append("0"); in GetTimeZone()
157 timeZone.append(std::to_string(absMinute)); in GetTimeZone()
159 return timeZone; in GetTimeZone()
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp255 std::string timeZone = util.GetDefaultZone(countryCode.c_str()); in ProcessTimeZone() local
256 if (timeZone.empty()) { in ProcessTimeZone()
258 timeZone = util.GetDefaultZone(countryCode.c_str(), offset); in ProcessTimeZone()
260 if (timeZone.empty()) { in ProcessTimeZone()
265 SaveTimeZone(timeZone); in ProcessTimeZone()
268 void NitzUpdate::SaveTimeZone(std::string &timeZone) in SaveTimeZone() argument
271 if (timeZone == lastTimeZone) { in SaveTimeZone()
273 timeZone.c_str(), slotId_); in SaveTimeZone()
277 timeZone_ = timeZone; in SaveTimeZone()
278 bool result = OHOS::MiscServices::TimeServiceClient::GetInstance()->SetTimeZone(timeZone); in SaveTimeZone()
[all …]
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/
Draw_data_builder.cpp138 RawDataBuilder& RawDataBuilder::AppendTimeZone(const std::string& timeZone) in AppendTimeZone() argument
140 header_.timeZone = static_cast<uint8_t>(ParseTimeZone(timeZone)); in AppendTimeZone()
144 RawDataBuilder& RawDataBuilder::AppendTimeZone(const uint8_t timeZone) in AppendTimeZone() argument
146 header_.timeZone = timeZone; in AppendTimeZone()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_encode.cpp214 int32_t timeZone = timeStamp->time.absolute.timeZone; in EncodeTimePdu() local
228 if (timeZone < 0) { in EncodeTimePdu()
231 …char value = (static_cast<uint8_t>(timeStamp->time.absolute.timeZone % DIGIT_TEN) << HEX_VALUE_04)… in EncodeTimePdu()
232 (timeStamp->time.absolute.timeZone / DIGIT_TEN) + resultValue.front(); in EncodeTimePdu()
Dgsm_sms_param_decode.cpp472 timeStamp->time.absolute.timeZone = in DecodeTimePduData()
480 timeStamp->time.absolute.timeZone *= (-1); in DecodeTimePduData()
/base/hiviewdfx/hiview/base/event_raw/encoded/
Draw_data_builder.cpp42 AppendTimeStamp(header.timestamp).AppendTimeZone(header.timeZone). in RawDataBuilder()
157 RawDataBuilder& RawDataBuilder::AppendTimeZone(const std::string& timeZone) in AppendTimeZone() argument
159 header_.timeZone = static_cast<uint8_t>(ParseTimeZone(timeZone)); in AppendTimeZone()
163 RawDataBuilder& RawDataBuilder::AppendTimeZone(const uint8_t timeZone) in AppendTimeZone() argument
165 header_.timeZone = timeZone; in AppendTimeZone()
/base/hiviewdfx/hisysevent/test/moduletest/common/
Dhisysevent_encoded_test.cpp239 auto timeZone = ParseTimeZone(40); // 40 is a invalid index variable
240 ASSERT_TRUE(timeZone == "+0000");
241 timeZone = ParseTimeZone(15); // 15 is a valid index
242 ASSERT_TRUE(timeZone == "+0100");
Dhisysevent_native_test.cpp1420 auto timeZone = record.GetTimeZone(); variable
1421 ASSERT_TRUE(timeZone.size() == 5);
1439 ASSERT_TRUE(timeZone.size() >= 0);
1459 auto timeZone = record.GetTimeZone(); variable
1460 ASSERT_TRUE(timeZone.size() == 0);
/base/telephony/core_service/services/network_search/include/
Dnitz_update.h47 void SaveTimeZone(std::string &timeZone);
/base/time/time_service/framework/js/napi/system_time/src/
Djs_systemtime.cpp35 std::string timeZone = ""; member
127 …AsyncContext *asyncContext = new (std::nothrow) AsyncContext{ .env = env, .timeZone = timezoneId }; in JSSystemTimeSetTimeZone()
140 …ncContext->isOK = TimeServiceClient::GetInstance()->SetTimeZone(asyncContext->timeZone, errorCode); in JSSystemTimeSetTimeZone()
426 asyncContext->timeZone = TimeServiceClient::GetInstance()->GetTimeZone(); in JSSystemTimeGetTimeZone()
433 if (asyncContext->timeZone == "") { in JSSystemTimeGetTimeZone()
443 …napi_create_string_utf8(env, asyncContext->timeZone.c_str(), asyncContext->timeZone.length(), &res… in JSSystemTimeGetTimeZone()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/include/
Draw_data_base_def.h55 uint8_t timeZone; member
Draw_data_builder.h59 RawDataBuilder& AppendTimeZone(const std::string& timeZone);
60 RawDataBuilder& AppendTimeZone(const uint8_t timeZone);
487 val = static_cast<std::decay_t<T>>(header_.timeZone); in PareTimeZone()
492 val = ParseTimeZone(header_.timeZone); in PareTimeZone()
518 .timeZone = 0,
/base/global/i18n/frameworks/intl/src/
Ddate_time_format.cpp338 timeZone = configs["timeZone"]; in ParseConfigsPartTwo()
511 std::string timezoneStr = timeZone.empty() ? GetSystemTimezone() : timeZone; in Format()
530 std::string timezoneStr = timeZone.empty() ? GetSystemTimezone() : timeZone; in FormatRange()
568 if (!timeZone.empty()) { in GetResolvedOptions()
569 map.insert(std::make_pair("timeZone", timeZone)); in GetResolvedOptions()
650 return timeZone; in GetTimeZone()
/base/hiviewdfx/hiview/base/event_raw/include/base/
Draw_data_base_def.h57 uint8_t timeZone; member
/base/telephony/sms_mms/services/sms/include/
Dsms_pdu_code_type.h76 int32_t timeZone; // gsm member
/base/hiviewdfx/hiview/base/event_raw/decoded/
Ddecoded_event.cpp115 auto timeZone = ParseTimeZone(static_cast<size_t>(header_.timeZone)); in AppendBaseInfo() local
116 AppendValue(ss, BASE_INFO_KEY_TIME_ZONE, timeZone); in AppendBaseInfo()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dhisysevent.cpp60 char timeZone[timeZoneBufSize]; in GetTimeZone() local
61 auto ret = strftime(timeZone, timeZoneBufSize, "%z", &tmLocal); in GetTimeZone()
63 return std::string(timeZone); in GetTimeZone()
Dinner_writer.cpp54 char timeZone[timeZoneBufSize]; in GetTimeZone() local
55 auto ret = strftime(timeZone, timeZoneBufSize, "%z", &tmLocal); in GetTimeZone()
57 return std::string(timeZone); in GetTimeZone()
/base/time/time_service/services/
Dtime_system_ability.cpp415 std::string timeZone; in DumpAllTimeInfo() local
416 int32_t bRet = GetTimeZone(timeZone); in DumpAllTimeInfo()
418 dprintf(fd, " * time zone = %s\n", timeZone.c_str()); in DumpAllTimeInfo()
420 dprintf(fd, " * dump time zone error,is %s\n", timeZone.c_str()); in DumpAllTimeInfo()
/base/telephony/sms_mms/utils/
Dsms_common_utils.cpp151 rawtime -= (timeAbs.timeZone * (SEC_PER_HOUR / 0x04)); in ConvertTime()
/base/hiviewdfx/hiview/base/event_raw/include/encoded/
Draw_data_builder.h62 RawDataBuilder& AppendTimeZone(const std::string& timeZone);
63 RawDataBuilder& AppendTimeZone(const uint8_t timeZone);
490 val = static_cast<std::decay_t<T>>(header_.timeZone); in PareTimeZone()
495 val = ParseTimeZone(header_.timeZone); in PareTimeZone()
523 .timeZone = 0,
/base/hiviewdfx/hiview/base/event_raw/include/decoded/
Ddecoded_event.h129 .timeZone = 0,
/base/global/i18n/frameworks/intl/include/
Ddate_time_format.h66 std::string timeZone; variable
/base/hiviewdfx/hiview/base/
Dsys_event.cpp132 tz_ = static_cast<int16_t>(header.timeZone); in InitialMembers()

12