Home
last modified time | relevance | path

Searched refs:opts (Results 1 - 25 of 31) sorted by relevance

12

/base/hiviewdfx/hidumper/frameworks/native/src/common/
H A Ddumper_opts.cpp79 DumperOpts& DumperOpts::operator = (const DumperOpts& opts) in operator =() argument
82 isDumpCpuFreq_ = opts.isDumpCpuFreq_; in operator =()
83 isDumpCpuUsage_ = opts.isDumpCpuUsage_; in operator =()
84 cpuUsagePid_ = opts.cpuUsagePid_; in operator =()
85 isDumpLog_ = opts.isDumpLog_; in operator =()
86 logArgs_.assign((opts.logArgs_).begin(), (opts.logArgs_).end()); in operator =()
87 isDumpMem_ = opts.isDumpMem_; in operator =()
88 memPid_ = opts.memPid_; in operator =()
89 isDumpStorage_ = opts in operator =()
[all...]
H A Ddumper_parameter.cpp39 void DumperParameter::SetOpts(const DumperOpts &opts) in SetOpts() argument
41 opts_ = opts; in SetOpts()
/base/hiviewdfx/hidumper/test/unittest/common/
H A Dhidumper_configutils_test.cpp157 DumperOpts opts; in HWTEST_F() local
158 opts.isDumpLog_ = true; in HWTEST_F()
159 opts.logArgs_.push_back("hidumper"); in HWTEST_F()
160 parameter->SetOpts(opts); in HWTEST_F()
175 DumperOpts opts; in HWTEST_F() local
176 opts.isDumpLog_ = true; in HWTEST_F()
177 opts.logArgs_.push_back("hidumper"); in HWTEST_F()
178 parameter->SetOpts(opts); in HWTEST_F()
193 DumperOpts opts; in HWTEST_F() local
194 opts in HWTEST_F()
234 DumperOpts opts; HWTEST_F() local
253 DumperOpts opts; HWTEST_F() local
273 DumperOpts opts; HWTEST_F() local
291 DumperOpts opts; HWTEST_F() local
324 DumperOpts opts; HWTEST_F() local
[all...]
H A Dhidumper_dumpers_test.cpp56 static DumpStatus SetIpcStatCmdTest(const DumperOpts &opts);
135 DumperOpts opts; in HandleCpuDumperTest() local
136 opts.isDumpCpuUsage_ = pid == -1 ? true : false; in HandleCpuDumperTest()
137 opts.cpuUsagePid_ = pid; in HandleCpuDumperTest()
138 parameter->SetOpts(opts); in HandleCpuDumperTest()
206 DumperOpts opts; in HandleIpcStatDumperTest() local
216 opts.isDumpIpc_ = true; in HandleIpcStatDumperTest()
217 opts.isDumpAllIpc_ = true; in HandleIpcStatDumperTest()
218 opts.isDumpIpcStartStat_ = true; in HandleIpcStatDumperTest()
219 parameter->SetOpts(opts); in HandleIpcStatDumperTest()
231 SetIpcStatCmdTest(const DumperOpts &opts) SetIpcStatCmdTest() argument
533 DumperOpts opts; HWTEST_F() local
550 DumperOpts opts; HWTEST_F() local
566 DumperOpts opts; HWTEST_F() local
614 DumperOpts opts; HWTEST_F() local
[all...]
H A Dhidumper_output_test.cpp85 DumperOpts opts; in HWTEST_F() local
86 opts.path_ = FILE_ROOT + "GZ_HidumperOutputTest001.gz"; in HWTEST_F()
87 parameter->SetOpts(opts); in HWTEST_F()
126 DumperOpts opts; in HWTEST_F() local
127 opts.path_ = FILE_ROOT + "GZ_HidumperOutputTest002.gz"; in HWTEST_F()
128 parameter->SetOpts(opts); in HWTEST_F()
168 DumperOpts opts; in HWTEST_F() local
169 opts.path_ = FILE_ROOT + "GZ_HidumperOutputTest003.gz"; in HWTEST_F()
170 parameter->SetOpts(opts); in HWTEST_F()
210 DumperOpts opts; in HWTEST_F() local
257 DumperOpts opts; HWTEST_F() local
288 DumperOpts opts; HWTEST_F() local
313 DumperOpts opts; HWTEST_F() local
357 DumperOpts opts; HWTEST_F() local
[all...]
H A Dhidumper_innerkits_test.cpp234 DumperOpts opts; in HWTEST_F() local
235 opts.isDumpCpuUsage_ = true; in HWTEST_F()
236 opts.cpuUsagePid_ = g_pid; in HWTEST_F()
237 parameter->SetOpts(opts); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
H A Dmock_image_source.cpp66 const SourceOptions &opts, uint32_t &errorCode) in CreateImageSource()
72 const SourceOptions &opts, uint32_t &errorCode) in CreateImageSource()
77 OHOS::Media::SourceOptions opts; in CreateImageSource() local
78 ImageSource *sourcePtr = new (std::nothrow) ImageSource(std::move(stream), opts); in CreateImageSource()
84 std::unique_ptr<ImageSource> ImageSource::CreateImageSource(const std::string &pathName, const SourceOptions &opts, in CreateImageSource() argument
90 OHOS::Media::SourceOptions opts; in CreateImageSource() local
91 ImageSource *sourcePtr = new (std::nothrow) ImageSource(std::move(stream), opts); in CreateImageSource()
97 std::unique_ptr<ImageSource> ImageSource::CreateImageSource(const int fd, const SourceOptions &opts, in CreateImageSource() argument
103 std::unique_ptr<ImageSource> ImageSource::CreateIncrementalImageSource(const IncrementalSourceOptions &opts, in CreateIncrementalImageSource() argument
112 std::unique_ptr<PixelMap> ImageSource::CreatePixelMapEx(uint32_t index, const DecodeOptions &opts, uint32_ argument
65 CreateImageSource(std::unique_ptr<std::istream> is, const SourceOptions &opts, uint32_t &errorCode) CreateImageSource() argument
71 CreateImageSource(const uint8_t *data, uint32_t size, const SourceOptions &opts, uint32_t &errorCode) CreateImageSource() argument
122 CreatePixelMap(uint32_t index, const DecodeOptions &opts, uint32_t &errorCode) CreatePixelMap() argument
127 CreateIncrementalPixelMap(uint32_t index, const DecodeOptions &opts, uint32_t &errorCode) CreateIncrementalPixelMap() argument
133 PromoteDecoding(uint32_t index, const DecodeOptions &opts, PixelMap &pixelMap, ImageDecodingState &state, uint8_t &decodeProgress) PromoteDecoding() argument
210 ImageSource(std::unique_ptr<SourceStream> &&stream, const SourceOptions &opts) ImageSource() argument
264 SetDecodeOptions(std::unique_ptr<AbsImageDecoder> &decoder, uint32_t index, const DecodeOptions &opts, ImagePlugin::PlImageInfo &plInfo) SetDecodeOptions() argument
270 UpdatePixelMapInfo(const DecodeOptions &opts, ImagePlugin::PlImageInfo &plInfo, PixelMap &pixelMap) UpdatePixelMapInfo() argument
276 CopyOptionsToPlugin(const DecodeOptions &opts, PixelDecodeOptions &plOpts) CopyOptionsToPlugin() argument
279 CopyOptionsToProcOpts(const DecodeOptions &opts, DecodeOptions &procOpts, PixelMap &pixelMap) CopyOptionsToProcOpts() argument
292 DoIncrementalDecoding(uint32_t index, const DecodeOptions &opts, PixelMap &pixelMap, IncrementalDecodingContext &recordContext) DoIncrementalDecoding() argument
327 GetFinalOutputStep(const DecodeOptions &opts, PixelMap &pixelMap, bool hasNinePatch) GetFinalOutputStep() argument
332 HasDensityChange(const DecodeOptions &opts, ImageInfo &srcImageInfo, bool hasNinePatch) HasDensityChange() argument
[all...]
H A Dmock_pixel_map.cpp46 const InitializationOptions &opts) in Create()
52 int32_t stride, const InitializationOptions &opts) in Create()
58 const InitializationOptions &opts) in CheckParams()
63 std::unique_ptr<PixelMap> PixelMap::Create(const InitializationOptions &opts) in Create() argument
72 std::unique_ptr<PixelMap> PixelMap::Create(PixelMap &source, const InitializationOptions &opts) in Create() argument
77 std::unique_ptr<PixelMap> PixelMap::Create(PixelMap &source, const Rect &srcRect, const InitializationOptions &opts) in Create() argument
94 void PixelMap::InitDstImageInfo(const InitializationOptions &opts, const ImageInfo &srcImageInfo, in InitDstImageInfo() argument
45 Create(const uint32_t *colors, uint32_t colorLength, const InitializationOptions &opts) Create() argument
51 Create(const uint32_t *colors, uint32_t colorLength, int32_t offset, int32_t stride, const InitializationOptions &opts) Create() argument
57 CheckParams(const uint32_t *colors, uint32_t colorLength, int32_t offset, int32_t stride, const InitializationOptions &opts) CheckParams() argument
H A Dmock_image_packer.cpp121 void ImagePacker::CopyOptionsToPlugin(const PackOption &opts, PlEncodeOptions &plOpts) in CopyOptionsToPlugin() argument
/base/startup/init/test/benchmark/
H A Dbenchmark_fwk.cpp110 bench_opts_t opts; in ParseOptions() local
123 opts.cpuNum = strtol(optarg, &errorCheck, 10); // 10 base in ParseOptions()
134 opts.iterNum = strtol(optarg, &errorCheck, 10); // 10 base in ParseOptions()
135 if (*errorCheck != '\0' || opts.iterNum < 0) { in ParseOptions()
148 return opts; in ParseOptions()
243 static void RegisterSingleBenchmark(bench_opts_t opts, const std::string &funcName, args_vector *runArgs) in RegisterSingleBenchmark() argument
251 // It will call LockAndRun(func, opts.cpuNum). in RegisterSingleBenchmark()
252 auto registration = benchmark::RegisterBenchmark(funcName.c_str(), LockAndRun, func, opts.cpuNum)->Args(args); in RegisterSingleBenchmark()
253 printf("opts.iterNum %ld \n", opts in RegisterSingleBenchmark()
260 RegisterAllBenchmarks(const bench_opts_t &opts, std::map<std::string, args_vector> &presetArgs) RegisterAllBenchmarks() argument
273 bench_opts_t opts = ParseOptions(argc, argv); main() local
[all...]
/base/msdp/device_status/test/fuzztest/startdrag_fuzzer/
H A Dstartdrag_fuzzer.cpp47 Media::InitializationOptions opts; in CreatePixelMap() local
48 opts.size.height = height; in CreatePixelMap()
49 opts.size.width = width; in CreatePixelMap()
50 opts.pixelFormat = Media::PixelFormat::BGRA_8888; in CreatePixelMap()
51 opts.alphaType = Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in CreatePixelMap()
52 opts.scaleMode = Media::ScaleMode::FIT_TARGET_SIZE; in CreatePixelMap()
67 std::shared_ptr<Media::PixelMap> pixelMap = Media::PixelMap::Create(colorPixels, colorLen, opts); in CreatePixelMap()
/base/msdp/device_status/test/fuzztest/updateshadowpic_fuzzer/
H A Dupdateshadowpic_fuzzer.cpp47 Media::InitializationOptions opts; in CreatePixelMap() local
48 opts.size.width = width; in CreatePixelMap()
49 opts.size.height = height; in CreatePixelMap()
50 opts.pixelFormat = Media::PixelFormat::BGRA_8888; in CreatePixelMap()
51 opts.alphaType = Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in CreatePixelMap()
52 opts.scaleMode = Media::ScaleMode::FIT_TARGET_SIZE; in CreatePixelMap()
67 std::shared_ptr<Media::PixelMap> pixelMap = Media::PixelMap::Create(colors, colorLen, opts); in CreatePixelMap()
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_image_util.cpp82 Media::SourceOptions opts; in UnPackImage() local
83 opts.formatHint = format; in UnPackImage()
87 opts, errorCode); in UnPackImage()
142 Media::SourceOptions opts; in CreatePixelMap() local
143 opts.formatHint = format; in CreatePixelMap()
144 auto imageSource = Media::ImageSource::CreateImageSource(inFilePath, opts, errorCode); in CreatePixelMap()
/base/hiviewdfx/hidumper/frameworks/native/src/manager/
H A Ddump_implement.cpp137 void DumpImplement::ProcessDumpOptions(int clientPid, std::shared_ptr<DumperParameter> &dumpParameter, DumperOpts &opts) in ProcessDumpOptions() argument
140 opts.AddSelectAll(); in ProcessDumpOptions()
141 opts.isAppendix_ = true; in ProcessDumpOptions()
143 opts.isDumpCpuFreq_ = true; in ProcessDumpOptions()
145 opts.isDumpCpuUsage_ = true; in ProcessDumpOptions()
146 opts.cpuUsagePid_ = clientPid; in ProcessDumpOptions()
148 opts.isDumpMem_ = true; in ProcessDumpOptions()
149 opts.memPid_ = clientPid; in ProcessDumpOptions()
181 DumperOpts opts; in CmdParse() local
182 DumpStatus status = CmdParseWithParameter(dumpParameter, argc, argv, opts); in CmdParse()
269 CmdParseWithParameter(std::shared_ptr<DumperParameter> &dumpParameter, int argc, char *argv[], DumperOpts &opts) CmdParseWithParameter() argument
[all...]
/base/web/webview/test/fuzztest/ohos_adapter/ohosimagedecoderadapterimpl_fuzzer/
H A Dohosimagedecoderadapterimpl_fuzzer.cpp53 OHOS::Media::SourceOptions opts; in ProcessImageSource() local
54 auto imageSource = OHOS::Media::ImageSource::CreateImageSource(DEFAULT_MOUSE_DRAG_IMAGE, opts, errorCode); in ProcessImageSource()
/base/theme/wallpaper_mgr/test/unittest/
H A Dwallpaper_permission_test.cpp98 InitializationOptions opts = { { 5, 7 }, OHOS::Media::PixelFormat::ARGB_8888 }; in CreateTempPixelMap() local
99 std::unique_ptr<PixelMap> uniquePixelMap = PixelMap::Create(color, sizeof(color) / sizeof(color[0]), opts); in CreateTempPixelMap()
/base/hiviewdfx/hidumper/frameworks/native/include/common/
H A Ddumper_parameter.h30 void SetOpts(const DumperOpts &opts);
H A Ddumper_opts.h62 DumperOpts& operator = (const DumperOpts& opts);
/base/request/request/services/src/cxx/
H A Dnotification_bar.cpp87 Media::SourceOptions opts; in CreatePixelMap()
88 auto source = Media::ImageSource::CreateImageSource(CLOSE_ICON_PATH, opts, errorCode); in CreatePixelMap()
/base/theme/wallpaper_mgr/test/fuzztest/wallpapermanager_fuzzer/
H A Dwallpaper_manager_fuzzer.cpp148 InitializationOptions opts = { { 5, 7 }, OHOS::Media::PixelFormat::ARGB_8888 }; in SetWallpaperByMapFuzzTest() local
149 std::unique_ptr<PixelMap> uniquePixelMap = PixelMap::Create(color, sizeof(color) / sizeof(color[0]), opts); in SetWallpaperByMapFuzzTest()
/base/hiviewdfx/hilog/services/hilogtool/
H A Dmain.cpp1031 static void GetOpts(string& opts, struct option(&longOptions)[OPT_ENTRY_CNT]) in GetOpts() argument
1034 opts = ""; in GetOpts()
1040 // opts in GetOpts()
1041 opts += optEntries[i].opt; in GetOpts()
1043 opts += ':'; in GetOpts()
1078 string opts; in HilogEntry() local
1079 GetOpts(opts, longOptions); in HilogEntry()
1098 int choice = getopt_long(argc, argv, opts.c_str(), longOptions, &optIndex); in HilogEntry()
/base/msdp/device_status/test/unittest/intention/services/src/
H A Dintention_service_test.cpp166 Media::InitializationOptions opts; in CreatePixelMap() local
167 opts.size.width = width; in CreatePixelMap()
168 opts.size.height = height; in CreatePixelMap()
169 opts.pixelFormat = Media::PixelFormat::BGRA_8888; in CreatePixelMap()
170 opts.alphaType = Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in CreatePixelMap()
171 opts.scaleMode = Media::ScaleMode::FIT_TARGET_SIZE; in CreatePixelMap()
183 std::shared_ptr<Media::PixelMap> pixelMap = Media::PixelMap::Create(pixelColors, colorLen, opts); in CreatePixelMap()
/base/hiviewdfx/hidumper/frameworks/native/include/manager/
H A Ddump_implement.h94 void ProcessDumpOptions(int clientPid, std::shared_ptr<DumperParameter> &dumpParameter, DumperOpts &opts);
/base/theme/wallpaper_mgr/frameworks/native/src/
H A Dwallpaper_manager.cpp379 OHOS::Media::SourceOptions opts; in CreatePixelMapByFd() local
380 opts.formatHint = "image/jpeg"; in CreatePixelMapByFd()
382 OHOS::Media::ImageSource::CreateImageSource(buffer, size, opts, errorCode); in CreatePixelMapByFd()
/base/msdp/device_status/test/unittest/intention/drag/src/
H A Ddrag_manager_test.cpp78 Media::InitializationOptions opts; in CreatePixelMap() local
79 opts.size.width = width; in CreatePixelMap()
80 opts.size.height = height; in CreatePixelMap()
81 opts.pixelFormat = Media::PixelFormat::BGRA_8888; in CreatePixelMap()
82 opts.alphaType = Media::AlphaType::IMAGE_ALPHA_TYPE_OPAQUE; in CreatePixelMap()
83 opts.scaleMode = Media::ScaleMode::FIT_TARGET_SIZE; in CreatePixelMap()
95 std::shared_ptr<Media::PixelMap> pixelMap = Media::PixelMap::Create(pixelColors, colorLen, opts); in CreatePixelMap()

Completed in 17 milliseconds

12