Lines Matching refs:path
56 UIFree(const_cast<char*>(dsc_.path));
58 dsc_.path = nullptr;
61 RetCode CacheEntry::SetSrc(const char* path)
65 size_t strLen = strlen(path);
73 if (memcpy_s(newStr, strLen + 1, path, strLen) != EOK) {
79 dsc_.path = newStr;
81 dsc_.path = path;
119 RetCode CacheManager::Open(const char* path, const Style& style, CacheEntry& entry)
121 if ((path == nullptr) || (GetSize() <= 0)) {
127 RetCode ret = GetIndex(path, indexHitted);
135 if ((entryArr_[indexHitted].dsc_.path != nullptr) && (entryArr_[indexHitted].dsc_.decoder != nullptr)) {
142 ret = TryDecode(path, style, entryArr_[indexHitted]);
152 RetCode CacheManager::Close(const char* path)
154 if (path == nullptr) {
160 if (entryArr_[index].dsc_.path == nullptr) {
163 if (strcmp(entryArr_[index].dsc_.path, path) == 0) {
168 if (entryArr_[index].dsc_.path == path) {
178 bool CacheManager::GetImageHeader(const char* path, ImageHeader& header)
182 RetCode ret = Open(path, useless, entry);
199 if (entryArr_[index].dsc_.path != nullptr) {
229 RetCode CacheManager::GetIndex(const char* path, uint16_t& hittedIndex)
233 if ((entryArr_[index].dsc_.path != nullptr) && !strcmp(path, entryArr_[index].dsc_.path)) {
242 ImageInfo* imgDsc = reinterpret_cast<ImageInfo*>(const_cast<char*>(path));
243 if ((entryArr_[index].dsc_.path == path) && (entryArr_[index].dsc_.imgInfo.data == imgDsc->data)) {
269 RetCode CacheManager::TryDecode(const char* path, const Style& style, CacheEntry& entry)
278 RetCode ret = entry.SetSrc(path);