Home
last modified time | relevance | path

Searched refs:qrcode (Results 1 - 9 of 9) sorted by relevance

/foundation/arkui/ui_lite/test/uitest/test_qrcode/
H A Dui_test_qrcode.cpp72 UIViewGroup* group = CreateTestCaseGroup(" display qrcode 60 * 60"); in UIKitUIQrcodeTestDisplay001()
76 UIQrcode* qrcode = new UIQrcode(); in UIKitUIQrcodeTestDisplay001() local
77 qrcode->SetPosition(20, 30, 60, 60); // 20 x 30 y 150 width 60 height in UIKitUIQrcodeTestDisplay001()
79 qrcode->SetQrcodeInfo(str); in UIKitUIQrcodeTestDisplay001()
80 group->Add(qrcode); in UIKitUIQrcodeTestDisplay001()
87 UIViewGroup* group = CreateTestCaseGroup(" display qrcode 120 * 250"); in UIKitUIQrcodeTestDisplay002()
91 UIQrcode* qrcode = new UIQrcode(); in UIKitUIQrcodeTestDisplay002() local
92 qrcode->SetPosition(20, 30); // 20 x 30 y in UIKitUIQrcodeTestDisplay002()
94 qrcode->SetQrcodeInfo(str); in UIKitUIQrcodeTestDisplay002()
95 qrcode in UIKitUIQrcodeTestDisplay002()
110 UIQrcode* qrcode = new UIQrcode(); UIKitUIQrcodeTestDisplay003() local
134 UIQrcode* qrcode = new UIQrcode(); UIKitUIQrcodeTestDisplay004() local
154 UIQrcode* qrcode = new UIQrcode(); UIKitUIQrcodeTestDisplay005() local
176 UIQrcode* qrcode = new UIQrcode(); UIKitUIQrcodeTestDisplay006() local
193 UIQrcode* qrcode = new UIQrcode(); UIKitUIQrcodeTestDisplay007() local
210 UIQrcode* qrcode = new UIQrcode(); UIKitUIQrcodeTestDisplay008() local
227 UIQrcode* qrcode = new UIQrcode(); UIKitUIQrcodeTestDisplay009() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dqrcode_model_impl.cpp19 #include "core/components/qrcode/qrcode_component.h"
24 RefPtr<QrcodeComponent> qrcode = AceType::MakeRefPtr<OHOS::Ace::QrcodeComponent>(); in Create() local
25 qrcode->SetValue(value); in Create()
26 qrcode->SetQrcodeColor(Color::BLACK); in Create()
27 qrcode->SetBackgroundColor(Color::WHITE); in Create()
28 ViewStackProcessor::GetInstance()->ClaimElementId(qrcode); in Create()
29 ViewStackProcessor::GetInstance()->Push(qrcode); in Create()
34 auto qrcode = AceType::DynamicCast<QrcodeComponent>(ViewStackProcessor::GetInstance()->GetMainComponent()); in SetQRCodeColor() local
35 if (qrcode) { in SetQRCodeColor()
36 qrcode in SetQRCodeColor()
42 auto qrcode = AceType::DynamicCast<QrcodeComponent>(ViewStackProcessor::GetInstance()->GetMainComponent()); SetQRBackgroundColor() local
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/test/unittest/common/
H A Dqrcode_tdd_test.cpp33 " },[_c('qrcode',{\n"
36 " ref: 'qrcode',\n"
65 " },[_c('qrcode', {\n"
70 " ref: 'qrcode'\n"
93 UIQrcode *qrcode = reinterpret_cast<UIQrcode *>(GetViewByRef(page, "qrcode")); in ComponentQrcodeStyleValueTest001() local
94 EXPECT_TRUE(qrcode != nullptr); in ComponentQrcodeStyleValueTest001()
95 if (qrcode != nullptr) { in ComponentQrcodeStyleValueTest001()
98 int16_t width = qrcode->GetWidth(); in ComponentQrcodeStyleValueTest001()
101 int16_t height = qrcode in ComponentQrcodeStyleValueTest001()
113 UIQrcode *qrcode = reinterpret_cast<UIQrcode *>(GetViewByRef(page, "qrcode")); ComponentQrcodeStyleValueTest002() local
129 UIQrcode *qrcode = reinterpret_cast<UIQrcode *>(GetViewByRef(page, "qrcode")); ComponentQrcodeAttributeValueTest001() local
[all...]
/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_qrcode.h113 void SetImageInfo(qrcodegen::QrCode& qrcode);
114 void GenerateQrCode(qrcodegen::QrCode& qrcode);
115 void FillQrCodeColor(qrcodegen::QrCode& qrcode);
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_qrcode.cpp116 void UIQrcode::SetImageInfo(qrcodegen::QrCode& qrcode) in SetImageInfo() argument
121 if (width_ < qrcode.getSize()) { in SetImageInfo()
122 GRAPHIC_LOGE("UIQrcode::SetImageInfo width is less than the minimum qrcode width!\n"); in SetImageInfo()
139 GenerateQrCode(qrcode); in SetImageInfo()
142 void UIQrcode::GenerateQrCode(qrcodegen::QrCode& qrcode) in GenerateQrCode() argument
146 FillQrCodeColor(qrcode); in GenerateQrCode()
149 void UIQrcode::FillQrCodeColor(qrcodegen::QrCode& qrcode) in FillQrCodeColor() argument
151 int32_t qrWidth = qrcode.getSize(); in FillQrCodeColor()
153 GRAPHIC_LOGE("UIQrcode::FillQrCodeColor generated qrcode size is less or equal 0!\n"); in FillQrCodeColor()
169 if (qrcode in FillQrCodeColor()
[all...]
/foundation/arkui/ui_lite/test/uitest/test_border_margin_padding/
H A Dui_test_border_margin_padding.cpp652 UIQrcode* qrcode = new UIQrcode(); in UIKitUITestBorderMarginPaddingTest015() local
653 qrcode->SetStyle(style_); in UIKitUITestBorderMarginPaddingTest015()
654 qrcode->Resize(60, 60); // 60: height in UIKitUITestBorderMarginPaddingTest015()
655 qrcode->SetQrcodeInfo("Hello\n Test of GUI"); in UIKitUITestBorderMarginPaddingTest015()
656 listScroll_->Add(qrcode); in UIKitUITestBorderMarginPaddingTest015()
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dkeys.h222 KEYWORD(QRCODE, qrcode) // qrcode tag name
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_api_impl_bridge.cpp5078 auto qrcode = panda::ObjectRef::New(vm); in RegisterQRCodeAttributes() local
5079 qrcode->Set(vm, panda::StringRef::NewFromUtf8(vm, "setQRColor"), in RegisterQRCodeAttributes()
5081 qrcode->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetQRColor"), in RegisterQRCodeAttributes()
5083 qrcode->Set(vm, panda::StringRef::NewFromUtf8(vm, "setQRBackgroundColor"), in RegisterQRCodeAttributes()
5085 qrcode->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetQRBackgroundColor"), in RegisterQRCodeAttributes()
5087 qrcode->Set(vm, panda::StringRef::NewFromUtf8(vm, "setContentOpacity"), in RegisterQRCodeAttributes()
5089 qrcode->Set(vm, panda::StringRef::NewFromUtf8(vm, "resetContentOpacity"), in RegisterQRCodeAttributes()
5091 qrcode->Set(vm, panda::StringRef::NewFromUtf8(vm, "setQRValue"), in RegisterQRCodeAttributes()
5093 object->Set(vm, panda::StringRef::NewFromUtf8(vm, "qrcode"), qrcode); in RegisterQRCodeAttributes()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/
H A DarkComponent.js24500 getUINativeModule().qrcode.setQRValue(node, this.value);
24513 getUINativeModule().qrcode.resetQRColor(node);
24516 getUINativeModule().qrcode.setQRColor(node, this.value);
24530 getUINativeModule().qrcode.resetQRBackgroundColor(node);
24533 getUINativeModule().qrcode.setQRBackgroundColor(node, this.value);
24547 getUINativeModule().qrcode.resetContentOpacity(node);
24550 getUINativeModule().qrcode.setContentOpacity(node, this.value);

Completed in 35 milliseconds