Home
last modified time | relevance | path

Searched refs:box (Results 1 – 25 of 1506) sorted by relevance

12345678910>>...61

/third_party/grpc/test/core/avl/
Davl_test.cc30 static int* box(int x) { in box() function
40 return box(*static_cast<int*>(p)); in int_copy()
49 int* k = box(key); in check_get()
55 int* k = box(key); in check_negget()
61 int* k = box(key); in remove_int()
71 avl = grpc_avl_add(avl, box(1), box(11), nullptr); in test_get()
72 avl = grpc_avl_add(avl, box(2), box(22), nullptr); in test_get()
73 avl = grpc_avl_add(avl, box(3), box(33), nullptr); in test_get()
85 avl = grpc_avl_add(avl, box(5), box(1), nullptr); in test_ll()
86 avl = grpc_avl_add(avl, box(4), box(2), nullptr); in test_ll()
[all …]
/third_party/boost/libs/geometry/test/algorithms/disjoint/
Ddisjoint_point_box_geometry.cpp37 typedef bg::model::box<P> box; in test_all() typedef
43 test_disjoint<box, box>("bb1", "box(1 1, 2 2)", "box(3 1, 4 2)", true); in test_all()
44 test_disjoint<box, box>("bb2", "box(1 1, 2 2)", "box(2 1, 3 2)", false); in test_all()
45 test_disjoint<box, box>("bb3", "box(1 1, 2 2)", "box(2 2, 3 3)", false); in test_all()
46 test_disjoint<box, box>("bb4", "box(1 1, 2 2)", "box(2.001 2, 3 3)", true); in test_all()
49 test_disjoint<box, box>("bb5", "box(1 1, 2 2)", "box(1 3, 2 4)", true); in test_all()
50 test_disjoint<box, box>("bb6", "box(1 1, 2 2)", "box(1 2, 2 3)", false); in test_all()
52 test_disjoint<box, box>("bb7", "box(1 1, 2 2)", "box(0 1, 1 2)", false); in test_all()
53 test_disjoint<box, box>("bb8", "box(1 1, 2 2)", "box(0 1, 1 2)", false); in test_all()
56 test_disjoint<P, box>("pb1", "point(1 1)", "box(0 0, 2 2)", false); in test_all()
[all …]
Ddisjoint_seg_box.cpp39 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(4 4)", true); in disjoint_tests_1()
40 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(2 2)", false); in disjoint_tests_1()
41 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(3 3)", false); in disjoint_tests_1()
42 test_disjoint<bg::model::box<P>, P>("BOX(1 1,3 3)", "POINT(2 3)", false); in disjoint_tests_1()
44 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1()
47 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1()
50 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1()
53 test_disjoint<bg::model::box<P>, bg::model::box<P> >("BOX(1 1,3 3)", in disjoint_tests_1()
57 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1()
60 test_disjoint<bg::model::box<P>, bg::model::segment<P> >("BOX(1 1,3 3)", in disjoint_tests_1()
[all …]
/third_party/weston/clients/
Dscaler.c49 struct box { struct
67 set_my_viewport(struct box *box) in set_my_viewport() argument
73 if (box->mode == MODE_NO_VIEWPORT) in set_my_viewport()
88 switch (box->mode){ in set_my_viewport()
100 wp_viewport_set_source(box->viewport, src_x, src_y, in set_my_viewport()
104 wp_viewport_set_destination(box->viewport, in set_my_viewport()
108 wp_viewport_set_source(box->viewport, src_x, src_y, in set_my_viewport()
110 wp_viewport_set_destination(box->viewport, in set_my_viewport()
122 struct box *box = data; in resize_handler() local
125 widget_set_size(box->widget, box->width, box->height); in resize_handler()
[all …]
/third_party/flutter/flutter/packages/flutter/test/widgets/
Danimated_positioned_test.dart26 RenderBox box;
44 box = key.currentContext.findRenderObject();
45 …expect(box.localToGlobal(box.size.center(Offset.zero)), equals(const Offset(50.0 + 70.0 / 2.0, 30.…
49 box = key.currentContext.findRenderObject();
50 …expect(box.localToGlobal(box.size.center(Offset.zero)), equals(const Offset(50.0 + 70.0 / 2.0, 30.…
71 box = key.currentContext.findRenderObject();
72 expect(box.localToGlobal(box.size.center(Offset.zero)), equals(first));
76 box = key.currentContext.findRenderObject();
77 expect(box.localToGlobal(box.size.center(Offset.zero)), equals(Offset.lerp(first, last, 0.5)));
81 box = key.currentContext.findRenderObject();
[all …]
/third_party/flutter/flutter/packages/flutter/test/rendering/
Dproxy_getters_and_setters_test.dart11 …final RenderConstrainedBox box = RenderConstrainedBox(additionalConstraints: const BoxConstraints.…
12 expect(box.additionalConstraints, const BoxConstraints(minHeight: 10.0, maxHeight: 10.0));
13 box.additionalConstraints = const BoxConstraints.tightFor(width: 10.0);
14 expect(box.additionalConstraints, const BoxConstraints(minWidth: 10.0, maxWidth: 10.0));
18 final RenderLimitedBox box = RenderLimitedBox();
19 expect(box.maxWidth, double.infinity);
20 expect(box.maxHeight, double.infinity);
21 box.maxWidth = 0.0;
22 box.maxHeight = 1.0;
23 expect(box.maxHeight, 1.0);
[all …]
Daspect_ratio_test.dart12 final RenderAspectRatio box = RenderAspectRatio(aspectRatio: 2.0);
14 expect(box.getMinIntrinsicWidth(200.0), 400.0);
15 expect(box.getMinIntrinsicWidth(400.0), 800.0);
17 expect(box.getMaxIntrinsicWidth(200.0), 400.0);
18 expect(box.getMaxIntrinsicWidth(400.0), 800.0);
20 expect(box.getMinIntrinsicHeight(200.0), 100.0);
21 expect(box.getMinIntrinsicHeight(400.0), 200.0);
23 expect(box.getMaxIntrinsicHeight(200.0), 100.0);
24 expect(box.getMaxIntrinsicHeight(400.0), 200.0);
26 expect(box.getMinIntrinsicWidth(double.infinity), 0.0);
[all …]
Dsemantics_and_children_test.dart22 final RenderOpacity box = RenderOpacity(
28 expect(countSemanticsChildren(box), 1);
29 box.opacity = 0.5;
30 expect(countSemanticsChildren(box), 1);
31 box.opacity = 0.25;
32 expect(countSemanticsChildren(box), 1);
33 box.opacity = 0.125;
34 expect(countSemanticsChildren(box), 1);
35 box.opacity = 0.0;
36 expect(countSemanticsChildren(box), 0);
[all …]
Dintrinsic_width_test.dart291 final RenderBox box = RenderPadding(
296 expect(box.getMinIntrinsicWidth(0.0), 50.0);
297 expect(box.getMaxIntrinsicWidth(0.0), 50.0);
298 expect(box.getMinIntrinsicHeight(0.0), 50.0);
299 expect(box.getMaxIntrinsicHeight(0.0), 50.0);
301 expect(box.getMinIntrinsicWidth(10.0), 50.0);
302 expect(box.getMaxIntrinsicWidth(10.0), 50.0);
303 expect(box.getMinIntrinsicHeight(10.0), 50.0);
304 expect(box.getMaxIntrinsicHeight(10.0), 50.0);
306 expect(box.getMinIntrinsicWidth(80.0), 50.0);
[all …]
/third_party/boost/libs/geometry/test/algorithms/touches/
Dtouches_box.cpp19 typedef bg::model::box<P> box; in test_all() typedef
21 … test_touches<box, box>("POLYGON((0 0,0 5,5 5,5 0,0 0))", "POLYGON((5 1,5 2,6 2,6 1,5 1))", true); in test_all()
22 … test_touches<box, box>("POLYGON((0 0,0 5,5 5,5 0,0 0))", "POLYGON((4 1,4 2,5 2,5 1,4 1))", false); in test_all()
23 … test_touches<box, box>("POLYGON((0 0,0 5,5 5,5 0,0 0))", "POLYGON((4 1,4 2,6 2,6 1,4 1))", false); in test_all()
26 … test_touches<box, box>("POLYGON((0 0,0 5,5 5,5 0,0 0))", "POLYGON((5 5,5 5,5 5,5 5,5 5))", true); in test_all()
28 … test_touches<box, box>("POLYGON((5 5,5 5,5 5,5 5,5 5))", "POLYGON((5 5,5 5,5 5,5 5,5 5))", true); in test_all()
34 typedef bg::model::box<P> box; in test_box_3d() typedef
36 check_touches<box, box>(box(P(0,0,0),P(5,5,5)), box(P(5,1,2),P(6,6,6)), in test_box_3d()
40 check_touches<box, box>(box(P(0,0,0),P(5,5,5)), box(P(5,5,5),P(6,6,6)), in test_box_3d()
/third_party/mesa3d/src/gallium/auxiliary/util/
Du_box.h8 u_box_1d(unsigned x, unsigned w, struct pipe_box *box) in u_box_1d() argument
10 box->x = x; in u_box_1d()
11 box->y = 0; in u_box_1d()
12 box->z = 0; in u_box_1d()
13 box->width = w; in u_box_1d()
14 box->height = 1; in u_box_1d()
15 box->depth = 1; in u_box_1d()
19 u_box_2d(unsigned x,unsigned y, unsigned w, unsigned h, struct pipe_box *box) in u_box_2d() argument
21 box->x = x; in u_box_2d()
22 box->y = y; in u_box_2d()
[all …]
Du_transfer_helper.c163 const struct pipe_box *box, in transfer_map_msaa() argument
175 ptrans->box = *box; in transfer_map_msaa()
180 .width0 = box->width, in transfer_map_msaa()
181 .height0 = box->height, in transfer_map_msaa()
198 blit.src.box = *box; in transfer_map_msaa()
202 blit.dst.box.width = box->width; in transfer_map_msaa()
203 blit.dst.box.height = box->height; in transfer_map_msaa()
204 blit.dst.box.depth = 1; in transfer_map_msaa()
212 struct pipe_box map_box = *box; in transfer_map_msaa()
232 const struct pipe_box *box, in u_transfer_helper_transfer_map() argument
[all …]
/third_party/mesa3d/src/gallium/drivers/etnaviv/
Detnaviv_transfer.c52 etna_compute_offset(enum pipe_format format, const struct pipe_box *box, in etna_compute_offset() argument
55 return box->z * layer_stride + in etna_compute_offset()
56 box->y / util_format_get_blockheight(format) * stride + in etna_compute_offset()
57 box->x / util_format_get_blockwidth(format) * in etna_compute_offset()
78 ptrans->box.width, ptrans->box.height, in etna_patch_data()
131 etna_copy_resource_box(pctx, ptrans->resource, trans->rsc, ptrans->level, &ptrans->box); in etna_transfer_unmap()
137 for (unsigned z = 0; z < ptrans->box.depth; z++) { in etna_transfer_unmap()
139 trans->mapped + (ptrans->box.z + z) * res_level->layer_stride, in etna_transfer_unmap()
141 ptrans->box.x, ptrans->box.y, in etna_transfer_unmap()
142 res_level->stride, ptrans->box.width, ptrans->box.height, in etna_transfer_unmap()
[all …]
/third_party/mesa3d/src/gallium/drivers/iris/
Diris_clear.c70 const struct pipe_box *box, in can_fast_clear_color() argument
84 if (box->x > 0 || box->y > 0 || in can_fast_clear_color()
85 box->width < minify(p_res->width0, level) || in can_fast_clear_color()
86 box->height < minify(p_res->height0, level)) { in can_fast_clear_color()
214 const struct pipe_box *box, in fast_clear_color() argument
234 layer >= box->z && in fast_clear_color()
235 layer < box->z + box->depth) { in fast_clear_color()
288 iris_resource_get_aux_state(res, level, box->z); in fast_clear_color()
289 if (!color_changed && box->depth == 1 && aux_state == ISL_AUX_STATE_CLEAR) in fast_clear_color()
325 level, box->z, box->depth, in fast_clear_color()
[all …]
/third_party/boost/libs/geometry/index/test/algorithms/
Dsegment_intersection.cpp17 void test_segment_intersection(Box const& box, Point const& p0, Point const& p1, in test_segment_intersection() argument
22 bool value = bgi::detail::segment_intersection(box, p0, p1, rel_dist); in test_segment_intersection()
33 Box box; in test_geometry() local
34 bg::read_wkt(wkt_g, box); in test_geometry()
38 test_segment_intersection(box, p0, p1, expected_result, expected_rel_dist); in test_geometry()
50 bg::model::box<int_point_type> int_box; in test_large_integers()
51 bg::model::box<double_point_type> double_box; in test_large_integers()
84 …test_geometry<bg::model::box<P2ic>, P2ic>("POLYGON((0 1,2 4))", "POINT(0 0)", "POINT(2 5)", true, … in test_main()
85 …test_geometry<bg::model::box<P2fc>, P2fc>("POLYGON((0 1,2 4))", "POINT(0 0)", "POINT(2 5)", true, … in test_main()
86 …test_geometry<bg::model::box<P2dc>, P2dc>("POLYGON((0 1,2 4))", "POINT(0 0)", "POINT(2 5)", true, … in test_main()
[all …]
/third_party/mesa3d/src/gallium/drivers/crocus/
Dcrocus_clear.c68 const struct pipe_box *box, in can_fast_clear_color() argument
83 if (box->x > 0 || box->y > 0 || in can_fast_clear_color()
84 box->width < minify(p_res->width0, level) || in can_fast_clear_color()
85 box->height < minify(p_res->height0, level)) { in can_fast_clear_color()
201 const struct pipe_box *box, in fast_clear_color() argument
225 layer >= box->z && in fast_clear_color()
226 layer < box->z + box->depth) { in fast_clear_color()
271 crocus_resource_get_aux_state(res, level, box->z); in fast_clear_color()
272 if (!color_changed && box->depth == 1 && aux_state == ISL_AUX_STATE_CLEAR) in fast_clear_color()
311 level, box->z, box->depth, in fast_clear_color()
[all …]
/third_party/pixman/test/
Dregion-contains-test.c28 print_box (pixman_box32_t *box) in print_box() argument
30 printf (" %d %d %d %d\n", box->x1, box->y1, box->x2, box->y2); in print_box()
96 crc32_box32 (uint32_t crc32, pixman_box32_t *box) in crc32_box32() argument
98 crc32 = compute_crc32_u32 (crc32, box->x1); in crc32_box32()
99 crc32 = compute_crc32_u32 (crc32, box->y1); in crc32_box32()
100 crc32 = compute_crc32_u32 (crc32, box->x2); in crc32_box32()
101 crc32 = compute_crc32_u32 (crc32, box->y2); in crc32_box32()
109 pixman_box32_t box; in test_region_contains_rectangle() local
118 box.x1 = random_coord (&region, TRUE); in test_region_contains_rectangle()
119 box.x2 = box.x1 + prng_rand (); in test_region_contains_rectangle()
[all …]
/third_party/boost/libs/geometry/test/algorithms/intersects/
Dintersects_box_geometry.cpp31 test_geometry<P1, bg::model::box<P2> >("POINT(1 1)", "BOX(0 0,2 2)", true); in test_all()
33 test_geometry<polygon, bg::model::box<P2> >( in test_all()
37 test_geometry<ring, bg::model::box<P2> >( in test_all()
41 test_geometry<polygon, bg::model::box<P2> >( in test_all()
45 test_geometry<P1, bg::model::box<P2> >( in test_all()
61 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional()
65 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional()
69 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional()
73 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional()
77 test_geometry<bg::model::segment<P>, bg::model::box<P> >( in test_additional()
[all …]
/third_party/mesa3d/src/gallium/drivers/vc4/
Dvc4_tiling_lt.c138 int cpp, const struct pipe_box *box, bool to_cpu) in vc4_lt_image_aligned() argument
143 uint32_t xstart = box->x; in vc4_lt_image_aligned()
144 uint32_t ystart = box->y; in vc4_lt_image_aligned()
146 for (uint32_t y = 0; y < box->height; y += utile_h) { in vc4_lt_image_aligned()
147 for (uint32_t x = 0; x < box->width; x += utile_w) { in vc4_lt_image_aligned()
178 int cpp, const struct pipe_box *box, bool to_cpu) in vc4_lt_image_unaligned() argument
184 uint32_t offs_x0 = swizzle_lt_x(box->x, cpp); in vc4_lt_image_unaligned()
185 uint32_t offs_y = swizzle_lt_y(box->y, cpp); in vc4_lt_image_unaligned()
193 offs_x0 += incr_y * (box->y / vc4_utile_height(cpp)); in vc4_lt_image_unaligned()
195 for (uint32_t y = 0; y < box->height; y++) { in vc4_lt_image_unaligned()
[all …]
/third_party/mesa3d/src/gallium/drivers/virgl/
Dvirgl_transfer_queue.c71 box_min_max(const struct pipe_box *box, int dim, int *min, int *max) in box_min_max() argument
75 if (box->width > 0) { in box_min_max()
76 *min = box->x; in box_min_max()
77 *max = box->x + box->width; in box_min_max()
79 *max = box->x; in box_min_max()
80 *min = box->x + box->width; in box_min_max()
84 if (box->height > 0) { in box_min_max()
85 *min = box->y; in box_min_max()
86 *max = box->y + box->height; in box_min_max()
88 *max = box->y; in box_min_max()
[all …]
/third_party/boost/boost/geometry/strategies/spherical/
Dexpand_point.hpp64 static inline void apply(Box& box, Point const& point) in apply()
84 if (is_inverse_spheroidal_coordinates(box)) in apply()
86 geometry::set_from_radian<min_corner, 0>(box, geometry::get_as_radian<0>(p_normalized)); in apply()
87 geometry::set_from_radian<min_corner, 1>(box, geometry::get_as_radian<1>(p_normalized)); in apply()
88 geometry::set_from_radian<max_corner, 0>(box, geometry::get_as_radian<0>(p_normalized)); in apply()
89 geometry::set_from_radian<max_corner, 1>(box, geometry::get_as_radian<1>(p_normalized)); in apply()
93 strategy::normalize::spherical_box::apply(box, box); in apply()
99 b_lon_min = geometry::get<min_corner, 0>(box), in apply()
100 b_lat_min = geometry::get<min_corner, 1>(box), in apply()
101 b_lon_max = geometry::get<max_corner, 0>(box), in apply()
[all …]
/third_party/boost/libs/geometry/test/algorithms/overlaps/
Doverlaps_box.cpp23 test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1, 3 3)", "BOX(0 0,2 2)", true); in test_box_box_2d()
26 test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1, 3 3)", "BOX(3 3,5 5)", false); in test_box_box_2d()
29 test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1, 3 3)", "BOX(4 4,6 6)", false); in test_box_box_2d()
32 test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1, 5 5)", "BOX(2 2,3 3)", false); in test_box_box_2d()
35 test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1, 5 5)", "BOX(2 2,5 5)", false); in test_box_box_2d()
41 …test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1 1, 3 3 3)", "BOX(0 0 0,2 2 2)", true… in test_3d()
42 …test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1 1, 3 3 3)", "BOX(3 3 3,5 5 5)", fals… in test_3d()
43 …test_geometry<bg::model::box<P>, bg::model::box<P> >("BOX(1 1 1, 3 3 3)", "BOX(4 4 4,6 6 6)", fals… in test_3d()
/third_party/mesa3d/src/gallium/drivers/d3d12/
Dd3d12_resource.cpp388 buf_loc.PlacedFootprint.Footprint.Width = ALIGN(trans->base.box.width, in fill_buffer_location()
390 buf_loc.PlacedFootprint.Footprint.Height = ALIGN(trans->base.box.height, in fill_buffer_location()
435 trans->base.box.x, trans->base.box.y, trans->base.box.z, in transfer_buf_to_image_part()
436 trans->base.box.width, trans->base.box.height, trans->base.box.depth, in transfer_buf_to_image_part()
448 copy_info.dst_x = trans->base.box.x; in transfer_buf_to_image_part()
449 copy_info.dst_y = trans->base.box.y; in transfer_buf_to_image_part()
465 0, trans->base.box.depth, 0, in transfer_buf_to_image()
466 trans->base.box.z, 0); in transfer_buf_to_image()
468 int num_layers = trans->base.box.depth; in transfer_buf_to_image()
469 int start_z = trans->base.box.z; in transfer_buf_to_image()
[all …]
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_blit.c20 …zink_fb_clears_apply_or_discard(ctx, info->dst.resource, zink_rect_from_box(&info->dst.box), disca… in apply_dst_clears()
33 if (info->src.box.width != info->dst.box.width || in blit_resolve()
34 info->src.box.height != info->dst.box.height || in blit_resolve()
35 info->src.box.depth != info->dst.box.depth) in blit_resolve()
51 info->dst.box.x, info->dst.box.x + info->dst.box.width); in blit_resolve()
54 zink_fb_clears_apply_region(ctx, info->src.resource, zink_rect_from_box(&info->src.box)); in blit_resolve()
67 region.srcOffset.x = info->src.box.x; in blit_resolve()
68 region.srcOffset.y = info->src.box.y; in blit_resolve()
72 region.srcSubresource.baseArrayLayer = info->src.box.z; in blit_resolve()
73 region.srcSubresource.layerCount = info->src.box.depth; in blit_resolve()
[all …]
/third_party/typescript/tests/baselines/reference/
DgenericFunctionInference1.js7 declare function box<V>(x: V): { value: V };
11 const f01 = pipe(list, box);
12 const f02 = pipe(box, list);
13 const f03 = pipe(x => list(x), box);
14 const f04 = pipe(list, x => box(x));
15 const f05 = pipe(x => list(x), x => box(x))
16 const f06 = pipe(list, pipe(box));
17 const f07 = pipe(x => list(x), pipe(box));
18 const f08 = pipe(x => list(x), pipe(x => box(x)));
24 const g01: <T>(x: T) => { value: T[] } = pipe(list, box);
[all …]

12345678910>>...61