PreciseDataConnectionState
public final class PreciseDataConnectionState
extends Object implements Parcelable
Contains precise data connection state. The following data connection information is included in returned PreciseDataConnectionState:
- Data connection state.
- Network type of the connection.
- APN types.
- APN.
- The properties of the network link.
- Data connection fail cause.
Summary
Inherited methods |
From class java.lang.Object Object | clone() Creates and returns a copy of this object. | boolean | equals(Object obj) Indicates whether some other object is "equal to" this one. | void | finalize() Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | final Class<?> | getClass() Returns the runtime class of this Object. | int | hashCode() Returns a hash code value for the object. | final void | notify() Wakes up a single thread that is waiting on this object's monitor. | final void | notifyAll() Wakes up all threads that are waiting on this object's monitor. | String | toString() Returns a string representation of the object. | final void | wait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. | final void | wait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. | final void | wait() Causes the current thread to wait until it is awakened, typically by being notified or interrupted. | |
| |
Constants
NETWORK_VALIDATION_FAILURE
public static final int NETWORK_VALIDATION_FAILURE
Failure. The Failure status is used when network validation has been completed for the data network and the result is failure.
Constant Value: 4 (0x00000004)
NETWORK_VALIDATION_IN_PROGRESS
public static final int NETWORK_VALIDATION_IN_PROGRESS
In progress. The in progress state is used when the network validation process for the data network is in progress. This state is followed by either success or failure.
Constant Value: 2 (0x00000002)
NETWORK_VALIDATION_NOT_REQUESTED
public static final int NETWORK_VALIDATION_NOT_REQUESTED
Not Requested. The not requested status is used when the data network supports the network validation function, but no network validation is being performed yet.
Constant Value: 1 (0x00000001)
NETWORK_VALIDATION_SUCCESS
public static final int NETWORK_VALIDATION_SUCCESS
Success. The Success status is used when network validation has been completed for the data network and the result is successful.
Constant Value: 3 (0x00000003)
NETWORK_VALIDATION_UNSUPPORTED
public static final int NETWORK_VALIDATION_UNSUPPORTED
Unsupported. The unsupported state is used when the data network cannot support the network validation function for the current data connection state.
Constant Value: 0 (0x00000000)
Fields
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel, int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Returns |
int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
equals
public boolean equals (Object o)
Indicates whether some other object is "equal to" this one.
The equals method implements an equivalence relation on non-null object references:
- It is reflexive: for any non-null reference value
x, x.equals(x) should return true. - It is symmetric: for any non-null reference values
x and y, x.equals(y) should return true if and only if y.equals(x) returns true. - It is transitive: for any non-null reference values
x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true. - It is consistent: for any non-null reference values
x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified. - For any non-null reference value
x, x.equals(null) should return false.
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| Parameters |
o | Object: the reference object with which to compare. |
| Returns |
boolean | true if this object is the same as the obj argument; false otherwise. |
getApnSetting
public ApnSetting getApnSetting ()
Return the APN Settings for this data connection.
| Returns |
ApnSetting | the ApnSetting that was used to configure this data connection. Note that a data connection cannot be established without a valid ApnSetting. The return value would never be null even though it has Nullable annotation. |
getId
public int getId ()
getLastCauseCode
public int getLastCauseCode ()
Returns the cause code generated by the most recent state change. Return the cause code for the most recent change in getState(). In the event of an error, this cause code will be non-zero.
| Returns |
int | Value is DataFailCause.NONE, DataFailCause.OPERATOR_BARRED, DataFailCause.NAS_SIGNALLING, DataFailCause.LLC_SNDCP, DataFailCause.INSUFFICIENT_RESOURCES, DataFailCause.MISSING_UNKNOWN_APN, DataFailCause.UNKNOWN_PDP_ADDRESS_TYPE, DataFailCause.USER_AUTHENTICATION, DataFailCause.ACTIVATION_REJECT_GGSN, DataFailCause.ACTIVATION_REJECT_UNSPECIFIED, DataFailCause.SERVICE_OPTION_NOT_SUPPORTED, DataFailCause.SERVICE_OPTION_NOT_SUBSCRIBED, DataFailCause.SERVICE_OPTION_OUT_OF_ORDER, DataFailCause.NSAPI_IN_USE, DataFailCause.REGULAR_DEACTIVATION, DataFailCause.QOS_NOT_ACCEPTED, DataFailCause.NETWORK_FAILURE, DataFailCause.UMTS_REACTIVATION_REQ, DataFailCause.FEATURE_NOT_SUPP, DataFailCause.TFT_SEMANTIC_ERROR, DataFailCause.TFT_SYTAX_ERROR, DataFailCause.UNKNOWN_PDP_CONTEXT, DataFailCause.FILTER_SEMANTIC_ERROR, DataFailCause.FILTER_SYTAX_ERROR, DataFailCause.PDP_WITHOUT_ACTIVE_TFT, DataFailCause.ACTIVATION_REJECTED_BCM_VIOLATION, DataFailCause.ONLY_IPV4_ALLOWED, DataFailCause.ONLY_IPV6_ALLOWED, DataFailCause.ONLY_SINGLE_BEARER_ALLOWED, DataFailCause.ESM_INFO_NOT_RECEIVED, DataFailCause.PDN_CONN_DOES_NOT_EXIST, DataFailCause.MULTI_CONN_TO_SAME_PDN_NOT_ALLOWED, DataFailCause.COLLISION_WITH_NETWORK_INITIATED_REQUEST, DataFailCause.ONLY_IPV4V6_ALLOWED, DataFailCause.ONLY_NON_IP_ALLOWED, DataFailCause.UNSUPPORTED_QCI_VALUE, DataFailCause.BEARER_HANDLING_NOT_SUPPORTED, DataFailCause.ACTIVE_PDP_CONTEXT_MAX_NUMBER_REACHED, DataFailCause.UNSUPPORTED_APN_IN_CURRENT_PLMN, DataFailCause.INVALID_TRANSACTION_ID, DataFailCause.MESSAGE_INCORRECT_SEMANTIC, DataFailCause.INVALID_MANDATORY_INFO, DataFailCause.MESSAGE_TYPE_UNSUPPORTED, DataFailCause.MSG_TYPE_NONCOMPATIBLE_STATE, DataFailCause.UNKNOWN_INFO_ELEMENT, DataFailCause.CONDITIONAL_IE_ERROR, DataFailCause.MSG_AND_PROTOCOL_STATE_UNCOMPATIBLE, DataFailCause.PROTOCOL_ERRORS, DataFailCause.APN_TYPE_CONFLICT, DataFailCause.INVALID_PCSCF_ADDR, DataFailCause.INTERNAL_CALL_PREEMPT_BY_HIGH_PRIO_APN, DataFailCause.EMM_ACCESS_BARRED, DataFailCause.EMERGENCY_IFACE_ONLY, DataFailCause.IFACE_MISMATCH, DataFailCause.COMPANION_IFACE_IN_USE, DataFailCause.IP_ADDRESS_MISMATCH, DataFailCause.IFACE_AND_POL_FAMILY_MISMATCH, DataFailCause.EMM_ACCESS_BARRED_INFINITE_RETRY, DataFailCause.AUTH_FAILURE_ON_EMERGENCY_CALL, DataFailCause.INVALID_DNS_ADDR, DataFailCause.INVALID_PCSCF_OR_DNS_ADDRESS, DataFailCause.CALL_PREEMPT_BY_EMERGENCY_APN, DataFailCause.UE_INITIATED_DETACH_OR_DISCONNECT, DataFailCause.MIP_FA_REASON_UNSPECIFIED, DataFailCause.MIP_FA_ADMIN_PROHIBITED, DataFailCause.MIP_FA_INSUFFICIENT_RESOURCES, DataFailCause.MIP_FA_MOBILE_NODE_AUTHENTICATION_FAILURE, DataFailCause.MIP_FA_HOME_AGENT_AUTHENTICATION_FAILURE, DataFailCause.MIP_FA_REQUESTED_LIFETIME_TOO_LONG, DataFailCause.MIP_FA_MALFORMED_REQUEST, DataFailCause.MIP_FA_MALFORMED_REPLY, DataFailCause.MIP_FA_ENCAPSULATION_UNAVAILABLE, DataFailCause.MIP_FA_VJ_HEADER_COMPRESSION_UNAVAILABLE, DataFailCause.MIP_FA_REVERSE_TUNNEL_UNAVAILABLE, DataFailCause.MIP_FA_REVERSE_TUNNEL_IS_MANDATORY, DataFailCause.MIP_FA_DELIVERY_STYLE_NOT_SUPPORTED, DataFailCause.MIP_FA_MISSING_NAI, DataFailCause.MIP_FA_MISSING_HOME_AGENT, DataFailCause.MIP_FA_MISSING_HOME_ADDRESS, DataFailCause.MIP_FA_UNKNOWN_CHALLENGE, DataFailCause.MIP_FA_MISSING_CHALLENGE, DataFailCause.MIP_FA_STALE_CHALLENGE, DataFailCause.MIP_HA_REASON_UNSPECIFIED, DataFailCause.MIP_HA_ADMIN_PROHIBITED, DataFailCause.MIP_HA_INSUFFICIENT_RESOURCES, DataFailCause.MIP_HA_MOBILE_NODE_AUTHENTICATION_FAILURE, DataFailCause.MIP_HA_FOREIGN_AGENT_AUTHENTICATION_FAILURE, DataFailCause.MIP_HA_REGISTRATION_ID_MISMATCH, DataFailCause.MIP_HA_MALFORMED_REQUEST, DataFailCause.MIP_HA_UNKNOWN_HOME_AGENT_ADDRESS, DataFailCause.MIP_HA_REVERSE_TUNNEL_UNAVAILABLE, DataFailCause.MIP_HA_REVERSE_TUNNEL_IS_MANDATORY, DataFailCause.MIP_HA_ENCAPSULATION_UNAVAILABLE, DataFailCause.CLOSE_IN_PROGRESS, DataFailCause.NETWORK_INITIATED_TERMINATION, DataFailCause.MODEM_APP_PREEMPTED, DataFailCause.PDN_IPV4_CALL_DISALLOWED, DataFailCause.PDN_IPV4_CALL_THROTTLED, DataFailCause.PDN_IPV6_CALL_DISALLOWED, DataFailCause.PDN_IPV6_CALL_THROTTLED, DataFailCause.MODEM_RESTART, DataFailCause.PDP_PPP_NOT_SUPPORTED, DataFailCause.UNPREFERRED_RAT, DataFailCause.PHYSICAL_LINK_CLOSE_IN_PROGRESS, DataFailCause.APN_PENDING_HANDOVER, DataFailCause.PROFILE_BEARER_INCOMPATIBLE, DataFailCause.SIM_CARD_CHANGED, DataFailCause.LOW_POWER_MODE_OR_POWERING_DOWN, DataFailCause.APN_DISABLED, DataFailCause.MAX_PPP_INACTIVITY_TIMER_EXPIRED, DataFailCause.IPV6_ADDRESS_TRANSFER_FAILED, DataFailCause.TRAT_SWAP_FAILED, DataFailCause.EHRPD_TO_HRPD_FALLBACK, DataFailCause.MIP_CONFIG_FAILURE, DataFailCause.PDN_INACTIVITY_TIMER_EXPIRED, DataFailCause.MAX_IPV4_CONNECTIONS, DataFailCause.MAX_IPV6_CONNECTIONS, DataFailCause.APN_MISMATCH, DataFailCause.IP_VERSION_MISMATCH, DataFailCause.DUN_CALL_DISALLOWED, DataFailCause.INTERNAL_EPC_NONEPC_TRANSITION, DataFailCause.INTERFACE_IN_USE, DataFailCause.APN_DISALLOWED_ON_ROAMING, DataFailCause.APN_PARAMETERS_CHANGED, DataFailCause.NULL_APN_DISALLOWED, DataFailCause.THERMAL_MITIGATION, DataFailCause.DATA_SETTINGS_DISABLED, DataFailCause.DATA_ROAMING_SETTINGS_DISABLED, DataFailCause.DDS_SWITCHED, DataFailCause.FORBIDDEN_APN_NAME, DataFailCause.DDS_SWITCH_IN_PROGRESS, DataFailCause.CALL_DISALLOWED_IN_ROAMING, DataFailCause.NON_IP_NOT_SUPPORTED, DataFailCause.PDN_NON_IP_CALL_THROTTLED, DataFailCause.PDN_NON_IP_CALL_DISALLOWED, DataFailCause.CDMA_LOCK, DataFailCause.CDMA_INTERCEPT, DataFailCause.CDMA_REORDER, DataFailCause.CDMA_RELEASE_DUE_TO_SO_REJECTION, DataFailCause.CDMA_INCOMING_CALL, DataFailCause.CDMA_ALERT_STOP, DataFailCause.CHANNEL_ACQUISITION_FAILURE, DataFailCause.MAX_ACCESS_PROBE, DataFailCause.CONCURRENT_SERVICE_NOT_SUPPORTED_BY_BASE_STATION, DataFailCause.NO_RESPONSE_FROM_BASE_STATION, DataFailCause.REJECTED_BY_BASE_STATION, DataFailCause.CONCURRENT_SERVICES_INCOMPATIBLE, DataFailCause.NO_CDMA_SERVICE, DataFailCause.RUIM_NOT_PRESENT, DataFailCause.CDMA_RETRY_ORDER, DataFailCause.ACCESS_BLOCK, DataFailCause.ACCESS_BLOCK_ALL, DataFailCause.IS707B_MAX_ACCESS_PROBES, DataFailCause.THERMAL_EMERGENCY, DataFailCause.CONCURRENT_SERVICES_NOT_ALLOWED, DataFailCause.INCOMING_CALL_REJECTED, DataFailCause.NO_SERVICE_ON_GATEWAY, DataFailCause.NO_GPRS_CONTEXT, DataFailCause.ILLEGAL_MS, DataFailCause.ILLEGAL_ME, DataFailCause.GPRS_SERVICES_AND_NON_GPRS_SERVICES_NOT_ALLOWED, DataFailCause.GPRS_SERVICES_NOT_ALLOWED, DataFailCause.MS_IDENTITY_CANNOT_BE_DERIVED_BY_THE_NETWORK, DataFailCause.IMPLICITLY_DETACHED, DataFailCause.PLMN_NOT_ALLOWED, DataFailCause.LOCATION_AREA_NOT_ALLOWED, DataFailCause.GPRS_SERVICES_NOT_ALLOWED_IN_THIS_PLMN, DataFailCause.PDP_DUPLICATE, DataFailCause.UE_RAT_CHANGE, DataFailCause.CONGESTION, DataFailCause.NO_PDP_CONTEXT_ACTIVATED, DataFailCause.ACCESS_CLASS_DSAC_REJECTION, DataFailCause.PDP_ACTIVATE_MAX_RETRY_FAILED, DataFailCause.RADIO_ACCESS_BEARER_FAILURE, DataFailCause.ESM_UNKNOWN_EPS_BEARER_CONTEXT, DataFailCause.DRB_RELEASED_BY_RRC, DataFailCause.CONNECTION_RELEASED, DataFailCause.EMM_DETACHED, DataFailCause.EMM_ATTACH_FAILED, DataFailCause.EMM_ATTACH_STARTED, DataFailCause.LTE_NAS_SERVICE_REQUEST_FAILED, DataFailCause.DUPLICATE_BEARER_ID, DataFailCause.ESM_COLLISION_SCENARIOS, DataFailCause.ESM_BEARER_DEACTIVATED_TO_SYNC_WITH_NETWORK, DataFailCause.ESM_NW_ACTIVATED_DED_BEARER_WITH_ID_OF_DEF_BEARER, DataFailCause.ESM_BAD_OTA_MESSAGE, DataFailCause.ESM_DOWNLOAD_SERVER_REJECTED_THE_CALL, DataFailCause.ESM_CONTEXT_TRANSFERRED_DUE_TO_IRAT, DataFailCause.DS_EXPLICIT_DEACTIVATION, DataFailCause.ESM_LOCAL_CAUSE_NONE, DataFailCause.LTE_THROTTLING_NOT_REQUIRED, DataFailCause.ACCESS_CONTROL_LIST_CHECK_FAILURE, DataFailCause.SERVICE_NOT_ALLOWED_ON_PLMN, DataFailCause.EMM_T3417_EXPIRED, DataFailCause.EMM_T3417_EXT_EXPIRED, DataFailCause.RRC_UPLINK_DATA_TRANSMISSION_FAILURE, DataFailCause.RRC_UPLINK_DELIVERY_FAILED_DUE_TO_HANDOVER, DataFailCause.RRC_UPLINK_CONNECTION_RELEASE, DataFailCause.RRC_UPLINK_RADIO_LINK_FAILURE, DataFailCause.RRC_UPLINK_ERROR_REQUEST_FROM_NAS, DataFailCause.RRC_CONNECTION_ACCESS_STRATUM_FAILURE, DataFailCause.RRC_CONNECTION_ANOTHER_PROCEDURE_IN_PROGRESS, DataFailCause.RRC_CONNECTION_ACCESS_BARRED, DataFailCause.RRC_CONNECTION_CELL_RESELECTION, DataFailCause.RRC_CONNECTION_CONFIG_FAILURE, DataFailCause.RRC_CONNECTION_TIMER_EXPIRED, DataFailCause.RRC_CONNECTION_LINK_FAILURE, DataFailCause.RRC_CONNECTION_CELL_NOT_CAMPED, DataFailCause.RRC_CONNECTION_SYSTEM_INTERVAL_FAILURE, DataFailCause.RRC_CONNECTION_REJECT_BY_NETWORK, DataFailCause.RRC_CONNECTION_NORMAL_RELEASE, DataFailCause.RRC_CONNECTION_RADIO_LINK_FAILURE, DataFailCause.RRC_CONNECTION_REESTABLISHMENT_FAILURE, DataFailCause.RRC_CONNECTION_OUT_OF_SERVICE_DURING_CELL_REGISTER, DataFailCause.RRC_CONNECTION_ABORT_REQUEST, DataFailCause.RRC_CONNECTION_SYSTEM_INFORMATION_BLOCK_READ_ERROR, DataFailCause.NETWORK_INITIATED_DETACH_WITH_AUTO_REATTACH, DataFailCause.NETWORK_INITIATED_DETACH_NO_AUTO_REATTACH, DataFailCause.ESM_PROCEDURE_TIME_OUT, DataFailCause.INVALID_CONNECTION_ID, DataFailCause.MAXIMIUM_NSAPIS_EXCEEDED, DataFailCause.INVALID_PRIMARY_NSAPI, DataFailCause.CANNOT_ENCODE_OTA_MESSAGE, DataFailCause.RADIO_ACCESS_BEARER_SETUP_FAILURE, DataFailCause.PDP_ESTABLISH_TIMEOUT_EXPIRED, DataFailCause.PDP_MODIFY_TIMEOUT_EXPIRED, DataFailCause.PDP_INACTIVE_TIMEOUT_EXPIRED, DataFailCause.PDP_LOWERLAYER_ERROR, DataFailCause.PDP_MODIFY_COLLISION, DataFailCause.MAXINUM_SIZE_OF_L2_MESSAGE_EXCEEDED, DataFailCause.NAS_REQUEST_REJECTED_BY_NETWORK, DataFailCause.RRC_CONNECTION_INVALID_REQUEST, DataFailCause.RRC_CONNECTION_TRACKING_AREA_ID_CHANGED, DataFailCause.RRC_CONNECTION_RF_UNAVAILABLE, DataFailCause.RRC_CONNECTION_ABORTED_DUE_TO_IRAT_CHANGE, DataFailCause.RRC_CONNECTION_RELEASED_SECURITY_NOT_ACTIVE, DataFailCause.RRC_CONNECTION_ABORTED_AFTER_HANDOVER, DataFailCause.RRC_CONNECTION_ABORTED_AFTER_IRAT_CELL_CHANGE, DataFailCause.RRC_CONNECTION_ABORTED_DURING_IRAT_CELL_CHANGE, DataFailCause.IMSI_UNKNOWN_IN_HOME_SUBSCRIBER_SERVER, DataFailCause.IMEI_NOT_ACCEPTED, DataFailCause.EPS_SERVICES_AND_NON_EPS_SERVICES_NOT_ALLOWED, DataFailCause.EPS_SERVICES_NOT_ALLOWED_IN_PLMN, DataFailCause.MSC_TEMPORARILY_NOT_REACHABLE, DataFailCause.CS_DOMAIN_NOT_AVAILABLE, DataFailCause.ESM_FAILURE, DataFailCause.MAC_FAILURE, DataFailCause.SYNCHRONIZATION_FAILURE, DataFailCause.UE_SECURITY_CAPABILITIES_MISMATCH, DataFailCause.SECURITY_MODE_REJECTED, DataFailCause.UNACCEPTABLE_NON_EPS_AUTHENTICATION, DataFailCause.CS_FALLBACK_CALL_ESTABLISHMENT_NOT_ALLOWED, DataFailCause.NO_EPS_BEARER_CONTEXT_ACTIVATED, DataFailCause.INVALID_EMM_STATE, DataFailCause.NAS_LAYER_FAILURE, DataFailCause.MULTIPLE_PDP_CALL_NOT_ALLOWED, DataFailCause.EMBMS_NOT_ENABLED, DataFailCause.IRAT_HANDOVER_FAILED, DataFailCause.EMBMS_REGULAR_DEACTIVATION, DataFailCause.TEST_LOOPBACK_REGULAR_DEACTIVATION, DataFailCause.LOWER_LAYER_REGISTRATION_FAILURE, DataFailCause.DATA_PLAN_EXPIRED, DataFailCause.UMTS_HANDOVER_TO_IWLAN, DataFailCause.EVDO_CONNECTION_DENY_BY_GENERAL_OR_NETWORK_BUSY, DataFailCause.EVDO_CONNECTION_DENY_BY_BILLING_OR_AUTHENTICATION_FAILURE, DataFailCause.EVDO_HDR_CHANGED, DataFailCause.EVDO_HDR_EXITED, DataFailCause.EVDO_HDR_NO_SESSION, DataFailCause.EVDO_USING_GPS_FIX_INSTEAD_OF_HDR_CALL, DataFailCause.EVDO_HDR_CONNECTION_SETUP_TIMEOUT, DataFailCause.FAILED_TO_ACQUIRE_COLOCATED_HDR, DataFailCause.OTASP_COMMIT_IN_PROGRESS, DataFailCause.NO_HYBRID_HDR_SERVICE, DataFailCause.HDR_NO_LOCK_GRANTED, DataFailCause.DBM_OR_SMS_IN_PROGRESS, DataFailCause.HDR_FADE, DataFailCause.HDR_ACCESS_FAILURE, DataFailCause.UNSUPPORTED_1X_PREV, DataFailCause.LOCAL_END, DataFailCause.NO_SERVICE, DataFailCause.FADE, DataFailCause.NORMAL_RELEASE, DataFailCause.ACCESS_ATTEMPT_ALREADY_IN_PROGRESS, DataFailCause.REDIRECTION_OR_HANDOFF_IN_PROGRESS, DataFailCause.EMERGENCY_MODE, DataFailCause.PHONE_IN_USE, DataFailCause.INVALID_MODE, DataFailCause.INVALID_SIM_STATE, DataFailCause.NO_COLLOCATED_HDR, DataFailCause.UE_IS_ENTERING_POWERSAVE_MODE, DataFailCause.DUAL_SWITCH, DataFailCause.PPP_TIMEOUT, DataFailCause.PPP_AUTH_FAILURE, DataFailCause.PPP_OPTION_MISMATCH, DataFailCause.PPP_PAP_FAILURE, DataFailCause.PPP_CHAP_FAILURE, DataFailCause.PPP_CLOSE_IN_PROGRESS, DataFailCause.LIMITED_TO_IPV4, DataFailCause.LIMITED_TO_IPV6, DataFailCause.VSNCP_TIMEOUT, DataFailCause.VSNCP_GEN_ERROR, DataFailCause.VSNCP_APN_UNAUTHORIZED, DataFailCause.VSNCP_PDN_LIMIT_EXCEEDED, DataFailCause.VSNCP_NO_PDN_GATEWAY_ADDRESS, DataFailCause.VSNCP_PDN_GATEWAY_UNREACHABLE, DataFailCause.VSNCP_PDN_GATEWAY_REJECT, DataFailCause.VSNCP_INSUFFICIENT_PARAMETERS, DataFailCause.VSNCP_RESOURCE_UNAVAILABLE, DataFailCause.VSNCP_ADMINISTRATIVELY_PROHIBITED, DataFailCause.VSNCP_PDN_ID_IN_USE, DataFailCause.VSNCP_SUBSCRIBER_LIMITATION, DataFailCause.VSNCP_PDN_EXISTS_FOR_THIS_APN, DataFailCause.VSNCP_RECONNECT_NOT_ALLOWED, DataFailCause.IPV6_PREFIX_UNAVAILABLE, DataFailCause.HANDOFF_PREFERENCE_CHANGED, DataFailCause.SLICE_REJECTED, DataFailCause.MATCH_ALL_RULE_NOT_ALLOWED, DataFailCause.ALL_MATCHING_RULES_FAILED, DataFailCause.OEM_DCFAILCAUSE_1, DataFailCause.OEM_DCFAILCAUSE_2, DataFailCause.OEM_DCFAILCAUSE_3, DataFailCause.OEM_DCFAILCAUSE_4, DataFailCause.OEM_DCFAILCAUSE_5, DataFailCause.OEM_DCFAILCAUSE_6, DataFailCause.OEM_DCFAILCAUSE_7, DataFailCause.OEM_DCFAILCAUSE_8, DataFailCause.OEM_DCFAILCAUSE_9, DataFailCause.OEM_DCFAILCAUSE_10, DataFailCause.OEM_DCFAILCAUSE_11, DataFailCause.OEM_DCFAILCAUSE_12, DataFailCause.OEM_DCFAILCAUSE_13, DataFailCause.OEM_DCFAILCAUSE_14, DataFailCause.OEM_DCFAILCAUSE_15, DataFailCause.REGISTRATION_FAIL, DataFailCause.GPRS_REGISTRATION_FAIL, DataFailCause.SIGNAL_LOST, DataFailCause.PREF_RADIO_TECH_CHANGED, DataFailCause.RADIO_POWER_OFF, DataFailCause.TETHERED_CALL_ACTIVE, DataFailCause.ERROR_UNSPECIFIED, DataFailCause.UNKNOWN, DataFailCause.RADIO_NOT_AVAILABLE, DataFailCause.UNACCEPTABLE_NETWORK_PARAMETER, or DataFailCause.LOST_CONNECTION |
getNetworkType
public int getNetworkType ()
Get the network type associated with this data connection.
| Returns |
int | The current/latest (radio) bearer technology that carries this data connection. For a variety of reasons, the network type can change during the life of the data connection, and this information is not reliable unless the physical link is currently active; (there is currently no mechanism to know whether the physical link is active at any given moment). Thus, this value is generally correct but may not be relied-upon to represent the status of the radio bearer at any given moment. Value is TelephonyManager.NETWORK_TYPE_UNKNOWN, TelephonyManager.NETWORK_TYPE_GPRS, TelephonyManager.NETWORK_TYPE_EDGE, TelephonyManager.NETWORK_TYPE_UMTS, TelephonyManager.NETWORK_TYPE_CDMA, TelephonyManager.NETWORK_TYPE_EVDO_0, TelephonyManager.NETWORK_TYPE_EVDO_A, TelephonyManager.NETWORK_TYPE_1xRTT, TelephonyManager.NETWORK_TYPE_HSDPA, TelephonyManager.NETWORK_TYPE_HSUPA, TelephonyManager.NETWORK_TYPE_HSPA, TelephonyManager.NETWORK_TYPE_IDEN, TelephonyManager.NETWORK_TYPE_EVDO_B, TelephonyManager.NETWORK_TYPE_LTE, TelephonyManager.NETWORK_TYPE_EHRPD, TelephonyManager.NETWORK_TYPE_HSPAP, TelephonyManager.NETWORK_TYPE_GSM, TelephonyManager.NETWORK_TYPE_TD_SCDMA, TelephonyManager.NETWORK_TYPE_IWLAN, or TelephonyManager.NETWORK_TYPE_NR |
getNetworkValidationStatus
public int getNetworkValidationStatus ()
Returns the network validation state.
getState
public int getState ()
getTransportType
public int getTransportType ()
hashCode
public int hashCode ()
Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by HashMap.
The general contract of hashCode is:
- Whenever it is invoked on the same object more than once during an execution of a Java application, the
hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application. - If two objects are equal according to the
equals method, then calling the hashCode method on each of the two objects must produce the same integer result. - It is not required that if two objects are unequal according to the
equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
| Returns |
int | a hash code value for this object. |
toString
public String toString ()
Returns a string representation of the object.
| Returns |
String | This value cannot be null. |
writeToParcel
public void writeToParcel (Parcel out, int flags)
Flatten this object in to a Parcel.