/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibilitysystemabilityclient_fuzzer/ |
H A D | accessibilitysystemabilityclient_fuzzer.cpp | 75 size_t& position) in CreateEventInfoFirstPart() 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() 74 CreateEventInfoFirstPart(AccessibilityEventInfo &eventInfo, const uint8_t* data, size_t size, size_t& position) CreateEventInfoFirstPart() argument 122 CreateEventInfoSecondPart(AccessibilityEventInfo &eventInfo, const uint8_t* data, size_t size, size_t& position) CreateEventInfoSecondPart() argument 172 size_t position = 0; CreateEventInfo() local 189 size_t position = 0; RegisterElementOperatorFuzzTest() local 211 size_t position = 0; GetAbilityListFuzzTest() local 232 size_t position = 0; SendEventFuzzTest() local 256 size_t position = 0; SubscribeStateObserverFuzzTest() local 312 size_t position = 0; GetEnabledAbilitiesFuzzTest() local 383 size_t position = 0; SetExecuteActionResultFuzzTest() local [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_command_parser.cpp | 77 HfpAgCommandParser::CommandPosition position {0, 0, 0, 0, 0, false, false}; in Extract() 78 GetCommandPosition(data, len, position); in Extract() 81 position.headValid, in Extract() 82 position.tailValid, in Extract() 83 position.startPos, in Extract() 84 position.setPos, in Extract() 85 position.getPos, in Extract() 86 position.endPos); in Extract() 88 if (!position.headValid || !position in Extract() [all...] |
/foundation/barrierfree/accessibility/interfaces/innerkits/test/fuzztest/accessibleabilityclient_fuzzer/ |
H A D | accessibleabilityclient_fuzzer.cpp | 56 size_t position = 0; in GenerateRect() local 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() 71 size_t position = 0; GenerateRangeInfo() local 86 size_t position = 0; GenerateGridInfo() local 99 size_t position = 0; GenerateGridItemInfo() local 114 GenerateAccessibilityElementInfoP1(OHOS::Accessibility::AccessibilityElementInfo &sourceElementInfo, const uint8_t* data, size_t size, size_t& position) GenerateAccessibilityElementInfoP1() argument 170 GenerateAccessibilityElementInfoP2(OHOS::Accessibility::AccessibilityElementInfo &sourceElementInfo, const uint8_t* data, size_t size, size_t& position) GenerateAccessibilityElementInfoP2() argument 224 GenerateAccessibilityElementInfoP3(OHOS::Accessibility::AccessibilityElementInfo &sourceElementInfo, const uint8_t* data, size_t size, size_t& position) GenerateAccessibilityElementInfoP3() argument 282 size_t position = 0; GenerateAccessibilityElementInfo() local 292 size_t position = 0; GenerateAccessibilityWindowInfo() local 327 size_t position = 0; GenerateAccessibilityEventInfo() local 424 Accessibility::AccessibilityGesturePosition position; DoSomethingInterestingWithInjectGesture() local [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | system_dialog_scheduler.cpp | 98 const std::string DIALOG_POSITION = "position"; 127 DialogPosition position; in GetTipsDialogWant() local 128 GetDialogPositionAndSize(DialogType::DIALOG_TIPS, position); in GetTipsDialogWant() 136 want.SetParam(DIALOG_POSITION, GetDialogPositionParams(position)); in GetTipsDialogWant() 149 DialogPosition position; in GetJumpInterceptorDialogWant() local 150 GetDialogPositionAndSize(DialogType::DIALOG_JUMP_INTERCEPTOR, position); in GetJumpInterceptorDialogWant() 160 targetWant.SetParam(DIALOG_POSITION, GetDialogPositionParams(position)); in GetJumpInterceptorDialogWant() 167 DialogPosition &position, float densityPixels, int lineNums) const in DialogPortraitPositionAdaptive() 170 position.height = static_cast<int32_t>(UI_SELECTOR_PORTRAIT_PHONE_H3 * densityPixels); in DialogPortraitPositionAdaptive() 173 position in DialogPortraitPositionAdaptive() 166 DialogPortraitPositionAdaptive( DialogPosition &position, float densityPixels, int lineNums) const DialogPortraitPositionAdaptive() argument 183 GetSelectorDialogPortraitPosition( DialogPosition &position, int32_t height, int32_t width, int lineNums, float densityPixels) const GetSelectorDialogPortraitPosition() argument 214 DialogLandscapePositionAdaptive( DialogPosition &position, float densityPixels, int lineNums) const DialogLandscapePositionAdaptive() argument 231 GetSelectorDialogLandscapePosition( DialogPosition &position, int32_t height, int32_t width, int lineNums, float densityPixels) const GetSelectorDialogLandscapePosition() argument 357 DialogPosition position; GetPcSelectorDialogWant() local 505 DialogPositionAdaptive(DialogPosition &position, int lineNums) const DialogPositionAdaptive() argument 526 GetDialogPositionAndSize(DialogType type, DialogPosition &position, int lineNums) const GetDialogPositionAndSize() argument [all...] |
/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() 51 inline bool IsSameCharType(const std::wstring& wstring, int32_t position, CharType type) in IsSameCharType() argument 53 return GetCharType(wstring, position) == type; in IsSameCharType() 56 inline int32_t FindSameCharTypeStart(const std::wstring& wstring, int32_t position, CharType type) in FindSameCharTypeStart() argument 58 for (int32_t i = position - 1; i >= 0; --i) { in FindSameCharTypeStart() 66 inline int32_t FindSameCharTypeEnd(const std::wstring& wstring, int32_t position, int32_t length, CharType type) in FindSameCharTypeEnd() argument 68 for (int32_t i = position; in FindSameCharTypeEnd() 76 GetRangeOfSameType(const std::string& str, int32_t position) GetRangeOfSameType() argument [all...] |
/foundation/barrierfree/accessibility/common/interface/test/fuzztest/accessibleabilitychannelstub_fuzzer/ |
H A D | accessibleabilitychannelstub_fuzzer.cpp | 111 size_t position = 0; in FuzzHandleSearchElementInfoByAccessibilityId() local 119 position += GetObject<int32_t>(accessibilityWindowId, &data[position], size - position); in FuzzHandleSearchElementInfoByAccessibilityId() 120 position += GetObject<int64_t>(elementId, &data[position], size - position); in FuzzHandleSearchElementInfoByAccessibilityId() 121 GetObject<int32_t>(requestId, &data[position], size - position); in FuzzHandleSearchElementInfoByAccessibilityId() 138 size_t position in FuzzHandleSearchElementInfosByText() local 172 size_t position = 0; FuzzHandleFindFocusedElementInfo() local 202 size_t position = 0; FuzzHandleFocusMoveSearch() local 232 size_t position = 0; FuzzHandleExecuteAction() local 259 size_t position = 0; FuzzHandleGetWindow() local 297 size_t position = 0; FuzzHandleGetWindowsByDisplayId() local [all...] |
/foundation/ability/ability_runtime/test/unittest/ability_manager_service_dialog_test/ |
H A D | ability_manager_service_dialog_test.cpp | 231 DialogPosition position; in HWTEST_F() local 232 position.height = 0; in HWTEST_F() 235 systemDialogScheduler_->DialogPortraitPositionAdaptive(position, densityPixels, lineNums); in HWTEST_F() 236 EXPECT_NE(position.height, 0); in HWTEST_F() 248 DialogPosition position; in HWTEST_F() local 249 position.height = 0; in HWTEST_F() 252 systemDialogScheduler_->DialogPortraitPositionAdaptive(position, densityPixels, lineNums); in HWTEST_F() 253 EXPECT_NE(position.height, 0); in HWTEST_F() 265 DialogPosition position; in HWTEST_F() local 266 position in HWTEST_F() 282 DialogPosition position; HWTEST_F() local 299 DialogPosition position; HWTEST_F() local 316 DialogPosition position; HWTEST_F() local 333 DialogPosition position; HWTEST_F() local 354 DialogPosition position; HWTEST_F() local 375 DialogPosition position; HWTEST_F() local 396 DialogPosition position; HWTEST_F() local 417 DialogPosition position; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_result_set.cpp | 148 int64_t position = GetPosition(); in Move() local 149 int64_t aimPos = position + offset; in Move() 159 int SQLiteSingleVerResultSet::MoveTo(int position) const in MoveTo() 166 position_ = (position >= 0) ? 0 : INIT_POSITION; in MoveTo() 170 if (position < 0) { in MoveTo() 172 LOGW("[SqlSinResSet][MoveTo] Target Position=%d invalid.", position); in MoveTo() 175 if (position >= count_) { in MoveTo() 177 LOGW("[SqlSinResSet][MoveTo] Target Position=%d Exceed Count=%d.", position, count_); in MoveTo() 180 if (position_ == position) { in MoveTo() 184 return MoveToForCacheFullEntryMode(position); in MoveTo() 202 int position = GetPosition(); IsFirst() local 214 int position = GetPosition(); IsLast() local 227 int position = GetPosition(); IsBeforeFirst() local 240 int position = GetPosition(); IsAfterLast() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | motion_path_evaluator.cpp | 69 MotionPathPosition position; in Evaluate() local 71 if (RosenSvgPainter::GetMotionPathPosition(motionPathOption_.GetPath(), progress, position)) { in Evaluate() 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 in Evaluate() 110 auto position = motionPathEvaluator_->Evaluate(fraction); Evaluate() local 121 auto position = motionPathEvaluator_->Evaluate(fraction); Evaluate() local [all...] |
/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, in GetValueAfterPosition() [all...] |
/foundation/communication/netmanager_ext/utils/log/src/ |
H A D | netmgr_ext_log_wrapper.cpp | 31 auto position = file.find_last_of("/"); in GetBriefFileName() local 32 if (position != std::string::npos) { in GetBriefFileName() 33 return file.substr(position + 1); in GetBriefFileName() 36 position = file.find_last_of("\\"); in GetBriefFileName() 37 if (position != std::string::npos) { in GetBriefFileName() 38 return file.substr(position + 1); in GetBriefFileName()
|
/foundation/arkui/ace_engine/advanced_ui_component/foldsplitcontainer/interfaces/ |
H A D | foldsplitcontainer.js | 65 position: { x: 0, y: 0 }, 339 Column.position({ 340 start: LengthMetrics.vp(this.primaryLayout.position.x), 341 top: LengthMetrics.vp(this.primaryLayout.position.y), 360 Column.position({ 361 start: LengthMetrics.vp(this.secondaryLayout.position.x), 362 top: LengthMetrics.vp(this.secondaryLayout.position.y), 388 Column.position({ 389 start: LengthMetrics.vp(this.extraLayout.position.x), 390 top: LengthMetrics.vp(this.extraLayout.position [all...] |
/foundation/barrierfree/accessibility/common/interface/src/parcel/ |
H A D | accessibility_gesture_inject_path_parcel.cpp | 38 AccessibilityGesturePosition position; in ReadFromParcel() local 39 READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionX_); in ReadFromParcel() 40 READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionY_); in ReadFromParcel() 41 AddPosition(position); in ReadFromParcel() 50 for (auto &position : positions_) { in Marshalling() 51 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionX_); in Marshalling() 52 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionY_); in Marshalling()
|
/foundation/barrierfree/accessibility/common/interface/test/unittest/mock/ |
H A D | mock_accessibility_gesture_inject_path_parcel.cpp | 38 AccessibilityGesturePosition position; in ReadFromParcel() local 39 READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionX_); in ReadFromParcel() 40 READ_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionY_); in ReadFromParcel() 41 AddPosition(position); in ReadFromParcel() 50 for (auto &position : positions_) { in Marshalling() 51 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionX_); in Marshalling() 52 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(Float, parcel, position.positionY_); in Marshalling()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_steps_interpolator.cpp | 25 RSStepsInterpolator::RSStepsInterpolator(int32_t steps, StepsCurvePosition position) in RSStepsInterpolator() argument 26 : steps_(steps <= 0 ? 1 : steps), position_(position) in RSStepsInterpolator() 29 RSStepsInterpolator::RSStepsInterpolator(uint64_t id, int32_t steps, StepsCurvePosition position) in RSStepsInterpolator() argument 30 : RSInterpolator(id), steps_(steps <= 0 ? 1 : steps), position_(position) in RSStepsInterpolator() 54 int32_t position = 0; in Unmarshalling() local 55 if (!(parcel.ReadInt32(steps) && parcel.ReadInt32(position))) { in Unmarshalling() 59 return new RSStepsInterpolator(id, steps, static_cast<StepsCurvePosition>(position)); in Unmarshalling()
|
/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | scroll_motion.cpp | 27 ScrollMotion::ScrollMotion(double position, double velocity, const ExtentPair& extent, in ScrollMotion() argument 29 : position_(position), velocity_(velocity), leadingExtent_(extent.Leading()), trailingExtent_(extent.Trailing()) in ScrollMotion() 38 if (position > initExtent.Trailing()) { in ScrollMotion() 39 springMotion_ = MakeOverScrollMotion(position, velocity); in ScrollMotion() 40 } else if (position < initExtent.Leading()) { in ScrollMotion() 41 springMotion_ = MakeUnderScrollMotion(position, velocity); in ScrollMotion() 62 // do not move yet, return init position. in GetCurrentPosition()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_badge_ffi.cpp | 23 BadgeParameters CreateBase(CJBadgeStyle style, int32_t position) in CreateBase() argument 26 badgeParameters.badgePosition = position; in CreateBase() 36 void FfiOHOSAceFrameworkBadgeCreate(int32_t count, CJBadgeStyle style, int32_t position, int32_t maxCount) in FfiOHOSAceFrameworkBadgeCreate() argument 38 BadgeParameters badgeParameters = CreateBase(style, position); in FfiOHOSAceFrameworkBadgeCreate() 44 void FfiOHOSAceFrameworkBadgeCreateText(const char* value, CJBadgeStyle style, int32_t position) in FfiOHOSAceFrameworkBadgeCreateText() argument 46 BadgeParameters badgeParameters = CreateBase(style, position); in FfiOHOSAceFrameworkBadgeCreateText()
|
/foundation/multimedia/media_foundation/src/plugin/ |
H A D | plugin_buffer.cpp | 56 size_t Memory::Write(const uint8_t* in, size_t writeSize, size_t position) in Write() argument 59 if (position == MEM_INVALID_POSITION) { in Write() 62 start = std::min(position, capacity); in Write() 72 size_t Memory::Read(uint8_t* out, size_t readSize, size_t position) in Read() argument 76 if (position != MEM_INVALID_POSITION) { in Read() 77 start = std::min(position, size); in Read() 87 const uint8_t* Memory::GetReadOnlyData(size_t position) in GetReadOnlyData() argument 89 if (position > capacity) { in GetReadOnlyData() 92 return GetRealAddr() + position; in GetReadOnlyData() 95 uint8_t* Memory::GetWritableAddr(size_t estimatedWriteSize, size_t position) in GetWritableAddr() argument 105 UpdateDataSize(size_t realWriteSize, size_t position) UpdateDataSize() argument [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_path.cpp | 85 Drawing::Point position; in GetPosTan() local 87 bool ret = drPath_->GetPositionAndTangent(distance, position, tangent, false); in GetPosTan() 92 pos.data_[0] = position.GetX(); in GetPosTan() 93 pos.data_[1] = position.GetY(); in GetPosTan() 101 Vector2f position; in GetPosTan() local 102 bool res = GetPosTan(distance, position, degrees); in GetPosTan() 107 pos[0] = position[0]; in GetPosTan() 108 pos[1] = position[1]; in GetPosTan()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | sub_menu_layout_algorithm.cpp | 44 OffsetF position = GetSubMenuLayoutOffset(layoutWrapper, parentMenuItem, size, in Layout() local 46 geometryNode->SetMarginFrameOffset(position); in Layout() 50 auto bottomRightPoint = position + OffsetF(size.Width(), size.Height()); in Layout() 66 parentPattern->AddHoverRegions(position + wrapperOffset, bottomRightPoint + wrapperOffset); in Layout() 76 OffsetF position; in GetSubMenuLayoutOffset() local 78 position = MenuLayoutAvoidAlgorithm(parentMenuItem, size, stacked, layoutWrapper); in GetSubMenuLayoutOffset() 80 position.SetX(wrapperSize_.Width() - position.GetX() - size.Width()); in GetSubMenuLayoutOffset() 82 return position; in GetSubMenuLayoutOffset() 118 OffsetF position; in GetSubMenuPosition() local 168 VerticalLayoutSubMenuHalfScreen( const SizeF& size, float position, const SizeF& menuItemSize) VerticalLayoutSubMenuHalfScreen() argument 191 VerticalLayoutSubMenu(const SizeF& size, float position, const SizeF& menuItemSize) VerticalLayoutSubMenu() argument 207 HorizontalLayoutSubMenu( const SizeF& size, float position, const SizeF& menuItemSize, LayoutWrapper* layoutWrapper) HorizontalLayoutSubMenu() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_particle_context.cpp | 31 double positionXPx = Dimension(field.position[0], DimensionUnit::VP).ConvertToPx(); in UpdateDisturbance() 32 double positionYPx = Dimension(field.position[1], DimensionUnit::VP).ConvertToPx(); in UpdateDisturbance() 34 Rosen::Vector2f position = {static_cast<float>(positionXPx), static_cast<float>(positionYPx)}; in UpdateDisturbance() local 36 static_cast<Rosen::ShapeType>(field.shape), size, position, field.feather, field.noiseScale, in UpdateDisturbance() 55 std::optional<Rosen::Vector2f> position = std::nullopt; in updateEmitterPosition() local 56 if (prop.position) { in updateEmitterPosition() 57 double positionXPx = Dimension(prop.position->x, DimensionUnit::VP).ConvertToPx(); in updateEmitterPosition() 58 double positionYPx = Dimension(prop.position->y, DimensionUnit::VP).ConvertToPx(); in updateEmitterPosition() 59 position = { static_cast<float>(positionXPx), static_cast<float>(positionYPx) }; in updateEmitterPosition() 70 prop.index, position, siz in updateEmitterPosition() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_pattern.h | 269 void SetSelectedMode(SelectedMode selectedMode, uint32_t position, bool newTabBar = false) in SetSelectedMode() argument 271 if (selectedModes_.size() <= position) { in SetSelectedMode() 276 selectedModes_.insert(selectedModes_.begin() + position, selectedMode); in SetSelectedMode() 280 selectedModes_[position] = selectedMode; in SetSelectedMode() 283 void SetIndicatorStyle(const IndicatorStyle& indicatorStyle, uint32_t position, bool newTabBar = false) in SetIndicatorStyle() argument 285 if (indicatorStyles_.size() <= position) { in SetIndicatorStyle() 291 indicatorStyles_.insert(indicatorStyles_.begin() + position, indicatorStyle); in SetIndicatorStyle() 295 indicatorStyles_[position] = indicatorStyle; in SetIndicatorStyle() 298 void SetTabBarStyle(TabBarStyle tabBarStyle, uint32_t position, bool newTabBar = false) in SetTabBarStyle() argument 300 if (tabBarStyles_.size() <= position) { in SetTabBarStyle() 313 SetBottomTabBarStyle(const BottomTabBarStyle& bottomTabBarStyle, uint32_t position, bool newTabBar = false) SetBottomTabBarStyle() argument 333 SetIconStyle(const IconStyle& iconStyle, uint32_t position, bool newTabBar = false) SetIconStyle() argument 353 SetSymbol(const TabBarSymbol& symbol, uint32_t position, bool newTabBar = false) SetSymbol() argument 506 AddTabBarItemId(int32_t tabBarItemId, uint32_t position, bool newTabBar = false) AddTabBarItemId() argument [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | read_text.cpp | 36 int64_t position = -1; in GetReadTextArg() local 41 if (op.HasProp("position") && !op.GetProp("position").TypeIs(napi_undefined)) { in GetReadTextArg() 43 tie(succ, position) = op.GetProp("position").ToInt64(); in GetReadTextArg() 44 if (!succ || position < 0) { in GetReadTextArg() 45 return { false, position, hasLen, len, nullptr }; in GetReadTextArg() 52 return { false, position, hasLen, len, nullptr }; in GetReadTextArg() 62 return { false, position, hasLen, len, nullptr }; in GetReadTextArg() 66 return { true, position, hasLe in GetReadTextArg() 127 AsyncExec(const std::string &path, std::shared_ptr<AsyncReadTextArg> arg, int64_t position, bool hasLen, size_t len) AsyncExec() argument [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/ |
H A D | common_func.cpp | 180 int64_t position = -1; in GetReadArg() local 189 return { false, nullptr, 0, position, offset }; in GetReadArg() 195 return { false, nullptr, 0, position, offset }; in GetReadArg() 201 return { false, nullptr, 0, position, offset }; in GetReadArg() 204 if (op.HasProp("position") && !op.GetProp("position").TypeIs(napi_undefined)) { in GetReadArg() 205 tie(succ, position) = op.GetProp("position").ToInt64(); in GetReadArg() 206 if (!succ || position < 0) { in GetReadArg() 207 UniError(EINVAL).ThrowErr(env, "option.position shal in GetReadArg() 245 int64_t position = -1; GetWriteArg() local 290 int64_t position; GetReadArgV9() local 351 int32_t position = 0; GetWriteArgV9() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/ |
H A D | scroll_spring_effect.cpp | 33 double position = effect->currentPositionCallback_(); in RegisterSpringCallback() 36 return std::max(minExtent - position, position - maxExtent); in RegisterSpringCallback() 56 double position = currentPositionCallback_(); in ProcessScrollOver() local 65 position, velocity, ExtentPair(minExtent, maxExtent), ExtentPair(initMinExtent, initMaxExtent)); in ProcessScrollOver() 77 double position = currentPositionCallback_(); in ProcessSpringUpdate() local 86 position, ExtentPair(minExtent, maxExtent), ExtentPair(initMinExtent, initMaxExtent)); in ProcessSpringUpdate()
|