Searched refs:touchState (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/multimodalinput/input/service/event_resample/src/ |
H A D | event_resample.cpp | 314 TouchState& touchState = touchStates_.at(idx); in UpdateTouchState() local 315 touchState.Initialize(deviceId, source); in UpdateTouchState() 316 touchState.AddHistory(event); in UpdateTouchState() 323 touchState.AddHistory(event); in UpdateTouchState() 324 RewriteMessage(touchState, event); in UpdateTouchState() 333 RewriteMessage(touchState, event); in UpdateTouchState() 358 TouchState &touchState = touchStates_.at(idx); in ResampleTouchState() local 359 if (touchState.historySize < 1) { in ResampleTouchState() 364 const History* current = touchState.GetHistory(0); in ResampleTouchState() 388 other = touchState.GetHistory(1); in ResampleTouchState() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/hyper_graphic_manager/unittest/ |
H A D | hgm_multi_app_strategy_test.cpp | 148 .touchState = TouchState::DOWN_STATE, 158 .touchState = TouchState::UP_STATE, 167 .touchState = TouchState::IDLE_STATE, 205 .touchState = TouchState::DOWN_STATE, 214 .touchState = TouchState::UP_STATE, 218 .touchState = TouchState::IDLE_STATE, 259 .touchState = TouchState::DOWN_STATE, 269 .touchState = TouchState::UP_STATE, 313 .touchState = TouchState::UP_STATE, 354 .touchState = TouchState::UP_STATE, [all …]
|
/ohos5.0/foundation/multimodalinput/input/service/event_resample/test/ |
H A D | event_resample_test.cpp | 137 touchState.clear(); in UpdateTouchState() 141 touchState.insert(touchState.begin(), std::move(evt)); in UpdateTouchState() 148 touchState.clear(); in UpdateTouchState() 156 while (touchState.size() > 1) { in UpdateTouchState() 157 touchState.pop_back(); in UpdateTouchState() 161 touchState.insert(touchState.begin(), std::move(evt)); in UpdateTouchState() 221 current.InitializeFrom(touchState[0]); in CalculateExpected() 238 int64_t delta = touchState[0].actionTime - touchState[1].actionTime; in ResampleCoord() 272 std::vector<InputEvt> touchState; member 844 EventResample::TouchState touchState; variable [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/frame_rate_manager/ |
H A D | hgm_multi_app_strategy.cpp | 78 touchInfo.pkgName.c_str(), touchInfo.touchState); in HandleTouchInfo() 80 touchInfo.pkgName.c_str(), touchInfo.touchState); in HandleTouchInfo() 83 touchInfo_ = { touchInfo.pkgName, touchInfo.touchState, touchInfo.upExpectFps }; in HandleTouchInfo() 430 if (touchInfo->touchState == TouchState::DOWN_STATE) { in UpdateStrategyByTouch() 432 touchInfo->touchState, strategy.down); in UpdateStrategyByTouch() 435 } else if (touchInfo->touchState == TouchState::UP_STATE && touchInfo->upExpectFps > 0) { in UpdateStrategyByTouch() 437 touchInfo->touchState, touchInfo->upExpectFps); in UpdateStrategyByTouch() 446 if (touchInfo->touchState == TouchState::DOWN_STATE) { in UpdateStrategyByTouch() 448 pkgName.c_str(), touchInfo->touchState, strategy.down); in UpdateStrategyByTouch() 452 } else if (touchInfo->touchState == TouchState::UP_STATE && touchInfo->upExpectFps > 0) { in UpdateStrategyByTouch() [all …]
|
H A D | hgm_multi_app_strategy.h | 45 TouchState touchState; member
|
H A D | hgm_frame_rate_manager.cpp | 165 .touchState = newState, in InitTouchManager() 177 .touchState = newState, in InitTouchManager() 291 .touchState = TouchState::UP_STATE, in UpdateGuaranteedPlanVote()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_scroll.cpp | 210 int32_t touchState = SCROLL_NONE; in UpdateOffset() local 212 touchState = SCROLL_TOUCH_DOWN; in UpdateOffset() 214 touchState = SCROLL_TOUCH_UP; in UpdateOffset() 216 HandleScrollPosition(correctedDelta.GetX(), correctedDelta.GetY(), touchState); in UpdateOffset()
|
/ohos5.0/foundation/multimodalinput/input/service/event_resample/include/ |
H A D | event_resample.h | 255 void ResampleCoordinates(int64_t sampleTime, MotionEvent* event, TouchState &touchState,
|