/foundation/arkui/ui_lite/frameworks/dfx/ |
H A D | ui_screenshot.cpp | 30 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 D | file_metadata_stream.cpp | 77 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 D | zip_file_reader.cpp | 69 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 D | zip_file_reader_io.cpp | 32 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 D | adapter_config.cpp | 27 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 D | adapter_device_info.cpp | 30 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 D | profile_config.cpp | 29 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 D | adapter_device_config.cpp | 30 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 D | audio_renderer_file_sink.cpp | 53 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 D | preprocessor.cpp | 32 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 D | task_signal_entity.cpp | 29 callbackContext_->filePath_ = taskSignal_->filePath_; in OnCancel() 55 napi_value filePath = LibN::NVal::CreateUTF8String(env, callbackContext->filePath_).val_; in OnCancel()
|
H A D | task_signal_entity.h | 32 std::string filePath_; member in OHOS::FileManagement::ModuleFileIO::JSCallbackContext
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/ |
H A D | zip_file_reader.h | 31 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 D | netfirewall_preference_helper.cpp | 37 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 D | shader_cache.cpp | 48 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 D | file_source.cpp | 28 : 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 D | file_source.h | 52 std::string filePath_; member in OHOS::IntellVoiceEngine::FileSource
|
/foundation/communication/bluetooth/frameworks/inner/ipc/common/ |
H A D | opp_transfer_information.cpp | 43 return filePath_; in GetFilePath() 48 filePath_ = filePath; in SetFilePath()
|
H A D | opp_transfer_information.h | 58 std::string filePath_; member in OHOS::bluetooth::IOppTransferInformation
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/ |
H A D | zip_reader.cpp | 40 : 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 D | zip_reader.h | 73 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 D | task_signal.h | 42 std::string filePath_ = std::string(""); member in OHOS::DistributedFS::ModuleTaskSignal::TaskSignal
|
H A D | task_signal.cpp | 85 filePath_ = filePath; in SetFileInfoOfRemoteTask()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/ |
H A D | cjson_parser.h | 62 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 D | image_source_native_impl.h | 34 std::string filePath_ = ""; member
|