Since: API level 28
public class

NetworkAnalyticsConstants.ErrorValues

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.net.nap.NetworkAnalyticsConstants.ErrorValues

Deprecated in API level 35

Class Overview

Constants that help interpret return values of API calls from the framework.

Summary

Constants
int ERROR_CALLER_INCORRECT_LOCATION Deprecated in API level 35
int ERROR_CALLER_NOT_AUTHORIZED Deprecated in API level 35
int ERROR_CALLER_NOT_PROFILE_OWNER Deprecated in API level 35
int ERROR_CALLER_SIGNATURE_NOT_MATCHED Deprecated in API level 35
int ERROR_FAIL Deprecated in API level 35
int ERROR_FAILED_FILE_DESCRIPTOR_OPEN Deprecated in API level 35
int ERROR_INVALID_PARAMETERS Deprecated in API level 35
int ERROR_INVALID_PROFILE_ATTRIBUTES Deprecated in API level 35
int ERROR_JSON_PARSE Deprecated in API level 35
int ERROR_NPA_VERSION_MISMATCH Deprecated in API level 35
int ERROR_PROFILE_ALREADY_EXISTS Deprecated in API level 35
int ERROR_PROFILE_IN_REQUESTED_ACTIVATION_STATE Deprecated in API level 35
int ERROR_PROFILE_NOT_FOUND Deprecated in API level 35
int ERROR_PROFILE_NOT_REGISTERED_BY_MDM Deprecated in API level 35
int SUCCESS Deprecated in API level 35
Public Constructors
ErrorValues()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int ERROR_CALLER_INCORRECT_LOCATION

Since: API level 28

Deprecated in API level 35

Constant return value to represent an error caused when the caller is installed in incorrect user-space.

Since
API level 22
KNOX 2.8
Constant Value: -17 (0xffffffef)

public static final int ERROR_CALLER_NOT_AUTHORIZED

Since: API level 28

Deprecated in API level 35

Constant return value to represent an error caused when the caller is not authorized.

Since
API level 22
KNOX 2.8
Constant Value: -12 (0xfffffff4)

public static final int ERROR_CALLER_NOT_PROFILE_OWNER

Since: API level 28

Deprecated in API level 35

Constant return value to represent an error caused when the caller is not the owner of the profile.

Since
API level 22
KNOX 2.8
Constant Value: -18 (0xffffffee)

public static final int ERROR_CALLER_SIGNATURE_NOT_MATCHED

Since: API level 28

Deprecated in API level 35

Constant return value to represent an error caused when the signature provided by the admin does not match to that of the caller.

Since
API level 22
KNOX 2.8
Constant Value: -13 (0xfffffff3)

public static final int ERROR_FAIL

Since: API level 28

Deprecated in API level 35

Constant return value used to represent a fail case.

Since
API level 22
KNOX 2.8
Constant Value: -1 (0xffffffff)

public static final int ERROR_FAILED_FILE_DESCRIPTOR_OPEN

Since: API level 28

Deprecated in API level 35

Constant return value to represent an error caused when the caller is trying to start or stop collecting data-points when the system is in a bad state. The error usually occurs when stop-start sequence is called without any-delay;

Since
API level 24
KNOX 3.0
Constant Value: -19 (0xffffffed)

public static final int ERROR_INVALID_PARAMETERS

Since: API level 28

Deprecated in API level 35

Constant return value used to represent an error caused when the caller provided invalid parameters to the API.

Since
API level 22
KNOX 2.8
Constant Value: -4 (0xfffffffc)

public static final int ERROR_INVALID_PROFILE_ATTRIBUTES

Since: API level 28

Deprecated in API level 35

Constant return value used to represent an error caused when the caller provided invalid or absent values as part of the JSON profile attributes.

Since
API level 22
KNOX 2.8
Constant Value: -5 (0xfffffffb)

public static final int ERROR_JSON_PARSE

Since: API level 28

Deprecated in API level 35

Constant return value used to represent an error caused due to JSON profile parsing.

Since
API level 22
KNOX 2.8
Constant Value: -2 (0xfffffffe)

public static final int ERROR_NPA_VERSION_MISMATCH

Since: API level 28

Deprecated in API level 35

Constant return value to represent an error caused when the caller is trying to start collecting data-points in device build not compatible with NPA feature;

Since
API level 26
KNOX 3.2
Constant Value: -20 (0xffffffec)

public static final int ERROR_PROFILE_ALREADY_EXISTS

Since: API level 28

Deprecated in API level 35

Constant return value used to represent an error caused when the caller attempts to register an MDM with a profile name that has already been registered in the framework.

Since
API level 22
KNOX 2.8
Constant Value: -6 (0xfffffffa)

public static final int ERROR_PROFILE_IN_REQUESTED_ACTIVATION_STATE

Since: API level 30

Deprecated in API level 35

Constant return value to represent an error caused when the caller is trying to start or stop a profile which is already in requested state.

Since
API level 24
KNOX 3.0
Constant Value: -8 (0xfffffff8)

public static final int ERROR_PROFILE_NOT_FOUND

Since: API level 28

Deprecated in API level 35

Constant return value used to represent an error which is caused when the caller provides a profile name, that does not map to any profiles in the framework, as parameter to the API.

Since
API level 22
KNOX 2.8
Constant Value: -3 (0xfffffffd)

public static final int ERROR_PROFILE_NOT_REGISTERED_BY_MDM

Since: API level 28

Deprecated in API level 35

Constant return value to represent an error caused when the caller is trying to start collect data-points for a profile which is not registered by the admin.

Since
API level 22
KNOX 2.8
Constant Value: -7 (0xfffffff9)

public static final int SUCCESS

Since: API level 28

Deprecated in API level 35

Constant return value used to represent a success case.

Since
API level 22
KNOX 2.8
Constant Value: 0 (0x00000000)

Public Constructors

public ErrorValues ()

Since: API level 28