Home
last modified time | relevance | path

Searched refs:rawFile (Results 1 - 25 of 26) sorted by relevance

12

/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/
H A Dimage_source_native_impl.cpp76 OH_ImageSourceNative::OH_ImageSourceNative(RawFileDescriptor rawFile, SourceOptions opts) in OH_ImageSourceNative() argument
79 int32_t rawFileLength = rawFile.start + rawFile.length; in OH_ImageSourceNative()
81 rawFile.fd, rawFile.start, rawFileLength, opts, errorCode); in OH_ImageSourceNative()
H A Dimage_source_mdk.cpp107 int32_t OH_ImageSource_CreateFromRawFile(napi_env env, RawFileDescriptor rawFile, in OH_ImageSource_CreateFromRawFile() argument
112 args.rawFile = rawFile; in OH_ImageSource_CreateFromRawFile()
H A Dimage_source_native.cpp407 Image_ErrorCode OH_ImageSourceNative_CreateFromRawFile(RawFileDescriptor *rawFile, OH_ImageSourceNative **res) in OH_ImageSourceNative_CreateFromRawFile() argument
409 if (rawFile == nullptr) { in OH_ImageSourceNative_CreateFromRawFile()
413 auto imageSource = new OH_ImageSourceNative(*rawFile, options); in OH_ImageSourceNative_CreateFromRawFile()
/foundation/arkui/ace_engine/frameworks/core/common/resource/
H A Dresource_wrapper.h272 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest) in GetRawFileData() argument
275 return resourceAdapter_->GetRawFileData(rawFile, len, dest); in GetRawFileData()
277 return themeConstants_->GetRawFileData(rawFile, len, dest); in GetRawFileData()
280 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest, in GetRawFileData() argument
284 return resourceAdapter_->GetRawFileData(rawFile, len, dest, bundleName, moduleName); in GetRawFileData()
286 return themeConstants_->GetRawFileData(rawFile, len, dest, bundleName, moduleName); in GetRawFileData()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/
H A Dohos_file.cpp238 std::shared_ptr<OhosFileStorage> OhosFile::Open(BASE_NS::string_view rawFile) in Open() argument
242 if (OpenRawFile(rawFile, dataLen, data)) { in Open()
288 std::string rawFile; in OpenRawFile() local
289 if (GetResourceId(uri, rawFile)) { in OpenRawFile()
290 auto state = fileResMgr_->GetResMgr()->GetRawFileFromHap(rawFile.c_str(), dataLen, dest); in OpenRawFile()
292 CORE_LOG_E("GetRawFileFromHap error, raw filename:%s, error:%u", rawFile.c_str(), state); in OpenRawFile()
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_constants.h304 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest) in GetRawFileData() argument
309 return resAdapter_->GetRawFileData(rawFile, len, dest); in GetRawFileData()
312 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest, in GetRawFileData() argument
318 return resAdapter_->GetRawFileData(rawFile, len, dest, bundleName, moduleName); in GetRawFileData()
H A Dresource_adapter.h125 virtual bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest) in GetRawFileData() argument
130 virtual bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest, in GetRawFileData() argument
/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_source_mdk_kits.cpp310 static bool isValidRawFile(RawFileDescriptor &rawFile) in isValidRawFile() argument
312 return rawFile.fd != INVALID_FD && rawFile.start >= static_cast<long>(SIZE_ZERO) && in isValidRawFile()
313 rawFile.length > static_cast<long>(SIZE_ZERO); in isValidRawFile()
318 if (args == nullptr || args->inEnv == nullptr || !isValidRawFile(args->rawFile)) { in ImageSourceNapiCreateFromRawFile()
325 RawFileDescriptor rawFile = args->rawFile; in ImageSourceNapiCreateFromRawFile() local
328 int32_t rawFileLength = rawFile.start + rawFile.length; in ImageSourceNapiCreateFromRawFile()
330 rawFile in ImageSourceNapiCreateFromRawFile()
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dbackup_manager.cpp360 int rawFile = 0; in GetClearType() local
363 rawFile++; in GetClearType()
366 rawFile++; in GetClearType()
377 if ((tmpFile >= rawFile) && (tmpFile == 1) && residueInfo.hasTmpBackup) { in GetClearType()
380 if ((tmpFile >= rawFile) && (tmpFile == 1) && residueInfo.hasTmpKey) { in GetClearType()
383 return (tmpFile >= rawFile) ? ROLLBACK : CLEAN_TMP; in GetClearType()
/foundation/multimedia/image_framework/frameworks/kits/js/common/ndk/include/
H A Dimage_source_mdk_kits.h48 RawFileDescriptor rawFile; member
H A Dimage_source_native_impl.h31 OH_ImageSourceNative(RawFileDescriptor rawFile, OHOS::Media::SourceOptions ops);
/foundation/arkui/ace_engine/frameworks/core/components/font/
H A Drosen_font_loader.cpp235 std::string rawFile; in LoadFromResource()
241 rawFile = matches[1].str(); in LoadFromResource()
243 if (rawFile.empty()) { in LoadFromResource()
244 TAG_LOGW(AceLogTag::ACE_FONT, "LoadFromResource rawFile is empty"); in LoadFromResource()
248 if (!resourceWrapper->GetRawFileData(rawFile, dataLen, data, bundleName, moduleName) || !data.get()) { in LoadFromResource()
249 TAG_LOGW(AceLogTag::ACE_FONT, "Get font data by rawFile failed, src:%{private}s, rawFile:%{public}s", in LoadFromResource()
250 fontLoader->familySrc_.c_str(), rawFile.c_str()); in LoadFromResource()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Drosen_media_player.cpp239 std::string rawFile; in RawFileWithModuleInfoPlay() local
241 if (GetResourceId(src, rawFile)) { in RawFileWithModuleInfoPlay()
242 if (!resourceWrapper->GetRawFileDescription(rawFile, rawfileDescription)) { in RawFileWithModuleInfoPlay()
251 resourceWrapper->CloseRawFileDescription(rawFile); in RawFileWithModuleInfoPlay()
254 resourceWrapper->CloseRawFileDescription(rawFile); in RawFileWithModuleInfoPlay()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dimage_ndk_test.cpp361 RawFileDescriptor rawFile; in HWTEST_F() local
362 rawFile.fd = -1; in HWTEST_F()
363 rawFile.start = 0; in HWTEST_F()
364 rawFile.length = 0; in HWTEST_F()
366 int32_t ret = OH_ImageSource_CreateFromRawFile(env, rawFile, ops, res); in HWTEST_F()
H A Dimage_source_native_ndk_test.cpp265 RawFileDescriptor *rawFile = nullptr; in HWTEST_F() local
266 Image_ErrorCode ret = OH_ImageSourceNative_CreateFromRawFile(rawFile, &imageSource); in HWTEST_F()
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dresource_adapter_impl_v2.h66 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest) override;
67 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest,
H A Dresource_adapter_impl.h63 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest) override;
64 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest,
H A Dresource_adapter_impl.cpp549 bool ResourceAdapterImpl::GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest) in GetRawFileData() argument
553 auto state = manager->GetRawFileFromHap(rawFile, len, dest); in GetRawFileData()
555 LOGW("GetRawFileFromHap error, raw filename:%{public}s, error:%{public}u", rawFile.c_str(), state); in GetRawFileData()
561 bool ResourceAdapterImpl::GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest, in GetRawFileData() argument
567 auto state = manager->GetRawFileFromHap(rawFile, len, dest); in GetRawFileData()
571 rawFile.c_str(), bundleName.c_str(), moduleName.c_str(), state); in GetRawFileData()
H A Dresource_adapter_impl_v2.cpp656 TAG_LOGW(AceLogTag::ACE_RESOURCE, "Get rawFile error, filename:%{public}s, error:%{public}u", in GetRawfile()
671 bool ResourceAdapterImplV2::GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest) in GetRawFileData() argument
675 auto state = manager->GetRawFileFromHap(rawFile, len, dest); in GetRawFileData()
677 TAG_LOGW(AceLogTag::ACE_RESOURCE, "Get rawFile from hap error, raw filename:%{public}s, error:%{public}u", in GetRawFileData()
678 rawFile.c_str(), state); in GetRawFileData()
684 bool ResourceAdapterImplV2::GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest, in GetRawFileData() argument
689 auto state = manager->GetRawFileFromHap(rawFile, len, dest); in GetRawFileData()
692 "Get rawFile from hap error, raw filename:%{public}s, bundleName:%{public}s, moduleName:%{public}s, " in GetRawFileData()
694 rawFile.c_str(), bundleName.c_str(), moduleName.c_str(), state); in GetRawFileData()
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dresource_adapter_impl_standard.h59 bool GetRawFileData(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]> &dest) override;
/foundation/arkui/ace_engine/test/mock/core/common/
H A Dmock_resource_adapter.h42 MOCK_METHOD3(GetRawFileData, bool(const std::string& rawFile, size_t& len, std::unique_ptr<uint8_t[]>& dest));
/foundation/multimedia/image_framework/interfaces/kits/native/include/image/
H A Dimage_source_native.h338 * @param rawFile Indicates the raw file's file descriptor.
343 Image_ErrorCode OH_ImageSourceNative_CreateFromRawFile(RawFileDescriptor *rawFile, OH_ImageSourceNative **res);
/foundation/multimedia/image_framework/interfaces/kits/native/include/
H A Dimage_source_mdk.h504 * @param rawFile Indicates the raw file's file descriptor.
518 int32_t OH_ImageSource_CreateFromRawFile(napi_env env, RawFileDescriptor rawFile,
/foundation/multimedia/player_framework/frameworks/native/player/test/unittest/src/
H A Dplayer_mock.cpp377 std::string rawFile = path.substr(strlen("file://")); in SetSource() local
378 int32_t fd = open(rawFile.c_str(), O_RDONLY); in SetSource()
703 std::string rawFile = path.substr(strlen("file://")); in AddSubSource() local
704 int32_t fileDescriptor = open(rawFile.c_str(), O_RDONLY); in AddSubSource()
/foundation/arkui/ace_engine/frameworks/core/image/
H A Dimage_loader.cpp637 std::string rawFile; in LoadImageData() local
638 if (GetResourceId(uri, rawFile)) { in LoadImageData()
640 if (!resourceWrapper->GetRawFileData(rawFile, dataLen, data, bundleName, moudleName)) { in LoadImageData()
641 TAG_LOGW(AceLogTag::ACE_IMAGE, "get image data by name failed, uri:%{private}s, rawFile:%{private}s", in LoadImageData()
642 uri.c_str(), rawFile.c_str()); in LoadImageData()

Completed in 23 milliseconds

12