Home
last modified time | relevance | path

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

123456

/foundation/arkui/ace_engine/test/unittest/core/pattern/bubble/
Dbubble_test_two_ng.cpp134 void InitSetting(BubbleLayoutAlgorithm& algorithm);
135 void InitFuncMap(BubbleLayoutAlgorithm& algorithm);
136 void InitCanPlacement(BubbleLayoutAlgorithm& algorithm);
137 void InitGetRectSetting(BubbleLayoutAlgorithm& algorithm);
138 void InitCheckPositionSetting(BubbleLayoutAlgorithm& algorithm);
162 void BubbleTestTwoNg::InitSetting(BubbleLayoutAlgorithm& algorithm) in InitSetting() argument
164 algorithm.marginStart_ = MARGIN_START; in InitSetting()
165 algorithm.marginEnd_ = MARGIN_END; in InitSetting()
166 algorithm.marginTop_ = MARGIN_TOP; in InitSetting()
167 algorithm.marginBottom_ = MARGIN_BOTTOM; in InitSetting()
[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);
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid_row/
Dgrid_row_measure_test_ng.cpp54 GridRowLayoutAlgorithm algorithm; in CreateMeasureLayoutTask() local
55 algorithm.Measure(Referenced::RawPtr(gridRow)); in CreateMeasureLayoutTask()
56 algorithm.Layout(Referenced::RawPtr(gridRow)); in CreateMeasureLayoutTask()
101 GridRowLayoutAlgorithm algorithm; variable
103 auto resultHeight = algorithm.MeasureChildren(Referenced::RawPtr(gridRow), 20.0f, 0, gutter,
105 EXPECT_EQ(algorithm.gridColChildrenRows_.size(), 2) << algorithm.gridColChildrenRows_.size();
117 auto result = DumpChildrenInfo(algorithm.gridColChildrenRows_);
151 GridRowLayoutAlgorithm algorithm; variable
153 auto resultHeight = algorithm.MeasureChildren(Referenced::RawPtr(gridRow), 20.0f, 0, gutter,
155 EXPECT_EQ(algorithm.gridColChildrenRows_.size(), 2) << algorithm.gridColChildrenRows_.size();
[all …]
Dgrid_row_layout_test_ng.cpp39 GridRowLayoutAlgorithm algorithm; in CreateMeasureLayoutTask() local
40 algorithm.Measure(Referenced::RawPtr(gridRow)); in CreateMeasureLayoutTask()
41 algorithm.Layout(Referenced::RawPtr(gridRow)); in CreateMeasureLayoutTask()
99 GridRowLayoutAlgorithm algorithm; variable
100 algorithm.Measure(Referenced::RawPtr(gridRow));
101 algorithm.Layout(Referenced::RawPtr(gridRow));
110 algorithm.Measure(Referenced::RawPtr(gridRow));
111 algorithm.Layout(Referenced::RawPtr(gridRow));
160 GridRowLayoutAlgorithm algorithm; variable
161 algorithm.Measure(Referenced::RawPtr(gridRow));
[all …]
/foundation/multimedia/video_processing_engine/test/unittest/service/
Dvideo_processing_algorithm_without_data_test.cpp70 VideoProcessingAlgorithmWithoutData algorithm("123", 12); variable
71 int result = algorithm.SetParameter(clientID, tag, parameter);
88 VideoProcessingAlgorithmWithoutData algorithm("123", 12); variable
89 int result = algorithm.SetParameter(clientID, tag, parameter);
101 VideoProcessingAlgorithmWithoutData algorithm("123", 12); variable
102 int result = algorithm.GetParameter(clientID, tag, parameter);
114 VideoProcessingAlgorithmWithoutData algorithm("123", 12); variable
115 int result = algorithm.GetParameter(clientID, tag, parameter);
127 VideoProcessingAlgorithmWithoutData algorithm("123", 12); variable
128 int result = algorithm.DoUpdateMetadata(clientID, image);
[all …]
/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/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()
112 void TLSKey::DecodeData(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhras… in DecodeData() argument
118 keyAlgorithm_ = algorithm; in DecodeData()
132 void TLSKey::DecodeDer(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const Sec… in DecodeDer() argument
139 keyAlgorithm_ = algorithm; in DecodeDer()
173 void TLSKey::SwitchAlgorithm(KeyType type, KeyAlgorithm algorithm, BIO *bio) in SwitchAlgorithm() argument
[all …]
/foundation/multimedia/video_processing_engine/
DREADME.md34 <td> Provides APIs related to image superresolution algorithm and sharpening algorithm </td>
46 <td> Provides TS interfaces for image super-resolution algorithm and sharpening algorithm </td>
59 <td> Realize video scene clarity enhancement and scaling algorithm software channel scheduling and …
63 <td> Realize the image scene clarity enhancement and scaling algorithm software channel scheduling …
75 <td> Video color space processing algorithm plug-in </td>
76 <td> Implement the function of video color space conversion algorithm, including SDR2SDR, HDR2SDR, …
80 <td> Realize the function of image color space conversion algorithm, including SDR2SDR, single-laye…
91 <td> Video dynamic metadata algorithm plug-in </td>
92 <td> Implement the video dynamic metadata production algorithm </td>
95 <td> Image dynamic metadata algorithm plug-in </td>
[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/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,
55 void DecodeData(const SecureData &data, KeyAlgorithm algorithm, const SecureData &passPhrase);
56 …void DecodeDer(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const SecureData…
57 …void DecodePem(KeyType type, KeyAlgorithm algorithm, const std::string &fileName, const SecureData…
59 void SwitchAlgorithm(KeyType type, KeyAlgorithm algorithm, BIO *bio);
/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/overlay/
Dsheet_presentation_test_ng.cpp1073 …auto algorithm = AceType::DynamicCast<SheetPresentationLayoutAlgorithm>(sheetPattern->CreateLayout… variable
1074 EXPECT_NE(algorithm->sheetStyle_.sheetHeight.sheetMode, SheetMode::MEDIUM);
1075 EXPECT_NE(algorithm->sheetStyle_.sheetHeight.sheetMode, SheetMode::LARGE);
1076 EXPECT_FALSE(algorithm->sheetStyle_.sheetHeight.height.has_value());
1079 algorithm->GetHeightBySheetStyle(maxHeight, maxWidth, AceType::RawPtr(sheetNode));
1081 algorithm->sheetStyle_.sheetHeight.sheetMode = SheetMode::MEDIUM;
1082 EXPECT_EQ(algorithm->sheetStyle_.sheetHeight.sheetMode, SheetMode::MEDIUM);
1083 EXPECT_FALSE(algorithm->sheetStyle_.sheetHeight.height.has_value());
1084 algorithm->GetHeightBySheetStyle(maxHeight, maxWidth, AceType::RawPtr(sheetNode));
1086 algorithm->sheetStyle_.sheetHeight.sheetMode = SheetMode::LARGE;
[all …]
Dsheet_showInSubwindow_test_ng.cpp934 auto algorithm = AceType::MakeRefPtr<SheetPresentationSideLayoutAlgorithm>(); variable
935 ASSERT_NE(algorithm, nullptr);
936 EXPECT_FLOAT_EQ(algorithm->GetSheetDefaultWidth(sheetPattern), pipelineContext->rootWidth_ / 2);
938 …EXPECT_FLOAT_EQ(algorithm->GetSheetDefaultWidth(sheetPattern), SHEET_SIDE_DEFAULT_WIDTH.ConvertToP…
941 EXPECT_FLOAT_EQ(algorithm->GetSheetDefaultWidth(sheetPattern), 700.0f / 2);
943 …EXPECT_FLOAT_EQ(algorithm->GetSheetDefaultWidth(sheetPattern), SHEET_SIDE_DEFAULT_WIDTH.ConvertToP…
977 auto algorithm = AceType::MakeRefPtr<SheetPresentationSideLayoutAlgorithm>(); variable
978 ASSERT_NE(algorithm, nullptr);
979 algorithm->Measure(AceType::RawPtr(sheetNode));
980 EXPECT_FLOAT_EQ(algorithm->sheetMaxWidth_, 1000);
[all …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/navigation/
Dnavigation_test_ng.cpp370 NavigationContentLayoutAlgorithm algorithm; variable
371 algorithm.Measure(AceType::RawPtr(layoutWrapper));
380 algorithm.Measure(AceType::RawPtr(layoutWrapper));
383 algorithm.Measure(AceType::RawPtr(layoutWrapper));
634 NavigationLayoutAlgorithm algorithm; variable
635 auto result = algorithm.IsAutoHeight(property);
640 result = algorithm.IsAutoHeight(property);
644 result = algorithm.IsAutoHeight(property);
648 result = algorithm.IsAutoHeight(property);
652 result = algorithm.IsAutoHeight(property);
[all …]
/foundation/multimedia/camera_framework/frameworks/native/camera/test/unittest/camera_service/smooth_zoom/src/
Dsmooth_zoom_unittest.cpp59 std::shared_ptr<IZoomAlgorithm> algorithm = SmoothZoom::GetZoomAlgorithm(mode); variable
61 ASSERT_TRUE(algorithm != nullptr);
76 …std::shared_ptr<IZoomAlgorithm> algorithm = SmoothZoom::GetZoomAlgorithm(static_cast<SmoothZoomTyp… variable
78 ASSERT_TRUE(algorithm != nullptr);
/foundation/arkui/ace_engine/test/unittest/core/pattern/menu/
Dmenuitemgroup_test_ng.cpp234 auto algorithm = AceType::MakeRefPtr<MenuItemGroupLayoutAlgorithm>(-1, -1, 0); variable
235 ASSERT_TRUE(algorithm);
257 algorithm->Measure(layoutWrapper);
263 algorithm->Layout(layoutWrapper);
273 algorithm->headerIndex_ = 0;
274 algorithm->footerIndex_ = 0;
275 algorithm->Measure(layoutWrapper);
276 algorithm->Layout(layoutWrapper);
278 algorithm->needHeaderPadding_ = true;
279 algorithm->LayoutHeader(layoutWrapper);
[all …]
Dmenuitem_test_ng.cpp226 auto algorithm = AceType::MakeRefPtr<MenuItemLayoutAlgorithm>(); variable
227 ASSERT_TRUE(algorithm);
242 algorithm->RemoveParentRestrictionsForFixIdeal(layoutProp, childConstraint);
264 auto algorithm = AceType::MakeRefPtr<MultiMenuLayoutAlgorithm>(); variable
265 ASSERT_TRUE(algorithm);
280 algorithm->RemoveParentRestrictionsForFixIdeal(layoutWrapper.GetRawPtr(), childConstraint);
302 auto algorithm = AceType::MakeRefPtr<MultiMenuLayoutAlgorithm>(); variable
303 ASSERT_TRUE(algorithm);
319 algorithm->RemoveParentRestrictionsForFixIdeal(layoutWrapper.GetRawPtr(), childConstraint);
413 …auto algorithm = AceType::DynamicCast<MenuItemLayoutAlgorithm>(menuItemPattern->CreateLayoutAlgori… variable
[all …]
Dmenu_layoutScd_test_ng.cpp1361 …auto algorithm = AceType::DynamicCast<SubMenuLayoutAlgorithm>(menuPattern->CreateLayoutAlgorithm()… variable
1362 ASSERT_TRUE(algorithm);
1372 algorithm->wrapperSize_ = SizeF(FULL_SCREEN_WIDTH, FULL_SCREEN_HEIGHT);
1387 …auto result = algorithm->VerticalLayoutSubMenuHalfScreen(menuNode->GetGeometryNode()->GetFrameSize…
1388 algorithm->position_.GetY(), item->GetGeometryNode()->GetFrameSize(), item, false, nullptr);
1391 algorithm->wrapperSize_ = size_f;
1397 algorithm->ModifySubMenuWrapper(wrapper);
1398 ASSERT_EQ(algorithm->wrapperSize_, SizeF(0, 0));
1424 …auto algorithm = AceType::DynamicCast<SubMenuLayoutAlgorithm>(menuPattern->CreateLayoutAlgorithm()… variable
1425 ASSERT_TRUE(algorithm);
[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 …]
/foundation/arkui/ace_engine/test/unittest/core/pattern/arc_list/
Darc_list_layout_test_ng.cpp456 ArcListLayoutAlgorithm algorithm(200, 100); variable
457 EXPECT_FALSE(NearEqual(algorithm.GetNearScale(150.0), 0.780000));
458 EXPECT_FALSE(NearEqual(algorithm.GetNearScale(-135.0), 0.820000));
459 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(141.0), 0.832255));
460 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(-132.0), 0.856995));
461 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(120.0), 0.889020));
462 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(95.0), 0.950898));
463 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(10.0), 1.077197));
464 EXPECT_TRUE(NearEqual(algorithm.GetNearScale(-10.0), 1.077197));
869 auto algorithm = AceType::MakeRefPtr<ArcListLayoutAlgorithm>(200, 100); variable
[all …]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/ani/ets/
D@ohos.file.hash.ets19 export function hash(path: string, algorithm: string): Promise<string> {
21 let promise = taskpool.execute(HashImpl.hashSync, path, algorithm);
31 …export function hash(path: string, algorithm: string, callback: AsyncCallback<string, void>): void…
32 let promise = taskpool.execute(HashImpl.hashSync, path, algorithm);
50 static native hashSync(path: string, algorithm: string): string;
/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/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 …]

123456