Home
last modified time | relevance | path

Searched refs:CheckFileType (Results 1 - 25 of 30) sorted by relevance

12

/foundation/bundlemanager/bundle_framework/common/utils/src/
H A Dbundle_file_util.cpp54 if (!CheckFileType(bundlePath, INSTALL_FILE_SUFFIX) && in CheckFilePath()
55 !CheckFileType(bundlePath, HSP_FILE_SUFFIX) && in CheckFilePath()
56 !CheckFileType(bundlePath, QUICK_FIX_FILE_SUFFIX) && in CheckFilePath()
57 !CheckFileType(bundlePath, ABC_FILE_SUFFIX) && in CheckFilePath()
58 !CheckFileType(bundlePath, CODE_SIGNATURE_SUFFIX) && in CheckFilePath()
59 !CheckFileType(bundlePath, PGO_SUFFIX)) { in CheckFilePath()
118 bool BundleFileUtil::CheckFileType(const std::string &fileName, const std::string &extensionName) in CheckFileType() function in OHOS::AppExecFwk::BundleFileUtil
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_stream_installer_host_impl.cpp120 if (!BundleUtil::CheckFileType(fileName, ServiceConstants::INSTALL_FILE_SUFFIX) && in CreateStream()
121 !BundleUtil::CheckFileType(fileName, ServiceConstants::HSP_FILE_SUFFIX)) { in CreateStream()
172 if (!BundleUtil::CheckFileType(fileName, ServiceConstants::CODE_SIGNATURE_FILE_SUFFIX)) { in CreateSignatureFileStream()
223 if (!BundleUtil::CheckFileType(hspName, ServiceConstants::INSTALL_FILE_SUFFIX) && in CreateSharedBundleStream()
224 !BundleUtil::CheckFileType(hspName, ServiceConstants::HSP_FILE_SUFFIX) && in CreateSharedBundleStream()
225 !BundleUtil::CheckFileType(hspName, ServiceConstants::CODE_SIGNATURE_FILE_SUFFIX)) { in CreateSharedBundleStream()
280 if (!BundleUtil::CheckFileType(fileName, ServiceConstants::PGO_FILE_SUFFIX)) { in CreatePgoFileStream()
H A Dbundle_util.cpp77 if (!CheckFileType(bundlePath, ServiceConstants::INSTALL_FILE_SUFFIX) && in CheckFilePath()
78 !CheckFileType(bundlePath, ServiceConstants::HSP_FILE_SUFFIX) && in CheckFilePath()
79 !CheckFileType(bundlePath, ServiceConstants::QUICK_FIX_FILE_SUFFIX) && in CheckFilePath()
80 !CheckFileType(bundlePath, ServiceConstants::CODE_SIGNATURE_FILE_SUFFIX)) { in CheckFilePath()
146 bool BundleUtil::CheckFileType(const std::string &fileName, const std::string &extensionName) in CheckFileType() function in OHOS::AppExecFwk::BundleUtil
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dextension_plugin_info_test.cpp127 * @tc.name: CheckFileType
128 * @tc.desc: Test whether CheckFileType and are called normally.
134 bool res = ExtensionPluginInfo::GetInstance().CheckFileType(fileName, ".so"); in HWTEST_F()
138 res = ExtensionPluginInfo::GetInstance().CheckFileType(fileName, ".so"); in HWTEST_F()
142 res = ExtensionPluginInfo::GetInstance().CheckFileType(fileName, ".so"); in HWTEST_F()
/foundation/multimedia/player_framework/services/engine/histreamer/utils/
H A Dmeta_utils.h26 inline bool CheckFileType(const std::shared_ptr<Meta> meta) in CheckFileType() function
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/
H A Dextension_plugin_info.h65 bool CheckFileType(const std::string &fileName, const std::string &extensionName);
H A Dmain_thread.h701 bool CheckFileType(const std::string &fileName, const std::string &extensionName);
/foundation/bundlemanager/bundle_framework/common/utils/include/
H A Dbundle_file_util.h28 static bool CheckFileType(const std::string &fileName, const std::string &extensionName);
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/appservicefwkinstallercheckfiletype_fuzzer/
H A Dappservicefwkinstallercheckfiletype_fuzzer.cpp34 appServicefwk.CheckFileType(hspPaths); in DoSomethingInterestingWithMyAPI()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dextension_plugin_info.cpp136 if (CheckFileType(currentName, LIB_TYPE)) { in ScanExtensions()
147 bool ExtensionPluginInfo::CheckFileType(const std::string& fileName, const std::string& extensionName) in CheckFileType() function in OHOS::AbilityRuntime::ExtensionPluginInfo
149 TAG_LOGD(AAFwkTag::APPKIT, "CheckFileType path is %{public}s, support suffix is %{public}s", in CheckFileType()
H A Dmain_thread.cpp2788 if (CheckFileType(currentName, abilityLibraryType_)) { in ScanDir()
2809 bool MainThread::CheckFileType(const std::string &fileName, const std::string &extensionName) in CheckFileType() function in OHOS::AppExecFwk::MainThread
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlefileutil_fuzzer/
H A Dbundlefileutil_fuzzer.cpp38 fileUtil.CheckFileType(fileName, extensionName); in DoSomethingInterestingWithMyAPI()
/foundation/multimedia/player_framework/services/engine/histreamer/avmetadatahelper/
H A Davmetadatahelper_impl.cpp64 CHECK_AND_RETURN_RET_LOG(MetaUtils::CheckFileType(mediaDemuxer_->GetGlobalMetaInfo()), in SetSource()
75 CHECK_AND_RETURN_RET_LOG(MetaUtils::CheckFileType(mediaDemuxer_->GetGlobalMetaInfo()), in SetSource()
/foundation/multimedia/av_codec/services/media_engine/plugins/source/
H A Dfile_fd_source_plugin.h76 void CheckFileType();
H A Dfile_fd_source_plugin.cpp139 CheckFileType(); in SetSource()
613 void FileFdSourcePlugin::CheckFileType() in CheckFileType() function in OHOS::Media::Plugins::FileFdSource::FileFdSourcePlugin
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/verify/
H A Dverify_manager_host_impl.cpp305 if (!BundleUtil::CheckFileType(abcPath, ABC_FILE_SUFFIX)) { in CheckFileParam()
505 if (!BundleUtil::CheckFileType(path, ABC_FILE_SUFFIX)) { in DeleteAbc()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/app_service_fwk/
H A Dapp_service_fwk_installer.h60 ErrCode CheckFileType(const std::vector<std::string> &bundlePaths);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_util.h59 static bool CheckFileType(const std::string &fileName, const std::string &extensionName);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/
H A Dquick_fix_manager_host_impl.cpp126 if (!BundleUtil::CheckFileType(fileName, ServiceConstants::QUICK_FIX_FILE_SUFFIX)) { in CreateFd()
H A Dquick_fix_deployer.cpp683 if (!BundleUtil::CheckFileType(path, ServiceConstants::QUICK_FIX_FILE_SUFFIX)) { in ProcessBundleFilePaths()
684 LOG_E(BMS_TAG_DEFAULT, "ProcessBundleFilePaths CheckFileType failed"); in ProcessBundleFilePaths()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/extend_resource/
H A Dextend_resource_manager_host_impl.cpp145 if (!BundleUtil::CheckFileType(filePath, EXT_RESOURCE_FILE_SUFFIX)) { in CheckFileParam()
650 if (!BundleUtil::CheckFileType(fileName, EXT_RESOURCE_FILE_SUFFIX)) { in CreateFd()
/foundation/multimedia/av_codec/test/unittest/plugins_source_test/
H A Dfile_fd_source_plugin_unit_test.cpp576 fileFdSourcePlugin_->CheckFileType(); in HWTEST_F()
588 fileFdSourcePlugin_->CheckFileType(); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_service_fwk/
H A Dapp_service_fwk_installer.cpp387 result = CheckFileType(checkedHspPaths); in CheckAndParseFiles()
467 ErrCode AppServiceFwkInstaller::CheckFileType(const std::vector<std::string> &bundlePaths) in CheckFileType() function in OHOS::AppExecFwk::AppServiceFwkInstaller
475 if (!BundleUtil::CheckFileType(bundlePath, ServiceConstants::HSP_FILE_SUFFIX)) { in CheckFileType()
/foundation/ability/ability_runtime/test/unittest/appkit/main_thread_test/
H A Dmain_thread_test.cpp1389 * @tc.desc: CheckFileType.
1398 EXPECT_FALSE(mainThread_->CheckFileType(fileName, extensionName)); in HWTEST_F()
1404 * @tc.desc: CheckFileType.
1413 EXPECT_FALSE(mainThread_->CheckFileType(fileName, extensionName)); in HWTEST_F()
1419 * @tc.desc: CheckFileType.
1428 EXPECT_FALSE(mainThread_->CheckFileType(fileName, extensionName)); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/
H A Dbms_bundle_app_service_fwk_installer.cpp347 * @tc.name: test CheckFileType
348 * @tc.desc: 1.Test the CheckFileType
354 auto res = appServiceFwkInstaller.CheckFileType(hspPaths); in HWTEST_F()
358 res = appServiceFwkInstaller.CheckFileType(hspPaths); in HWTEST_F()

Completed in 33 milliseconds

12