Package com.android.repository.api
Enum PackageOperation.InstallStatus
- java.lang.Object
-
- java.lang.Enum<PackageOperation.InstallStatus>
-
- com.android.repository.api.PackageOperation.InstallStatus
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PackageOperation.InstallStatus>
- Enclosing interface:
- PackageOperation
public static enum PackageOperation.InstallStatus extends java.lang.Enum<PackageOperation.InstallStatus>
Statuses of in-progress operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLETEThe operation has ended unsuccessfully.FAILEDThe operation has ended unsuccessfully.NOT_STARTEDThis operation hasn't started yetPREPAREDThe steps that can be taken without affecting the installed SDK have completed.PREPARINGThis operation is in the process of preparing the component.RUNNINGThe SDK is being modified.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PackageOperation.InstallStatusvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PackageOperation.InstallStatus[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_STARTED
public static final PackageOperation.InstallStatus NOT_STARTED
This operation hasn't started yet
-
PREPARING
public static final PackageOperation.InstallStatus PREPARING
This operation is in the process of preparing the component. No changes are made to the SDK during this phase.
-
PREPARED
public static final PackageOperation.InstallStatus PREPARED
The steps that can be taken without affecting the installed SDK have completed.
-
RUNNING
public static final PackageOperation.InstallStatus RUNNING
The SDK is being modified.
-
FAILED
public static final PackageOperation.InstallStatus FAILED
The operation has ended unsuccessfully.
-
COMPLETE
public static final PackageOperation.InstallStatus COMPLETE
The operation has ended unsuccessfully.
-
-
Method Detail
-
values
public static PackageOperation.InstallStatus[] 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 (PackageOperation.InstallStatus c : PackageOperation.InstallStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PackageOperation.InstallStatus 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
-
-