Home
last modified time | relevance | path

Searched refs:pathName (Results 1 - 25 of 81) sorted by relevance

1234

/foundation/communication/netmanager_base/bpf/bpf_syscall_wrapper/
H A Dbpf_syscall_wrapper.h127 * @param pathName path the bpf map pinned
131 static int BpfObjPin(const std::string &pathName, int bfdFd);
136 * @param pathName bpf map path
140 static int BpfObjGet(const std::string &pathName, uint32_t fileFlags);
145 * @param pathName bpf map path
149 static int GetMap(const std::string &pathName, uint32_t objFlags);
154 * @param pathName bpf map path
157 static int GetRWMap(const std::string &pathName);
162 * @param pathName bpf map path
165 static int GetROMap(const std::string &pathName);
[all...]
/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/src/
H A Drs_graphic_test_img.cpp31 std::shared_ptr<Media::PixelMap> DecodePixelMap(const std::string& pathName, const Media::AllocatorType& allocatorType) in DecodePixelMap() argument
35 Media::ImageSource::CreateImageSource(pathName, Media::SourceOptions(), errCode); in DecodePixelMap()
50 std::shared_ptr<Rosen::RSCanvasNode> SetUpNodeBgImage(const std::string& pathName, const Rosen::Vector4f bounds) in SetUpNodeBgImage() argument
52 std::shared_ptr<Media::PixelMap> pixelmap = DecodePixelMap(pathName, Media::AllocatorType::SHARE_MEM_ALLOC); in SetUpNodeBgImage()
84 void ImageCustomModifier::SetPixelMapPath(std::string pathName) in SetPixelMapPath() argument
87 pathName_ = std::make_shared<RSProperty<std::string>>(pathName); in SetPixelMapPath()
90 pathName_->Set(pathName); in SetPixelMapPath()
107 std::string pathName = pathName_->Get(); in Draw() local
108 auto pixelmap_ = DecodePixelMap(pathName, Media::AllocatorType::SHARE_MEM_ALLOC); in Draw()
/foundation/multimedia/image_effect/test/unittest/utils/
H A Dtest_pixel_map_utils.cpp25 std::unique_ptr<PixelMap> TestPixelMapUtils::ParsePixelMapByPath(const std::string &pathName) in ParsePixelMapByPath() argument
29 std::unique_ptr<ImageSource> imageSource = ImageSource::CreateImageSource(pathName, opts, errorCode); in ParsePixelMapByPath()
31 "ImageSource::CreateImageSource fail! pathName=%{public}s, errorCode=%{public}d", pathName.c_str(), errorCode); in ParsePixelMapByPath()
37 "CreatePixelMap fail! pathName=%{public}s, errorCode=%{public}d", pathName.c_str(), errorCode); in ParsePixelMapByPath()
H A Dtest_pixel_map_utils.h27 static std::unique_ptr<PixelMap> ParsePixelMapByPath(const std::string &pathName);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imagesource_fuzzer/src/
H A Dimage_source_fuzz.cpp99 std::string pathName = "/data/local/tmp/test2.jpg"; in CreateImageSourceByFDEXFuzz() local
100 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in CreateImageSourceByFDEXFuzz()
113 std::string pathName = "/data/local/tmp/test1.jpg"; in CreateImageSourceByIstreamFuzz() local
114 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in CreateImageSourceByIstreamFuzz()
119 std::unique_ptr<std::istream> is = std::make_unique<std::ifstream>(pathName.c_str()); in CreateImageSourceByIstreamFuzz()
132 std::string pathName = "/data/local/tmp/test4.jpg"; in CreateImageSourceByPathNameFuzz() local
133 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in CreateImageSourceByPathNameFuzz()
141 auto imagesource = Media::ImageSource::CreateImageSource(pathName, opts, errorCode); in CreateImageSourceByPathNameFuzz()
150 std::string pathName = "/data/local/tmp/test5.jpg"; in CreateIncrementalPixelMapFuzz() local
151 int fd = open(pathName in CreateIncrementalPixelMapFuzz()
[all...]
/foundation/graphic/graphic_2d/graphic_test/graphic_test_framework/include/
H A Drs_graphic_test_img.h29 const std::string& pathName, const OHOS::Media::AllocatorType& allocatorType);
31 const std::string& pathName, const OHOS::Rosen::Vector4f bounds);
40 void SetPixelMapPath(std::string pathName);
/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/
H A Dbpf_mapper.h153 * @param pathName bpf map path
157 static int32_t BpfObjGet(const std::string &pathName, uint32_t fileFlags) in BpfObjGet() argument
163 bpfAttr.pathname = BpfMapPathNameToU64(pathName); in BpfObjGet()
171 * @param pathName bpf map path
175 static int32_t GetMap(const std::string &pathName, uint32_t objFlags) in GetMap() argument
177 return BpfObjGet(pathName, objFlags); in GetMap()
186 static uint64_t BpfMapPathNameToU64(const std::string &pathName) in BpfMapPathNameToU64() argument
188 return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(pathName.c_str())); in BpfMapPathNameToU64()
212 BpfMapper<Key, Value>(const std::string &pathName, uint32_t flags) in BpfMapper() argument
215 int32_t mapFd = BpfMapperImplement<Key, Value>::GetMap(pathName, flag in BpfMapper()
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dpatch_parser.cpp31 ErrCode PatchParser::ParsePatchInfo(const std::string &pathName, AppQuickFix &appQuickFix) const in ParsePatchInfo() argument
33 LOG_D(BMS_TAG_DEFAULT, "Parse patch.json from %{private}s", pathName.c_str()); in ParsePatchInfo()
34 if (pathName.empty()) { in ParsePatchInfo()
37 PatchExtractor patchExtractor(pathName); in ParsePatchInfo()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/common/src/
H A Dconvert_utils.cpp57 std::string pathName = "/data/local/tmp/testFile_" + GetNowTimeStr() + ".dat"; in ConvertDataToFd() local
58 IMAGE_LOGI("%{public}s pathName is %{public}s", __func__, pathName.c_str()); in ConvertDataToFd()
59 std::remove(pathName.c_str()); in ConvertDataToFd()
60 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in ConvertDataToFd()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_parser.h37 * @param pathName Indicates the path of Bundle.
42 const std::string &pathName,
45 ErrCode ParsePackInfo(const std::string &pathName, BundlePackInfo &bundlePackInfo) const;
48 * @param pathName Indicates the path of Bundle.
52 ErrCode ParseSysCap(const std::string &pathName, std::vector<std::string> &sysCaps) const;
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_parser.cpp101 const std::string &pathName, in Parse()
104 APP_LOGD("parse from %{private}s", pathName.c_str()); in Parse()
105 BundleExtractor bundleExtractor(pathName); in Parse()
146 ErrCode BundleParser::ParsePackInfo(const std::string &pathName, BundlePackInfo &bundlePackInfo) const in ParsePackInfo() argument
148 APP_LOGD("parse from %{private}s", pathName.c_str()); in ParsePackInfo()
149 BundleExtractor bundleExtractor(pathName); in ParsePackInfo()
174 ErrCode BundleParser::ParseSysCap(const std::string &pathName, std::vector<std::string> &sysCaps) const in ParseSysCap() argument
176 APP_LOGD("Parse sysCaps from %{private}s", pathName.c_str()); in ParseSysCap()
177 BundleExtractor bundleExtractor(pathName); in ParseSysCap()
100 Parse( const std::string &pathName, InnerBundleInfo &innerBundleInfo) const Parse() argument
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_util.c107 uint8_t IsAccessiblePath(const char *pathName, int32_t mode, uint32_t fileType) in IsAccessiblePath() argument
110 if (pathName == NULL) { in IsAccessiblePath()
114 if (stat(pathName, &statbuf) != 0) { in IsAccessiblePath()
123 if (access(pathName, F_OK) != 0) { in IsAccessiblePath()
127 if (access(pathName, mode) != 0) { in IsAccessiblePath()
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_file.c144 int32_t SoftBusAccessFile(const char *pathName, int32_t mode) in SoftBusAccessFile() argument
146 (void)pathName; in SoftBusAccessFile()
151 int32_t SoftBusMakeDir(const char *pathName, int32_t mode) in SoftBusMakeDir() argument
153 (void)pathName; in SoftBusMakeDir()
/foundation/communication/netmanager_base/bpf/bpf_reader/
H A Dbpf_reader.h29 NetsysBpfMap<Key, Value>(const std::string &pathName, uint32_t flags);
84 * @param pathName the path that map needs to pin to
87 bool BpfMapFdPin(const std::string &pathName) const;
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dkey_backup.cpp66 int32_t KeyBackup::RemoveNode(const std::string &pathName) in RemoveNode() argument
68 LOGI("remove node pathName %s", pathName.c_str()); in RemoveNode()
70 if (lstat(pathName.c_str(), &st) < 0) { in RemoveNode()
75 CleanFile(pathName); in RemoveNode()
76 return remove(pathName.c_str()); in RemoveNode()
79 DIR *dir = opendir(pathName.c_str()); in RemoveNode()
91 std::string dn = pathName + "/" + std::string(de->d_name); in RemoveNode()
107 return rmdir(pathName.c_str()); in RemoveNode()
470 int32_t KeyBackup::MkdirParentWithRetry(const std::string &pathName, mode_ argument
489 MkdirParent(const std::string &pathName, mode_t mode) MkdirParent() argument
[all...]
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_file.h57 int32_t SoftBusAccessFile(const char *pathName, int32_t mode);
58 int32_t SoftBusMakeDir(const char *pathName, int32_t mode);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/fuzztest/imagegifencoder_fuzzer/src/
H A Dimage_gif_encoder_fuzzer.cpp80 std::string pathName = "/data/local/tmp/moving_test.gif"; in GifEncoderPackingByPathNameFuzz() local
81 int fd = open(pathName.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR); in GifEncoderPackingByPathNameFuzz()
88 auto imageSource = Media::ImageSource::CreateImageSource(pathName, opts, errorCode); in GifEncoderPackingByPathNameFuzz()
/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_file.c249 int32_t SoftBusAccessFile(const char *pathName, int32_t mode) in SoftBusAccessFile() argument
251 if (pathName == NULL) { in SoftBusAccessFile()
252 COMM_LOGE(COMM_ADAPTER, "softbus access path [pathName is null]"); in SoftBusAccessFile()
256 int32_t ret = access(pathName, mode); in SoftBusAccessFile()
264 int32_t SoftBusMakeDir(const char *pathName, int32_t mode) in SoftBusMakeDir() argument
266 if (pathName == NULL) { in SoftBusMakeDir()
267 COMM_LOGE(COMM_ADAPTER, "softbus mkdir file [pathName is null]"); in SoftBusMakeDir()
271 int32_t ret = mkdir(pathName, mode); in SoftBusMakeDir()
/foundation/communication/netmanager_base/services/netmanagernative/bpf/src/
H A Dbpf_ring_buffer.cpp28 uint64_t NetsysBpfRingBuffer::BpfMapPathNameToU64(const std::string &pathName) in BpfMapPathNameToU64() argument
30 return static_cast<uint64_t>(reinterpret_cast<uintptr_t>(pathName.c_str())); in BpfMapPathNameToU64()
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/
H A Drender_service_client__alpha_offscreen_demo.cpp38 shared_ptr<Media::PixelMap> DecodePixelMap(const string& pathName, const Media::AllocatorType& allocatorType) in DecodePixelMap() argument
40 cout << "decode start: ----------- " << pathName << endl; in DecodePixelMap()
44 Media::ImageSource::CreateImageSource(pathName, Media::SourceOptions(), errCode); in DecodePixelMap()
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dkey_backup.h45 int32_t RemoveNode(const std::string &pathName);
61 int32_t MkdirParent(const std::string &pathName, mode_t mode);
62 int32_t MkdirParentWithRetry(const std::string &pathName, mode_t mode);
/foundation/arkui/ace_engine/advanced_ui_component/navpushpathhelper/include/
H A Dhsp_silentinstall.h30 static bool IsHspExist(const std::string& moduleName, const std::string& pathName);
/foundation/arkui/advanced_ui_component/navpushpathhelper/include/
H A Dhsp_silentinstall.h30 static bool IsHspExist(const std::string& moduleName, const std::string& pathName);
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dmovedir.cpp42 filesystem::path pathName(path); in JudgeExistAndEmpty()
43 if (filesystem::exists(pathName, errCode)) { in JudgeExistAndEmpty()
44 if (filesystem::is_empty(pathName, errCode)) { in JudgeExistAndEmpty()
54 filesystem::path pathName(path); in RmDirectory()
56 if (filesystem::exists(pathName, errCode)) { in RmDirectory()
58 (void)filesystem::remove_all(pathName, errCode); in RmDirectory()
/foundation/arkui/ace_engine/advanced_ui_component/navpushpathhelper/src/
H A Dhsp_silentinstall.cpp80 bool HspSilentInstall::IsHspExist(const std::string &moduleName, const std::string &pathName) in IsHspExist() argument
88 if (navigationRoute->IsNavigationItemExits(pathName)) { in IsHspExist()

Completed in 9 milliseconds

1234