Home
last modified time | relevance | path

Searched refs:filePath_ (Results 1 - 25 of 60) sorted by relevance

123

/foundation/arkui/ui_lite/frameworks/dfx/
H A Dui_screenshot.cpp30 UIScreenshotListener() : filePath_(nullptr) {} in UIScreenshotListener()
34 if (filePath_ != nullptr) { in ~UIScreenshotListener()
35 UIFree(reinterpret_cast<void*>(filePath_)); in ~UIScreenshotListener()
36 filePath_ = nullptr; in ~UIScreenshotListener()
53 unlink(filePath_); variable
54 int32_t fd = open(filePath_, O_RDWR | O_CREAT, DEFAULT_FILE_PERMISSION);
55 UIFree(reinterpret_cast<void*>(filePath_));
56 filePath_ = nullptr;
91 if (filePath_ != nullptr) { in SetFilePath()
92 UIFree(reinterpret_cast<void*>(filePath_)); in SetFilePath()
100 char* filePath_; global() member in OHOS::UIScreenshotListener
[all...]
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/
H A Dfile_metadata_stream.cpp77 this->filePath_ = filePath; in Initialize()
106 HandleFileError("Write", filePath_, -1, -1, size); in Write()
112 HandleFileError("Write", filePath_, (initPath_ == INIT_FROM_FD) ? dupFD_ : -1, result, size); in Write()
122 HandleFileError("Read", filePath_, -1, -1, size); in Read()
131 HandleFileError("Read", filePath_, (initPath_ == INIT_FROM_FD) ? dupFD_ : -1, result, size); in Read()
141 HandleFileError("ReadByte", filePath_, -1, -1, 1); in ReadByte()
147 HandleFileError("ReadByte", filePath_, (initPath_ == INIT_FROM_FD) ? dupFD_ : -1, byte, 1); in ReadByte()
157 HandleFileError("Seek", filePath_, -1, -1, offset); in Seek()
178 HandleFileError("Seek", filePath_, (initPath_ == INIT_FROM_FD) ? dupFD_ : -1, result, offset); in Seek()
191 IMAGE_LOGE("Tell file failed: %{public}s, reason: %{public}s", filePath_ in Tell()
[all...]
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dzip_file_reader.cpp69 if (filePath_.empty()) { in init()
75 if (filePath_.substr(0, Constants::GetProcPrefix().size()) == Constants::GetProcPrefix()) { in init()
76 resolvePath = filePath_; in init()
79 if (realpath(filePath_.c_str(), &(resolvePath[0])) == nullptr) { in init()
H A Dzip_file_reader_io.cpp32 filePath_.c_str(), startPos, bufferSize, fileLen_); in ReadBuffer()
48 filePath_.c_str(), startPos, bufferSize, fileLen_); in ReadBuffer()
68 ABILITYBASE_LOGE("readfile error: %{public}s-%{public}d", filePath_.c_str(), errno); in ReadBuffer()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dadapter_config.cpp27 std::string filePath_ = {BT_CONFIG_PATH + fileName_}; member
45 if (pimpl->parse_.Load(pimpl->filePath_)) { in Load()
51 return pimpl->parse_.Load(pimpl->filePath_); in Load()
61 std::ofstream fout(pimpl->filePath_, std::ios::out | std::ios::trunc); in Reload()
H A Dadapter_device_info.cpp30 std::string filePath_ = {BT_CONFIG_PATH + fileName_}; member
52 if (pimpl->parse_.Load(pimpl->filePath_)) { in Load()
58 return pimpl->parse_.Load(pimpl->filePath_); in Load()
68 std::ofstream fout(pimpl->filePath_, std::ios::out | std::ios::trunc); in Reload()
H A Dprofile_config.cpp29 std::string filePath_ = {BT_CONFIG_PATH + fileName_}; member
46 if (pimpl->parse_.Load(pimpl->filePath_)) { in Load()
52 return pimpl->parse_.Load(pimpl->filePath_); in Load()
62 std::ofstream fout(pimpl->filePath_, std::ios::out | std::ios::trunc); in Reload()
H A Dadapter_device_config.cpp30 std::string filePath_ {BT_CONFIG_PATH + fileName_};
52 if (pimpl->parse_.Load(pimpl->filePath_)) { in Load()
58 return pimpl->parse_.Load(pimpl->filePath_); in Load()
68 std::ofstream fout(pimpl->filePath_, std::ios::out | std::ios::trunc); in Reload()
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/sink/file/
H A Daudio_renderer_file_sink.cpp53 return !filePath_.empty(); in IsInited()
122 filePath_.assign(attr.filePath); in Init()
147 auto pos = filePath_.rfind("/"); in Start()
149 rootPath = filePath_.substr(0, pos); in Start()
150 fileName = filePath_.substr(pos); in Start()
154 CHECK_AND_RETURN_RET_LOG((filePath_.length() < PATH_MAX) && (realpath(rootPath.c_str(), realPath) != nullptr), in Start()
/foundation/ability/idl_tool/idl_tool_2/preprocessor/
H A Dpreprocessor.cpp32 sb.AppendFormat("filePath:%s\n", filePath_.c_str()); in Dump()
136 info.filePath_ = lexer.GetFilePath(); in ParseFileDetail()
137 size_t startIndex = info.filePath_.rfind(SEPARATOR); in ParseFileDetail()
138 size_t endIndex = info.filePath_.rfind(".idl"); in ParseFileDetail()
140 Logger::E(TAG, "failed to get file name from '%s'.", info.filePath_.c_str()); in ParseFileDetail()
143 info.fileName_ = StringHelper::SubStr(info.filePath_, startIndex + 1, endIndex); in ParseFileDetail()
177 if (!CheckPackageName(info.filePath_, token.value)) { in ParsePackage()
179 token.value.c_str(), info.filePath_.c_str()); in ParsePackage()
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_tasksignal/
H A Dtask_signal_entity.cpp29 callbackContext_->filePath_ = taskSignal_->filePath_; in OnCancel()
55 napi_value filePath = LibN::NVal::CreateUTF8String(env, callbackContext->filePath_).val_; in OnCancel()
H A Dtask_signal_entity.h32 std::string filePath_; member in OHOS::FileManagement::ModuleFileIO::JSCallbackContext
/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/
H A Dzip_file_reader.h31 ZipFileReader(const std::string &filePath) : filePath_(filePath) {} in ZipFileReader()
54 std::string filePath_; member in OHOS::AbilityBase::ZipFileReader
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/
H A Dnetfirewall_preference_helper.cpp37 ptr_ = NativePreferences::PreferencesHelper::GetPreferences(filePath_, errCode); in GetPreference()
47 filePath_ = filePath; in GetPreference()
49 ptr_ = NativePreferences::PreferencesHelper::GetPreferences(filePath_, errCode); in GetPreference()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/
H A Dshader_cache.cpp48 if (filePath_.length() <= 0) { in InitShaderCache()
54 cacheData_ = std::make_unique<CacheData>(MAX_KEY_SIZE, MAX_VALUE_SIZE, totalSize, filePath_); in InitShaderCache()
86 filePath_ = filename + "/shader_cache"; in SetFilePath()
88 ShaderCacheUtils::SetPreloadCacheDir(filePath_); in SetFilePath()
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/base/
H A Dfile_source.cpp28 : minBufferSize_(minBufferSize), bufferCnt_(bufferCnt), filePath_(filePath), listener_(std::move(listener)) in FileSource()
56 fileIn_ = std::make_unique<std::ifstream>(filePath_, std::ios::binary); in Start()
H A Dfile_source.h52 std::string filePath_; member in OHOS::IntellVoiceEngine::FileSource
/foundation/communication/bluetooth/frameworks/inner/ipc/common/
H A Dopp_transfer_information.cpp43 return filePath_; in GetFilePath()
48 filePath_ = filePath; in SetFilePath()
H A Dopp_transfer_information.h58 std::string filePath_; member in OHOS::bluetooth::IOppTransferInformation
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dzip_reader.cpp40 : filePath_(FilePath::FromUTF8Unsafe(fileNameInZip)), isDirectory_(false), isUnsafe_(false), isEncrypted_(false) in EntryInfo()
48 isUnsafe_ = filePath_.ReferencesParent(); in EntryInfo()
52 if (filePath_.IsAbsolute() || StartsWith(fileNameInZip, "/")) { in EntryInfo()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/include/
H A Dzip_reader.h73 return filePath_; in GetFilePath()
112 FilePath filePath_; member in OHOS::AppExecFwk::LIBZIP::ZipReader::EntryInfo
/foundation/filemanagement/file_api/interfaces/kits/native/task_signal/
H A Dtask_signal.h42 std::string filePath_ = std::string(""); member in OHOS::DistributedFS::ModuleTaskSignal::TaskSignal
H A Dtask_signal.cpp85 filePath_ = filePath; in SetFileInfoOfRemoteTask()
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Dcjson_parser.h62 ACE_FREE(filePath_); in ~CJSONParser()
241 char *filePath_; member in OHOS::ACELite::final
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/include/
H A Dimage_source_native_impl.h34 std::string filePath_ = ""; member

Completed in 11 milliseconds

123