Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/foundation/multimodalinput/input/tools/event_inject/src/
Dprocessing_game_pad_device.cpp76 padEvent.direction = item.at("direction").get<std::string>(); in AnalysisGamePadEvent()
82 padEvent.direction = item.at("direction").get<std::string>(); in AnalysisGamePadEvent()
137 std::string direction = padEvent.direction; in TransformRocker1Event() local
140 if (direction == "left") { in TransformRocker1Event()
143 } else if (direction == "right") { in TransformRocker1Event()
146 } else if (direction == "up") { in TransformRocker1Event()
149 } else if (direction == "down") { in TransformRocker1Event()
152 } else if (direction == "lt") { in TransformRocker1Event()
159 if (direction == "left") { in TransformRocker1Event()
161 } else if (direction == "right") { in TransformRocker1Event()
[all …]
Dprocessing_joystick_device.cpp84 joystickEvent.direction = item.at("direction").get<std::string>(); in AnalysisJoystickEvent()
90 joystickEvent.direction = item.at("direction").get<std::string>(); in AnalysisJoystickEvent()
149 std::string direction = joystickEvent.direction; in TransformRocker1Event() local
151 if ((direction == "left")||(direction == "right")) { in TransformRocker1Event()
153 } else if ((direction == "up") || (direction == "down")) { in TransformRocker1Event()
155 } else if (direction == "lt") { in TransformRocker1Event()
161 if ((direction == "left") || (direction == "right")) { in TransformRocker1Event()
163 } else if ((direction == "up") || (direction == "down")) { in TransformRocker1Event()
165 } else if (direction == "lt") { in TransformRocker1Event()
177 std::string direction = joystickEvent.direction; in TransformDerectionKeyEvent() local
[all …]
/foundation/graphic/ui/frameworks/layout/
Dlist_layout.cpp19 ListLayout::ListLayout(const uint8_t direction) : listDirection_(direction) in ListLayout() argument
21 SetLayoutDirect(direction); in ListLayout()
24 void ListLayout::SetDirection(uint8_t direction) in SetDirection() argument
26 listDirection_ = direction; in SetDirection()
27 SetLayoutDirect(direction); in SetDirection()
31 void ListLayout::SetLayoutDirect(uint8_t direction) in SetLayoutDirect() argument
33 if (direction == VERTICAL) { in SetLayoutDirect()
/foundation/graphic/ui/test/unittest/components/
Dui_box_progress_unit_test.cpp91 UIBoxProgress::Direction direction = UIBoxProgress::Direction::DIR_BOTTOM_TO_TOP; variable
92 boxProgress_->SetDirection(direction);
93 EXPECT_EQ(boxProgress_->GetDirection(), direction);
94 direction = UIBoxProgress::Direction::DIR_LEFT_TO_RIGHT;
95 boxProgress_->SetDirection(direction);
96 EXPECT_EQ(boxProgress_->GetDirection(), direction);
97 direction = UIBoxProgress::Direction::DIR_RIGHT_TO_LEFT;
98 boxProgress_->SetDirection(direction);
99 EXPECT_EQ(boxProgress_->GetDirection(), direction);
100 direction = UIBoxProgress::Direction::DIR_TOP_TO_BOTTOM;
[all …]
/foundation/ace/ace_engine/frameworks/core/gestures/
Dswipe_recognizer.cpp43 …SwipeEventInfo::SwipeDirection direction, const TouchEvent& firstPoint, const TouchEvent& lastPoin… in GetSwipeDistance() argument
45 if (direction == SwipeEventInfo::SwipeDirection::RIGHT) { in GetSwipeDistance()
47 } else if (direction == SwipeEventInfo::SwipeDirection::LEFT) { in GetSwipeDistance()
49 } else if (direction == SwipeEventInfo::SwipeDirection::UP) { in GetSwipeDistance()
51 } else if (direction == SwipeEventInfo::SwipeDirection::DOWN) { in GetSwipeDistance()
89 auto direction = GetSwipeDirection(status.first, point); in HandleEvent() local
90 if (direction == SwipeEventInfo::SwipeDirection::NONE) { in HandleEvent()
93 … swipeCallback_(SwipeEventInfo(direction, GetSwipeDistance(direction, status.first, point))); in HandleEvent()
/foundation/ace/ace_engine/frameworks/core/components/page_transition/
Dpage_transition_element.h36 void SetTransitionDirection(TransitionEvent event, TransitionDirection direction);
41 void SetTransition(DeviceType deviceType, TransitionEvent event, TransitionDirection direction,
46 void InitController(TransitionDirection direction, TransitionEvent event);
53 …geTransition> GetCurrentPageTransition(TransitionEvent event, TransitionDirection direction) const;
54 void SetDeclarativeDirection(TransitionDirection direction) in SetDeclarativeDirection() argument
56 direction_ = direction; in SetDeclarativeDirection()
65 …tic PageTransitionType GetPageTransitionType(TransitionEvent event, TransitionDirection direction);
Dpage_transition_element.cpp33 TransitionOptionType GetOptionType(bool hasSharedTransition, TransitionDirection direction) in GetOptionType() argument
36 if (direction == TransitionDirection::TRANSITION_IN) { in GetOptionType()
42 if (direction == TransitionDirection::TRANSITION_IN) { in GetOptionType()
122 …PageTransitionElement::SetTransitionDirection(TransitionEvent event, TransitionDirection direction) in SetTransitionDirection() argument
148 optionType = GetOptionType(false, direction); in SetTransitionDirection()
151 optionType = GetOptionType(hasShared, direction); in SetTransitionDirection()
158 LOGD("set front transition option type: %{public}d", direction); in SetTransitionDirection()
243 void PageTransitionElement::InitController(TransitionDirection direction, TransitionEvent event) in InitController() argument
254 …if ((direction == TransitionDirection::TRANSITION_OUT) && (event == TransitionEvent::PUSH_START)) { in InitController()
258 … if ((direction == TransitionDirection::TRANSITION_IN) && (event == TransitionEvent::POP_START)) { in InitController()
[all …]
/foundation/ace/ace_engine/frameworks/core/components/common/properties/
Dalignment.cpp52 std::string Alignment::GetAlignmentStr(TextDirection direction) const in GetAlignmentStr()
57 result = direction == TextDirection::RTL ? "Alignment.TopEnd" : "Alignment.TopStart"; in GetAlignmentStr()
61 result = direction == TextDirection::RTL ? "Alignment.TopStart" : "Alignment.TopEnd"; in GetAlignmentStr()
63 result = direction == TextDirection::RTL ? "Alignment.End" : "Alignment.Start"; in GetAlignmentStr()
67 result = direction == TextDirection::RTL ? "Alignment.Start" : "Alignment.End"; in GetAlignmentStr()
69 result = direction == TextDirection::RTL ? "Alignment.BottomEnd" : "Alignment.BottomStart"; in GetAlignmentStr()
73 result = direction == TextDirection::RTL ? "Alignment.BottomStart" : "Alignment.BottomEnd"; in GetAlignmentStr()
Dborder.h282 void SetBorderImageWidth(const Dimension& width, BorderImageDirection direction) in SetBorderImageWidth() argument
284 if (direction == BorderImageDirection::TOP) { in SetBorderImageWidth()
286 } else if (direction == BorderImageDirection::LEFT) { in SetBorderImageWidth()
288 } else if (direction == BorderImageDirection::RIGHT) { in SetBorderImageWidth()
290 } else if (direction == BorderImageDirection::BOTTOM) { in SetBorderImageWidth()
294 void SetBorderImageSlice(const Dimension& slice, BorderImageDirection direction) in SetBorderImageSlice() argument
296 if (direction == BorderImageDirection::TOP) { in SetBorderImageSlice()
298 } else if (direction == BorderImageDirection::LEFT) { in SetBorderImageSlice()
300 } else if (direction == BorderImageDirection::RIGHT) { in SetBorderImageSlice()
302 } else if (direction == BorderImageDirection::BOTTOM) { in SetBorderImageSlice()
[all …]
/foundation/ace/ace_engine/frameworks/core/components/marquee/
Drosen_render_marquee.cpp38 auto direction = u_charDirection(charInStr); in GetTextDirection() local
39 if (direction == UCharDirection::U_LEFT_TO_RIGHT) { in GetTextDirection()
42 …if (direction == UCharDirection::U_RIGHT_TO_LEFT || direction == UCharDirection::U_RIGHT_TO_LEFT_A… in GetTextDirection()
Dflutter_render_marquee.cpp46 auto direction = u_charDirection(charInStr); in GetTextDirection() local
47 if (direction == UCharDirection::U_LEFT_TO_RIGHT) { in GetTextDirection()
50 …if (direction == UCharDirection::U_RIGHT_TO_LEFT || direction == UCharDirection::U_RIGHT_TO_LEFT_A… in GetTextDirection()
/foundation/ace/ace_engine/adapter/ohos/osal/
Djs_accessibility_manager.h83 void FocusMoveSearch(const long elementId, const int direction, const int requestId,
103 void FocusMoveSearch(const long elementId, const int direction, const int requestId,
152 …::list<RefPtr<AccessibilityNode>>& nodeList, RefPtr<AccessibilityNode>& node, const int direction);
154 …::list<RefPtr<AccessibilityNode>>& nodeList, RefPtr<AccessibilityNode>& node, const int direction);
159 bool CheckBetterRect(Rect nodeRect, const int direction, Rect itemRect, Rect tempBest);
160 bool IsCandidateRect(Rect nodeRect, Rect itemRect, const int direction);
161 bool OutrightBetter(Rect nodeRect, const int direction, Rect Rect1, Rect Rect2);
162 bool CheckRectBeam(Rect nodeRect, Rect itemRect, const int direction);
163 bool IsToDirectionOf(Rect nodeRect, Rect itemRect, const int direction);
164 double MajorAxisDistanceToFarEdge(Rect nodeRect, Rect itemRect, const int direction);
[all …]
/foundation/graphic/ui/frameworks/dock/
Dfocus_manager.cpp55 bool FocusManager::RequestFocusByDirection(uint8_t direction) in RequestFocusByDirection() argument
59 if (GetNextFocus(focusView_, candidate, direction)) { in RequestFocusByDirection()
66 …ger::CompareCandidates(UIView* focusedView, UIView*& candidate, UIView* current, uint8_t direction) in CompareCandidates() argument
72 switch (direction) { in CompareCandidates()
184 bool FocusManager::GetNextFocus(UIView* focusedView, UIView*& candidate, uint8_t direction) in GetNextFocus() argument
204 … if (GetNextFocus(focusedView, candidate, static_cast<UIViewGroup*>(child), direction)) { in GetNextFocus()
208 if (GetNextFocus(focusedView, candidate, child, direction)) { in GetNextFocus()
224 …ocusManager::GetNextFocus(UIView* focusedView, UIView*& candidate, UIView* view, uint8_t direction) in GetNextFocus() argument
230 if (CompareCandidates(focusedView, candidate, current, direction)) { in GetNextFocus()
237 …r::GetNextFocus(UIView* focusedView, UIView*& candidate, UIViewGroup* viewGroup, uint8_t direction) in GetNextFocus() argument
[all …]
/foundation/ace/ace_engine/adapter/ohos/services/uiservice/dialog_ui/dialog_picker/js/pages/index/
Dindex.css3 flex-direction: column;
20 flex-direction: column;
36 flex-direction: column;
41 flex-direction: row;
51 flex-direction: column;
97 flex-direction: row;
104 flex-direction: column;
/foundation/graphic/ui/interfaces/innerkits/dock/
Dfocus_manager.h86 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 …l GetNextFocus(UIView* focusedView, UIView*& candidate, UIViewGroup* viewGroup, uint8_t direction);
97 …ool CompareCandidates(UIView* focusedView, UIView*& candidate, UIView* current, uint8_t direction);
/foundation/graphic/ui/interfaces/kits/layout/
Dlist_layout.h35 ListLayout(const uint8_t direction = VERTICAL);
47 void SetDirection(uint8_t direction);
63 void SetLayoutDirect(uint8_t direction);
/foundation/ace/ace_engine/frameworks/core/components/grid/
Dgrid_component.cpp38 void GridComponent::SetDirection(FlexDirection direction) in SetDirection() argument
40 if (direction < FlexDirection::ROW || direction > FlexDirection::COLUMN_REVERSE) { in SetDirection()
41 LOGW("Invalid direction %{public}d", direction); in SetDirection()
44 direction_ = direction; in SetDirection()
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/avrcp_ct/
Davrcp_ct_gap.cpp39 avctInfo.direction = OUTGOING; in RegisterSecurity()
45 avctBrinfo.direction = OUTGOING; in RegisterSecurity()
62 avctInfo.direction = OUTGOING; in UnregisterSecurity()
67 avctBrinfo.direction = OUTGOING; in UnregisterSecurity()
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/rfcomm/
Drfcomm_gap.c33 … LOG_INFO("%{public}s result:%hu, direction:%{public}d.", __func__, result, serviceInfo.direction); in RfcommRecvSessionSecurityResult()
37 securityRslt.direction = serviceInfo.direction; in RfcommRecvSessionSecurityResult()
/foundation/distributedschedule/dmsfwk/services/dtbschedmgr/test/jsDmsDemo/dmsDemo/entry/src/main/js/RemoteAbility/pages/index/
Dindex.css19 flex-direction: column;
38 flex-direction: row;
49 flex-direction: column;
54 flex-direction: row;
79 flex-direction: row;
99 flex-direction: column;
130 flex-direction: row;
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/avrcp_tg/
Davrcp_tg_gap.cpp39 avctInfo.direction = OUTGOING; in RegisterSecurity()
45 avctBrinfo.direction = OUTGOING; in RegisterSecurity()
62 avctInfo.direction = OUTGOING; in UnregisterSecurity()
67 avctBrinfo.direction = OUTGOING; in UnregisterSecurity()
/foundation/ace/ace_engine/frameworks/core/pipeline/base/
Dsole_child_component.h56 void SetTextDirection(TextDirection direction) override in SetTextDirection() argument
58 RenderComponent::SetTextDirection(direction); in SetTextDirection()
61 child->SetTextDirection(direction); in SetTextDirection()
/foundation/multimodalinput/input/service/window_manager/src/
Dinput_windows_manager.cpp146 item.seatName.c_str(), item.logicWidth, item.logicHeight, item.direction); in PrintDisplayDebugInfo()
210 void OHOS::MMI::InputWindowsManager::TurnTouchScreen(PhysicalDisplayInfo* info, Direction direction, in TurnTouchScreen() argument
214 if (direction == Direction0) { in TurnTouchScreen()
218 if (direction == Direction90) { in TurnTouchScreen()
226 if (direction == Direction180) { in TurnTouchScreen()
232 if (direction == Direction270) { in TurnTouchScreen()
240 …utWindowsManager::TransformOfDisplayPoint(struct libinput_event_touch* touch, Direction& direction, in TransformOfDisplayPoint() argument
270 direction = info->direction; in TransformOfDisplayPoint()
271 TurnTouchScreen(info, direction, localLogcialX, localLogcialY); in TransformOfDisplayPoint()
278 if (direction == Direction0 || direction == Direction180) { in TransformOfDisplayPoint()
[all …]
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/pbap_pse/
Dpbap_pse_gap.cpp35 securityInfoL2cap.direction = INCOMING; in Register()
49 securityInfoRfcomm.direction = INCOMING; in Register()
72 securityInfoL2cap.direction = INCOMING; in Deregister()
83 securityInfoRfcomm.direction = INCOMING; in Deregister()
/foundation/ace/ace_engine/frameworks/bridge/declarative_frontend/jsview/
Djs_flex_impl.cpp98 auto direction = directionVal->ToNumber<int32_t>(); in CreateFlexComponent() local
99 if (direction >= 0 && direction <= DIRECTION_MAX_VALUE) { in CreateFlexComponent()
100 flex->SetDirection((FlexDirection)direction); in CreateFlexComponent()
130 auto direction = directionVal->ToNumber<int32_t>(); in CreateWrapComponent() local
131 if (direction >= 0 && direction <= DIRECTION_MAX_VALUE) { in CreateWrapComponent()
133 if (direction <= 1) { in CreateWrapComponent()
134 direction += 2 * (wrapVal - 1); in CreateWrapComponent()
136 direction -= 2 * (wrapVal - 1); in CreateWrapComponent()
138 wrapComponent->SetDirection((WrapDirection)direction); in CreateWrapComponent()

12345678910>>...19