/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_flex_impl.cpp | 63 JSRef<JSVal> directionVal = obj->GetProperty("direction"); in CreateFlexComponent() 68 auto direction = directionVal->ToNumber<int32_t>(); in CreateFlexComponent() local 69 if (direction >= 0 && direction <= DIRECTION_MAX_VALUE) { in CreateFlexComponent() 70 FlexModel::GetInstance()->SetDirection(static_cast<FlexDirection>(direction)); in CreateFlexComponent() 134 JSRef<JSVal> directionVal = obj->GetProperty("direction"); in WrapComponent() 140 auto direction = directionVal->ToNumber<int32_t>(); in WrapComponent() local 141 if (direction >= 0 && direction <= DIRECTION_MAX_VALUE) { in WrapComponent() 142 FlexModel::GetInstance()->SetDirection(static_cast<FlexDirection>(direction)); in WrapComponent() [all...] |
/third_party/skia/src/effects/imagefilters/ |
H A D | SkMorphologyImageFilter.cpp | 311 MorphDirection direction, in GrMorphologyEffect() 316 , fDirection(direction) in GrMorphologyEffect() 374 MorphDirection direction) { in apply_morphology_rect() 378 direction, in apply_morphology_rect() 392 MorphDirection direction) { in apply_morphology_rect_no_bounds() 394 /*inputFP=*/nullptr, std::move(view), srcAlphaType, direction, radius, morphType); in apply_morphology_rect_no_bounds() 405 MorphDirection direction) { in apply_morphology_pass() 410 if (direction == MorphDirection::kX) { in apply_morphology_pass() 432 dstRect, radius, morphType, bounds, direction); in apply_morphology_pass() 436 lowerDstRect, radius, morphType, bounds, direction); in apply_morphology_pass() 308 GrMorphologyEffect(std::unique_ptr<GrFragmentProcessor> inputFP, GrSurfaceProxyView view, SkAlphaType srcAlphaType, MorphDirection direction, int radius, MorphType type, const float range[2]) GrMorphologyEffect() argument 366 apply_morphology_rect(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView view, SkAlphaType srcAlphaType, const SkIRect& srcRect, const SkIRect& dstRect, int radius, MorphType morphType, const float range[2], MorphDirection direction) apply_morphology_rect() argument 385 apply_morphology_rect_no_bounds(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView view, SkAlphaType srcAlphaType, const SkIRect& srcRect, const SkIRect& dstRect, int radius, MorphType morphType, MorphDirection direction) apply_morphology_rect_no_bounds() argument 398 apply_morphology_pass(skgpu::SurfaceFillContext* sfc, GrSurfaceProxyView view, SkAlphaType srcAlphaType, const SkIRect& srcRect, const SkIRect& dstRect, int radius, MorphType morphType, MorphDirection direction) apply_morphology_pass() argument [all...] |
/third_party/alsa-utils/axfer/ |
H A D | xfer.c | 39 snd_pcm_stream_t direction, int argc, char *const *argv) in xfer_context_init() 54 assert(direction >= SND_PCM_STREAM_PLAYBACK); in xfer_context_init() 55 assert(direction <= SND_PCM_STREAM_CAPTURE); in xfer_context_init() 65 xfer->direction = direction; in xfer_context_init() 74 err = xfer->ops->init(xfer, direction); in xfer_context_init() 133 if (xfer->direction == SND_PCM_STREAM_CAPTURE) { in xfer_context_pre_process() 134 // For capture direction, use values in options if given. in xfer_context_pre_process() 141 } else if (xfer->direction == SND_PCM_STREAM_PLAYBACK) { in xfer_context_pre_process() 142 // For playback direction, chec in xfer_context_pre_process() 38 xfer_context_init(struct xfer_context *xfer, enum xfer_type type, snd_pcm_stream_t direction, int argc, char *const *argv) xfer_context_init() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/marquee/ |
H A D | rosen_render_marquee.cpp | 34 // Find first strong direction char. in GetTextDirection() 36 auto direction = u_charDirection(charInStr); in GetTextDirection() local 37 if (direction == UCharDirection::U_LEFT_TO_RIGHT) { in GetTextDirection() 40 if (direction == UCharDirection::U_RIGHT_TO_LEFT || direction == UCharDirection::U_RIGHT_TO_LEFT_ARABIC) { in GetTextDirection()
|
/foundation/arkui/ace_engine/frameworks/core/components/grid/ |
H A D | grid_component.cpp | 35 void GridComponent::SetDirection(FlexDirection direction) in SetDirection() argument 37 if (direction < FlexDirection::ROW || direction > FlexDirection::COLUMN_REVERSE) { in SetDirection() 38 LOGW("Invalid direction %{public}d", direction); in SetDirection() 41 direction_ = direction; in SetDirection()
|
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
H A D | water_flow_component.cpp | 52 void WaterFlowComponent::SetLayoutDirection(FlexDirection direction) in SetLayoutDirection() argument 54 if (direction < FlexDirection::ROW || direction > FlexDirection::COLUMN_REVERSE) { in SetLayoutDirection() 55 LOGW("Invalid direction %{public}d", direction); in SetLayoutDirection() 58 direction_ = direction; in SetLayoutDirection()
|
/foundation/arkui/ui_lite/interfaces/innerkits/dock/ |
H A D | focus_manager.h | 79 * @brief Request focus by direction. 81 * @param direction focus direction. 86 bool RequestFocusByDirection(uint8_t direction); 92 bool GetNextFocus(UIView* focusedView, UIView*& candidate, uint8_t direction); 93 bool GetNextFocus(UIView* focusedView, UIView*& candidate, UIView* view, uint8_t direction); 94 bool GetNextFocus(UIView* focusedView, UIView*& candidate, UIViewGroup* viewGroup, uint8_t direction); 97 bool CompareCandidates(UIView* focusedView, UIView*& candidate, UIView* current, uint8_t direction);
|
/third_party/skia/third_party/externals/harfbuzz/src/ |
H A D | hb-fallback-shape.cc | 93 hb_direction_t direction = buffer->props.direction; in _hb_fallback_shape() local 108 direction, in _hb_fallback_shape() 112 direction, in _hb_fallback_shape() 117 if (HB_DIRECTION_IS_BACKWARD (direction)) in _hb_fallback_shape()
|
H A D | hb-ot-layout-gdef-table.hh | 138 hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction) const in get_caret_value() 140 return HB_DIRECTION_IS_HORIZONTAL (direction) ? font->em_scale_x (coordinate) : font->em_scale_y (coordinate); in get_caret_value() 168 hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, hb_codepoint_t glyph_id) const in get_caret_value() 171 font->get_glyph_contour_point_for_origin (glyph_id, caretValuePoint, direction, &x, &y); in get_caret_value() 172 return HB_DIRECTION_IS_HORIZONTAL (direction) ? x : y; in get_caret_value() 192 hb_position_t get_caret_value (hb_font_t *font, hb_direction_t direction, in get_caret_value() 195 return HB_DIRECTION_IS_HORIZONTAL (direction) ? in get_caret_value() 233 hb_direction_t direction, in get_caret_value() 238 case 1: return u.format1.get_caret_value (font, direction); in get_caret_value() 239 case 2: return u.format2.get_caret_value (font, direction, glyph_i in get_caret_value() [all...] |
/third_party/skia/gm/ |
H A D | arcofzorro.cpp | 49 int direction = 0; variable 61 switch (direction) { 65 direction = 1; 72 direction = 2;
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid_row/ |
H A D | grid_row_model_ng.cpp | 26 auto direction = V2::GridRowDirection::Row; in Create() local 27 Create(col, gutter, breakpoints, direction); in Create() 31 const RefPtr<V2::BreakPoints>& breakpoints, V2::GridRowDirection direction) in Create() 42 ACE_UPDATE_LAYOUT_PROPERTY(GridRowLayoutProperty, Direction, direction); in Create() 95 void GridRowModelNG::SetDirection(FrameNode* frameNode, V2::GridRowDirection direction) in SetDirection() argument 97 ACE_UPDATE_NODE_LAYOUT_PROPERTY(GridRowLayoutProperty, Direction, direction, frameNode); in SetDirection() 30 Create(const RefPtr<V2::GridContainerSize>& col, const RefPtr<V2::Gutter>& gutter, const RefPtr<V2::BreakPoints>& breakpoints, V2::GridRowDirection direction) Create() argument
|
/third_party/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/ |
H A D | Selection.java | 110 int direction, boolean extend) { in nextBound() 111 if (!extend && anchor != caret) caret -= direction; in nextBound() 112 caret = next(caret, breaker, direction, true); in nextBound() 150 int direction, boolean different) { in next() 151 if (!different) position -= direction; in next() 153 if (direction > 0) { in next() 109 nextBound(BreakIterator breaker, int direction, boolean extend) nextBound() argument 149 next(int position, BreakIterator breaker, int direction, boolean different) next() argument
|
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/ |
H A D | node_relative_container_modifier.cpp | 32 info.direction = static_cast<LineDirection>(values[i].direction); in SetGuideLine() 60 info.direction = static_cast<BarrierDirection>(values[i].direction); in SetBarrier() 82 values[index].direction = static_cast<ArkUI_Int32>(info.direction); in GetGuideLine() 101 values[index].direction = static_cast<ArkUI_Int32>(info.direction); in GetBarrier()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_utils.h | 57 auto direction = Axis::HORIZONTAL; in CalcIndicatrFrameOffSet() local 67 direction = swiperLayoutProperty->GetDirectionValue(Axis::HORIZONTAL); in CalcIndicatrFrameOffSet() 99 swiperWidth, indicatorWidth, direction), in CalcIndicatrFrameOffSet() 102 swiperHeight, indicatorHeight, direction)}; in CalcIndicatrFrameOffSet() 148 float swiperWidth, float indicatorWidth, const Axis& direction) in CalcIndicatrOffSetX() 158 if (direction == Axis::HORIZONTAL) { in CalcIndicatrOffSetX() 171 float swiperHeight, float indicatorHeight, const Axis& direction) in CalcIndicatrOffsetY() 181 if (direction == Axis::HORIZONTAL) { in CalcIndicatrOffsetY() 145 CalcIndicatrOffSetX(const std::optional<Dimension>& left, const std::optional<Dimension>& right, float swiperPaddingLeft, float swiperPaddingRight, float borderWidthLeft, float borderWidthRight, float swiperWidth, float indicatorWidth, const Axis& direction) CalcIndicatrOffSetX() argument 168 CalcIndicatrOffsetY(const std::optional<Dimension>& top, const std::optional<Dimension>& bottom, float swiperPaddingTop, float swiperPaddingBottom, float borderWidthTop, float borderWidthBottom, float swiperHeight, float indicatorHeight, const Axis& direction) CalcIndicatrOffsetY() argument
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | nptrans.cpp | 204 UCharDirection direction=U_CHAR_DIRECTION_COUNT, firstCharDir=U_CHAR_DIRECTION_COUNT; in process() local 237 direction = u_charDirection(ch); in process() 239 firstCharDir = direction; in process() 241 if(direction == U_LEFT_TO_RIGHT){ in process() 244 if(direction == U_RIGHT_TO_LEFT || direction == U_RIGHT_TO_LEFT_ARABIC){ in process() 259 (direction == U_RIGHT_TO_LEFT || direction == U_RIGHT_TO_LEFT_ARABIC)) in process()
|
/foundation/multimodalinput/input/service/window_manager/test/ |
H A D | touch_drawing_manager_test.cpp | 52 info.direction = DIRECTION0; in SetUp() 329 TOUCH_DRAWING_MGR->displayInfo_.direction = DIRECTION90; in HWTEST_F() 351 TOUCH_DRAWING_MGR->displayInfo_.direction = DIRECTION270; in HWTEST_F() 507 TOUCH_DRAWING_MGR->displayInfo_.direction = DIRECTION90; in HWTEST_F() 524 TOUCH_DRAWING_MGR->displayInfo_.direction = DIRECTION180; in HWTEST_F() 542 TOUCH_DRAWING_MGR->displayInfo_.direction = DIRECTION270; in HWTEST_F() 560 TOUCH_DRAWING_MGR->displayInfo_.direction = DIRECTION270; in HWTEST_F() 967 TOUCH_DRAWING_MGR->displayInfo_.direction = Direction::DIRECTION90; in HWTEST_F() 982 TOUCH_DRAWING_MGR->displayInfo_.direction = Direction::DIRECTION270; in HWTEST_F() 997 TOUCH_DRAWING_MGR->displayInfo_.direction in HWTEST_F() 1197 Direction direction = Direction::DIRECTION90; HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | picking.cpp | 107 bool IntersectTriangle(const Math::Vec3 triangle[3], const Math::Vec3 start, const Math::Vec3 direction, in IntersectTriangle() argument 113 const Math::Vec3 pvec = Math::Cross(direction, v0v2); in IntersectTriangle() 133 const float v = Math::Dot(direction, qvec) * invDet; in IntersectTriangle() 222 const auto direction = Math::Vec3(1.f / invDir.x, 1.f / invDir.y, 1.f / invDir.z); in HitTestNode() local 239 raycastResult.worldPosition = start + direction * distance; in HitTestNode() 247 raycastResult.worldPosition = start + direction * raycastResult.distance; in HitTestNode() 274 Math::Vec3 direction; member 283 const auto direction = cameraWorldMatrixComponent.matrix * Math::Vec4(0.0f, 0.0f, -1.0f, 0.0f); in RayFromCamera() local 284 return Ray { worldPos, direction }; in RayFromCamera() 290 const Math::Vec3 direction in RayFromCamera() local 410 RayCast( const IEcs& ecs, const Math::Vec3& start, const Math::Vec3& direction, uint64_t layerMask) const RayCast() argument 466 RayCast(const BASE_NS::Math::Vec3& start, const BASE_NS::Math::Vec3& direction, BASE_NS::array_view<const BASE_NS::Math::Vec3> triangles) const RayCast() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/ |
H A D | layout_property.h | 376 void CheckLocalizedBorderRadiuses(const TextDirection& direction); 377 void CheckLocalizedOuterBorderColor(const TextDirection& direction); 378 void CheckLocalizedPadding(const RefPtr<LayoutProperty>& layoutProperty, const TextDirection& direction); 379 void CheckLocalizedMargin(const RefPtr<LayoutProperty>& layoutProperty, const TextDirection& direction); 380 void CheckLocalizedSafeAreaPadding(const RefPtr<LayoutProperty>& layoutProperty, const TextDirection& direction); 381 void CheckLocalizedEdgeWidths(const RefPtr<LayoutProperty>& layoutProperty, const TextDirection& direction); 382 void CheckLocalizedEdgeColors(const TextDirection& direction); 383 void CheckLocalizedBorderImageSlice(const TextDirection& direction); 384 void CheckLocalizedBorderImageWidth(const TextDirection& direction); 385 void CheckLocalizedBorderImageOutset(const TextDirection& direction); [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | device-port.c | 64 void pa_device_port_new_data_set_direction(pa_device_port_new_data *data, pa_direction_t direction) { in pa_device_port_new_data_set_direction() argument 67 data->direction = direction; in pa_device_port_new_data_set_direction() 125 if (p->direction == PA_DIRECTION_OUTPUT) in pa_device_port_set_available() 130 if (p->direction == PA_DIRECTION_OUTPUT) { in pa_device_port_set_available() 183 pa_assert(data->direction == PA_DIRECTION_OUTPUT || data->direction == PA_DIRECTION_INPUT); in pa_device_port_new() 199 p->direction = data->direction; in pa_device_port_new() 219 switch (p->direction) { in pa_device_port_set_latency_offset() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_attraction_effect_filter_test.cpp | 234 float direction = 1.0f; in HWTEST_F() local 235 std::vector<int> pathList = firstEffectFilter.CreateIndexSequence(direction); in HWTEST_F() 238 direction = -1.0f; in HWTEST_F() 239 pathList = firstEffectFilter.CreateIndexSequence(direction); in HWTEST_F() 256 float direction = 1.0f; in HWTEST_F() local 257 std::vector<int> pathList = firstEffectFilter.CreateIndexSequence(direction); in HWTEST_F() 260 direction = -1.0f; in HWTEST_F() 261 pathList = firstEffectFilter.CreateIndexSequence(direction); in HWTEST_F() 330 int direction = 1.0; in HWTEST_F() local 332 firstEffectFilter.CalculateUpperCtrlPointOfVertex(deltaX, deltaY, width, height, direction); in HWTEST_F() 362 int direction = 1.0; HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/fillp/ |
H A D | fillp_mgt_msg_log.c | 55 static void FillpHeaderNtoH(struct FillpPktHead *out, FILLP_CONST struct FillpPktHead *in, FILLP_INT direction) in FillpHeaderNtoH() argument 57 if (direction == FILLP_DIRECTION_RX) { /* already convert to host byte order in FillpDoInput */ in FillpHeaderNtoH() 67 void FillpPktSimpleLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktHead *hdrInput, FILLP_INT direction) in FillpPktSimpleLog() argument 70 FillpHeaderNtoH(&hdr, hdrInput, direction); in FillpPktSimpleLog() 75 FILLP_MGT_MSG_PRINT(sockIndex, &hdr, direction, ""); in FillpPktSimpleLog() 79 void FillpConnReqLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktConnReq *req, FILLP_INT direction) in FillpConnReqLog() argument 82 FillpHeaderNtoH(&hdr, (FILLP_CONST struct FillpPktHead *)req->head, direction); in FillpConnReqLog() 83 FILLP_MGT_MSG_PRINT(sockIndex, &hdr, direction, in FillpConnReqLog() 293 FILLP_CONST struct FillpPktConnConfirmAck *confirmAck, FILLP_INT direction) in FillpConnConfirmAckLog() 296 FillpHeaderNtoH(&hdr, (FILLP_CONST struct FillpPktHead *)confirmAck->head, direction); in FillpConnConfirmAckLog() 292 FillpConnConfirmAckLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktConnConfirmAck *confirmAck, FILLP_INT direction) FillpConnConfirmAckLog() argument 313 FillpConnFinLog(FILLP_INT sockIndex, FILLP_CONST struct FillpPktFin *fin, FILLP_INT direction) FillpConnFinLog() argument [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_gesture_ffi.h | 36 CJ_EXPORT void FfiOHOSAceFrameworkSwipeGestureCreate(int32_t fingers, uint32_t direction, double speed); 38 CJ_EXPORT void FfiOHOSAceFrameworkPanGestureCreate(int32_t fingers, uint32_t direction, double distance); 42 CJ_EXPORT int64_t FfiOHOSAceFrameworkPanGestureOptionsCtor(int32_t fingers, uint32_t direction, double distance); 44 CJ_EXPORT void FfiOHOSAceFrameworkPanGestureOptionsSetDirection(int64_t selfID, uint32_t direction);
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_tg/ |
H A D | avrcp_tg_gap.cpp | 40 avctInfo.direction = OUTGOING; in RegisterSecurity() 46 avctBrinfo.direction = OUTGOING; in RegisterSecurity() 63 avctInfo.direction = OUTGOING; in UnregisterSecurity() 68 avctBrinfo.direction = OUTGOING; in UnregisterSecurity()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/avrcp_ct/ |
H A D | avrcp_ct_gap.cpp | 40 avctInfo.direction = OUTGOING; in RegisterSecurity() 46 avctBrinfo.direction = OUTGOING; in RegisterSecurity() 63 avctInfo.direction = OUTGOING; in UnregisterSecurity() 68 avctBrinfo.direction = OUTGOING; in UnregisterSecurity()
|
/third_party/skia/third_party/externals/brotli/js/ |
H A D | polyfill.js | 24 var direction = 1; 26 direction = -1; 32 from += direction; 33 to += direction;
|