Home
last modified time | relevance | path

Searched refs:limits (Results 1 – 25 of 57) sorted by relevance

123

/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui_effect/
H A Dutils.h33 inline float GetLimitedPara(float para, std::pair<float, float> limits = {-INFINITY, INFINITY})
35 return std::clamp(para, limits.first, limits.second);
38 inline Vector3f GetLimitedPara(const Vector3f& para, std::pair<float, float> limits = {-INFINITY, I…
40 …return Vector3f(std::clamp(para.x_, limits.first, limits.second), std::clamp(para.y_, limits.first…
41 std::clamp(para.z_, limits.first, limits.second));
44 inline Vector4f GetLimitedPara(const Vector4f& para, std::pair<float, float> limits = {-INFINITY, I…
46 …return Vector4f(std::clamp(para.x_, limits.first, limits.second), std::clamp(para.y_, limits.first…
47 …std::clamp(para.z_, limits.first, limits.second), std::clamp(para.w_, limits.first, limits.second)…
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/
H A Dsession_utils.h46 inline void CalcFloatWindowRectLimits(const WindowLimits& limits, uint32_t maxFloatingWindowSize, f… in CalcFloatWindowRectLimits() argument
49 minWidth = limits.minWidth_; in CalcFloatWindowRectLimits()
50 …maxWidth = (limits.maxWidth_ == 0 || limits.maxWidth_ >= INT32_MAX) ? INT32_MAX : limits.maxWidth_; in CalcFloatWindowRectLimits()
51 minHeight = limits.minHeight_; in CalcFloatWindowRectLimits()
52 …maxHeight = (limits.maxHeight_ == 0 || limits.maxHeight_ >= INT32_MAX) ? INT32_MAX : limits.maxHei… in CalcFloatWindowRectLimits()
/ohos5.0/base/startup/init/services/etc/passwd_appender/
H A Dpasswd_appender.py110 def handle_passwd_info(passwd_info, limits): argument
115 if gid >= int(limits[0]) and gid <= int(limits[1]):
119 log_str = "error: name={} gid={} is not in range {}".format(name, gid, limits)
122 if uid >= int(limits[0]) and uid <= int(limits[1]):
126 log_str = "error: name={} uid={} is not in range {}".format(name, gid, limits)
131 def check_passwd_file(file_name, limits): argument
143 if not handle_passwd_info(passwd_info, limits):
155 limits = limit.split("-")
157 is_passed = check_passwd_file(file_name, limits)
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dgpu_buffer_vk.cpp49 constexpr uint32_t GetMinBufferAlignment(const VkPhysicalDeviceLimits& limits) in GetMinBufferAlignment() argument
51 return Math::max(static_cast<uint32_t>(limits.minStorageBufferOffsetAlignment), in GetMinBufferAlignment()
52 static_cast<uint32_t>(limits.minUniformBufferOffsetAlignment)); in GetMinBufferAlignment()
55 constexpr uint32_t GetMemoryMapAlignment(const VkPhysicalDeviceLimits& limits) in GetMemoryMapAlignment() argument
58 …static_cast<uint32_t>(limits.minMemoryMapAlignment), static_cast<uint32_t>(limits.nonCoherentAtomS… in GetMemoryMapAlignment()
196 const auto& limits = static_cast<const DevicePlatformDataVk&>(device_.GetPlatformData()) in CreateBufferImpl() local
197 .physicalDeviceProperties.physicalDeviceProperties.limits; in CreateBufferImpl()
199 const uint32_t minBufferAlignment = GetMinBufferAlignment(limits); in CreateBufferImpl()
200 …_t minMapAlignment = (isRingBuffer_ || isPersistantlyMapped_) ? GetMemoryMapAlignment(limits) : 1u; in CreateBufferImpl()
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/
H A Dscene_session_test3.cpp140 WindowLimits limits; variable
141 limits.maxHeight_ = 10;
142 limits.minWidth_ = 0;
143 property->SetWindowLimits(limits);
146 limits.maxHeight_ = 0;
147 limits.minWidth_ = 10;
148 property->SetWindowLimits(limits);
175 WindowLimits limits; variable
176 limits.maxHeight_ = 10;
177 limits.minWidth_ = 10;
[all …]
H A Dscene_session_dirty_manager_test.cpp510 WindowLimits limits; variable
511 limits.maxHeight_ = 1;
512 limits.minHeight_ = 0;
513 limits.maxWidth_ = 0;
514 limits.minWidth_ = 0;
515 property->SetWindowLimits(limits);
521 limits.maxHeight_ = 0;
522 limits.maxWidth_ = 1;
523 property->SetWindowLimits(limits);
529 limits.maxHeight_ = 1;
[all …]
H A Dscene_session_test.cpp1558 WindowLimits limits; variable
1559 limits.maxHeight_ = 0;
1560 limits.minWidth_ = 0;
1588 WindowLimits limits; variable
1589 limits.maxHeight_ = 10;
1590 limits.minWidth_ = 0;
1618 WindowLimits limits; variable
1619 limits.maxHeight_ = 0;
1620 limits.minWidth_ = 10;
1648 WindowLimits limits; variable
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dreminder_data_manager_inner.cpp172 bool ReminderDataManager::CheckShowLimit(std::unordered_map<std::string, int32_t>& limits, int32_t&… in CheckShowLimit() argument
181 auto iter = limits.find(key); in CheckShowLimit()
182 if (iter == limits.end()) { in CheckShowLimit()
183 limits[key] = 1; in CheckShowLimit()
/ohos5.0/drivers/peripheral/wlan/chip/hdi_service/
H A Dwifi_chip_modes.cpp55 comb.limits.push_back(staChipIfaceComb); in MakeComModes()
57 comb.limits.push_back(apChipIfaceComb); in MakeComModes()
59 comb.limits.push_back(p2pChipIfaceComb); in MakeComModes()
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/
H A Dscene_session_dirty_manager.cpp562 auto limits = sessionProperty->GetWindowLimits(); in UpdatePointerAreas() local
564 … " %{public}d, %{public}d, %{public}d", sceneSession->GetWindowName().c_str(), limits.minWidth_, in UpdatePointerAreas()
565 limits.maxWidth_, limits.minHeight_, limits.maxHeight_); in UpdatePointerAreas()
566 if (limits.minWidth_ == limits.maxWidth_ && limits.minHeight_ != limits.maxHeight_) { in UpdatePointerAreas()
570 } else if (limits.minWidth_ != limits.maxWidth_ && limits.minHeight_ == limits.maxHeight_) { in UpdatePointerAreas()
574 } else if (limits.minWidth_ != limits.maxWidth_ && limits.minHeight_ != limits.maxHeight_) { in UpdatePointerAreas()
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-power-brightness-customization.md47 # Brightness limits is 0-255.
155 # Brightness limits is 0-255.
185 # Brightness limits is 0-255.
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-power-charge-current-voltage-limit.md7limits. When a device is being charged, the battery temperature may become excessively high due to…
27 …ee/master/rk3568) as an example to illustrate customization of charging current and voltage limits.
H A Dsubsys-power-brightness-customization.md47 # Brightness limits is 0-255.
155 # Brightness limits is 0-255.
185 # Brightness limits is 0-255.
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dtask_pool_impl.cpp221 int limits = isStart ? minThreads_ : (curThreads_ + 1); in SpawnThreads() local
222 while (curThreads_ < limits) { in SpawnThreads()
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dscene_session.cpp900 auto limits = sessionProperty->GetWindowLimits(); in CheckAspectRatioValid() local
902 if (limits.minWidth_ && limits.maxHeight_ && in CheckAspectRatioValid()
907 } else if (limits.minHeight_ && limits.maxWidth_ && in CheckAspectRatioValid()
914 if (limits.minWidth_ && limits.maxHeight_ && MathHelper::LessNotEqual(ratio, in CheckAspectRatioValid()
915 static_cast<float>(limits.minWidth_) / limits.maxHeight_)) { in CheckAspectRatioValid()
918 } else if (limits.minHeight_ && limits.maxWidth_ && MathHelper::GreatNotEqual(ratio, in CheckAspectRatioValid()
919 static_cast<float>(limits.maxWidth_) / limits.minHeight_)) { in CheckAspectRatioValid()
2481 limits.minWidth_ = SessionUtils::ToLayoutWidth(limits.minWidth_, vpr); in FixRectByLimits()
2482 limits.maxWidth_ = SessionUtils::ToLayoutWidth(limits.maxWidth_, vpr); in FixRectByLimits()
2483 limits.minHeight_ = SessionUtils::ToLayoutHeight(limits.minHeight_, vpr); in FixRectByLimits()
[all …]
/ohos5.0/base/startup/init/test/benchmark/
H A Dbenchmark_fwk.cpp216 static args_vector GetArgs(const std::vector<int> &sizes, const std::vector<int> &limits, int value) in GetArgs() argument
220 for (int limit : limits) { in GetArgs()
/ohos5.0/base/powermgr/display_manager/state_manager/service/etc/
H A Ddisplay.para14 # Brightness limits is 0-255.
/ohos5.0/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_scene_session_impl_test4.cpp196 …WindowLimits limits = windowSceneSessionImpl->GetSystemSizeLimits(displayWidth, displayHeight, dis… variable
197 EXPECT_EQ(limits.minWidth_, minMainWidth);
198 EXPECT_EQ(limits.minHeight_, minMainHeight);
202 limits = windowSceneSessionImpl->GetSystemSizeLimits(displayWidth, displayHeight, displayVpr);
203 EXPECT_EQ(limits.minWidth_, minSubWidth);
204 EXPECT_EQ(limits.minHeight_, minSubHeight);
208 limits = windowSceneSessionImpl->GetSystemSizeLimits(displayWidth, displayHeight, displayVpr);
209 EXPECT_EQ(limits.minWidth_, MIN_FLOATING_WIDTH);
210 EXPECT_EQ(limits.minHeight_, MIN_FLOATING_HEIGHT);
H A Dwindow_scene_session_impl_test2.cpp619 …WindowLimits limits = windowSceneSession->GetSystemSizeLimits(displayWidth, displayHeight, display… variable
620 ASSERT_EQ(limits.minWidth_, minMainWidth);
621 ASSERT_EQ(limits.minHeight_, minMainHeight);
624 limits = windowSceneSession->GetSystemSizeLimits(displayWidth, displayHeight, displayVpr);
625 ASSERT_EQ(limits.minWidth_, minMainWidth);
626 ASSERT_EQ(limits.minHeight_, minMainHeight);
629 limits = windowSceneSession->GetSystemSizeLimits(displayWidth, displayHeight, displayVpr);
630 ASSERT_EQ(limits.minWidth_, minMainWidth);
631 ASSERT_EQ(limits.minHeight_, minMainHeight);
/ohos5.0/docs/en/application-dev/windowmanager/
H A Dwindow-overview.md70 - The application main window and subwindow have the following size limits: [320, 2560] in width a…
72 - The system window has the following size limits: (0, 2560] in width and (0, 2560] in height, bot…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-rowsplit.md13 This component limits the width of its child components through dividers. During initialization, th…
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-common-atomic-layout.md35 … value greater than 0.<br>The value is subjective to the upper and lower limits of the component s…
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-plimits.md14 - sched limiter: limits the time to use CPUs for all processes in a plimits group in a specified pe…
15 - memory limiter: limits the total memory that can be used by all processes in a plimits group.
16 - pids limiter: limits the maximum number of processes that can be mounted in a plimits group.
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-common-atomic-layout.md33 … value greater than 0.<br>The value is subjective to the upper and lower limits of the component s…
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/
H A DREADME.md7 determining performance limits at certain load levels, managing changes in systems or environments,

123