/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | sec_comp_info_helper.cpp | 97 bool SecCompInfoHelper::CheckRectValid(const SecCompRect& rect, const SecCompRect& windowRect) in CheckRectValid() argument 106 if (GreatOrEqual(0.0, rect.width_) || GreatOrEqual(0.0, rect.height_)) { in CheckRectValid() 111 if (GreatNotEqual(ZERO_OFFSET, rect.x_) || GreatNotEqual(ZERO_OFFSET, rect.y_) || in CheckRectValid() 112 GreatNotEqual(rect.x_, curScreenWidth) || GreatNotEqual(rect.y_, curScreenHeight)) { in CheckRectValid() 117 if (GreatOrEqual((rect.x_ + rect.width_), curScreenWidth) || in CheckRectValid() 118 GreatOrEqual((rect in CheckRectValid() [all...] |
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A D | sec_comp_info_helper_test.cpp | 133 SecCompRect rect = { in GetDefaultRect() local 139 return rect; in GetDefaultRect() 144 * @tc.desc: Test parse component info with invalid rect 150 SecCompRect rect = GetDefaultRect(); in HWTEST_F() local 152 ASSERT_TRUE(SecCompInfoHelper::CheckRectValid(rect, windowRect)); in HWTEST_F() 154 rect.x_ = ServiceTestCommon::TEST_INVALID_DIMENSION; in HWTEST_F() 155 ASSERT_FALSE(SecCompInfoHelper::CheckRectValid(rect, windowRect)); in HWTEST_F() 156 rect.x_ = g_testWidth; in HWTEST_F() 158 rect.y_ = ServiceTestCommon::TEST_INVALID_DIMENSION; in HWTEST_F() 159 ASSERT_FALSE(SecCompInfoHelper::CheckRectValid(rect, windowRec in HWTEST_F() 193 SecCompRect rect = GetDefaultRect(); HWTEST_F() local [all...] |
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/ |
H A D | window_change_listener_impl.cpp | 23 void WindowChangeListenerImpl::OnSizeChange(Rosen::Rect rect, Rosen::WindowSizeChangeReason reason, in OnSizeChange() argument 27 changeHandler_({ rect.width_, rect.height_ }); in OnSizeChange()
|
H A D | input_method_panel.cpp | 297 IMSA_HILOGE("failed to parse panel rect, result: %{public}d!", result); in AdjustPanelRect() 711 ret = window_->GetCallingWindowRect(windowInfo.rect); in GetCallingWindowInfo() 713 IMSA_HILOGE("get rect failed, ret: %{public}d!", ret); in GetCallingWindowInfo() 716 IMSA_HILOGI("status: %{public}d, rect[x/y/w/h]: [%{public}d/%{public}d/%{public}d/%{public}d].", in GetCallingWindowInfo() 717 static_cast<uint32_t>(windowInfo.status), windowInfo.rect.posX_, windowInfo.rect.posY_, windowInfo.rect.width_, in GetCallingWindowInfo() 718 windowInfo.rect.height_); in GetCallingWindowInfo() 750 void InputMethodPanel::PanelStatusChangeToImc(const InputWindowStatus &status, const Rosen::Rect &rect) in PanelStatusChangeToImc() argument 764 info.windowInfo = { std::move(name), rect in PanelStatusChangeToImc() [all...] |
/base/security/security_component_manager/test/fuzztest/security_component/service/reportsecuritycomponentclickeventstub_fuzzer/ |
H A D | reportsecuritycomponentclickeventstub_fuzzer.cpp | 52 void GetCompoRect(nlohmann::json &jsonComponent, SecCompRect& rect) in GetCompoRect() argument 60 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_X, rect.x_)) { in GetCompoRect() 64 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_Y, rect.y_)) { in GetCompoRect() 68 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_WIDTH, rect.width_)) { in GetCompoRect() 72 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_HEIGHT, rect.height_)) { in GetCompoRect() 89 SecCompRect rect; in ConstructClickEvent() local 92 GetCompoRect(generator.compoJson_, rect); in ConstructClickEvent() 94 pointEvent.touchX = std::fmod(generator.GetData<double>(), rect.width_) + rect.x_; in ConstructClickEvent() 95 pointEvent.touchY = std::fmod(generator.GetData<double>(), rect in ConstructClickEvent() [all...] |
/base/inputmethod/imf/frameworks/native/inputmethod_ability/include/ |
H A D | calling_window_info.h | 24 Rosen::Rect rect{};
|
H A D | window_change_listener_impl.h | 30 void OnSizeChange(OHOS::Rosen::Rect rect, OHOS::Rosen::WindowSizeChangeReason reason,
|
H A D | input_method_panel.h | 130 void PanelStatusChangeToImc(const InputWindowStatus &status, const Rosen::Rect &rect);
|
/base/security/security_component_manager/interfaces/inner_api/security_component_common/ |
H A D | sec_comp_info_helper.h | 41 static bool CheckRectValid(const SecCompRect& rect, const SecCompRect& windowRect);
|
/base/security/access_token/services/privacymanager/test/tool/ |
H A D | camera_window_create.cpp | 62 static sptr<Rosen::Window> CreateAppFloatingWindow(Rosen::WindowType type, Rosen::Rect rect, std::string name = "") in CreateAppFloatingWindow() argument 66 option->SetWindowRect(rect); in CreateAppFloatingWindow()
|
/base/update/updater/services/ui/driver/ |
H A D | ui_rotation.cpp | 94 void UiRotation::SetFlushRange(const OHOS::Rect &rect) in SetFlushRange() argument 96 rect_ = rect; in SetFlushRange()
|
H A D | ui_rotation.h | 21 #include "gfx_utils/rect.h" 43 void SetFlushRange(const OHOS::Rect &rect);
|
H A D | graphic_engine.cpp | 151 buffInfo_->rect = { 0, 0, static_cast<int16_t>(width_ - 1), static_cast<int16_t>(height_ - 1) }; in GetFBBufferInfo()
|
/base/security/security_component_manager/frameworks/security_component/src/ |
H A D | sec_comp_base.cpp | 27 const std::string JsonTagConstants::JSON_RECT = "rect"; 220 bool SecCompBase::ParseRect(const nlohmann::json& json, const std::string& tag, SecCompRect& rect) in ParseRect() argument 228 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_X, rect.x_)) { in ParseRect() 232 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_Y, rect.y_)) { in ParseRect() 236 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_WIDTH, rect.width_)) { in ParseRect() 240 if (!ParseDimension(jsonSize, JsonTagConstants::JSON_RECT_HEIGHT, rect.height_)) { in ParseRect() 372 SecCompRect rect = other->rect_; in CompareComponentBasicInfo() local 375 rect = rect_; in CompareComponentBasicInfo() 381 rect, windowRect); in CompareComponentBasicInfo()
|
/base/powermgr/battery_manager/charger/src/ |
H A D | charger_graphic_engine.cpp | 119 buffInfo_->rect = {0, 0, static_cast<int16_t>(width_ - 1), static_cast<int16_t>(height_ - 1)}; in GetFBBufferInfo()
|
/base/security/security_component_manager/interfaces/inner_api/security_component/include/ |
H A D | sec_comp_base.h | 148 bool ParseRect(const nlohmann::json& json, const std::string& tag, SecCompRect& rect);
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
H A D | native_media_player_impl.cpp | 31 WVLOG_D("begin to update rect,nweb id is %{public}d", nwebId_); in UpdateRect() 530 napi_value rect = nullptr; in ConstructSurfaceInfo() local 531 ConstructRect(&rect, surfaceInfo); in ConstructSurfaceInfo() 532 NAPI_CALL_RETURN_VOID(env_, napi_set_named_property(env_, *value, "rect", rect)); in ConstructSurfaceInfo()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/ |
H A D | mock_pixel_map.cpp | 379 uint32_t PixelMap::crop(const Rect &rect) in crop() argument
|
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/ |
H A D | js_text_input_client_engine.cpp | 922 bool ret = JsUtil::Object::WriteProperty(env, jsObject, "rect", JsRect::Write(env, nativeObject.rect)); in Write() 930 napi_get_named_property(env, object, "rect", &rectObject); in Read() 931 auto ret = JsRect::Read(env, rectObject, nativeObject.rect); in Read()
|