Lines Matching refs:hapPath
133 bool Extractor::IsSameHap(const std::string& hapPath) const
135 return !hapPath_.empty() && !hapPath.empty() && hapPath_ == hapPath;
227 std::string ExtractorUtil::GetLoadFilePath(const std::string &hapPath)
230 if (StringStartWith(hapPath, Constants::ABS_CODE_PATH, std::string(Constants::ABS_CODE_PATH).length())) {
231 loadPath = GetLoadPath(hapPath);
233 loadPath = hapPath;
238 std::shared_ptr<Extractor> ExtractorUtil::GetExtractor(const std::string &hapPath, bool &newCreate, bool cache)
241 if (hapPath.empty()) {
246 auto mapIter = extractorMap_.find(hapPath);
252 std::shared_ptr<Extractor> extractor = std::make_shared<Extractor>(hapPath);
258 extractorMap_.emplace(hapPath, extractor);
264 void ExtractorUtil::DeleteExtractor(const std::string &hapPath)
266 if (hapPath.empty()) {
271 auto mapIter = extractorMap_.find(hapPath);