PrepareEnvironmentResponse

public final class PrepareEnvironmentResponse implements Parcelable


Data interface for a response from the DeviceSecurityPostureClient.prepareEnvironment.

Summary

Constants

static final int

Success code when device policy is already up to date.

static final int

Success code when device policy is installed successfully.

static final int

Error code for device policy app not installed.

static final int

Success code when device policy is updated successfully.

static final int

Error code for dismissal of the install consent.

static final int

Error code for user declined the install consent.

static final int

Error code for recoverable failure when installing device policy app.

static final int

Error code for unrecoverable failure when installing device policy app.

static final int

Error code for invalid argument when performing device policy operation.

static final int

Error code for recoverable failure when updating device policy app.

static final int

Error code for unrecoverable failure when updating device policy app.

Public constructors

Public methods

final int
final int

Status code for the response.

void
writeToParcel(@NonNull Parcel dest, int flags)

Constants

DEVICE_POLICY_APP_ALREADY_UP_TO_DATE

public static final int DEVICE_POLICY_APP_ALREADY_UP_TO_DATE = 2

Success code when device policy is already up to date.

DEVICE_POLICY_APP_INSTALLED

public static final int DEVICE_POLICY_APP_INSTALLED = 0

Success code when device policy is installed successfully.

DEVICE_POLICY_APP_NOT_INSTALLED

public static final int DEVICE_POLICY_APP_NOT_INSTALLED = 3

Error code for device policy app not installed.

DEVICE_POLICY_APP_UPDATED

public static final int DEVICE_POLICY_APP_UPDATED = 1

Success code when device policy is updated successfully.

public static final int INSTALL_CONSENT_DISMISSED = 10

Error code for dismissal of the install consent.

public static final int INSTALL_CONSENT_USER_DECLINED = 9

Error code for user declined the install consent.

INSTALL_DEVICE_POLICY_APP_RECOVERABLE_FAILURE

public static final int INSTALL_DEVICE_POLICY_APP_RECOVERABLE_FAILURE = 5

Error code for recoverable failure when installing device policy app.

INSTALL_DEVICE_POLICY_APP_UNRECOVERABLE_FAILURE

public static final int INSTALL_DEVICE_POLICY_APP_UNRECOVERABLE_FAILURE = 4

Error code for unrecoverable failure when installing device policy app.

INVALID_ARGUMENT_DEVICE_POLICY_OPERATION

public static final int INVALID_ARGUMENT_DEVICE_POLICY_OPERATION = 8

Error code for invalid argument when performing device policy operation.

UPDATE_DEVICE_POLICY_APP_RECOVERABLE_FAILURE

public static final int UPDATE_DEVICE_POLICY_APP_RECOVERABLE_FAILURE = 7

Error code for recoverable failure when updating device policy app.

UPDATE_DEVICE_POLICY_APP_UNRECOVERABLE_FAILURE

public static final int UPDATE_DEVICE_POLICY_APP_UNRECOVERABLE_FAILURE = 6

Error code for unrecoverable failure when updating device policy app.

Public constructors

PrepareEnvironmentResponse

public PrepareEnvironmentResponse(int statusCode)

Public methods

describeContents

public final int describeContents()

getStatusCode

public final int getStatusCode()

Status code for the response.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)