Package com.avsystem.anjay
Enum AnjayFirmwareUpdate.InitialState.InitialResult
- java.lang.Object
-
- java.lang.Enum<AnjayFirmwareUpdate.InitialState.InitialResult>
-
- com.avsystem.anjay.AnjayFirmwareUpdate.InitialState.InitialResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AnjayFirmwareUpdate.InitialState.InitialResult>
- Enclosing class:
- AnjayFirmwareUpdate.InitialState
public static enum AnjayFirmwareUpdate.InitialState.InitialResult extends java.lang.Enum<AnjayFirmwareUpdate.InitialState.InitialResult>
Possible values that control the State and Update Result resources at the time of initialization of the Firmware Update object.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOWNLOADEDCorresponds to the "Downloaded" State and "Initial" Result.DOWNLOADINGCorresponds to the "Downloading" State and "Initial" Result.FAILEDCorresponds to the "Idle" State "Firmware update failed" Result.INTEGRITY_FAILURECorresponds to the "Idle" State and "Integrity check failure" Result.NEUTRALCorresponds to the "Idle" State and "Initial" Result.SUCCESSCorresponds to the "Idle" State and "Firmware updated successfully" Result.UPDATINGCorresponds to the "Updating" State and "Initial" Result.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AnjayFirmwareUpdate.InitialState.InitialResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AnjayFirmwareUpdate.InitialState.InitialResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UPDATING
public static final AnjayFirmwareUpdate.InitialState.InitialResult UPDATING
Corresponds to the "Updating" State and "Initial" Result. Shall be used when the device rebooted as part of the update process, but the firmware image is not fully applied yet. The application MUST useAnjayFirmwareUpdate.setResult(Result)to set the result to success or failure after the update process is complete.
-
DOWNLOADED
public static final AnjayFirmwareUpdate.InitialState.InitialResult DOWNLOADED
Corresponds to the "Downloaded" State and "Initial" Result. Shall be used when the device unexpectedly rebooted when the firmware image has already been downloaded into some non-volatile memory.
-
DOWNLOADING
public static final AnjayFirmwareUpdate.InitialState.InitialResult DOWNLOADING
Corresponds to the "Downloading" State and "Initial" Result. Shall be used when the device can determine that it unexpectedly rebooted during the download of the firmware image, and it has all the information necessary to resume the download. Such information shall then be passed via other fields in theAnjayFirmwareUpdate.InitialStateclass.
-
NEUTRAL
public static final AnjayFirmwareUpdate.InitialState.InitialResult NEUTRAL
Corresponds to the "Idle" State and "Initial" Result. Shall be used when the library is initializing normally, not after a firmware update attempt.
-
SUCCESS
public static final AnjayFirmwareUpdate.InitialState.InitialResult SUCCESS
Corresponds to the "Idle" State and "Firmware updated successfully" Result. Shall be used when the device has just rebooted after successfully updating the firmware.
-
INTEGRITY_FAILURE
public static final AnjayFirmwareUpdate.InitialState.InitialResult INTEGRITY_FAILURE
Corresponds to the "Idle" State and "Integrity check failure" Result. Shall be used when the device has just rebooted after an unsuccessful firmware update attempt that failed due to failed integrity check of the firmware package.
-
FAILED
public static final AnjayFirmwareUpdate.InitialState.InitialResult FAILED
Corresponds to the "Idle" State "Firmware update failed" Result. Shall be used when the device has just rebooted after a firmware upgrade attempt that was unsuccessful for reason any other than integrity check.
-
-
Method Detail
-
values
public static AnjayFirmwareUpdate.InitialState.InitialResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnjayFirmwareUpdate.InitialState.InitialResult c : AnjayFirmwareUpdate.InitialState.InitialResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnjayFirmwareUpdate.InitialState.InitialResult valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-