Loading cmds/bootanimation/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -74,4 +74,7 @@ cc_library_shared { "libGLESv2", "libgui", ], whole_static_libs: [ "libc++fs", ], } cmds/bootanimation/BootAnimation.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #define LOG_NDEBUG 0 #define LOG_TAG "BootAnimation" #include <filesystem> #include <vector> #include <stdint.h> Loading Loading @@ -1271,10 +1272,10 @@ bool BootAnimation::preloadZip(Animation& animation) { continue; } const String8 entryName(name); const String8 path(entryName.getPathDir()); const String8 leaf(entryName.getPathLeaf()); if (leaf.size() > 0) { const std::filesystem::path entryName(name); const std::filesystem::path path(entryName.parent_path()); const std::filesystem::path leaf(entryName.filename()); if (!leaf.empty()) { if (entryName == CLOCK_FONT_ZIP_NAME) { FileMap* map = zip->createEntryFileMap(entry); if (map) { Loading @@ -1292,7 +1293,7 @@ bool BootAnimation::preloadZip(Animation& animation) { } for (size_t j = 0; j < pcount; j++) { if (path == animation.parts[j].path) { if (path.string() == animation.parts[j].path.c_str()) { uint16_t method; // supports only stored png files if (zip->getEntryInfo(entry, &method, nullptr, nullptr, nullptr, nullptr, nullptr)) { Loading @@ -1309,7 +1310,7 @@ bool BootAnimation::preloadZip(Animation& animation) { map->getDataLength()); } else { Animation::Frame frame; frame.name = leaf; frame.name = leaf.c_str(); frame.map = map; frame.trimWidth = animation.width; frame.trimHeight = animation.height; Loading Loading
cmds/bootanimation/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -74,4 +74,7 @@ cc_library_shared { "libGLESv2", "libgui", ], whole_static_libs: [ "libc++fs", ], }
cmds/bootanimation/BootAnimation.cpp +7 −6 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #define LOG_NDEBUG 0 #define LOG_TAG "BootAnimation" #include <filesystem> #include <vector> #include <stdint.h> Loading Loading @@ -1271,10 +1272,10 @@ bool BootAnimation::preloadZip(Animation& animation) { continue; } const String8 entryName(name); const String8 path(entryName.getPathDir()); const String8 leaf(entryName.getPathLeaf()); if (leaf.size() > 0) { const std::filesystem::path entryName(name); const std::filesystem::path path(entryName.parent_path()); const std::filesystem::path leaf(entryName.filename()); if (!leaf.empty()) { if (entryName == CLOCK_FONT_ZIP_NAME) { FileMap* map = zip->createEntryFileMap(entry); if (map) { Loading @@ -1292,7 +1293,7 @@ bool BootAnimation::preloadZip(Animation& animation) { } for (size_t j = 0; j < pcount; j++) { if (path == animation.parts[j].path) { if (path.string() == animation.parts[j].path.c_str()) { uint16_t method; // supports only stored png files if (zip->getEntryInfo(entry, &method, nullptr, nullptr, nullptr, nullptr, nullptr)) { Loading @@ -1309,7 +1310,7 @@ bool BootAnimation::preloadZip(Animation& animation) { map->getDataLength()); } else { Animation::Frame frame; frame.name = leaf; frame.name = leaf.c_str(); frame.map = map; frame.trimWidth = animation.width; frame.trimHeight = animation.height; Loading