/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
H A D | hencoder_buffer_unit_test.cpp | 74 CommandOpt opt = { in HWTEST_F() local 87 bool ret = TesterCommon::Run(opt); in HWTEST_F() 94 CommandOpt opt = { in HWTEST_F() local 107 bool ret = TesterCommon::Run(opt); in HWTEST_F() 114 CommandOpt opt = { in HWTEST_F() local 130 bool ret = TesterCommon::Run(opt); in HWTEST_F() 137 CommandOpt opt = { in HWTEST_F() local 149 bool ret = TesterCommon::Run(opt); in HWTEST_F() 156 CommandOpt opt = { in HWTEST_F() local 168 bool ret = TesterCommon::Run(opt); in HWTEST_F() 175 CommandOpt opt = { HWTEST_F() local 194 CommandOpt opt = { HWTEST_F() local 219 CommandOpt opt = { HWTEST_F() local 238 CommandOpt opt = { HWTEST_F() local 261 CommandOpt opt = { HWTEST_F() local [all...] |
H A D | hdecoder_buffer_unit_test.cpp | 29 CommandOpt opt = { in HWTEST() local 41 bool ret = TesterCommon::Run(opt); in HWTEST() 49 CommandOpt opt = { in HWTEST() local 61 bool ret = TesterCommon::Run(opt); in HWTEST() 68 CommandOpt opt = { in HWTEST() local 80 bool ret = TesterCommon::Run(opt); in HWTEST() 87 CommandOpt opt = { in HWTEST() local 99 bool ret = TesterCommon::Run(opt); in HWTEST() 106 CommandOpt opt = { in HWTEST() local 118 bool ret = TesterCommon::Run(opt); in HWTEST() 125 CommandOpt opt = { HWTEST() local [all...] |
/foundation/multimedia/av_codec/test/unittest/hcodec_test/helper/ |
H A D | command_parser.cpp | 166 CommandOpt opt; in Parse() local 174 opt.inputFile = string(optarg); in Parse() 177 opt.dispW = stol(optarg); in Parse() 180 opt.dispH = stol(optarg); in Parse() 183 opt.apiType = static_cast<ApiType>(stol(optarg)); in Parse() 186 opt.isEncoder = stol(optarg); in Parse() 189 opt.isBufferMode = stol(optarg); in Parse() 192 opt.repeatCnt = stol(optarg); in Parse() 195 opt.maxReadFrameCnt = stol(optarg); in Parse() 198 opt in Parse() [all...] |
H A D | tester_capi.h | 23 explicit TesterCapi(const CommandOpt& opt) : TesterCommon(opt) {} in TesterCapi() 52 explicit TesterCapiOld(const CommandOpt& opt) : TesterCapi(opt) {} in TesterCapiOld() 71 explicit TesterCapiNew(const CommandOpt& opt) : TesterCapi(opt) {} in TesterCapiNew()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/demo/ |
H A D | jpeg_hw_decoder_demo.cpp | 22 CommandOpt opt = Parse(argc, argv); in main() local 23 if (opt.width > 0 && opt.height > 0) { in main() 24 opt.Print(); in main() 26 (void)demo.Run(opt, true); in main()
|
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/src/ |
H A D | vsync_connection_proxy.cpp | 34 MessageOption opt(MessageOption::TF_ASYNC);
in RequestNextVSync() 47 int res = remote->SendRequest(IVSYNC_CONNECTION_REQUEST_NEXT_VSYNC, arg, ret, opt);
in RequestNextVSync() 57 MessageOption opt(MessageOption::TF_ASYNC);
in SetUiDvsyncSwitch() 74 int res = remote->SendRequest(IVSYNC_CONNECTION_SET_UI_DVSYNC_SWITCH, arg, ret, opt);
in SetUiDvsyncSwitch() 84 MessageOption opt(MessageOption::TF_ASYNC);
in SetNativeDVSyncSwitch() 101 int res = remote->SendRequest(IVSYNC_CONNECTION_SET_NATIVE_DVSYNC_SWITCH, arg, ret, opt);
in SetNativeDVSyncSwitch() 111 MessageOption opt(MessageOption::TF_ASYNC);
in SetUiDvsyncConfig() 128 int res = remote->SendRequest(IVSYNC_CONNECTION_SET_UI_DVSYNC_CONFIG, arg, ret, opt);
in SetUiDvsyncConfig() 137 MessageOption opt;
in GetReceiveFd() local 150 int res = remote->SendRequest(IVSYNC_CONNECTION_GET_RECEIVE_FD, arg, ret, opt);
in GetReceiveFd() 172 MessageOption opt; SetVSyncRate() local 198 MessageOption opt; Destroy() local [all...] |
/foundation/window/window_manager/test/common/utils/src/ |
H A D | common_test_utils.cpp | 35 Media::InitializationOptions opt; in CreatePixelMap() local 36 opt.size.width = TEST_IMAGE_WIDTH; in CreatePixelMap() 37 opt.size.height = TEST_IMAGE_HEIGHT; in CreatePixelMap() 38 opt.pixelFormat = Media::PixelFormat::RGBA_8888; in CreatePixelMap() 39 opt.alphaType = Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in CreatePixelMap() 40 opt.scaleMode = Media::ScaleMode::FIT_TARGET_SIZE; in CreatePixelMap() 41 opt.editable = false; in CreatePixelMap() 42 opt.useSourceIfMatch = false; in CreatePixelMap() 48 const int voulumeSize = opt.size.width * opt in CreatePixelMap() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | invert.h | 28 bool operator==(const InvertOption& opt) const in operator ==() 30 return NearEqual(high_, opt.high_) && NearEqual(low_, opt.high_) && NearEqual(threshold_, opt.threshold_) && in operator ==() 31 NearEqual(thresholdRange_, opt.thresholdRange_); in operator ==()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/include/utils/ |
H A D | database_utils.h | 30 static bool Dump(const DumpOpt &opt, const std::shared_ptr<FetchResult<FileAsset>> &resultSet); 31 static bool Dump(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet); 32 static std::string TitleToStr(const DumpOpt &opt, const std::vector<ColumnInfo> &columnInfos); 33 static int RowToStr(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet, 35 static int FieldToStr(const DumpOpt &opt, const ColumnInfo &columnInfo, 37 static int32_t GetColumnInfo(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet,
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_tool/src/utils/ |
H A D | database_utils.cpp | 32 bool DatabaseUtils::Dump(const DumpOpt &opt, const std::shared_ptr<FetchResult<FileAsset>> &resultSet) in Dump() argument 37 return DatabaseUtils::Dump(opt, resultSet->GetDataShareResultSet()); in Dump() 40 bool DatabaseUtils::Dump(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet) in Dump() argument 46 int32_t err = GetColumnInfo(opt, resultSet, columnInfos); in Dump() 50 if (opt.isPrintFormTitle) { in Dump() 51 printf("%s\n", TitleToStr(opt, columnInfos).c_str()); in Dump() 53 if (opt.count <= 0) { in Dump() 61 for (int32_t row = 0; row < opt.count; row++) { in Dump() 68 ret = RowToStr(opt, resultSet, columnInfos, str); in Dump() 78 std::string DatabaseUtils::TitleToStr(const DumpOpt &opt, cons argument 89 RowToStr(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet, const std::vector<ColumnInfo> &columnInfos, std::string &rowStr) RowToStr() argument 165 FieldToStr(const DumpOpt &opt, const ColumnInfo &columnInfo, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet, std::string &value) FieldToStr() argument 189 GetColumnInfo(const DumpOpt &opt, const std::shared_ptr<DataShare::DataShareResultSet> &resultSet, std::vector<ColumnInfo> &columnInfos) GetColumnInfo() argument [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/heif_hw_decode/demo/ |
H A D | heif_hw_decoder_demo.cpp | 24 CommandOpt opt = Parse(argc, argv); in main() local 25 if (!opt.inputPath.empty()) { in main() 26 opt.Print(); in main() 28 (void)demo.Run(opt); in main()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_ability_component.cpp | 48 MethodOptions opt = MethodOptions::NONE; in JSBind() local 49 JSClass<JSAbilityComponent>::StaticMethod("create", &JSAbilityComponent::Create, opt); in JSBind() 50 JSClass<JSAbilityComponent>::StaticMethod("onReady", &JSAbilityComponent::JsOnReady, opt); in JSBind() 51 JSClass<JSAbilityComponent>::StaticMethod("onDestroy", &JSAbilityComponent::JsOnDestroy, opt); in JSBind() 52 JSClass<JSAbilityComponent>::StaticMethod("onAbilityCreated", &JSAbilityComponent::JsOnAbilityCreated, opt); in JSBind() 53 JSClass<JSAbilityComponent>::StaticMethod("onAbilityMoveToFront", &JSAbilityComponent::JsOnAbilityMovedFront, opt); in JSBind() 54 JSClass<JSAbilityComponent>::StaticMethod("onAbilityWillRemove", &JSAbilityComponent::JsOnAbilityWillRemove, opt); in JSBind() 55 JSClass<JSAbilityComponent>::StaticMethod("onConnect", &JSAbilityComponent::JsOnConnect, opt); in JSBind() 56 JSClass<JSAbilityComponent>::StaticMethod("onDisconnect", &JSAbilityComponent::JsOnDisconnect, opt); in JSBind() 57 JSClass<JSAbilityComponent>::StaticMethod("width", &JSAbilityComponent::Width, opt); in JSBind() [all...] |
H A D | js_view_stack_processor.cpp | 66 MethodOptions opt = MethodOptions::NONE; in JSBind() local 69 "AllocateNewElmetIdForNextComponent", &JSViewStackProcessor::JsAllocateNewElmetIdForNextComponent, opt); in JSBind() 71 "StartGetAccessRecordingFor", &JSViewStackProcessor::JsStartGetAccessRecordingFor, opt); in JSBind() 73 "SetElmtIdToAccountFor", &JSViewStackProcessor::JsSetElmtIdToAccountFor, opt); in JSBind() 75 "GetElmtIdToAccountFor", &JSViewStackProcessor::JsGetElmtIdToAccountFor, opt); in JSBind() 77 "StopGetAccessRecording", &JSViewStackProcessor::JsStopGetAccessRecording, opt); in JSBind() 79 "ImplicitPopBeforeContinue", &JSViewStackProcessor::JsImplicitPopBeforeContinue, opt); in JSBind() 80 JSClass<JSViewStackProcessor>::StaticMethod("visualState", JSVisualState, opt); in JSBind() 81 JSClass<JSViewStackProcessor>::StaticMethod("MakeUniqueId", &JSViewStackProcessor::JSMakeUniqueId, opt); in JSBind() 82 JSClass<JSViewStackProcessor>::StaticMethod("UsesNewPipeline", &JSViewStackProcessor::JsUsesNewPipeline, opt); in JSBind() [all...] |
H A D | js_column.cpp | 120 MethodOptions opt = MethodOptions::NONE; in JSBind() local 121 JSClass<JSColumn>::StaticMethod("create", &JSColumn::Create, opt); in JSBind() 122 JSClass<JSColumn>::StaticMethod("createWithWrap", &JSColumn::CreateWithWrap, opt); in JSBind() 123 JSClass<JSColumn>::StaticMethod("fillParent", &JSFlex::SetFillParent, opt); in JSBind() 124 JSClass<JSColumn>::StaticMethod("wrapContent", &JSFlex::SetWrapContent, opt); in JSBind() 125 JSClass<JSColumn>::StaticMethod("justifyContent", &JSColumn::SetJustifyContent, opt); in JSBind() 126 JSClass<JSColumn>::StaticMethod("alignItems", &JSColumn::SetAlignItems, opt); in JSBind() 127 JSClass<JSColumn>::StaticMethod("reverse", &JSColumn::SetReverse, opt); in JSBind() 128 JSClass<JSColumn>::StaticMethod("alignContent", &JSFlex::SetAlignContent, opt); in JSBind() 129 JSClass<JSColumn>::StaticMethod("height", &JSFlex::JsHeight, opt); in JSBind() [all...] |
H A D | js_row.cpp | 110 MethodOptions opt = MethodOptions::NONE; in JSBind() local 111 JSClass<JSRow>::StaticMethod("create", &JSRow::Create, opt); in JSBind() 112 JSClass<JSRow>::StaticMethod("createWithWrap", &JSRow::CreateWithWrap, opt); in JSBind() 113 JSClass<JSRow>::StaticMethod("fillParent", &JSFlex::SetFillParent, opt); in JSBind() 114 JSClass<JSRow>::StaticMethod("wrapContent", &JSFlex::SetWrapContent, opt); in JSBind() 115 JSClass<JSRow>::StaticMethod("justifyContent", &JSRow::SetJustifyContent, opt); in JSBind() 116 JSClass<JSRow>::StaticMethod("alignItems", &JSRow::SetAlignItems, opt); in JSBind() 117 JSClass<JSRow>::StaticMethod("reverse", &JSRow::SetReverse, opt); in JSBind() 118 JSClass<JSRow>::StaticMethod("alignContent", &JSFlex::SetAlignContent, opt); in JSBind() 119 JSClass<JSRow>::StaticMethod("height", &JSFlex::JsHeight, opt); in JSBind() [all...] |
H A D | js_image_animator.cpp | 61 MethodOptions opt = MethodOptions::NONE; in JSBind() local 62 JSClass<JSImageAnimator>::StaticMethod("create", &JSImageAnimator::Create, opt); in JSBind() 63 JSClass<JSImageAnimator>::StaticMethod("images", &JSImageAnimator::SetImages, opt); in JSBind() 64 JSClass<JSImageAnimator>::StaticMethod("state", &JSImageAnimator::SetState, opt); in JSBind() 65 JSClass<JSImageAnimator>::StaticMethod("duration", &JSImageAnimator::SetDuration, opt); in JSBind() 66 JSClass<JSImageAnimator>::StaticMethod("iterations", &JSImageAnimator::SetIteration, opt); in JSBind() 67 JSClass<JSImageAnimator>::StaticMethod("reverse", &JSImageAnimator::SetIsReverse, opt); in JSBind() 68 JSClass<JSImageAnimator>::StaticMethod("fixedSize", &JSImageAnimator::SetFixedSize, opt); in JSBind() 69 JSClass<JSImageAnimator>::StaticMethod("fillMode", &JSImageAnimator::SetFillMode, opt); in JSBind() 70 JSClass<JSImageAnimator>::StaticMethod("preDecode", &JSImageAnimator::SetPreDecode, opt); in JSBind() [all...] |
H A D | js_cached_image.cpp | 52 MethodOptions opt = MethodOptions::NONE; in JSBind() local 53 JSClass<JSCachedImage>::StaticMethod("create", &JSCachedImage::Create, opt); in JSBind() 60 MethodOptions opt = MethodOptions::NONE; in JSBindMediaCachedImage() local 61 JSClass<JSCachedImage>::StaticMethod("create", &JSCachedImage::Create, opt); in JSBindMediaCachedImage()
|
H A D | js_symbol_span.cpp | 113 MethodOptions opt = MethodOptions::NONE; in JSBind() local 114 JSClass<JSSymbolSpan>::StaticMethod("create", &JSSymbolSpan::Create, opt); in JSBind() 115 JSClass<JSSymbolSpan>::StaticMethod("fontSize", &JSSymbolSpan::SetFontSize, opt); in JSBind() 116 JSClass<JSSymbolSpan>::StaticMethod("fontWeight", &JSSymbolSpan::SetFontWeight, opt); in JSBind() 117 JSClass<JSSymbolSpan>::StaticMethod("fontColor", &JSSymbolSpan::SetFontColor, opt); in JSBind() 118 JSClass<JSSymbolSpan>::StaticMethod("renderingStrategy", &JSSymbolSpan::SetSymbolRenderingStrategy, opt); in JSBind() 119 JSClass<JSSymbolSpan>::StaticMethod("effectStrategy", &JSSymbolSpan::SetSymbolEffect, opt); in JSBind()
|
H A D | js_divider.cpp | 102 MethodOptions opt = MethodOptions::NONE; in JSBind() local 103 JSClass<JSDivider>::StaticMethod("create", &JSDivider::Create, opt); in JSBind() 104 JSClass<JSDivider>::StaticMethod("color", &JSDivider::SetDividerColor, opt); in JSBind() 105 JSClass<JSDivider>::StaticMethod("vertical", &JSDivider::SetVertical, opt); in JSBind() 106 JSClass<JSDivider>::StaticMethod("strokeWidth", &JSDivider::SetStrokeWidth, opt); in JSBind() 107 JSClass<JSDivider>::StaticMethod("lineCap", &JSDivider::SetLineCap, opt); in JSBind()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/common/ |
H A D | mock_jpeg_hw_decode_flow.cpp | 137 bool JpegHwDecoderFlow::Run(const CommandOpt& opt, bool needDumpOutput) in Run() argument 140 std::optional<PixelFormat> colorFmt = UserColorFmtToPixelFmt(opt.colorFmt); in Run() 145 inputFile_ = opt.inputFile; in Run() 146 outputPath_ = opt.outputPath; in Run() 148 orgImgSize_.width = opt.width; in Run() 149 orgImgSize_.height = opt.height; in Run() 150 sampleSize_ = opt.sampleSize; in Run() 151 scaledImgSize_.width = static_cast<int32_t>(AlignUp(opt.width / opt.sampleSize, ALIGN_8)); in Run() 152 scaledImgSize_.height = static_cast<int32_t>(AlignUp(opt in Run() [all...] |
H A D | command_parser.cpp | 58 CommandOpt opt; in Parse() local 66 opt.inputFile = string(optarg); in Parse() 69 opt.outputPath = string(optarg); in Parse() 72 opt.width = static_cast<uint32_t>(stol(optarg)); in Parse() 75 opt.height = static_cast<uint32_t>(stol(optarg)); in Parse() 78 opt.colorFmt = static_cast<UserColorFormat>(stol(optarg)); in Parse() 81 opt.sampleSize = static_cast<uint32_t>(stol(optarg)); in Parse() 87 return opt; in Parse()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/jpeg_hw_decode/unittest/ |
H A D | jpeg_hw_decoder_test.cpp | 79 CommandOpt opt; in HWTEST_F() local 80 opt.width = 1280; in HWTEST_F() 81 opt.height = 768; in HWTEST_F() 82 opt.sampleSize = 1; in HWTEST_F() 83 opt.inputFile = TEST_JPEG_IMG; in HWTEST_F() 87 ret = demo.Run(opt, false); in HWTEST_F()
|
/foundation/multimedia/audio_framework/services/audio_policy/test/example/ |
H A D | audio_dump_test.cpp | 59 static void AudioDumpCmd(int opt) in AudioDumpCmd() argument 63 if (opt) { in AudioDumpCmd() 73 int opt = 0; in main() local 90 opt = stoi(inArgv); in main() 91 AudioDumpCmd(opt); in main()
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/animator/ |
H A D | cj_animator_ffi.cpp | 30 auto opt = std::make_shared<AnimatorOption>(); in FfiAnimatorCreate() local 33 opt->duration = std::max(option.duration, 0); in FfiAnimatorCreate() 34 opt->delay = std::max(option.delay, 0); in FfiAnimatorCreate() 35 opt->iterations = option.iterations >= -1 ? option.iterations : 1; in FfiAnimatorCreate() 36 opt->begin = option.begin; in FfiAnimatorCreate() 37 opt->end = option.end; in FfiAnimatorCreate() 38 opt->easing = std::string(option.easing); in FfiAnimatorCreate() 39 opt->fill = std::string(option.fill); in FfiAnimatorCreate() 40 opt->direction = std::string(option.direction); in FfiAnimatorCreate() 41 auto nativeAnimatorResult = FFIData::Create<AnimatorResultImpl>(std::move(animator), std::move(opt)); in FfiAnimatorCreate() [all...] |
/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_argument.cpp | 129 if (!usage || !usage->opt) { in ShowUsage() 132 if (usage->opt->val) { in ShowUsage() 133 DHCP_LOGI("-%{public}c,--%{public}s ", (char)usage->opt->val, usage->opt->name); in ShowUsage() 135 DHCP_LOGI(" --%{public}s ", usage->opt->name); in ShowUsage() 157 if (!usage.opt) { in PrintRequiredArguments() 162 DHCP_LOGI("\"%{public}s\"", usage.opt->name); in PrintRequiredArguments() 164 DHCP_LOGI(", \"%{public}s\"", usage.opt->name); in PrintRequiredArguments() 182 if (!usage.opt) { in PrintUsage()
|