/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/ |
H A D | net_stats_history_test.cpp | 53 auto history = std::make_unique<NetStatsHistory>(); in HWTEST_F() local 55 int32_t ret = history->GetHistory(infos); in HWTEST_F() 62 auto history = std::make_unique<NetStatsHistory>(); in HWTEST_F() local 65 int32_t ret = history->GetHistory(infos, currentTime - TIME_CYCLE, currentTime + TIME_CYCLE); in HWTEST_F() 72 auto history = std::make_unique<NetStatsHistory>(); in HWTEST_F() local 74 int32_t ret = history->GetHistory(infos, 1152, 0, LONG_MAX); in HWTEST_F() 81 auto history = std::make_unique<NetStatsHistory>(); in HWTEST_F() local 84 int32_t ret = history->GetHistory(infos, 1152, currentTime - TIME_CYCLE, currentTime + TIME_CYCLE); in HWTEST_F() 91 auto history = std::make_unique<NetStatsHistory>(); in HWTEST_F() local 93 int32_t ret = history in HWTEST_F() 100 auto history = std::make_unique<NetStatsHistory>(); HWTEST_F() local 110 auto history = std::make_unique<NetStatsHistory>(); HWTEST_F() local 119 auto history = std::make_unique<NetStatsHistory>(); HWTEST_F() local 129 auto history = std::make_unique<NetStatsHistory>(); HWTEST_F() local 139 auto history = std::make_unique<NetStatsHistory>(); HWTEST_F() local [all...] |
H A D | net_stats_cached_test.cpp | 91 auto history = std::make_unique<NetStatsHistory>(); in HWTEST_F() local 92 int32_t ret = history->GetHistory(allInfo, uid, start, end); in HWTEST_F()
|
/foundation/communication/dsoftbus/core/connection/manager/ |
H A D | softbus_conn_flow_control.c | 64 struct HistoryNode *history = SoftBusCalloc(sizeof(*history));
in Apply() local 65 if (history == NULL) {
in Apply() 69 ListInit(&history->node);
in Apply() 70 history->amount = amount;
in Apply() 71 history->timestamp = now;
in Apply() 72 ListAdd(&self->histories, &history->node);
in Apply()
|
/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
H A D | net_stats_service.cpp | 303 auto history = std::make_unique<NetStatsHistory>(); in GetIfaceStatsDetail() local 304 int32_t ret = history->GetHistory(allInfo, iface, start, end); in GetIfaceStatsDetail() 338 auto history = std::make_unique<NetStatsHistory>(); in GetUidStatsDetail() local 339 int32_t ret = history->GetHistory(allInfo, iface, uid, start, end); in GetUidStatsDetail() 444 auto history = std::make_unique<NetStatsHistory>(); in GetTrafficStatsByNetwork() local 445 if (history == nullptr) { in GetTrafficStatsByNetwork() 446 NETMGR_LOG_E("history is null"); in GetTrafficStatsByNetwork() 450 int32_t ret = history->GetHistoryByIdent(allInfo, ident, start, end); in GetTrafficStatsByNetwork() 452 NETMGR_LOG_E("get history by ident failed, err code=%{public}d", ret); in GetTrafficStatsByNetwork() 498 auto history in GetTrafficStatsByUidNetwork() local [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | js_types.cpp | 90 std::list<TouchLocationInfo> history; in JsGetHistoricalPoints() local 91 history = eventInfo->GetHistory(); in JsGetHistoricalPoints() 92 Local<ArrayRef> valueArray = ArrayRef::New(info->GetVM(), history.size()); in JsGetHistoricalPoints() 94 for (auto const &point : history) { in JsGetHistoricalPoints()
|
/foundation/arkui/ace_engine/test/unittest/core/event/ |
H A D | touch_event_test_ng.cpp | 255 * @tc.steps: step9. add history. in HWTEST_F() 259 touchEvent4.history.push_back(touchEvent); in HWTEST_F() 260 touchEvent4.history.push_back(touchEvent); in HWTEST_F() 261 touchEvent4.history.push_back(touchEvent); in HWTEST_F() 438 touchEvent_2.history.push_back(touchEvent_3); in HWTEST_F() 447 touchEvent_2.history.push_back(touchEvent_4); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/pipeline_ng/ |
H A D | pipeline_context.cpp | 387 const std::tuple<float, float, uint64_t>& history, const std::tuple<float, float, uint64_t>& current, in LinearInterpolation() 390 if (nanoTimeStamp == std::get<INDEX_TIME>(history) || nanoTimeStamp == std::get<INDEX_TIME>(current)) { in LinearInterpolation() 393 if (std::get<INDEX_TIME>(current) <= std::get<INDEX_TIME>(history)) { in LinearInterpolation() 396 if (std::get<INDEX_TIME>(current) - std::get<INDEX_TIME>(history) > INTERPOLATION_THRESHOLD) { in LinearInterpolation() 399 if (nanoTimeStamp < std::get<INDEX_TIME>(history)) { in LinearInterpolation() 402 auto inputXDeltaSlope = (std::get<INDEX_X>(current) - std::get<INDEX_X>(history)) * ONE_S_IN_NS / in LinearInterpolation() 403 (float)(std::get<INDEX_TIME>(current) - std::get<INDEX_TIME>(history)); in LinearInterpolation() 404 auto inputYDeltaSlope = (std::get<INDEX_Y>(current) - std::get<INDEX_Y>(history)) * ONE_S_IN_NS / in LinearInterpolation() 405 (float)(std::get<INDEX_TIME>(current) - std::get<INDEX_TIME>(history)); in LinearInterpolation() 407 float alpha = (float)(nanoTimeStamp - std::get<INDEX_TIME>(history)) / in LinearInterpolation() 386 LinearInterpolation( const std::tuple<float, float, uint64_t>& history, const std::tuple<float, float, uint64_t>& current, const uint64_t nanoTimeStamp) LinearInterpolation() argument 452 GetResampleCoord(const std::vector<TouchEvent>& history, const std::vector<TouchEvent>& current, const uint64_t nanoTimeStamp, const bool isScreen) GetResampleCoord() argument 493 GetResampleTouchEvent(const std::vector<TouchEvent>& history, const std::vector<TouchEvent>& current, const uint64_t nanoTimeStamp, TouchEvent& newTouchEvent) GetResampleTouchEvent() argument 547 GetResampleMouseEvent( const std::vector<MouseEvent>& history, const std::vector<MouseEvent>& current, const uint64_t nanoTimeStamp) GetResampleMouseEvent() argument 573 GetMouseResampleCoord(const std::vector<MouseEvent>& history, const std::vector<MouseEvent>& current, const uint64_t nanoTimeStamp, const bool isScreen) GetMouseResampleCoord() argument 741 GetResamplePointerEvent(const std::vector<PointerEvent>& history, const std::vector<PointerEvent>& current, const uint64_t nanoTimeStamp) GetResamplePointerEvent() argument 757 GetResamplePointerCoord( const std::vector<PointerEvent>& history, const std::vector<PointerEvent>& current, const uint64_t nanoTimeStamp, const bool isScreen) GetResamplePointerCoord() argument 2829 std::vector<TouchEvent> history; CompensateTouchMoveEventFromUnhandledEvents() local 3463 std::vector<MouseEvent> history; CompensateMouseMoveEventFromUnhandledEvents() local 4478 std::vector<PointerEvent> history; CompensatePointerMoveEventFromUnhandledEvents() local [all...] |
H A D | pipeline_context.h | 1080 std::tuple<float, float, float, float> LinearInterpolation(const std::tuple<float, float, uint64_t>& history, 1083 std::tuple<float, float, float, float> GetResampleCoord(const std::vector<TouchEvent>& history, 1088 bool GetResampleTouchEvent(const std::vector<TouchEvent>& history, 1093 PointerEvent GetResamplePointerEvent(const std::vector<PointerEvent>& history, 1096 std::tuple<float, float, float, float> GetResamplePointerCoord(const std::vector<PointerEvent>& history, 1104 const std::vector<MouseEvent>& history, const std::vector<MouseEvent>& current, const uint64_t nanoTimeStamp); 1106 std::tuple<float, float, float, float> GetMouseResampleCoord(const std::vector<MouseEvent>& history,
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_camera_controller.h | 61 RENDER_NS::GpuImageDesc history; member 82 RENDER_NS::RenderHandleReference history[2u]; member
|
H A D | render_node_default_camera_controller.cpp | 359 GpuImageDesc desc = cameraResourceSetup.inputImageDescs.history; in CreateHistoryTargets() 365 createdTargets.history[0u] = gpuResourceMgr.Create( in CreateHistoryTargets() 367 createdTargets.history[1u] = gpuResourceMgr.Create( in CreateHistoryTargets() 370 createdTargets.history[0u] = gpuResourceMgr.Create(createdTargets.history[0u], desc); in CreateHistoryTargets() 371 createdTargets.history[1u] = gpuResourceMgr.Create(createdTargets.history[1u], desc); in CreateHistoryTargets() 375 createdTargets.imageDescs.history = desc; in CreateHistoryTargets() 656 // output history in RegisterOutputs() 661 DefaultMaterialRenderNodeConstants::CORE_DM_CAMERA_HISTORY, createdTargets_.history[currInde in RegisterOutputs() [all...] |
H A D | render_node_default_camera_post_process_controller.cpp | 57 // NOTE: history not currently supported for multi-view only camera in FillPostProcessImages() 79 info.imageData.history.handle = ref.handle; in FillPostProcessImages()
|
/foundation/arkui/ace_engine/test/unittest/core/pipeline/ |
H A D | pipeline_context_test_ng_new.cpp | 998 * @tc.desc: Test history and current. 1004 * @tc.steps1: history and current timestamps are equal to nanoTimeStamp in HWTEST_F() 1014 * @tc.steps2: history and current timestamps are equal to nanoTimeStamp in HWTEST_F() 1024 * @tc.steps3: history and current timestamps are equal to nanoTimeStamp in HWTEST_F() 1034 * @tc.steps4: nanoTimeStamp is less than history timestamp in HWTEST_F() 1066 * @tc.desc: Test history and current. 1098 * @tc.desc: Test history and current. 1107 std::vector<TouchEvent> history; in HWTEST_F() local 1108 history.push_back(TouchEvent {}.SetX(100.0f).SetY(200.0f).SetTime(timeStampAce)); in HWTEST_F() 1109 history in HWTEST_F() 1156 std::vector<TouchEvent> history; HWTEST_F() local 1857 std::vector<MouseEvent> history; HWTEST_F() local 1898 std::vector<PointerEvent> history; HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/nodecontext/ |
H A D | intf_render_node_post_process_util.h | 59 BindableImage history; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/ |
H A D | touch_event.cpp | 75 lastPoint = !point.history.empty() ? point.history.back() : point; in TriggerTouchCallBack() 85 for (const auto& item : point.history) { in TriggerTouchCallBack()
|
/foundation/multimodalinput/input/service/event_resample/include/ |
H A D | event_resample.h | 60 // Maximum history size to store samples 193 History history[HISTORY_SIZE_MAX]; member 211 history[historyCurrent].InitializeFrom(event); in AddHistory() 216 return &history[(historyCurrent + idx) & 1]; in GetHistory()
|
/foundation/resourceschedule/device_usage_statistics/test/unittest/ |
H A D | device_usage_statistics_mock_test.cpp | 356 std::shared_ptr<BundleActivePackageHistory> history = nullptr; in HWTEST_F() local 357 groupController->calculationTimeOut(history, g_largeNum); in HWTEST_F() 358 history = std::make_shared<BundleActivePackageHistory>(); in HWTEST_F() 359 groupController->calculationTimeOut(history, g_largeNum); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/core/event/ |
H A D | pointer_event.h | 79 std::vector<PointerEvent> history; member
|
H A D | touch_event.h | 87 std::vector<TouchEvent> history; member
|
H A D | mouse_event.h | 115 std::vector<MouseEvent> history; member
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/recognizers/ |
H A D | pan_recognizer.cpp | 164 if (touchEvent.history.empty()) { in UpdateTouchPointInVelocityTracker() 168 for (const auto& historyEvent: touchEvent.history) { in UpdateTouchPointInVelocityTracker() 650 if (!lastTouchEvent_.history.empty() && (gestureInfo_ && gestureInfo_->GetType() == GestureTypeName::BOXSELECT)) { in GetRawGlobalLocation() 651 auto lastPoint = lastTouchEvent_.history.back(); in GetRawGlobalLocation()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | render_node_post_process_util.cpp | 62 constexpr string_view INPUT_HISTORY = "history"; 230 "RENDER_VALIDATION: Default TAA post process needs output depth, velocity, and history."); in PreExecute() 658 binder.BindImage(++binding, images_.history.handle); in ExecuteTAA() 1076 images_.history.handle = inputResources_.customInputImages[jsonInputs_.historyIndex].handle; in UpdateImageData() 1086 images_.history = postProcessInfo_.imageData.history; in UpdateImageData() 1114 if (IsValidHandle(images_.history) && IsValidHandle(images_.historyNext)) { in UpdateImageData()
|
/foundation/distributeddatamgr/pasteboard/services/core/src/ |
H A D | pasteboard_service.cpp | 163 copyHistory = std::make_shared<Command>(std::vector<std::string>{ "--copy-history" }, in OnStart() 164 "Dump access history last ten times.", in OnStart() 1794 std::string history = std::move(info.time) + " " + std::move(info.bundleName) + " " + std::move(info.state) + " " + in SetPasteboardHistory() local 1801 dataHistory_.push_back(std::move(history)); in SetPasteboardHistory() 1849 result.append("Access history last ten times: ").append("\n"); in DumpHistory() 1854 result.append("Access history fail! dataHistory_ no data.").append("\n"); in DumpHistory()
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | event_manager.cpp | 626 if ((*iter).history.size() != 0) { in FlushTouchEventsEnd() 627 // for resample case, the history list must not be empty in FlushTouchEventsEnd()
|