Lines Matching defs:checksum
170 // The checksum is unnecessary under a few conditions, since the primary
173 // application ahead of time (and thus the checksum is completely
174 // unnecessary). The checksum is also unnecessary on release (non-debug)
189 bool addFileToChecksum(const char *fileName, uint32_t &checksum) {
192 ALOGE("Cannot open file \'%s\' to compute checksum", fileName);
200 ALOGE("Error while computing checksum for file \'%s\'", fileName);
204 checksum = adler32(checksum, (const unsigned char *) buf, nread);
210 ALOGE("Cannot close file \'%s\' after computing checksum", fileName);
227 uint32_t checksum = adler32(0L, Z_NULL, 0);
229 // include checksum of bitcode
231 checksum = adler32(checksum, bitcode, bitcodeSize);
234 // include checksum of command line arguments
235 checksum = adler32(checksum, (const unsigned char *) commandLine,
238 // include checksum of bccFiles
241 if (bccFile[0] != 0 && !addFileToChecksum(bccFile, checksum)) {
242 // return empty checksum instead of something partial/corrupt
247 return checksum;
273 // The shared object may have an invalid build checksum.
369 // cannot compute checksum but verification is enabled
375 // add a dummy/constant as a checksum if verification is disabled
379 // Append build checksum to commandline
382 compileArguments.push_back("-build-checksum");
391 // Read RS info from the shared object to detect checksum mismatch