Add constants so we can distinguish decryption failures

Bug: 17213613
Change-Id: I6bc10a1ed0855f6946ea9eb2f8d2db00c1af327c
This commit is contained in:
Paul Lawrence
2014-08-28 15:55:38 -07:00
committed by Rom Lemarchand
parent e93e6c81f2
commit e2c88d39b2

View File

@@ -1518,10 +1518,14 @@ public interface IMountService extends IInterface {
static final int ENCRYPTION_STATE_NONE = 1;
/** The volume has been encrypted succesfully. */
static final int ENCRYPTION_STATE_OK = 0;
/** The volume is in a bad state. */
/** The volume is in a bad state.*/
static final int ENCRYPTION_STATE_ERROR_UNKNOWN = -1;
/** The volume is in a bad state - partially encrypted. Data is likely irrecoverable. */
/** Encryption is incomplete */
static final int ENCRYPTION_STATE_ERROR_INCOMPLETE = -2;
/** Encryption is incomplete and irrecoverable */
static final int ENCRYPTION_STATE_ERROR_INCONSISTENT = -3;
/** Underlying data is corrupt */
static final int ENCRYPTION_STATE_ERROR_CORRUPT = -4;
/**
* Determines the encryption state of the volume.