Home
last modified time | relevance | path

Searched refs:algorithm (Results 1 – 25 of 110) sorted by relevance

12345

/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/irregular/
Dgrid_irregular_layout_test.cpp53 auto algorithm = AceType::MakeRefPtr<GridIrregularLayoutAlgorithm>(info); variable
54 algorithm->wrapper_ = AceType::RawPtr(frameNode_);
55 algorithm->crossLens_ = { 25.0f, 25.0f, 50.0f };
56 algorithm->crossGap_ = 5.0f;
57 algorithm->mainGap_ = 1.0f;
58 algorithm->LayoutChildren(0.0f, 0);
89 auto algorithm = AceType::MakeRefPtr<GridIrregularLayoutAlgorithm>(GridLayoutInfo {}); variable
90 algorithm->info_.currentOffset_ = 0.0f;
91 algorithm->info_.childrenCount_ = 10;
92 algorithm->Measure(AceType::RawPtr(frameNode_));
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/navrouter/
Dnavrouter_model_test_ng.cpp405 auto algorithm = AceType::MakeRefPtr<BarItemLayoutAlgorithm>(); variable
415 algorithm->Layout(AceType::RawPtr(layoutWrapper));
418 algorithm->Layout(AceType::RawPtr(layoutWrapper));
528 auto algorithm = AceType::MakeRefPtr<NavBarLayoutAlgorithm>(); variable
570 algorithm->Measure(AceType::RawPtr(layoutWrapper));
571 algorithm->Layout(AceType::RawPtr(layoutWrapper));
577 algorithm->Measure(AceType::RawPtr(layoutWrapper));
578 algorithm->Layout(AceType::RawPtr(layoutWrapper));
587 algorithm->Measure(AceType::RawPtr(layoutWrapper));
595 algorithm->Measure(AceType::RawPtr(layoutWrapper));
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
Dswiper_indicator_layout_test_ng.cpp37 RefPtr<DotIndicatorLayoutAlgorithm> algorithm = variable
46 …EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 40.0, Dimension(0.7, DimensionUnit::PERCENT)), 60.0…
47 …EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 40.0, Dimension(0.5, DimensionUnit::PERCENT)), 50.0…
48 …EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 20.0, Dimension(0.0, DimensionUnit::PERCENT)), 0.0);
49 EXPECT_EQ(algorithm->GetValidEdgeLength(100.0, 40.0, Dimension(70.0, DimensionUnit::PX)), 60.0);
50 EXPECT_EQ(algorithm->GetValidEdgeLength(-10.0, 40.0, Dimension(-20.0, DimensionUnit::PX)), 0.0);
72 auto algorithm = indicatorPattern->CreateLayoutAlgorithm(); variable
81 algorithm->Measure(&layoutWrapper);
99 auto algorithm = indicatorPattern->CreateLayoutAlgorithm(); variable
107 algorithm->Layout(&layoutWrapper);
Dswiper_indicator_extent_test_ng.cpp1516 auto algorithm = indicatorPattern->CreateLayoutAlgorithm(); variable
1539 algorithm->Measure(&layoutWrapper);
1557 auto algorithm = indicatorPattern->CreateLayoutAlgorithm(); variable
1580 algorithm->Measure(&layoutWrapper);
1598 auto algorithm = indicatorPattern->CreateLayoutAlgorithm(); variable
1621 algorithm->Measure(&layoutWrapper);
1638 auto algorithm = indicatorPattern->CreateLayoutAlgorithm(); variable
1661 algorithm->Measure(&layoutWrapper);
1679 auto algorithm = indicatorPattern->CreateLayoutAlgorithm(); variable
1702 algorithm->Measure(&layoutWrapper);
[all …]
/foundation/communication/netstack/frameworks/native/tls_socket/src/
Dtls_key.cpp29 TLSKey::TLSKey(const std::string &fileName, KeyAlgorithm algorithm, const SecureData &passPhrase, in TLSKey() argument
33 DecodeDer(type, algorithm, fileName, passPhrase); in TLSKey()
35 DecodePem(type, algorithm, fileName, passPhrase); in TLSKey()
39 TLSKey::TLSKey(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhrase) in TLSKey() argument
44 DecodeData(data, algorithm, passPhrase); in TLSKey()
142 void TLSKey::DecodeData(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhras… in DecodeData() argument
148 keyAlgorithm_ = algorithm; in DecodeData()
162 void TLSKey::DecodeDer(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const Sec… in DecodeDer() argument
169 keyAlgorithm_ = algorithm; in DecodeDer()
203 void TLSKey::SwitchAlgorithm(KeyType type, KeyAlgorithm algorithm, BIO *bio) in SwitchAlgorithm() argument
[all …]
/foundation/communication/netstack/frameworks/native/tls_socket/include/
Dtls_key.h42 TLSKey(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhrase);
43 TLSKey(const std::string &fileName, KeyAlgorithm algorithm, const SecureData &passPhrase,
56 void DecodeData(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhrase);
57 …void DecodeDer(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const SecureData…
58 …void DecodePem(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const SecureData…
60 void SwitchAlgorithm(KeyType type, KeyAlgorithm algorithm, BIO *bio);
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
Dmenuitemgroup_test_ng.cpp228 auto algorithm = AceType::MakeRefPtr<MenuItemGroupLayoutAlgorithm>(-1, -1, 0); variable
229 ASSERT_TRUE(algorithm);
251 algorithm->Measure(layoutWrapper);
257 algorithm->Layout(layoutWrapper);
267 algorithm->headerIndex_ = 0;
268 algorithm->footerIndex_ = 0;
269 algorithm->Measure(layoutWrapper);
270 algorithm->Layout(layoutWrapper);
272 algorithm->needHeaderPadding_ = true;
273 algorithm->LayoutHeader(layoutWrapper);
[all …]
Dsubmenu_test_ng.cpp254 …auto algorithm = AceType::DynamicCast<SubMenuLayoutAlgorithm>(subMenuPattern->CreateLayoutAlgorith… variable
255 ASSERT_TRUE(algorithm);
261 algorithm->canExpandCurrentWindow_ = true;
267 algorithm->wrapperSize_ = SizeF(FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT);
268 algorithm->wrapperRect_ = Rect(0, 0, FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT);
269 algorithm->Layout(wrapper);
270 ASSERT_TRUE(algorithm);
273 algorithm->position_ = OffsetF(MENU_OFFSET_X + MENU_ITEM_SIZE_WIDTH, MENU_OFFSET_Y);
274 algorithm->Layout(wrapper);
278 algorithm->position_ = OffsetF(FULL_SCREEN_WIDTH, MENU_OFFSET_Y);
[all …]
Dmenu_layoutScd_test_ng.cpp1322 …auto algorithm = AceType::DynamicCast<SubMenuLayoutAlgorithm>(menuPattern->CreateLayoutAlgorithm()… variable
1323 ASSERT_TRUE(algorithm);
1333 algorithm->wrapperSize_ = SizeF(FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT);
1348 …auto result = algorithm->VerticalLayoutSubMenuHalfScreen(menuNode->GetGeometryNode()->GetFrameSize…
1349 algorithm->position_.GetY(), item->GetGeometryNode()->GetFrameSize());
1352 algorithm->wrapperSize_ = size_f;
1358 algorithm->ModifySubMenuWrapper(wrapper);
1359 ASSERT_EQ(algorithm->wrapperSize_, SizeF(0, 0));
1385 …auto algorithm = AceType::DynamicCast<SubMenuLayoutAlgorithm>(menuPattern->CreateLayoutAlgorithm()… variable
1386 ASSERT_TRUE(algorithm);
[all …]
Dmenu_origin_test_ng.cpp1168 … auto algorithm = AceType::DynamicCast<MenuLayoutAlgorithm>(menuPattern->CreateLayoutAlgorithm()); variable
1169 ASSERT_TRUE(algorithm);
1179 algorithm->wrapperSize_ = SizeF(FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT);
1180 algorithm->wrapperRect_ = Rect(0, 0, FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT);
1196 algorithm->wrapperSize_ = size_f;
1197 algorithm->wrapperRect_ = Rect(0, 0, size_f.Width(), size_f.Height());
1203 ASSERT_NE(algorithm->wrapperSize_, SizeF(0, 0));
1208 algorithm->canExpandCurrentWindow_ = true;
1211 algorithm->InitializePaddingAPI12(wrapper);
1212 ASSERT_EQ(algorithm->paddingStart_, 10.0f);
[all …]
/foundation/arkui/ace_engine/test/unittest/core/event/focus_core/
Dfocus_test_base.cpp71 FocusType focusType, bool focusable, ScopeFocusAlgorithm algorithm) in CreateNodeWithFocusPatternAndAlgorithm() argument
75 focusTestPattern->SetScopeFocusAlgorithm(algorithm); in CreateNodeWithFocusPatternAndAlgorithm()
92 FocusType focusType, bool focusable, FocusStyleType styleType, ScopeFocusAlgorithm algorithm) in CreateNodeWithFocusPatternAndAlgorithm() argument
96 focusTestPattern->SetScopeFocusAlgorithm(algorithm); in CreateNodeWithFocusPatternAndAlgorithm()
114 const FocusPaintParam& paintParams, ScopeFocusAlgorithm algorithm) in CreateNodeWithFocusPatternAndAlgorithm() argument
118 focusTestPattern->SetScopeFocusAlgorithm(algorithm); in CreateNodeWithFocusPatternAndAlgorithm()
136 std::list<int32_t>& list, FocusType focusType, bool focusable, ScopeFocusAlgorithm algorithm) in CreateFocusViewWithFocusPatternAndAlgorithm() argument
140 focusTestPattern->SetScopeFocusAlgorithm(algorithm); in CreateFocusViewWithFocusPatternAndAlgorithm()
160 FocusStyleType styleType, ScopeFocusAlgorithm algorithm) in CreateFocusViewWithFocusPatternAndAlgorithm() argument
164 focusTestPattern->SetScopeFocusAlgorithm(algorithm); in CreateFocusViewWithFocusPatternAndAlgorithm()
[all …]
Dfocus_test_base.h124 bool focusable, ScopeFocusAlgorithm algorithm);
126 bool focusable, FocusStyleType styleType, ScopeFocusAlgorithm algorithm);
128 …able, FocusStyleType styleType, const FocusPaintParam& paintParams, ScopeFocusAlgorithm algorithm);
138 FocusType focusType, bool focusable, ScopeFocusAlgorithm algorithm);
141 … FocusType focusType, bool focusable, FocusStyleType styleType, ScopeFocusAlgorithm algorithm);
145 const FocusPaintParam& paintParams, ScopeFocusAlgorithm algorithm);
/foundation/multimedia/camera_framework/services/camera_service/src/smooth_zoom/
Dsmooth_zoom.cpp23 std::shared_ptr<IZoomAlgorithm> algorithm; in GetZoomAlgorithm() local
26 algorithm = std::make_shared<CubicBezier>(); in GetZoomAlgorithm()
29 algorithm = std::make_shared<CubicBezier>(); in GetZoomAlgorithm()
32 return algorithm; in GetZoomAlgorithm()
/foundation/arkui/ace_engine/test/unittest/core/pattern/arc_list/
Darc_list_layout_test_ng.cpp453 ArcListLayoutAlgorithm algorithm(200, 100); variable
454 EXPECT_FALSE(NearEqual(algorithm.GetNearScale(150.0), 0.780000));
455 EXPECT_FALSE(NearEqual(algorithm.GetNearScale(-135.0), 0.820000));
456 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(141.0), 0.832255));
457 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(-132.0), 0.856995));
458 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(120.0), 0.889020));
459 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(95.0), 0.950898));
460 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(10.0), 1.077197));
461 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(-10.0), 1.077197));
866 auto algorithm = AceType::MakeRefPtr<ArcListLayoutAlgorithm>(200, 100); variable
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/
Dnavigation_test_ng.cpp367 NavigationContentLayoutAlgorithm algorithm; variable
368 algorithm.Measure(AceType::RawPtr(layoutWrapper));
377 algorithm.Measure(AceType::RawPtr(layoutWrapper));
380 algorithm.Measure(AceType::RawPtr(layoutWrapper));
631 NavigationLayoutAlgorithm algorithm; variable
632 auto result = algorithm.IsAutoHeight(property);
637 result = algorithm.IsAutoHeight(property);
641 result = algorithm.IsAutoHeight(property);
645 result = algorithm.IsAutoHeight(property);
649 result = algorithm.IsAutoHeight(property);
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/
Dgrid_layout_test_ng.cpp181 auto algorithm = AceType::MakeRefPtr<GridLayoutAlgorithm>(GridLayoutInfo {}, 4, 4); variable
182 algorithm->InitGridCeils(AceType::RawPtr(frameNode_), { 0.0f, 0.0f });
183 algorithm->crossCount_ = 5;
184 algorithm->mainCount_ = 5;
185 algorithm->InitGridCeils(AceType::RawPtr(frameNode_), { 0.0f, 0.0f });
207 auto algorithm = AceType::MakeRefPtr<GridLayoutAlgorithm>(GridLayoutInfo {}, 4, 4); variable
208 algorithm->InitGridCeils(AceType::RawPtr(frameNode_), { 0.0f, 0.0f });
209 algorithm->crossCount_ = 5;
210 algorithm->mainCount_ = 5;
211 algorithm->InitGridCeils(AceType::RawPtr(frameNode_), { 0.0f, 0.0f });
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/overlay/
Dsheet_presentation_test_ng.cpp989 …auto algorithm = AceType::DynamicCast<SheetPresentationLayoutAlgorithm>(sheetPattern->CreateLayout… variable
990 EXPECT_NE(algorithm->sheetStyle_.sheetHeight.sheetMode, SheetMode::MEDIUM);
991 EXPECT_NE(algorithm->sheetStyle_.sheetHeight.sheetMode, SheetMode::LARGE);
992 EXPECT_FALSE(algorithm->sheetStyle_.sheetHeight.height.has_value());
995 algorithm->GetHeightBySheetStyle(maxHeight, maxWidth, AceType::RawPtr(sheetNode));
997 algorithm->sheetStyle_.sheetHeight.sheetMode = SheetMode::MEDIUM;
998 EXPECT_EQ(algorithm->sheetStyle_.sheetHeight.sheetMode, SheetMode::MEDIUM);
999 EXPECT_FALSE(algorithm->sheetStyle_.sheetHeight.height.has_value());
1000 algorithm->GetHeightBySheetStyle(maxHeight, maxWidth, AceType::RawPtr(sheetNode));
1002 algorithm->sheetStyle_.sheetHeight.sheetMode = SheetMode::LARGE;
[all …]
/foundation/communication/netstack/test/unittest/test_tls/clientTest/
DTlsKeyTest.cpp77 KeyAlgorithm algorithm = tlsKey.Algorithm(); variable
78 EXPECT_EQ(algorithm, ALGORITHM_RSA);
104 KeyAlgorithm algorithm = tlsKeyCopy.Algorithm(); variable
105 EXPECT_EQ(algorithm, ALGORITHM_RSA);
115 KeyAlgorithm algorithm = key.Algorithm(); variable
116 EXPECT_EQ(algorithm, ALGORITHM_RSA);
/foundation/communication/netstack/test/unittest/tls_test/clienTest/
DTlsKeyTest.cpp77 KeyAlgorithm algorithm = tlsKey.Algorithm(); variable
78 EXPECT_EQ(algorithm, ALGORITHM_RSA);
104 KeyAlgorithm algorithm = tlsKeyCopy.Algorithm(); variable
105 EXPECT_EQ(algorithm, ALGORITHM_RSA);
115 KeyAlgorithm algorithm = key.Algorithm(); variable
116 EXPECT_EQ(algorithm, ALGORITHM_RSA);
/foundation/communication/netstack/test/unittest/tls_test/client/
DTlsKeyTest.cpp77 KeyAlgorithm algorithm = tlsKey.Algorithm(); variable
78 EXPECT_EQ(algorithm, ALGORITHM_RSA);
104 KeyAlgorithm algorithm = tlsKeyCopy.Algorithm(); variable
105 EXPECT_EQ(algorithm, ALGORITHM_RSA);
115 KeyAlgorithm algorithm = key.Algorithm(); variable
116 EXPECT_EQ(algorithm, ALGORITHM_RSA);
/foundation/arkui/ace_engine/test/unittest/core/pattern/relative_container/old_cases/
Drelative_container_testthree_ng.cpp705 auto algorithm = std::make_shared<RelativeContainerLayoutAlgorithm>(); variable
707 algorithm->horizontalChainNodeMap_[nodeName] = "horizontalChainName";
708algorithm->horizontalChains_["horizontalChainName"] = *new RelativeContainerLayoutAlgorithm::Chain…
709 algorithm->versionGreatorOrEqualToEleven_ = true;
711 …auto nodeInHChainResult = algorithm->IsNodeInChain(nodeName, chainName, LineDirection::HORIZONTAL);
713 …auto nodeNotInVChainResult = algorithm->IsNodeInChain(nodeName, chainName, LineDirection::VERTICAL…
715 algorithm->versionGreatorOrEqualToEleven_ = false;
716 …auto nodeInHChainResultApi10 = algorithm->IsNodeInChain(nodeName, chainName, LineDirection::HORIZO…
718 …auto nodeInVChainResultApi10 = algorithm->IsNodeInChain(nodeName, chainName, LineDirection::VERTIC…
720 algorithm->versionGreatorOrEqualToEleven_ = true;
[all …]
/foundation/filemanagement/file_api/interfaces/kits/ts/streamhash/src/
Dstreamhash.ts25 constructor(algorithm: string) {
27 this.hs = new hash.HashStream(algorithm);
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid_container/
Dgrid_container_test_ng.cpp43 auto algorithm = container->GetLayoutAlgorithm(); in MeasureLayout() local
44 algorithm->Measure(AceType::RawPtr(container)); in MeasureLayout()
45 algorithm->Layout(AceType::RawPtr(container)); in MeasureLayout()
/foundation/multimedia/media_foundation/tests/unittest/detail_enhancer_video_ndk/
DBUILD.gn59 "$histreamer_root_dir/video_processing_engine/framework/algorithm/include",
63 "$histreamer_root_dir/video_processing_engine/framework/algorithm/detail_enhancer/include",
95 …include_dirs += [ "$histreamer_root_dir/video_processing_engine/framework/algorithm/detail_enhance…
/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
Dlayout_algorithm.h149 void SetLayoutAlgorithm(RefPtr<LayoutAlgorithm> algorithm) in SetLayoutAlgorithm() argument
151 layoutAlgorithm_ = std::move(algorithm); in SetLayoutAlgorithm()

12345