Searched refs:gain (Results 1 - 4 of 4) sorted by relevance
/foundation/multimodalinput/input/service/rust/src/ |
H A D | lib.rs | 627 fn get_speed_gain_mouse(vin: f64, gain: *mut f64, speed: i32, device_type: i32) -> bool { in get_speed_gain_mouse() 651 *gain = (item.slopes[i] * vin + item.diff_nums[i]) / vin; in get_speed_gain_mouse() 652 debug!(LOG_LABEL, "slope is set to {}, gain is {}", @public(item.slopes[i]), @public(*gain)); in get_speed_gain_mouse() 656 *gain = (item.slopes[len - 1] * vin + item.diff_nums[len - 1]) / vin; in get_speed_gain_mouse() 657 debug!(LOG_LABEL, "slope is set to {}, gain is {}", @public(item.slopes[len - 1]), @public(*gain)); in get_speed_gain_mouse() 664 fn get_speed_gain_touchpad(vin: f64, gain: *mut f64, speed: i32, device_type: i32) -> bool { in get_speed_gain_touchpad() 688 *gain = (item.slopes[i] * vin + item.diff_nums[i]) / vin; in get_speed_gain_touchpad() 689 debug!(LOG_LABEL, "gain i in get_speed_gain_touchpad() 746 let mut gain = 0.0; global() variables 792 let mut gain = 0.0; global() variables 841 let mut gain = 0.0; global() variables [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable.cpp | 426 // Apply max fling velocity limit, it must be calculated after all fling velocity gain. in LayoutDirectionEst() 610 auto gain = 1.0; in GetGain() local 612 preGain_ = gain; in GetGain() 613 return gain; in GetGain() 617 preGain_ = gain; in GetGain() 618 return gain; in GetGain() 623 preGain_ = gain; in GetGain() 624 return gain; in GetGain() 627 gain = (LessNotEqual(cap, std::abs(delta) / screenHeight * (dragCount_ - 1))) in GetGain() 633 preGain_ = gain; in GetGain() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | scrollable.cpp | 735 auto gain = 1.0; in GetGain() local 737 return gain; in GetGain() 741 return gain; in GetGain() 746 return gain; in GetGain() 749 gain = (LessNotEqual(cap, std::abs(delta) / screenHeight * (dragCount_ - 1))) ? cap : in GetGain() 754 return gain; in GetGain() 757 gain = (LessNotEqual(cap, std::abs(delta) / screenHeight * (dragCount_ - 1))) ? cap : in GetGain() 760 return gain; in GetGain()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/ |
H A D | scrollable_cover_test_ng.cpp | 445 * @tc.expected: The result should be the expected gain value in HWTEST_F() 448 double gain = scrollable->GetGain(delta); in HWTEST_F() local 449 EXPECT_NEAR(gain, expect, 0.001); in HWTEST_F() 472 * @tc.expected: The result should be the expected gain value in HWTEST_F() 474 double gain = scrollable->GetGain(delta); in HWTEST_F() local 475 EXPECT_EQ(gain, 1.0); in HWTEST_F()
|
Completed in 7 milliseconds