class ProfmanResult { public: static constexpr int kErrorUsage = 100;
// The return codes of processing profiles (running profman in normal mode). // // On a successful run: // - If `--force-merge` is specified, the return code can only be `kSuccess`. // - If no `--profile-file(-fd)` is specified, the return code can only be // `kSkipCompilationSmallDelta` or `kSkipCompilationEmptyProfiles`. // - Otherwise, the return code can only be `kCompile`, `kSkipCompilationSmallDelta`, or // `kSkipCompilationEmptyProfiles`. // // Note that installd consumes the returns codes with its own copy of these values // (frameworks/native/cmds/installd/dexopt.cpp). enum ProcessingResult { // The success code for `--force-merge`. // This is also the generic success code for non-analysis runs.
kSuccess = 0, // A merge has been performed, meaning the reference profile has been changed.
kCompile = 1, // One of the following conditions is met: // - `--profile-file(-fd)` is not specified. // - The specified profiles are outdated (i.e., APK filename or checksum mismatch). // - The specified profiles are empty. // - The specified profiles don't contain any new class or method. // - The specified profiles don't contain enough number of new classes and methods that meets // the threshold to trigger a merge, and `--force-merge-and-analyze` is not set.
kSkipCompilationSmallDelta = 2, // All the input profiles (including the reference profile) are either outdated (i.e., APK // filename or checksum mismatch) or empty.
kSkipCompilationEmptyProfiles = 7, // Errors.
kErrorBadProfiles = 3,
kErrorIO = 4,
kErrorCannotLock = 5,
kErrorDifferentVersions = 6,
};
// The return codes of running profman with `--copy-and-update-profile-key`. enum CopyAndUpdateResult {
kCopyAndUpdateSuccess = 0,
kCopyAndUpdateNoMatch = 21,
kCopyAndUpdateErrorFailedToUpdateProfile = 22,
kCopyAndUpdateErrorFailedToSaveProfile = 23,
kCopyAndUpdateErrorFailedToLoadProfile = 24,
};
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.