Home
last modified time | relevance | path

Searched refs:axes (Results 1 – 25 of 172) sorted by relevance

1234567

/third_party/libinput/test/
Dtest-tablet.c57 struct axis_replacement axes[] = { in START_TEST() local
64 litest_tablet_proximity_in(dev, 10, 10, axes); in START_TEST()
100 struct axis_replacement axes[] = { in START_TEST() local
118 litest_tablet_proximity_in(dev, 10, 10, axes); in START_TEST()
119 litest_tablet_proximity_in(dev2, 10, 10, axes); in START_TEST()
215 struct axis_replacement axes[] = { in START_TEST() local
221 litest_tablet_proximity_in(dev, 10, 10, axes); in START_TEST()
224 litest_axis_set_value(axes, ABS_DISTANCE, 0); in START_TEST()
225 litest_axis_set_value(axes, ABS_PRESSURE, 30); in START_TEST()
227 litest_tablet_motion(dev, 10, 10, axes); in START_TEST()
[all …]
Dtest-touch.c1136 struct axis_replacement axes[] = { in START_TEST() local
1148 litest_touch_move_to_extended(dev, 0, 50, 50, 70, 70, axes, 10); in START_TEST()
1163 struct axis_replacement axes[] = { in START_TEST() local
1175 litest_touch_move_to_extended(dev, 0, 50, 50, 70, 70, axes, 10); in START_TEST()
1182 litest_axis_set_value(axes, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER); in START_TEST()
1183 litest_touch_move_to_extended(dev, 0, 50, 40, 70, 70, axes, 10); in START_TEST()
1194 struct axis_replacement axes[] = { in START_TEST() local
1204 litest_touch_move_to_extended(dev, 0, 50, 50, 70, 70, axes, 10); in START_TEST()
1210 litest_touch_down_extended(dev, 0, 50, 50, axes); in START_TEST()
1213 litest_axis_set_value(axes, ABS_MT_TOOL_TYPE, MT_TOOL_FINGER); in START_TEST()
[all …]
Dtest-touchpad.c1808 struct axis_replacement axes[] = { in START_TEST() local
1819 litest_touch_down_extended(dev, 0, 50, 99, axes); in START_TEST()
1831 struct axis_replacement axes[] = { in START_TEST() local
1845 litest_touch_move_extended(dev, 0, 51, 99, axes); in START_TEST()
1864 struct axis_replacement axes[] = { in START_TEST() local
1881 litest_touch_move_extended(dev, 0, 51, 99, axes); in START_TEST()
1898 struct axis_replacement axes[] = { in START_TEST() local
1915 litest_touch_move_extended(dev, 0, 51, 99, axes); in START_TEST()
1946 struct axis_replacement axes[] = { in START_TEST() local
1960 litest_touch_move_extended(dev, 0, 55, 99, axes); in START_TEST()
[all …]
/third_party/boost/boost/histogram/detail/
Daxes.hpp94 auto make_empty_dynamic_axes(const T& axes) { in make_empty_dynamic_axes() argument
95 return make_default(axes); in make_empty_dynamic_axes()
121 T axes = make_default(old_axes); in axes_transform() local
122 axes.reserve(old_axes.size()); in axes_transform()
123 for_each_axis(old_axes, [&](const auto& a) { axes.emplace_back(f(axes.size(), a)); }); in axes_transform()
124 return axes; in axes_transform()
158 unsigned axes_rank(const T& axes) { in axes_rank() argument
161 return static_cast<unsigned>(std::distance(begin(axes), end(axes))); in axes_rank()
170 void throw_if_axes_is_too_large(const T& axes) { in throw_if_axes_is_too_large() argument
171 if (axes_rank(axes) > BOOST_HISTOGRAM_DETAIL_AXES_LIMIT) in throw_if_axes_is_too_large()
[all …]
Dfill_n.hpp124 const std::size_t offset, S& storage, Axes& axes, const T* viter) { in fill_n_indices() argument
127 for_each_axis(axes, [eit = extents, sit = shifts](const auto& a) mutable { in fill_n_indices()
135 for_each_axis(axes, [&, stride = static_cast<std::size_t>(1), in fill_n_indices()
146 for_each_axis(axes, [&update_needed, eit = extents](const auto& a) mutable { in fill_n_indices()
150 storage_grower<Axes> g(axes); in fill_n_indices()
179 void fill_n_nd(const std::size_t offset, S& storage, A& axes, const std::size_t vsize, in fill_n_nd() argument
215 fill_n_indices(indices, start, n, offset, storage, axes, values); in fill_n_nd()
223 void fill_n_1(const std::size_t offset, S& storage, std::tuple<As...>& axes, in fill_n_1() argument
227 fill_n_nd<index_type>(offset, storage, axes, vsize, values, std::forward<Us>(us)...); in fill_n_1()
231 void fill_n_1(const std::size_t offset, S& storage, A& axes, const std::size_t vsize, in fill_n_1() argument
[all …]
Dat.hpp23 optional_index at(const A& axes, const std::tuple<Us...>& args) noexcept { in at() argument
27 stride *= linearize_index(idx, stride, axis_get<i>(axes), in at()
34 optional_index at(const A& axes, const U& args) noexcept { in at() argument
37 for_each_axis(axes, [&, it = begin(args), in at()
Dfill.hpp61 storage_grower(const A& axes) noexcept : axes_(axes) {} in storage_grower()
240 const Axes& axes, const Args& args) { in fill_2() argument
243 idx, axes, args); in fill_2()
250 auto fill_2(ArgTraits, mp11::mp_true, const std::size_t, Storage& st, Axes& axes, in fill_2() argument
258 auto& ax = axis_get<i>(axes); in fill_2()
265 storage_grower<Axes> g(axes); in fill_2()
300 auto fill(std::true_type, ArgTraits, const std::size_t offset, S& storage, A& axes, in fill() argument
316 if (axes_rank(axes) == ArgTraits::nargs::value) in fill()
317 return fill_2(ArgTraits{}, growing{}, offset, storage, axes, args); in fill()
318 else if (axes_rank(axes) == 1 && in fill()
[all …]
/third_party/libinput/src/
Devdev-totem.c39 struct tablet_axes axes; member
133 mm = evdev_device_units_to_mm(totem->device, &slot->axes.point); in totem_set_touch_device_enabled()
269 struct tablet_axes axes = {0}; in totem_slot_fetch_axes() local
274 axes = slot->axes; in totem_slot_fetch_axes()
280 slot->axes.point.x = libevdev_get_slot_value(device->evdev, in totem_slot_fetch_axes()
283 slot->axes.point.y = libevdev_get_slot_value(device->evdev, in totem_slot_fetch_axes()
294 slot->axes.rotation = (360 - angle) % 360; in totem_slot_fetch_axes()
312 slot->axes.size.major = (double)major/rmajor; in totem_slot_fetch_axes()
313 slot->axes.size.minor = (double)minor/rminor; in totem_slot_fetch_axes()
316 axes.point = slot->axes.point; in totem_slot_fetch_axes()
[all …]
Devdev-tablet.c103 const struct tablet_axes *axes) in tablet_history_push() argument
108 tablet->history.samples[index] = *axes; in tablet_history_push()
114 tablet_history_push(tablet, axes); in tablet_history_push()
429 x = tablet->axes.tilt.x; in convert_tilt_to_rotation()
430 y = tablet->axes.tilt.y; in convert_tilt_to_rotation()
438 tablet->axes.rotation = angle; in convert_tilt_to_rotation()
477 tablet->axes.point.x = value; in tablet_update_xy()
486 tablet->axes.point.y = value; in tablet_update_xy()
488 evdev_transform_absolute(device, &tablet->axes.point); in tablet_update_xy()
496 struct tablet_axes *axes, in tablet_tool_process_delta() argument
[all …]
/third_party/boost/boost/histogram/algorithm/
Dproject.hpp42 const auto& old_axes = unsafe_access::axes(h); in project()
43 auto axes = detail::static_if<detail::is_tuple<A>>( in project() local
53 using A2 = decltype(axes); in project()
54 auto result = histogram<A2, S>(std::move(axes), detail::make_default(old_storage)); in project()
55 auto idx = detail::make_stack_buffer<int>(unsafe_access::axes(result)); in project()
73 const auto& old_axes = unsafe_access::axes(h); in project()
76 auto axes = detail::make_empty_dynamic_axes(old_axes); in project() local
77 axes.reserve(c.size()); in project()
84 axes.emplace_back(detail::axis_get(old_axes, d)); in project()
89 histogram<decltype(axes), S>(std::move(axes), detail::make_default(old_storage)); in project()
[all …]
/third_party/boost/libs/histogram/test/
Dutility_histogram.hpp38 auto make(static_tag, const Axes&... axes) { in make() argument
39 return make_histogram(axes...); in make()
43 auto make_s(static_tag, S&& s, const Axes&... axes) { in make_s() argument
44 return make_histogram_with(s, axes...); in make_s()
48 auto make(dynamic_tag, const Axes&... axes) { in make() argument
49 return make_histogram(make_axis_vector(axes...)); in make()
53 auto make_s(dynamic_tag, S&& s, const Axes&... axes) { in make_s() argument
54 return make_histogram_with(s, make_axis_vector(axes...)); in make_s()
Daxis_variant_test.cpp158 std::vector<variant> axes; in main() local
159 axes.push_back(axis::regular<>{2, -1, 1}); in main()
160 axes.push_back(axis::regular<double, tr::pow>{tr::pow{0.5}, 2, 1, 4}); in main()
161 axes.push_back(axis::category<>{A, B, C}); in main()
162 axes.push_back(axis::integer<>{-1, 1}); in main()
163 axes.push_back(axis::boolean<>{}); in main()
164 for (const auto& a : axes) { in main()
168 BOOST_TEST_NE(axes, std::vector<variant>{}); in main()
169 BOOST_TEST(axes == std::vector<variant>(axes)); in main()
216 axes_type axes(a); in main() local
[all …]
Ddeduction_guides_test.cpp116 auto axes = {a0, a1}; in main() local
117 auto h = histogram(axes); in main()
128 auto axes = {a0, a1}; in main() local
129 auto h = histogram(axes, weight_storage()); in main()
141 auto axes = std::vector<decltype(a0)>{{a0, a1}}; in main()
142 auto h = histogram(axes); in main()
/third_party/libinput/tools/
Dlibinput-measure-fuzz.py108 axes = {
115 if axes[0x35] is not None:
116 if axes[0x35] != axes[0x00]:
117 …rint_bold('WARNING: fuzz mismatch ABS_X: {}, ABS_MT_POSITION_X: {}'.format(axes[0x00], axes[0x35]))
119 if axes[0x36] is not None:
120 if axes[0x36] != axes[0x01]:
121 …rint_bold('WARNING: fuzz mismatch ABS_Y: {}, ABS_MT_POSITION_Y: {}'.format(axes[0x01], axes[0x36]))
123 xfuzz = axes[0x35] or axes[0x00]
124 yfuzz = axes[0x36] or axes[0x01]
/third_party/boost/libs/histogram/examples/
Dgetting_started_listing_02.cpp30 std::vector<variant> axes; in main() local
31 axes.emplace_back(cat({"red", "blue"})); in main()
32 axes.emplace_back(reg(3, 0.0, 1.0, "x")); in main()
33 axes.emplace_back(reg(3, 0.0, 1.0, "y")); in main()
35 auto h = make_histogram(std::move(axes)); in main()
Dguide_histogram_in_api.cpp42 std::vector<axis_variant> axes; in main() local
43 axes.emplace_back(axis::regular<>(5, 0, 1)); in main()
44 axes.emplace_back(axis::integer<>(0, 1)); in main()
45 auto histogram_with_dynamic_axes = make_histogram(axes); in main()
/third_party/boost/boost/histogram/
Dmake_histogram.hpp36 auto make_histogram_with(Storage&& storage, Axis&& axis, Axes&&... axes) { in make_histogram_with() argument
37 auto a = std::make_tuple(std::forward<Axis>(axis), std::forward<Axes>(axes)...); in make_histogram_with()
49 auto make_histogram(Axis&& axis, Axes&&... axes) { in make_histogram() argument
51 std::forward<Axes>(axes)...); in make_histogram()
60 auto make_weighted_histogram(Axis&& axis, Axes&&... axes) { in make_weighted_histogram() argument
62 std::forward<Axes>(axes)...); in make_weighted_histogram()
Dmake_profile.hpp32 auto make_profile(Axis&& axis, Axes&&... axes) { in make_profile() argument
34 std::forward<Axes>(axes)...); in make_profile()
43 auto make_weighted_profile(Axis&& axis, Axes&&... axes) { in make_weighted_profile() argument
45 std::forward<Axes>(axes)...); in make_weighted_profile()
Dhistogram.hpp85 detail::axes_assign(axes_, std::move(unsafe_access::axes(rhs))); in histogram()
92 detail::axes_assign(axes_, unsafe_access::axes(rhs)); in histogram()
98 detail::axes_assign(axes_, std::move(unsafe_access::axes(rhs))); in operator =()
107 detail::axes_assign(axes_, unsafe_access::axes(rhs)); in operator =()
123 explicit histogram(Axes axes) : histogram(axes, storage_type()) {} in histogram() argument
419 detail::axes_equal(axes_, unsafe_access::axes(rhs)) && in operator ==()
447 if (!detail::axes_equal(axes_, unsafe_access::axes(rhs))) in operator +=()
464 const auto& raxes = unsafe_access::axes(rhs); in operator +=()
465 if (detail::axes_equal(axes_, unsafe_access::axes(rhs))) { in operator +=()
476 const auto& axes = unsafe_access::axes(h); in operator +=() local
[all …]
/third_party/libinput/udev/
Dlibinput-fuzz-extract.c50 unsigned int axes[] = {ABS_X, in handle_absfuzz() local
70 ARRAY_FOR_EACH(axes, code) { in handle_absfuzz()
92 unsigned int axes[] = {ABS_X, in handle_evdev_abs() local
97 ARRAY_FOR_EACH(axes, code) { in handle_evdev_abs()
/third_party/flutter/glfw/src/
Dwin32_joystick.c250 free(js->axes); in closeJoystick()
433 js->axes = calloc(js->axisCount, sizeof(float)); in deviceCallback()
478 js->axes = calloc(js->axisCount, sizeof(float)); in openXinputDevice()
534 js->axes[ai++] = (*((LONG*) data) + 0.5f) / 32767.5f; in pollJoystickState()
610 js->axes[0] = (xis.Gamepad.sThumbLX + 0.5f) / 32767.f; in pollJoystickState()
611 js->axes[1] = (xis.Gamepad.sThumbLY + 0.5f) / 32767.f; in pollJoystickState()
615 js->axes[0] = 0.f; in pollJoystickState()
616 js->axes[1] = 0.f; in pollJoystickState()
623 js->axes[2] = (xis.Gamepad.sThumbRX + 0.5f) / 32767.f; in pollJoystickState()
624 js->axes[3] = (xis.Gamepad.sThumbRY + 0.5f) / 32767.f; in pollJoystickState()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/
DSDL_haikujoystick.cc183 int16 *axes; in SDL_SYS_JoystickUpdate() local
189 axes = joystick->hwdata->new_axes; in SDL_SYS_JoystickUpdate()
194 stick->GetAxisValues(axes); in SDL_SYS_JoystickUpdate()
200 change = ((int32) axes[i] - joystick->axes[i]); in SDL_SYS_JoystickUpdate()
202 SDL_PrivateJoystickAxis(joystick, i, axes[i]); in SDL_SYS_JoystickUpdate()
/third_party/boost/libs/histogram/doc/
Dchangelog.qbk36 * Missing throw of std::invalid_argument when user passes too many axes to histogram
91 * All axes can be made optionally circular, except category axis
92 * All axes now support generic attached metadata
93 * All axes have now independently configurable underflow/overflow extra bins
96 * Support for axes that can grow in range
97 * Support for axes which accept multiple values (example: hexagonal binning)
121 * Support for axes with only overflow and no underflow bin
123 into the predefined categories, making it consistent with other axes
124 * NaN is now consistently put into overflow bin for all axes
137 * Iterators for histogram and axes for STL compatibility
[all …]
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-var-fvar-table.hh215 auto axes = get_axes (); in find_axis_deprecated() local
216 return axes.lfind (tag, axis_index) && (axes[*axis_index].get_axis_deprecated (info), true); in find_axis_deprecated()
223 auto axes = get_axes (); in find_axis_info() local
224 return axes.lfind (tag, &i) && (axes[i].get_axis_info (i, info), true); in find_axis_info()
/third_party/boost/libs/histogram/benchmark/
Dhistogram_iteration.cpp55 std::vector<axis::integer<>> axes; in make_histogram() local
56 for (unsigned d = 0; d < Dim; ++d) axes.emplace_back(axis::integer<>(0, n)); in make_histogram()
57 return make_histogram_with(std::vector<unsigned>(), std::move(axes)); in make_histogram()
62 std::vector<axis::variant<axis::integer<>>> axes; in make_histogram() local
63 for (unsigned d = 0; d < Dim; ++d) axes.emplace_back(axis::integer<>(0, n)); in make_histogram()
64 return make_histogram_with(std::vector<unsigned>(), std::move(axes)); in make_histogram()

1234567