/ohos5.0/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibleabilityclient_fuzzer/ |
H A D | accessibleabilityclient_fuzzer.cpp | 59 position += GetObject<int32_t>(posX, &data[position], size - position); in GenerateRect() 60 position += GetObject<int32_t>(posY, &data[position], size - position); in GenerateRect() 63 position += GetObject<int32_t>(posX, &data[position], size - position); in GenerateRect() 64 position += GetObject<int32_t>(posY, &data[position], size - position); in GenerateRect() 73 position += GetObject<int32_t>(int32Data, &data[position], size - position); in GenerateRangeInfo() 76 position += GetObject<int32_t>(int32Data, &data[position], size - position); in GenerateRangeInfo() 90 position += GetObject<int32_t>(rowCount, &data[position], size - position); in GenerateGridInfo() 107 position += GetObject<int32_t>(rowSpan, &data[position], size - position); in GenerateGridItemInfo() 249 position += GenerateRect(bounds, &data[position], size - position); in GenerateAccessibilityElementInfoP3() 257 position += GenerateGridInfo(grid, &data[position], size - position); in GenerateAccessibilityElementInfoP3() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/dialog_ui/ams_system_dialog/entry/src/main/ets/utils/ |
H A D | PositionUtils.ts | 71 let position = { 89 position.offsetX = (displayClass.width - position.width) / UI_HALF; 90 position.offsetY = (displayClass.height - position.height) / UI_HALF; 93 position.offsetX = (UI_DEFAULT_WIDTH - position.width) / UI_HALF; 96 return position; 100 let position = { 112 return position; 137 position.offsetX = (displayClass.width - position.width) / UI_HALF; 138 position.offsetY = (displayClass.height - position.height) / UI_HALF; 140 position.offsetX = (UI_DEFAULT_WIDTH - position.width) / UI_HALF; [all …]
|
/ohos5.0/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibilitysystemabilityclient_fuzzer/ |
H A D | accessibilitysystemabilityclient_fuzzer.cpp | 78 position += GetObject<int64_t>(componentId, &data[position], size - position); in CreateEventInfoFirstPart() 81 position += GetObject<int32_t>(windowId, &data[position], size - position); in CreateEventInfoFirstPart() 84 position += GetObject<int32_t>(index, &data[position], size - position); in CreateEventInfoFirstPart() 86 position += GetObject<int32_t>(index, &data[position], size - position); in CreateEventInfoFirstPart() 88 position += GetObject<int32_t>(index, &data[position], size - position); in CreateEventInfoFirstPart() 91 position += GetObject<int32_t>(itemCounts, &data[position], size - position); in CreateEventInfoFirstPart() 103 position += GetObject<int64_t>(timeStamp, &data[position], size - position); in CreateEventInfoFirstPart() 109 position += GetObject<ActionType>(action, &data[position], size - position); in CreateEventInfoFirstPart() 118 position += GetObject<int32_t>(pageId, &data[position], size - position); in CreateEventInfoFirstPart() 128 position += GetObject<char>(name[i], &data[position], size - position); in CreateEventInfoSecondPart() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_command_parser.cpp | 88 if (!position.headValid || !position.tailValid || position.endPos < HFP_AG_AT_HEAD_SIZE || in Extract() 89 (position.setPos >= position.endPos) || (position.getPos >= position.endPos)) { in Extract() 96 cmdLen = position.endPos - position.startPos + 1; in Extract() 109 } else if (!position.setPos && position.getPos) { in Extract() 112 } else if (position.setPos && !position.getPos) { in Extract() 131 for (position.pos = 0; position.pos < len; position.pos++) { in GetCommandPosition() 135 position.startPos = position.pos; in GetCommandPosition() 141 position.setPos = position.pos; in GetCommandPosition() 144 position.getPos = position.pos; in GetCommandPosition() 148 (position.pos > position.startPos) && in GetCommandPosition() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | system_dialog_scheduler.cpp | 127 DialogPosition position; in GetTipsDialogWant() local 195 position.width = position.width_narrow; in GetSelectorDialogPortraitPosition() 196 position.height = position.height_narrow; in GetSelectorDialogPortraitPosition() 211 position.offsetX, position.offsetY, position.height, position.width); in GetSelectorDialogPortraitPosition() 255 position.offsetX = static_cast<int32_t>((width - position.width) / UI_HALF); in GetSelectorDialogLandscapePosition() 258 position.offsetX, position.offsetY, position.height, position.width); in GetSelectorDialogLandscapePosition() 542 position.width = position.width_narrow; in GetDialogPositionAndSize() 543 position.height = position.height_narrow; in GetDialogPositionAndSize() 555 position.window_width = position.window_width / UI_HALF; in GetDialogPositionAndSize() 556 position.window_height = position.window_height / UI_HALF; in GetDialogPositionAndSize() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_component/src/ |
H A D | ArkBadge.ts | 56 isNumber(this.value?.position) ? this.value.position : undefined, 57 isObject(this.value?.position) ? this.value.position?.x : undefined, 58 isObject(this.value?.position) ? this.value.position?.y : undefined, 63 isNumber(this.value?.position) ? this.value.position : undefined, 64 isObject(this.value?.position) ? this.value.position?.x : undefined, 65 isObject(this.value?.position) ? this.value.position?.y : undefined, 82 if (isNumber(this.stageValue?.position) && isNumber(this.value?.position)) { 125 isNumber(this.value?.position) ? this.value.position : undefined, 126 isObject(this.value?.position) ? this.value.position?.x : undefined, 127 isObject(this.value?.position) ? this.value.position?.y : undefined, [all …]
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/ability_manager_service_dialog_test/ |
H A D | ability_manager_service_dialog_test.cpp | 232 position.height = 0; 249 position.height = 0; 266 position.height = 0; 283 position.height = 0; 300 position.height = 0; 317 position.height = 0; 334 position.height = 0; 335 position.offsetX = 0; 355 position.height = 0; 356 position.offsetX = 0; [all …]
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | relative-position.md | 7 ## position section 11 组件.position({x,y}) 14 开发者可以通过position属性来固定组件的位置。以父组件的左上角为坐标原点,添加了position属性的子组件左上角固定在参数x、y指定的坐标点。x,y均延坐标箭头方向递增。 18  27 .position({ x: 30, y: 20 }) 33  67 - 当跟position属性一起使用时,此时会先以父组件的左上角为原点移动到position参数x,y指定的坐标点,然后以position中x,y的值为坐标原点,再将组件按照markAnchor中x… 69 > 由于position的坐标系不受父组件中子组件的对齐方式影响,所以当和position属性一起使用时,markAnchor的坐标系也不受父组件中子组件的对齐方式影响。 73  83 .position({x:50,y:50}) [all …]
|
/ohos5.0/foundation/barrierfree/accessibility/common/interface/test/fuzztest/accessibleabilitychannelstub_fuzzer/ |
H A D | accessibleabilitychannelstub_fuzzer.cpp | 119 position += GetObject<int32_t>(accessibilityWindowId, &data[position], size - position); in FuzzHandleSearchElementInfoByAccessibilityId() 120 position += GetObject<int64_t>(elementId, &data[position], size - position); in FuzzHandleSearchElementInfoByAccessibilityId() 146 position += GetObject<int32_t>(accessibilityWindowId, &data[position], size - position); in FuzzHandleSearchElementInfosByText() 147 position += GetObject<int64_t>(elementId, &data[position], size - position); in FuzzHandleSearchElementInfosByText() 151 position += GetObject<char>(name[i], data + position, size - position); in FuzzHandleSearchElementInfosByText() 181 position += GetObject<int32_t>(accessibilityWindowId, &data[position], size - position); in FuzzHandleFindFocusedElementInfo() 182 position += GetObject<int64_t>(elementId, &data[position], size - position); in FuzzHandleFindFocusedElementInfo() 183 position += GetObject<int32_t>(focusType, &data[position], size - position); in FuzzHandleFindFocusedElementInfo() 212 position += GetObject<int64_t>(elementId, &data[position], size - position); in FuzzHandleFocusMoveSearch() 213 position += GetObject<int32_t>(direction, &data[position], size - position); in FuzzHandleFocusMoveSearch() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/dialog_ui/ams_system_dialog/entry/src/main/ets/ServiceExtAbility/ |
H A D | TipsServiceExtAbility.ts | 38 globalThis.position = PositionUtils.getTipsDialogPosition(); 41 let position = PositionUtils.getTipsDialogPosition(); 42 …if (position.offsetX !== globalThis.position.offsetX || position.offsetY !== globalThis.position.o… 43 win.moveTo(position.offsetX, position.offsetY); 45 …if (position.width !== globalThis.position.width || position.height !== globalThis.position.height… 46 win.resetSize(position.width, position.height); 48 globalThis.position = position; 56 left: globalThis.position.offsetX, 57 top: globalThis.position.offsetY, 58 width: globalThis.position.width, [all …]
|
H A D | SelectorServiceExtAbility.ts | 167 …if (position.offsetX !== globalThis.position.offsetX || position.offsetY !== globalThis.position.o… 168 win.moveTo(position.offsetX, position.offsetY); 170 …if (position.width !== globalThis.position.width || position.height !== globalThis.position.height… 171 win.resetSize(position.width, position.height); 173 globalThis.position = position; 197 top: globalThis.position.offsetY, 198 width: globalThis.position.width, 292 left: globalThis.position.offsetX, 293 top: globalThis.position.offsetY, 294 width: globalThis.position.width, [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | jsShape.js | 34 position(position) { argument 35 return super.position(position); 80 position(position) { method in CircleShape 81 return super.position(position); 108 position(position) { method in PathShape 109 return super.position(position); 148 position(position) { argument 149 return super.position(position);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_result_set.cpp | 170 if (position < 0) { in MoveTo() 175 if (position >= count_) { in MoveTo() 180 if (position_ == position) { in MoveTo() 202 int position = GetPosition(); in IsFirst() local 206 if (position == 0) { in IsFirst() 214 int position = GetPosition(); in IsLast() local 245 if (position >= count) { in IsAfterLast() 254 position_ = position; in MoveToForCacheFullEntryMode() 267 if (position >= cacheStartPosition_ && position < cacheEndPosition) { in MoveToForCacheEntryIdMode() 269 position_ = position; in MoveToForCacheEntryIdMode() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | text_utils.h | 35 inline CharType GetCharType(const std::wstring& value, int32_t position) in GetCharType() argument 37 if (position < 0 || position >= static_cast<int32_t>(value.size())) { in GetCharType() 42 auto positionChar = value[position]; in GetCharType() 53 return GetCharType(wstring, position) == type; in IsSameCharType() 58 for (int32_t i = position - 1; i >= 0; --i) { in FindSameCharTypeStart() 68 for (int32_t i = position; i < length; ++i) { in FindSameCharTypeEnd() 76 inline TextSelection GetRangeOfSameType(const std::string& str, int32_t position) in GetRangeOfSameType() argument 78 TextSelection selection = TextSelection(position, position); in GetRangeOfSameType() 81 CharType type = GetCharType(wstring, position); in GetRangeOfSameType() 83 selection.extentOffset = position + 1; in GetRangeOfSameType() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/ |
H A D | default.scss | 64 position: static; 73 position: static; 82 position: fixed; 129 position: fixed; 139 position: fixed; 158 position: fixed; 221 position: fixed; 230 position: fixed; 239 position: fixed; 248 position: fixed; [all …]
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/common/ |
H A D | hap_byte_buffer.cpp | 112 position += sizeof(long long); in GetInt64() 146 position += sizeof(int32_t); in GetInt32() 184 position += sizeof(uint32_t); in GetUInt32() 232 position = pos; in SetPosition() 238 if (position >= capacity || limit > capacity || position >= limit || buffer == nullptr) { in Slice() 250 position = 0; in Slice() 257 return position; in GetPosition() 274 return limit - position; in Remaining() 279 return position < limit; in HasRemaining() 284 position = 0; in Clear() [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/resources/demuxer_res/ |
H A D | webvtt_test2.vtt | 4 00:00:00.030 --> 00:00:01.110 position:50% line:94% align:middle 7 00:00:02.030 --> 00:00:02.500 position:50% line:94% align:middle 10 00:00:02.900 --> 00:00:02.990 position:50% line:94% align:middle 13 00:00:03.000 --> 00:00:03.500 position:50% line:94% align:middle 16 00:00:10.100 --> 00:00:15.500 position:50% line:94% align:middle 19 00:00:13.000 --> 00:00:23.003 position:50% line:94% align:middle 22 00:00:30.123 --> 00:00:31.111 position:50% line:94% align:middle 25 00:00:35.123 --> 00:01:00.111 position:50% line:94% align:middle 28 00:00:35.123 --> 00:01:00.111 position:50% line:94% align:middle 31 00:01:04.223 --> 00:01:05.111 position:50% line:94% align:middle
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | sub_menu_layout_algorithm.cpp | 83 OffsetF position; in GetSubMenuLayoutOffset() local 87 position.SetX(wrapperSize_.Width() - position.GetX() - size.Width()); in GetSubMenuLayoutOffset() 89 return position; in GetSubMenuLayoutOffset() 125 OffsetF position; in GetSubMenuPosition() local 130 position = parentMenu == nullptr in GetSubMenuPosition() 158 CHECK_NULL_RETURN(scroll, position); in GetSubMenuPosition() 162 CHECK_NULL_RETURN(scroll, position); in GetSubMenuPosition() 171 return position; in GetSubMenuPosition() 187 return position; in VerticalLayoutSubMenuHalfScreen() 203 return position; in VerticalLayoutSubMenu() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/src/reader/ |
H A D | mod.rs | 41 fn position(&self) -> Position; in position() method 144 let position = Position::new(1, 1); in ut_position_new() localVariable 145 assert_eq!(position.line, 1); in ut_position_new() 146 assert_eq!(position.column, 1); in ut_position_new() 160 let position = Position::new(1, 1); in ut_position_line() localVariable 161 assert_eq!(position.line(), 1); in ut_position_line() 175 let position = Position::new(1, 1); in ut_position_column() localVariable 176 assert_eq!(position.column(), 1); in ut_position_column() 192 let position = position.clone(); in ut_position_clone() localVariable 193 assert_eq!(position.line, 1); in ut_position_clone() [all …]
|
H A D | slice_reader.rs | 83 fn position(&self) -> Position { in position() method 92 position.line += 1; in position() 93 position.column = 1; in position() 96 position.column += 1; in position() 100 position in position() 298 let position = slice_reader.position(); in ut_slice_reader_position() localVariable 299 assert_eq!(position.line(), 1); in ut_slice_reader_position() 303 let position = slice_reader.position(); in ut_slice_reader_position() localVariable 308 let position = slice_reader.position(); in ut_slice_reader_position() localVariable 313 let position = slice_reader.position(); in ut_slice_reader_position() localVariable [all …]
|
/ohos5.0/docs/zh-cn/application-dev/ui/ |
H A D | ui-js-animate-background-position-style.md | 1 # background-position样式动画 49 background-position:0px top; 52 background-position:400px top; 55 background-position:0px top; 58 background-position:0px bottom; 61 background-position:0px top; 67 background-position:left top; 70 background-position:50% 50%; 73 background-position:right bottom; 76 background-position:left top;; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | motion_path_evaluator.cpp | 69 MotionPathPosition position; in Evaluate() local 73 position.offset += startPoint_; in Evaluate() 75 return position; in Evaluate() 84 auto position = motionPathEvaluator_->Evaluate(fraction); in Evaluate() local 87 return position.offset.GetX(); in Evaluate() 89 return position.offset.GetY(); in Evaluate() 99 auto position = motionPathEvaluator_->Evaluate(fraction); in Evaluate() local 101 … return DimensionOffset(Dimension(position.offset.GetX()), Dimension(position.offset.GetY())); in Evaluate() 110 auto position = motionPathEvaluator_->Evaluate(fraction); in Evaluate() local 111 return position.rotate; in Evaluate() [all …]
|
/ohos5.0/docs/en/application-dev/ui/ |
H A D | ui-js-animate-background-position-style.md | 1 # Animation with the background-position Attribute 4 …ing the **background-position** attribute (where the first value is the position on the x-axis and… 50 background-position:0px top; 53 background-position:400px top; 56 background-position:0px top; 59 background-position:0px bottom; 62 background-position:0px top; 68 background-position:left top; 71 background-position:50% 50%; 74 background-position:right bottom; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/advanced_ui_component/foldsplitcontainer/interfaces/ |
H A D | foldsplitcontainer.js | 550 z.position.x = 0; 552 z.position.y = 0; 592 q.position.x = 0; 593 q.position.y = 0; 594 r.position.x = 0; 619 s.position.y = r.position.y; 644 s.position.y = r.position.y; 649 s.position.x = q.position.x + q.size.width; 671 k.position.x = 0; 672 l.position.x = 0; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_editing_value_ng.h | 58 void CursorMoveToPosition(int32_t position) in CursorMoveToPosition() 60 caretPosition = std::clamp(position, 0, static_cast<int32_t>(GetWideText().length())); in CursorMoveToPosition() 81 std::string GetValueBeforePosition(int32_t position) const in GetValueBeforePosition() 84 position = std::clamp(position, 0, static_cast<int32_t>(wideText.length())); in GetValueBeforePosition() 85 LOGI("GetValueBeforePosition %{public}d", position); in GetValueBeforePosition() 86 return StringUtils::ToString(wideText.substr(0, position)); in GetValueBeforePosition() 89 std::string GetValueAfterPosition(int32_t position) const in GetValueAfterPosition() 92 position = std::clamp(position, 0, static_cast<int32_t>(wideText.length())); in GetValueAfterPosition() 93 LOGI("GetValueAfterPosition %{public}d", position); in GetValueAfterPosition() 94 return StringUtils::ToString(wideText.substr(position)); in GetValueAfterPosition()
|