Lines Matching refs:Error
127 : Error("failed to get CRC for \"%s\"", a ? "AndroidManifest.xml" : "resources.arsc"); in GetCrc()
147 return Error("bad magic: actual 0x%08x, expected 0x%08x", magic_, kIdmapMagic); in IsUpToDate()
151 return Error("bad version: actual 0x%08x, expected 0x%08x", version_, kIdmapCurrentVersion); in IsUpToDate()
156 return Error("failed to open target %s", GetTargetPath().to_string().c_str()); in IsUpToDate()
161 return Error("failed to get target crc"); in IsUpToDate()
165 return Error("bad target crc: idmap version 0x%08x, file system version 0x%08x", target_crc_, in IsUpToDate()
171 return Error("failed to open overlay %s", GetOverlayPath().to_string().c_str()); in IsUpToDate()
176 return Error("failed to get overlay crc"); in IsUpToDate()
180 return Error("bad overlay crc: idmap version 0x%08x, file system version 0x%08x", overlay_crc_, in IsUpToDate()
253 return Error("failed to parse idmap header"); in FromBinaryStream()
261 return Error("failed to parse data block %d", i); in FromBinaryStream()
294 : Error( in CheckOverlayable()
302 return Error("resource has no overlayable declaration"); in CheckOverlayable()
308 return Error("<overlay> android:targetName '%s' does not match overlayable name '%s'", in CheckOverlayable()
314 return Error("overlay with policies '%s' does not fulfill any overlayable policies '%s'", in CheckOverlayable()
331 return Error("failed to create target asset manager"); in FromApkAssets()
336 return Error("failed to create overlay asset manager"); in FromApkAssets()
341 return Error("failed to load target resources.arsc"); in FromApkAssets()
346 return Error("failed to load overlay resources.arsc"); in FromApkAssets()
351 return Error("failed to load target package from resources.arsc"); in FromApkAssets()
356 return Error("failed to load overlay package from resources.arsc"); in FromApkAssets()
361 return Error("failed to open target as zip"); in FromApkAssets()
366 return Error("failed to open overlay as zip"); in FromApkAssets()
380 return Error(crc.GetError(), "failed to get zip CRC for target"); in FromApkAssets()
386 return Error(crc.GetError(), "failed to get zip CRC for overlay"); in FromApkAssets()
391 return Error("target apk path \"%s\" longer than maximum size %zu", target_apk_path.c_str(), in FromApkAssets()
398 return Error("overlay apk path \"%s\" longer than maximum size %zu", target_apk_path.c_str(), in FromApkAssets()
439 return Error("overlay \"%s\" does not successfully overlay any resource", in FromApkAssets()