/base/time/time_service/test/fuzztest/timesettimezone_fuzzer/ |
D | timesettimezone_fuzzer.cpp | 30 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/ |
D | resolver.cpp | 135 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/ |
D | nitz_update.cpp | 255 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/ |
D | raw_data_builder.cpp | 138 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/ |
D | gsm_sms_param_encode.cpp | 214 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()
|
D | gsm_sms_param_decode.cpp | 472 timeStamp->time.absolute.timeZone = in DecodeTimePduData() 480 timeStamp->time.absolute.timeZone *= (-1); in DecodeTimePduData()
|
/base/hiviewdfx/hiview/base/event_raw/encoded/ |
D | raw_data_builder.cpp | 42 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/ |
D | hisysevent_encoded_test.cpp | 239 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");
|
D | hisysevent_native_test.cpp | 1420 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/ |
D | nitz_update.h | 47 void SaveTimeZone(std::string &timeZone);
|
/base/time/time_service/framework/js/napi/system_time/src/ |
D | js_systemtime.cpp | 35 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/ |
D | raw_data_base_def.h | 55 uint8_t timeZone; member
|
D | raw_data_builder.h | 59 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/ |
D | date_time_format.cpp | 338 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/ |
D | raw_data_base_def.h | 57 uint8_t timeZone; member
|
/base/telephony/sms_mms/services/sms/include/ |
D | sms_pdu_code_type.h | 76 int32_t timeZone; // gsm member
|
/base/hiviewdfx/hiview/base/event_raw/decoded/ |
D | decoded_event.cpp | 115 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/ |
D | hisysevent.cpp | 60 char timeZone[timeZoneBufSize]; in GetTimeZone() local 61 auto ret = strftime(timeZone, timeZoneBufSize, "%z", &tmLocal); in GetTimeZone() 63 return std::string(timeZone); in GetTimeZone()
|
D | inner_writer.cpp | 54 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/ |
D | time_system_ability.cpp | 415 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/ |
D | sms_common_utils.cpp | 151 rawtime -= (timeAbs.timeZone * (SEC_PER_HOUR / 0x04)); in ConvertTime()
|
/base/hiviewdfx/hiview/base/event_raw/include/encoded/ |
D | raw_data_builder.h | 62 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/ |
D | decoded_event.h | 129 .timeZone = 0,
|
/base/global/i18n/frameworks/intl/include/ |
D | date_time_format.h | 66 std::string timeZone; variable
|
/base/hiviewdfx/hiview/base/ |
D | sys_event.cpp | 132 tz_ = static_cast<int16_t>(header.timeZone); in InitialMembers()
|