Home
last modified time | relevance | path

Searched refs:timeStamp (Results 1 – 25 of 58) sorted by relevance

123

/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_encode.cpp207 void GsmSmsParamEncode::EncodeTimePdu(const struct SmsTimeStamp *timeStamp, std::string &resultValu… in EncodeTimePdu() argument
209 if (timeStamp == nullptr) { in EncodeTimePdu()
213 if (timeStamp->format == SMS_TIME_ABSOLUTE) { in EncodeTimePdu()
214 int32_t timeZone = timeStamp->time.absolute.timeZone; in EncodeTimePdu()
215 resultValue.push_back(((timeStamp->time.absolute.year % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
216 (timeStamp->time.absolute.year / DIGIT_TEN)); in EncodeTimePdu()
217 resultValue.push_back(((timeStamp->time.absolute.month % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
218 (timeStamp->time.absolute.month / DIGIT_TEN)); in EncodeTimePdu()
220 …((timeStamp->time.absolute.day % DIGIT_TEN) << HEX_VALUE_04) + (timeStamp->time.absolute.day / DIG… in EncodeTimePdu()
221 resultValue.push_back(((timeStamp->time.absolute.hour % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
[all …]
Dgsm_sms_param_decode.cpp367 bool GsmSmsParamDecode::DecodeTimePdu(SmsReadBuffer &buffer, struct SmsTimeStamp *timeStamp) in DecodeTimePdu() argument
369 if (timeStamp == nullptr) { in DecodeTimePdu()
374 timeStamp->format = SMS_TIME_ABSOLUTE; in DecodeTimePdu()
387 timeStamp->time.absolute.year = in DecodeTimePdu()
398 timeStamp->time.absolute.month = in DecodeTimePdu()
400 return DecodeTimePduPartData(buffer, timeStamp); in DecodeTimePdu()
403 bool GsmSmsParamDecode::DecodeTimePduPartData(SmsReadBuffer &buffer, struct SmsTimeStamp *timeStamp) in DecodeTimePduPartData() argument
416 timeStamp->time.absolute.day = in DecodeTimePduPartData()
427 timeStamp->time.absolute.hour = in DecodeTimePduPartData()
438 timeStamp->time.absolute.minute = in DecodeTimePduPartData()
[all …]
Dgsm_sms_param_codec.cpp44 void GsmSmsParamCodec::EncodeTimePdu(const struct SmsTimeStamp *timeStamp, std::string &resultValue) in EncodeTimePdu() argument
47 codec.EncodeTimePdu(timeStamp, resultValue); in EncodeTimePdu()
62 bool GsmSmsParamCodec::DecodeTimePdu(SmsReadBuffer &buffer, struct SmsTimeStamp *timeStamp) in DecodeTimePdu() argument
65 return codec.DecodeTimePdu(buffer, timeStamp); in DecodeTimePdu()
/base/update/updateservice/services/firmware/common/src/
Dfirmware_update_adapter.cpp49 char timeStamp[TIME_STAMP_LEN] = {0}; in GetRequestId() local
54 …int res = sprintf_s(timeStamp, sizeof(timeStamp), "%d%02d%02d%02d%02d%02d", timeInfo.tm_year + TIM… in GetRequestId()
63 res = sprintf_s(requestId, REQUEST_ID_LEN, "%s%d", timeStamp, randomInt); in GetRequestId()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_grant_event.cpp44 .timeStamp = GetRealTimeStamp() in AddEvent()
47 timestamp = event.timeStamp; in AddEvent()
55 if (timestamp >= iter->timeStamp) { in NotifyPermGrantStoreResult()
/base/location/interfaces/inner_api/include/
Dlocation.h95 inline void SetTimeStamp(int64_t timeStamp) in SetTimeStamp() argument
97 timeStamp_ = timeStamp; in SetTimeStamp()
105 inline void SetTimeSinceBoot(int64_t timeStamp) in SetTimeSinceBoot() argument
107 timeSinceBoot_ = timeStamp; in SetTimeSinceBoot()
/base/web/webview/test/unittest/ohos_adapter/location_proxy_adapter_test/
Dlocation_proxy_adapter_test.cpp168 int64_t timeStamp = locationInfoImpl->GetTimeStamp(); variable
169 EXPECT_EQ(timeStamp, 0);
170 timeStamp = locationInfoImpl->GetTimeSinceBoot();
171 EXPECT_EQ(timeStamp, 0);
199 int64_t timeStamp = locationInfoImpl->GetTimeStamp(); variable
200 EXPECT_EQ(timeStamp, 0);
201 timeStamp = locationInfoImpl->GetTimeSinceBoot();
202 EXPECT_EQ(timeStamp, 0);
/base/security/dlp_permission_service/frameworks/dlp_permission/src/
Dopen_dlp_file_callback_info_parcel.cpp34 if (!(out.WriteUint64(this->fileInfo.timeStamp))) { in Marshalling()
54 if (!(in.ReadUint64(parcel->fileInfo.timeStamp))) { in Unmarshalling()
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_param_codec.h29 void EncodeTimePdu(const struct SmsTimeStamp *timeStamp, std::string &resultValue);
35 bool DecodeTimePdu(SmsReadBuffer &bufferr, struct SmsTimeStamp *timeStamp);
Dgsm_pdu_code_type.h178 struct SmsTimeStamp timeStamp; // TP Service Centre Time Stamp member
210 struct SmsTimeStamp timeStamp; // TP Service Centre Time Stamp member
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/include/
Dopen_dlp_file_callback_info.h26 uint64_t timeStamp; member
/base/security/access_token/interfaces/innerkits/analysis_model/src/
Dcode_signature_analysis_kit.c49 totalCount += tmp->timeStamp.timeStampCount; in IsRiskStatusChanged()
50 eventCount += (tmp->timeStamp.timeStampCount != 0) ? 1 : 0; in IsRiskStatusChanged()
79 while ((tmpNode != NULL) && (tmpNode->timeStamp.timeStampMs > report->timeStampMs)) { in DataPreProcess()
90 head->timeStamp.timeStampCount--; in DataPreProcess()
104 tmp->timeStamp.timeStampMs = report->timeStampMs; in DataPreProcess()
107 head->timeStamp.timeStampCount++; in DataPreProcess()
133 tmp[i].timeStamp.timeStampCount = 0; in AppRiskInfoNodeInit()
/base/security/dlp_permission_service/services/dlp_permission/sa/sa_common/
Ddlp_sandbox_info.h34 uint64_t timeStamp = 0; variable
/base/time/time_service/test/unittest/service_test/src/
Dtime_service_test.cpp706 auto timeStamp = ntpClient->ConvertNtpToStamp(0); variable
707 EXPECT_EQ(timeStamp, 0);
708 timeStamp = ntpClient->ConvertNtpToStamp(100);
709 EXPECT_EQ(timeStamp, 0);
710 timeStamp = ntpClient->ConvertNtpToStamp(2147483648);
711 EXPECT_EQ(timeStamp, 0);
712 timeStamp = ntpClient->ConvertNtpToStamp(31234114451);
713 EXPECT_EQ(timeStamp, 0);
715 timeStamp = ntpClient->ConvertNtpToStamp(time << 32);
716 EXPECT_GT(timeStamp, 0);
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Dpermission_grant_event.h31 uint64_t timeStamp; member
/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
Ddlp_parcel_test.cpp104 info.fileInfo.timeStamp = 1;
111 EXPECT_EQ(1, result->fileInfo.timeStamp);
/base/web/webview/ohos_adapter/audio_adapter/src/
Daudio_capturer_adapter_impl.cpp221 Timestamp timeStamp; in GetAudioTime() local
222 audio_capturer_->GetAudioTime(timeStamp, Timestamp::Timestampbase::MONOTONIC); in GetAudioTime()
223 return timeStamp.time.tv_sec * NANOSECONDS_PER_SECOND + timeStamp.time.tv_nsec; in GetAudioTime()
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
Dfaultlogger_client_unittest.cpp102 for (auto timeStamp : timeStamps) { variable
103 if (CheckLogFileExist(timeStamp, getuid(), "cppcrash", "faultlogtest1")) {
/base/telephony/sms_mms/services/sms/include/cdma/
Dcdma_sms_common.h334 SmsTimeAbs timeStamp; member
374 SmsTimeAbs timeStamp; member
382 SmsTimeAbs timeStamp; member
390 SmsTimeAbs timeStamp; member
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Ddata_publisher.cpp274 int64_t timeStamp; in GetTimeStampByUid() local
277 timeStamp = iter->second; in GetTimeStampByUid()
279 timeStamp = 0; in GetTimeStampByUid()
281 return timeStamp; in GetTimeStampByUid()
/base/hiviewdfx/faultloggerd/interfaces/common/
Ddfx_dump_request.h88 uint64_t timeStamp; member
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_sender.cpp79 long timeStamp = chrono::duration_cast<chrono::seconds>(timePoint).count(); in TextBasedSmsDelivery() local
118 indexer->SetTimeStamp(timeStamp); in TextBasedSmsDelivery()
268 long timeStamp = chrono::duration_cast<chrono::seconds>(timePoint).count(); in SetSendIndexerInfo() local
269 indexer->SetTimeStamp(timeStamp); in SetSendIndexerInfo()
378 long timeStamp = chrono::duration_cast<chrono::seconds>(timePoint).count(); in EncodeMsgData() local
379 indexer->SetTimeStamp(timeStamp); in EncodeMsgData()
416 long timeStamp = chrono::duration_cast<chrono::seconds>(timePoint).count(); in DataBasedSmsDeliveryViaIms() local
424 indexer->SetTimeStamp(timeStamp); in DataBasedSmsDeliveryViaIms()
640 long timeStamp = chrono::duration_cast<chrono::seconds>(timePoint).count(); in ResendTextDelivery() local
641 smsIndexer->SetTimeStamp(timeStamp); in ResendTextDelivery()
[all …]
/base/hiviewdfx/hiview/base/utility/
Dtime_util.cpp62 std::string TimestampFormatToDate(time_t timeStamp, const std::string& format) in TimestampFormatToDate() argument
66 if (localtime_r(&timeStamp, &result) != nullptr) { in TimestampFormatToDate()
/base/hiviewdfx/hiview/base/utility/include/
Dtime_util.h56 std::string TimestampFormatToDate(time_t timeStamp, const std::string& format);
/base/security/device_security_level/services/dfx/
Ddslm_hidumper.c39 static const char *GetTimeStringFromTimeStamp(uint64_t timeStamp) in GetTimeStringFromTimeStamp() argument
46 if (timeStamp == 0) { in GetTimeStringFromTimeStamp()
49 if (!GetDateTimeByMillisecondSinceBoot(timeStamp, &dateTime)) { in GetTimeStringFromTimeStamp()

123