Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 14 of 14) sorted by relevance

/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_comp_info_helper.cpp86 bool SecCompInfoHelper::CheckRectValid(const SecCompRect& rect, const SecCompRect& windowRect) in CheckRectValid() argument
95 if (GreatOrEqual(0.0, rect.width_) || GreatOrEqual(0.0, rect.height_)) { in CheckRectValid()
100 if (GreatNotEqual(ZERO_OFFSET, rect.x_) || GreatNotEqual(ZERO_OFFSET, rect.y_) || in CheckRectValid()
101 GreatNotEqual(rect.x_, curScreenWidth) || GreatNotEqual(rect.y_, curScreenHeight)) { in CheckRectValid()
106 if (GreatOrEqual((rect.x_ + rect.width_), curScreenWidth) || in CheckRectValid()
107 GreatOrEqual((rect.y_ + rect.height_), curScreenHeight)) { in CheckRectValid()
112 if (GreatNotEqual(windowRect.x_, rect.x_) || GreatNotEqual(windowRect.y_, rect.y_) || in CheckRectValid()
113 …GreatNotEqual(rect.width_, windowRect.width_) || GreatNotEqual(rect.height_, windowRect.height_)) { in CheckRectValid()
119 …if (GreatOrEqual((rect.width_ * rect.height_), (curScreenWidth * curScreenHeight * MAX_RECT_PERCEN… in CheckRectValid()
Dsec_comp_info_helper.h46 static bool CheckRectValid(const SecCompRect& rect, const SecCompRect& windowRect);
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
Dsec_comp_info_helper_test.cpp129 SecCompRect rect = { in GetDefaultRect() local
135 return rect; in GetDefaultRect()
146 SecCompRect rect = GetDefaultRect(); variable
148 ASSERT_TRUE(SecCompInfoHelper::CheckRectValid(rect, windowRect));
150 rect.x_ = ServiceTestCommon::TEST_INVALID_DIMENSION;
151 ASSERT_FALSE(SecCompInfoHelper::CheckRectValid(rect, windowRect));
152 rect.x_ = g_testWidth;
154 rect.y_ = ServiceTestCommon::TEST_INVALID_DIMENSION;
155 ASSERT_FALSE(SecCompInfoHelper::CheckRectValid(rect, windowRect));
156 rect.y_ = g_testHeight;
[all …]
/base/powermgr/power_manager/power_dialog/entry/src/main/ets/ServiceExtAbility/
DThermalHighDialogAbility.ts58 private async createWindow(name: string, windowType: number, rect) {
71 await thermalHighWin.moveTo(rect.left, rect.top);
72 await thermalHighWin.resetSize(rect.width, rect.height);
DThermalLowDialogAbility.ts58 private async createWindow(name: string, windowType: number, rect) {
71 await thermalLowWin.moveTo(rect.left, rect.top);
72 await thermalLowWin.resetSize(rect.width, rect.height);
/base/usb/usb_manager/frameworks/dialog/dialog_ui/usb_right_dialog/src/main/ets/ServiceExtAbility/
DUsbDialogAbility.ts74 private async createWindow(name: string, windowType: number, rect): Promise<void> {
79 await usbWin.moveTo(rect.left, rect.top);
80 await usbWin.resetSize(rect.width, rect.height);
/base/inputmethod/imf/services/dialog/entry/src/main/ets/ServiceExtAbility/
DServiceExtAbility.ts91 private async createWindow(config: window.Configuration, rect): Promise<void> {
113 await win.moveTo(rect.left, rect.top);
114 await win.resetSize(rect.width, rect.height);
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/
Dinput_method_panel.cpp256 auto rect = window_->GetRect(); in PanelStatusChange() local
257 …"InputMethodPanel::x:%{public}d, y:%{public}d, w:%{public}u, h:%{public}u", rect.posX_, rect.posY_, in PanelStatusChange()
258 rect.width_, rect.height_); in PanelStatusChange()
260 …imsa->PanelStatusChange(status, { std::move(name), rect.posX_, rect.posY_, rect.width_, rect.heigh… in PanelStatusChange()
/base/usb/usb_manager/frameworks/dialog/functionswitch_ui/usb_function_dialog/src/main/ets/ServiceExtAbility/
DUsbFunctionSwitchWindowAbility.ets105 private async createOrShowUsbWindow(winName: string, windowType: number, rect): Promise<void> {
119 await usbWin.moveTo(rect.left, rect.top);
120 await usbWin.resetSize(rect.width, rect.height);
/base/security/security_component_manager/frameworks/security_component/src/
Dsec_comp_base.cpp181 bool SecCompBase::ParseRect(const nlohmann::json& json, const std::string& tag, SecCompRect& rect) in ParseRect() argument
189 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_X, rect.x_)) { in ParseRect()
193 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_Y, rect.y_)) { in ParseRect()
197 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_WIDTH, rect.width_)) { in ParseRect()
201 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_HEIGHT, rect.height_)) { in ParseRect()
320 SecCompRect rect = other->rect_; in CompareComponentBasicInfo() local
323 rect = rect_; in CompareComponentBasicInfo()
329 rect, windowRect); in CompareComponentBasicInfo()
/base/update/updater/services/ui/driver/
Dgraphic_engine.cpp113 buffInfo_->rect = { 0, 0, static_cast<int16_t>(width_ - 1), static_cast<int16_t>(height_ - 1) }; in GetFBBufferInfo()
/base/startup/init/ueventd/etc/
Dueventd.config53 /dev/rect 0660 1000 1005
/base/security/security_component_manager/interfaces/inner_api/security_component/include/
Dsec_comp_base.h132 bool ParseRect(const nlohmann::json& json, const std::string& tag, SecCompRect& rect);
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
Dmock_pixel_map.cpp379 uint32_t PixelMap::crop(const Rect &rect) in crop() argument