Home
last modified time | relevance | path

Searched refs:rx (Results 1 – 25 of 161) sorted by relevance

1234567

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dmpsc_test.rs194 drop(rx); in sdv_mpsc_is_closed()
200 drop(rx); in sdv_mpsc_is_closed()
240 assert_eq!(rx.len(), 35); in sdv_mpsc_len()
242 let _ = rx.try_recv(); in sdv_mpsc_len()
244 assert_eq!(rx.len(), 32); in sdv_mpsc_len()
246 let _ = rx.try_recv(); in sdv_mpsc_len()
248 assert_eq!(rx.len(), 0); in sdv_mpsc_len()
254 assert_eq!(rx.len(), 10); in sdv_mpsc_len()
256 let _ = rx.try_recv(); in sdv_mpsc_len()
258 assert_eq!(rx.len(), 8); in sdv_mpsc_len()
[all …]
/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/
H A Dgeometry_bezier_arc.cpp66 float rx, float ry, in Init() argument
130 if (rx < 0.0f) { in Init()
131 rx = -rx; in Init()
140 float prx = rx * rx; in Init()
147 rx = Sqrt(radiiCheck) * rx; in Init()
149 prx = rx * rx; in Init()
160 if (rx == 0) { in Init()
161 rx += VERTEX_DIST_EPSILON; in Init()
163 float cx1 = coef * ((rx * y1) / ry); in Init()
169 float ux = (x1 - cx1) / rx; in Init()
[all …]
H A Dgeometry_arc.cpp21 float rx, float ry, in GeometryArc() argument
24 : centerX_(centerX), centerY_(centerY), radiusX_(rx), radiusY_(ry), expansionRatio_(1.0) in GeometryArc()
87 void GeometryArc::Init(float centerX, float centerY, float rx, float ry, in Init() argument
92 radiusX_ = rx; in Init()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_ellipse.cpp39 double rx = 0.0; in AsPath() local
40 if (GreatOrEqual(ellipseAttr_.rx.Value(), 0.0)) { in AsPath()
41 rx = ConvertDimensionToPx(ellipseAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath()
44 rx = ConvertDimensionToPx(ellipseAttr_.ry, viewPort, SvgLengthType::VERTICAL); in AsPath()
51 if (GreatNotEqual(ellipseAttr_.rx.Value(), 0.0)) { in AsPath()
52 ry = ConvertDimensionToPx(ellipseAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath()
56 …ect::MakeXYWH(ConvertDimensionToPx(declaration->GetCx(), viewPort, SvgLengthType::HORIZONTAL) - rx, in AsPath()
57 …ConvertDimensionToPx(declaration->GetCy(), viewPort, SvgLengthType::VERTICAL) - ry, rx + rx, ry + … in AsPath()
60 RSScalar left = ConvertDimensionToPx(ellipseAttr_.cx, viewPort, SvgLengthType::HORIZONTAL) - rx; in AsPath()
62 RSRect rect = RSRect(left, top, rx + rx + left, ry + ry + top); in AsPath()
[all …]
H A Dsvg_rect.cpp35 double rx = 0.0; in AsPath() local
36 if (GreatOrEqual(rectAttr_.rx.Value(), 0.0)) { in AsPath()
37 rx = ConvertDimensionToPx(rectAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath()
40 rx = ConvertDimensionToPx(rectAttr_.ry, viewPort, SvgLengthType::VERTICAL); in AsPath()
47 if (GreatNotEqual(rectAttr_.rx.Value(), 0.0)) { in AsPath()
48 ry = ConvertDimensionToPx(rectAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath()
57 rx, ry); in AsPath()
65 RSRoundRect roundRect = RSRoundRect(RSRect(left, top, width + left, height + top), rx, ry); in AsPath()
81 attr.rx = SvgAttributesParser::ParseDimension(val); in ParseAndSetSpecializedAttr()
/ohos5.0/base/request/request/services/src/manage/events/
H A Dmod.rs55 Recv::new(rx), in construct()
60 let (tx, rx) = channel::<ErrorCode>(); in pause()
63 Recv::new(rx), in pause()
71 Recv::new(rx), in start()
79 Recv::new(rx), in stop()
87 Recv::new(rx), in remove()
95 Recv::new(rx), in resume()
108 Recv::new(rx), in dump_one()
120 Recv::new(rx), in subscribe()
268 rx.get().unwrap().unwrap(); in ut_task_manager_construct()
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dwatch.rs57 let rx = Receiver { in channel() localVariable
61 (tx, rx) in channel()
593 assert_eq!(rx.try_notified(), None); in send_try_notified()
596 assert_eq!(*rx.borrow(), "world"); in send_try_notified()
618 assert_eq!(*rx.borrow(), "world"); in send_notified_await()
637 assert_eq!(rx.is_notified(), Ok(true)); in send_borrow_notify()
638 assert_eq!(*rx.borrow(), "world"); in send_borrow_notify()
639 assert_eq!(rx.is_notified(), Ok(true)); in send_borrow_notify()
654 let (tx, rx) = watch::channel("hello"); in receiver_count()
658 let rx3 = rx.clone(); in receiver_count()
[all …]
H A Doneshot.rs89 let rx = Receiver { channel }; in channel() localVariable
90 (tx, rx) in channel()
477 let (tx, mut rx) = oneshot::channel(); in send_try_recv()
481 assert_eq!(rx.try_recv().unwrap(), "hello"); in send_try_recv()
494 let (tx, rx) = oneshot::channel(); in send_recv_await()
499 match rx.await { in send_recv_await()
517 let (tx, mut rx) = oneshot::channel(); in close_rx()
519 rx.close(); in close_rx()
524 let (tx, mut rx) = oneshot::channel(); in close_rx()
527 rx.close(); in close_rx()
[all …]
/ohos5.0/base/request/request/services/src/service/client/
H A Dmod.rs58 let rx = Recv::new(rx); in open_channel() localVariable
59 match rx.get() { in open_channel()
74 let rx = Recv::new(rx); in subscribe() localVariable
75 match rx.get() { in subscribe()
90 let rx = Recv::new(rx); in unsubscribe() localVariable
91 match rx.get() { in unsubscribe()
111 let rx = Recv::new(rx); in notify_process_terminate() localVariable
112 match rx.get() { in notify_process_terminate()
145 rx: UnboundedReceiver<ClientEvent>, field
163 rx, in constructor()
[all …]
/ohos5.0/base/request/request/services/src/manage/
H A Dtask_manager.rs62 pub(crate) rx: TaskManagerRx,
76 let (tx, rx) = unbounded_channel(); in init()
78 let rx = TaskManagerRx::new(rx); in init() localVariable
125 rx: TaskManagerRx, in new()
131 rx, in new()
320 if !self.rx.is_empty() { in unload_sa()
331 if !self.rx.is_empty() { in unload_sa()
388 let (tx, rx) = oneshot::channel(); in show()
415 Self { rx } in new()
423 &self.rx in deref()
[all …]
H A Dmod.rs54 let (tx, rx) = unbounded_channel(); in task_manager()
56 let rx = TaskManagerRx::new(rx); in task_manager() localVariable
180 let msg = manager.rx.recv().await.unwrap(); in ut_manager_task_state_and_reason()
298 manager.rx.try_recv().unwrap_err(); in ut_manager_reschedule()
301 manager.rx.try_recv().unwrap(), in ut_manager_reschedule()
307 manager.rx.try_recv().unwrap(), in ut_manager_reschedule()
313 manager.rx.try_recv().unwrap(), in ut_manager_reschedule()
317 manager.rx.try_recv().unwrap_err(); in ut_manager_reschedule()
321 manager.rx.try_recv().unwrap(), in ut_manager_reschedule()
327 manager.rx.try_recv().unwrap(), in ut_manager_reschedule()
[all …]
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/
H A Dgeometry_bezier_arc.h40 void ArcToBezier(float cx, float cy, float rx, float ry,
66 float rx, float ry, in BezierArc() argument
70 Init(centerX, centerY, rx, ry, startAngle, sweepAngle); in BezierArc()
79 float rx, float ry,
181 float rx, float ry, in BezierArcSvg() argument
187 Init(x1, y1, rx, ry, angle, largeArcFlag, sweepFlag, x2, y2); in BezierArcSvg()
197 float rx,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/
H A Dsvg_ellipse.cpp81 double rx = 0.0; in AsPath() local
83 rx = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath()
86 rx = ConvertDimensionToPx(component_->GetRy(), viewPort, SvgLengthType::VERTICAL); in AsPath()
99 …Rect::MakeXYWH(ConvertDimensionToPx(component_->GetCx(), viewPort, SvgLengthType::HORIZONTAL) - rx, in AsPath()
100 …ConvertDimensionToPx(component_->GetCy(), viewPort, SvgLengthType::VERTICAL) - ry, rx + rx, ry + r… in AsPath()
104 … rect = RSRect(ConvertDimensionToPx(component_->GetCx(), viewPort, SvgLengthType::HORIZONTAL) - rx, in AsPath()
106 rx + ConvertDimensionToPx(component_->GetCx(), viewPort, SvgLengthType::HORIZONTAL), in AsPath()
H A Dsvg_rect.cpp80 double rx = 0.0; in AsPath() local
82 rx = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath()
85 rx = ConvertDimensionToPx(component_->GetRy(), viewPort, SvgLengthType::VERTICAL); in AsPath()
102 rx, ry); in AsPath()
110 rx, ry); in AsPath()
/ohos5.0/base/request/request/services/src/service/run_count/
H A Dmanager.rs53 let (tx, rx) = oneshot::channel::<ErrorCode>(); in subscribe_run_count()
56 ylong_runtime::block_on(rx).unwrap() in subscribe_run_count()
60 let (tx, rx) = oneshot::channel::<ErrorCode>(); in unsubscribe_run_count()
63 ylong_runtime::block_on(rx).unwrap() in unsubscribe_run_count()
76 rx: UnboundedReceiver<RunCountEvent>, field
82 let (tx, rx) = unbounded_channel(); in init()
86 rx, in init()
94 let recv = match self.rx.recv().await { in run()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drosen_render_svg_ellipse.cpp125 double rx = 0.0; in GetPath() local
127 rx = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath()
130 rx = ConvertDimensionToPx(ry_, LengthType::VERTICAL); in GetPath()
142 SkRect rect = SkRect::MakeXYWH(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL) - rx, in GetPath()
143 ConvertDimensionToPx(cy_, LengthType::VERTICAL) - ry, rx + rx, ry + ry); in GetPath()
146 auto rect = RSRect(ConvertDimensionToPx(cx_, LengthType::HORIZONTAL) - rx, in GetPath()
148 rx + ConvertDimensionToPx(cx_, LengthType::HORIZONTAL), in GetPath()
H A Drosen_render_svg_rect.cpp125 double rx = 0.0; in GetPath() local
127 rx = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath()
130 rx = ConvertDimensionToPx(ry_, LengthType::VERTICAL); in GetPath()
147 rx, ry); in GetPath()
155 rx, ry); in GetPath()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/
H A Dsvg_rect_declaration.h26 Dimension rx = -1.0_px; member
57 return attribute.rx; in GetRx()
90 void SetRx(const Dimension& rx) in SetRx() argument
93 if (GreatOrEqual(rx.Value(), 0.0)) { in SetRx()
94 attribute.rx = rx; in SetRx()
H A Dsvg_ellipse_declaration.h26 Dimension rx = -1.0_px; member
64 void SetRx(const Dimension& rx) in SetRx() argument
67 attribute.rx = rx; in SetRx()
73 return attribute.rx; in GetRx()
/ohos5.0/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dspi_virtual.c149 static bool VirtualSpiReadFifo(struct VirtualSpi *virtual, uint8_t *rx, uint32_t count) in VirtualSpiReadFifo() argument
164 if (rx == NULL) { in VirtualSpiReadFifo()
168 *rx = (uint8_t)value; in VirtualSpiReadFifo()
170 *((uint16_t *)rx) = value; in VirtualSpiReadFifo()
172 rx += bytes; in VirtualSpiReadFifo()
183 uint8_t *rx = msg->rbuf; in VirtualSpiTxRx() local
186 if (tx == NULL && rx == NULL) { in VirtualSpiTxRx()
205 if (!VirtualSpiReadFifo(virtual, rx, tmpLen)) { in VirtualSpiTxRx()
209 rx = (rx == NULL) ? NULL : (rx + tmpLen); in VirtualSpiTxRx()
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-svg-rect.md30 | rx | &lt;length&gt;\|&lt;percentage&gt; | 0 | 否 | 设置矩形圆角x方向半径。支持属性动画 |
41 …<rect width="100" height="100" x="150" y="20" stroke-width="4" stroke="blue" rx="10" ry="10"></rec…
42 …<rect width="100" height="100" x="10" y="130" stroke-width="10" fill="red" stroke="blue" rx="10" r…
43 …<rect width="100" height="100" x="150" y="130" stroke-width="10" stroke="red" rx="10" ry="10" stro…
H A Djs-components-svg-ellipse.md28 | rx | &lt;length&gt;\|&lt;percentage&gt; | 0 | 否 | 设置椭圆x轴的半径。支持属性动画 |
38 <ellipse cx="60" cy="200" rx="50" ry="100" stroke-width="4" fill="red" stroke="blue"></ellipse>
39 …<ellipse cx="220" cy="200" rx="100" ry="50" stroke-width="5" stroke="red" stroke-dasharray="10 5" …
H A Djs-components-svg-animate.md45 <rect x="20" y="20" width="100" height="100" fill="red" rx="0" ry="20">
46 …<animate attributeName="rx" values="0;10;30;0" keyTimes="0;0.25;0.75;1" keySplines="0.5 0 0.5 1; 0…
61 <rect x="20" y="20" width="100" height="100" fill="red" rx="0" ry="20">
77 <rect x="20" y="20" width="100" height="100" fill="red" rx="0" ry="20">
78 …<animate attributeName="rx" values="0;30" dur="1000" repeatCount="indefinite" fill="freeze" calcMo…
/ohos5.0/base/request/request/services/src/service/command/
H A Ddump.rs63 let (event, rx) = TaskManagerEvent::dump_all(); in dump_all_task_info()
68 let infos = match rx.get() { in dump_all_task_info()
100 let (event, rx) = TaskManagerEvent::dump_one(task_id); in dump_one_task_info()
104 let task = match rx.get() { in dump_one_task_info()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
H A Dtimeout.rs106 let (tx, rx) = oneshot::channel(); in ut_timeout_test()
110 timeout(Duration::from_millis(10), rx).await.is_ok() in ut_timeout_test()
114 let (_tx, rx) = oneshot::channel::<()>(); in ut_timeout_test()
117 timeout(Duration::from_millis(10), rx).await.is_ok() in ut_timeout_test()

1234567