/**@class android.os.UpdateEngine.ErrorCodeConstants
@extends java.lang.Object

 Error codes from update engine upon finishing a call to
 {@link applyPayload}. Values will be passed via the callback function
 {@link android.os.UpdateEngineCallback#onPayloadApplicationComplete}. Values must
 agree with the ones in {@code system/update_engine/common/error_code.h}.
*/
var ErrorCodeConstants = {

/** Error code: a request finished successfully.
*/
SUCCESS : "0",
/** Error code: a request failed due to a generic error.
*/
ERROR : "1",
/** Error code: an update failed to apply due to filesystem copier
 error.
*/
FILESYSTEM_COPIER_ERROR : "4",
/** Error code: an update failed to apply due to an error in running
 post-install hooks.
*/
POST_INSTALL_RUNNER_ERROR : "5",
/** Error code: an update failed to apply due to a mismatching payload.

 <p>For example, the given payload uses a feature that's not
 supported by the current update engine.
*/
PAYLOAD_MISMATCHED_TYPE_ERROR : "6",
/** Error code: an update failed to apply due to an error in opening
 devices.
*/
INSTALL_DEVICE_OPEN_ERROR : "7",
/** Error code: an update failed to apply due to an error in opening
 kernel device.
*/
KERNEL_DEVICE_OPEN_ERROR : "8",
/** Error code: an update failed to apply due to an error in fetching
 the payload.

 <p>For example, this could be a result of bad network connection
 when streaming an update.
*/
DOWNLOAD_TRANSFER_ERROR : "9",
/** Error code: an update failed to apply due to a mismatch in payload
 hash.

 <p>Update engine does sanity checks for the given payload and its
 metadata.
*/
PAYLOAD_HASH_MISMATCH_ERROR : "10",
/** Error code: an update failed to apply due to a mismatch in payload
 size.
*/
PAYLOAD_SIZE_MISMATCH_ERROR : "11",
/** Error code: an update failed to apply due to failing to verify
 payload signatures.
*/
DOWNLOAD_PAYLOAD_VERIFICATION_ERROR : "12",
/** Error code: an update failed to apply due to a downgrade in payload
 timestamp.

 <p>The timestamp of a build is encoded into the payload, which will
 be enforced during install to prevent downgrading a device.
*/
PAYLOAD_TIMESTAMP_ERROR : "51",
/** Error code: an update has been applied successfully but the new slot
 hasn't been set to active.

 <p>It indicates a successful finish of calling {@link #applyPayload} with
 {@code SWITCH_SLOT_ON_REBOOT=0}. See {@link #applyPayload}.
*/
UPDATED_BUT_NOT_ACTIVE : "52",

};