Home
last modified time | relevance | path

Searched refs:timestamp (Results 1 - 25 of 186) sorted by relevance

12345678

/base/msdp/device_status/services/interaction/drag/src/
H A Ddrag_smooth_processor.cpp76 if (event.timestamp == nanoTimestamp) { in GetNearestEvent()
80 if (event.timestamp > nanoTimestamp) { in GetNearestEvent()
81 if (event.timestamp - nanoTimestamp < gap) { in GetNearestEvent()
82 gap = event.timestamp - nanoTimestamp; in GetNearestEvent()
86 if (nanoTimestamp - event.timestamp < gap) { in GetNearestEvent()
87 gap = nanoTimestamp - event.timestamp; in GetNearestEvent()
105 if (latestEvent.timestamp < event.timestamp) { in Resample()
109 if (nanoTimestamp > RESAMPLE_COORD_TIME_THRESHOLD + latestEvent.timestamp) { in Resample()
111 "y:%{private}f, timestamp in Resample()
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_conversational_message_test.cpp44 int64_t timestamp = 10; in HWTEST_F() local
46 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestamp, sender); in HWTEST_F()
49 EXPECT_EQ(rrc->GetArrivedTime(), timestamp); in HWTEST_F()
61 int64_t timestamp = 10; in HWTEST_F() local
66 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestamp, sender); in HWTEST_F()
81 int64_t timestamp = 10; in HWTEST_F() local
83 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestamp, sender); in HWTEST_F()
100 int64_t timestamp = 10; in HWTEST_F() local
103 auto rrc = std::make_shared<NotificationConversationalMessage>(text, timestamp, sender); in HWTEST_F()
117 int64_t timestamp in HWTEST_F() local
133 int64_t timestamp = 10; HWTEST_F() local
157 int64_t timestamp = 10; HWTEST_F() local
173 int64_t timestamp = 10; HWTEST_F() local
192 int64_t timestamp = 10; HWTEST_F() local
214 int64_t timestamp = 10; HWTEST_F() local
[all...]
/base/location/frameworks/native/locator_agent/source/
H A Dnative_nmea_callback_host.cpp35 int64_t timestamp = data.ReadInt64(); in OnRemoteRequest() local
37 OnMessageChange(timestamp, msg); in OnRemoteRequest()
48 void NativeNmeaCallbackHost::OnMessageChange(int64_t timestamp, const std::string msg) in OnMessageChange() argument
53 nmeaCallback.nmeaUpdate(timestamp, msg); in OnMessageChange()
/base/powermgr/display_manager/brightness_manager/src/
H A Dlight_lux_manager.cpp56 void LightLuxManager::UpdateLuxBuffer(int64_t timestamp, float lux) in UpdateLuxBuffer() argument
58 mLuxBuffer.Prune(timestamp - LIGHT_LUX_BUFFER_RANGE); in UpdateLuxBuffer()
59 mLuxBuffer.Push(timestamp, lux); in UpdateLuxBuffer()
62 bool LightLuxManager::IsUpdateLuxSuccess(int64_t timestamp) in IsUpdateLuxSuccess() argument
73 "timestamp=%{public}" PRId64 ".", smoothLux, timestamp); in IsUpdateLuxSuccess()
79 mLuxBufferFilter.Prune(timestamp - LIGHT_LUX_BUFFER_RANGE); in IsUpdateLuxSuccess()
80 mLuxBufferFilter.Push(timestamp, smoothLux); in IsUpdateLuxSuccess()
81 int64_t nextBrightenTime = GetNextBrightenTime(timestamp); in IsUpdateLuxSuccess()
82 int64_t nextDarkenTime = GetNextDarkenTime(timestamp); in IsUpdateLuxSuccess()
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dvisit_record_json_manager.cpp32 const std::string TIMESTAMP = "timestamp";
51 const std::string& docUri, const int64_t timestamp, const AccessTokenID originalTokenId) in AddVisitRecord()
68 info.timestamp = timestamp; in AddVisitRecord()
109 info.visitTimestamp = iter->timestamp; in GetVisitRecordList()
128 { TIMESTAMP, info.timestamp }, in VisitRecordInfoToJson()
137 int64_t timestamp = -1; in VisitRecordInfoFromJson() local
149 json.at(TIMESTAMP).get_to(timestamp); in VisitRecordInfoFromJson()
154 if (bundleName.empty() || userId < 0 || docUri.empty() || timestamp < 0 || originalTokenId == 0) { in VisitRecordInfoFromJson()
161 info.timestamp in VisitRecordInfoFromJson()
50 AddVisitRecord(const std::string& bundleName, const int32_t& userId, const std::string& docUri, const int64_t timestamp, const AccessTokenID originalTokenId) AddVisitRecord() argument
[all...]
/base/powermgr/display_manager/brightness_manager/include/
H A Dlight_lux_manager.h50 void UpdateLuxBuffer(int64_t timestamp, float lux);
51 bool IsUpdateLuxSuccess(int64_t timestamp);
53 int64_t GetNextBrightenTime(int64_t timestamp) const;
54 int64_t GetNextDarkenTime(int64_t timestamp) const;
65 void PrintCurrentLuxLog(int64_t timestamp);
/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
H A Dpermission_grant_event.cpp38 void PermissionGrantEvent::AddEvent(AccessTokenID tokenID, const std::string& permissionName, uint64_t& timestamp) in AddEvent() argument
47 timestamp = event.timeStamp; in AddEvent()
51 void PermissionGrantEvent::NotifyPermGrantStoreResult(bool isStoreSucc, uint64_t timestamp) in NotifyPermGrantStoreResult() argument
55 if (timestamp >= iter->timeStamp) { in NotifyPermGrantStoreResult()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_sensor_callback_adapter_impl.cpp25 void ArkSensorCallbackAdapterImpl::UpdateOhosSensorData(double timestamp, in UpdateOhosSensorData() argument
28 real_->UpdateOhosSensorData(timestamp, value1, value2, value3, value4); in UpdateOhosSensorData()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_sensor_callback_adapter_wrapper.cpp26 void ArkSensorCallbackAdapterWrapper::UpdateOhosSensorData(double timestamp, in UpdateOhosSensorData() argument
29 ctocpp_->UpdateOhosSensorData(timestamp, value1, value2, value3, value4); in UpdateOhosSensorData()
/base/sensors/sensor/utils/common/src/
H A Dprint_sensor_data.cpp70 it->second.lastTime = sensorData.timestamp; in ControlSensorHdiPrint()
74 if (sensorData.timestamp - it->second.lastTime >= LOG_INTERVAL) { in ControlSensorHdiPrint()
76 it->second.lastTime = sensorData.timestamp; in ControlSensorHdiPrint()
85 str += "timestamp: " + std::to_string(sensorData.timestamp / LOG_FORMAT_DIVIDER) + ", "; in PrintHdiData()
142 it->second.lastTime = event.timestamp; in ControlSensorClientPrint()
146 if (event.timestamp - it->second.lastTime >= LOG_INTERVAL) { in ControlSensorClientPrint()
148 it->second.lastTime = event.timestamp; in ControlSensorClientPrint()
157 str += "timestamp: " + std::to_string(event.timestamp / LOG_FORMAT_DIVIDE in PrintClientData()
[all...]
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
H A Dsec_comp_entity_test.cpp117 .point.timestamp = 0, in HWTEST_F()
122 touch.point.timestamp = current + 10000L; // 10s in HWTEST_F()
129 touch.point.timestamp = static_cast<uint64_t>( in HWTEST_F()
138 touch.point.timestamp = static_cast<uint64_t>( in HWTEST_F()
155 .point.timestamp = static_cast<uint64_t>(std::chrono::high_resolution_clock::now().time_since_epoch().count()), in HWTEST_F()
196 clickInfo.key.timestamp = current - 1000000L - 1; in HWTEST_F()
199 clickInfo.key.timestamp = current + 1; in HWTEST_F()
202 clickInfo.key.timestamp = current - 1; in HWTEST_F()
/base/location/frameworks/cj/source/
H A Dnmea_message_callback.cpp55 int64_t timestamp = data.ReadInt64(); in OnRemoteRequest() local
57 OnMessageChange(timestamp, msg); in OnRemoteRequest()
73 void NmeaMessageCallback::OnMessageChange(int64_t timestamp, const std::string msg) in OnMessageChange() argument
/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Dresolver.cpp57 unsigned long long timestamp = watchPoint.GetTimestamp(); in ResolveEvent() local
68 unsigned long long start = window > 0 ? timestamp : timestamp - timeInterval; in ResolveEvent()
69 unsigned long long end = window > 0 ? timestamp + timeInterval : timestamp; in ResolveEvent()
/base/security/access_token/services/privacymanager/src/database/
H A Ddata_translator.cpp87 int64_t timestamp = inGenericValues.GetInt64(PrivacyFiledConst::FIELD_TIMESTAMP); in TranslationGenericValuesIntoPermissionUsedRecord() local
92 permissionRecord.lastAccessTime = timestamp; in TranslationGenericValuesIntoPermissionUsedRecord()
98 permissionRecord.lastRejectTime = timestamp; in TranslationGenericValuesIntoPermissionUsedRecord()
113 detail.timestamp = permissionRecord.lastAccessTime; in TranslationGenericValuesIntoPermissionUsedRecord()
119 detail.timestamp = permissionRecord.lastRejectTime; in TranslationGenericValuesIntoPermissionUsedRecord()
/base/telephony/sms_mms/services/sms/
H A Dsms_receive_indexer.cpp40 SmsReceiveIndexer::SmsReceiveIndexer(const std::vector<uint8_t> &pdu, int64_t timestamp, int16_t destPort, bool isCdma, in SmsReceiveIndexer() argument
43 : pdu_(pdu), timestamp_(timestamp), destPort_(destPort), isCdma_(isCdma), isCdmaWapPdu_(isCdmaWapPdu), in SmsReceiveIndexer()
48 SmsReceiveIndexer::SmsReceiveIndexer(const std::vector<uint8_t> &pdu, int64_t timestamp, int16_t destPort, bool isCdma, in SmsReceiveIndexer() argument
50 : pdu_(pdu), timestamp_(timestamp), destPort_(destPort), isCdma_(isCdma), isCdmaWapPdu_(isCdmaWapPdu), in SmsReceiveIndexer()
177 void SmsReceiveIndexer::SetTimestamp(int64_t timestamp) in SetTimestamp() argument
179 timestamp_ = timestamp; in SetTimestamp()
/base/update/packaging_tools/zipalign/src/main/java/com/ohos/
H A DZipAlign.java47 long timestamp = TIMESTAMP; in copyFileAndAlignment()
48 timestamp -= TimeZone.getDefault().getOffset(timestamp); in copyFileAndAlignment()
51 copyFiles(entryNames, inputZip, outputZip, timestamp, alignment); in copyFileAndAlignment()
55 private static void copyFiles(List<String> entryNames, ZipFile in, ZipOutputStream out, long timestamp, in copyFiles() argument
68 outEntry.setTime(timestamp); in copyFiles()
/base/update/sys_installer/tools/zipalign/src/main/java/com/ohos/
H A DZipAlign.java47 long timestamp = TIMESTAMP; in copyFileAndAlignment()
48 timestamp -= TimeZone.getDefault().getOffset(timestamp); in copyFileAndAlignment()
51 copyFiles(entryNames, inputZip, outputZip, timestamp, alignment); in copyFileAndAlignment()
55 private static void copyFiles(List<String> entryNames, ZipFile in, ZipOutputStream out, long timestamp, in copyFiles() argument
68 outEntry.setTime(timestamp); in copyFiles()
/base/startup/init/services/modules/bootevent/
H A Dbootevent.c78 item->timestamp[i].tv_nsec = 0; in AddBootEventItem()
79 item->timestamp[i].tv_sec = 0; in AddBootEventItem()
151 (void)clock_gettime(CLOCK_MONOTONIC, &(found->timestamp[BOOTEVENT_READY])); in AddInitBootEvent()
160 (void)clock_gettime(CLOCK_MONOTONIC, &(item->timestamp[BOOTEVENT_FORK])); in AddInitBootEvent()
198 double forkTime = (double)item->timestamp[BOOTEVENT_FORK].tv_sec * MSECTONSEC + in BootEventTraversal()
199 (double)item->timestamp[BOOTEVENT_FORK].tv_nsec / USTONSEC; in BootEventTraversal()
200 double readyTime = (double)item->timestamp[BOOTEVENT_READY].tv_sec * MSECTONSEC + in BootEventTraversal()
201 (double)item->timestamp[BOOTEVENT_READY].tv_nsec / USTONSEC; in BootEventTraversal()
336 if (found->timestamp[BOOTEVENT_READY].tv_sec > 0) { in BootEventParaFireByName()
340 &(found->timestamp[BOOTEVENT_READ in BootEventParaFireByName()
[all...]
/base/location/frameworks/native/locator_agent/include/
H A Dnative_nmea_callback_host.h31 typedef void (* NmeaUpdate)(int64_t timestamp, const std::string msg);
41 void OnMessageChange(int64_t timestamp, const std::string msg) override;
/base/location/services/location_locator/callback/source/
H A Dnmea_message_callback_proxy.cpp32 void NmeaMessageCallbackProxy::OnMessageChange(int64_t timestamp, const std::string msg) in OnMessageChange() argument
39 data.WriteInt64(timestamp); in OnMessageChange()
/base/notification/distributed_notification_service/test/fuzztest/notificationconversationalmessage_fuzzer/
H A Dnotificationconversationalmessage_fuzzer.cpp23 int64_t timestamp = 1; in DoSomethingInterestingWithMyAPI() local
26 stringData, timestamp, sender); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationconversationalmessageannex_fuzzer/
H A Dnotificationconversationalmessageannex_fuzzer.cpp27 int64_t timestamp = 1; in DoSomethingInterestingWithMyAPI() local
30 stringData, timestamp, sender); in DoSomethingInterestingWithMyAPI()
/base/security/access_token/frameworks/common/src/
H A Dtime_util.cpp29 int64_t timestamp = t.tv_sec * ONE_SECOND_MILLISECONDS + t.tv_usec / ONE_SECOND_MILLISECONDS; in GetCurrentTimestamp() local
31 return timestamp; in GetCurrentTimestamp()
38 // localtime is not thread safe, localtime_r first param unit is second, timestamp unit is ms, so divided by 1000 in IsTimeStampsSameMinute()
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
H A Dpermission_grant_event.h39 void AddEvent(AccessTokenID tokenID, const std::string& permissionName, uint64_t& timestamp);
40 void NotifyPermGrantStoreResult(bool result, uint64_t timestamp);
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
H A Dwrite_controller.cpp64 uint64_t timestamp = INVALID_TIME_STAMP; member
144 if ((record.count == 0) || ((record.timestamp / secToMillis) + param.period < (cur / secToMillis)) || in CheckLimitWritingEvent()
145 ((record.timestamp / secToMillis) > (cur / secToMillis))) { in CheckLimitWritingEvent()
147 record.timestamp = cur; in CheckLimitWritingEvent()
160 param.period, param.threshold, static_cast<long long>(record.timestamp / secToMillis), in CheckLimitWritingEvent()

Completed in 9 milliseconds

12345678