Lines Matching refs:imagePath
121 char* imagePath = static_cast<char*>(UIMalloc(static_cast<uint32_t>(strLen)));
122 if (imagePath == nullptr) {
126 if (strcpy_s(imagePath, strLen, src) != EOK) {
127 UIFree(reinterpret_cast<void*>(imagePath));
128 imagePath = nullptr;
131 path_ = imagePath;
150 char* imagePath = static_cast<char*>(UIMalloc(static_cast<uint32_t>(strLen)));
151 if (imagePath == nullptr) {
155 if (memcpy_s(imagePath, strLen, src, strLen) != EOK) {
156 UIFree(reinterpret_cast<void*>(imagePath));
157 imagePath = nullptr;
160 if (strcat_s(imagePath, strLen, suffixName) != EOK) { // The format is xxx.xxx.bin
161 UIFree(reinterpret_cast<void*>(imagePath));
162 imagePath = nullptr;
165 if (access(imagePath, F_OK) != EOK) { // Check whether the xxx.xxx.bin file exists
166 if (memcpy_s(imagePath, strLen, src, strLen) != EOK) {
167 UIFree(reinterpret_cast<void*>(imagePath));
168 imagePath = nullptr;
171 (ptr - src + imagePath)[0] = '\0'; // remove suffix
172 if (strcat_s(imagePath, strLen, suffixName) != EOK) { // The format is xxx.bin
173 UIFree(reinterpret_cast<void*>(imagePath));
174 imagePath = nullptr;
179 if (memcpy_s(imagePath, strLen, src, strLen) != EOK) {
180 UIFree(reinterpret_cast<void*>(imagePath));
181 imagePath = nullptr;
185 path_ = imagePath;