Add ERROR_RADIO_NOT_AVAILABLE for DataServiceCallback am: 4e8a933e81 am: e1643fb088
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2057048 Change-Id: Ia4889868aeb4535b76be86385973728df4c49358 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -50,12 +50,13 @@ public class DataServiceCallback {
|
|||||||
*/
|
*/
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.SOURCE)
|
||||||
@IntDef({RESULT_SUCCESS, RESULT_ERROR_UNSUPPORTED, RESULT_ERROR_INVALID_ARG, RESULT_ERROR_BUSY,
|
@IntDef({RESULT_SUCCESS, RESULT_ERROR_UNSUPPORTED, RESULT_ERROR_INVALID_ARG, RESULT_ERROR_BUSY,
|
||||||
RESULT_ERROR_ILLEGAL_STATE})
|
RESULT_ERROR_ILLEGAL_STATE, RESULT_ERROR_TEMPORARILY_UNAVAILABLE,
|
||||||
|
RESULT_ERROR_RADIO_NOT_AVAILABLE})
|
||||||
public @interface ResultCode {}
|
public @interface ResultCode {}
|
||||||
|
|
||||||
/** Request is completed successfully */
|
/** Request is completed successfully */
|
||||||
public static final int RESULT_SUCCESS = 0;
|
public static final int RESULT_SUCCESS = 0;
|
||||||
/** Request is not support */
|
/** Request is not supported */
|
||||||
public static final int RESULT_ERROR_UNSUPPORTED = 1;
|
public static final int RESULT_ERROR_UNSUPPORTED = 1;
|
||||||
/** Request contains invalid arguments */
|
/** Request contains invalid arguments */
|
||||||
public static final int RESULT_ERROR_INVALID_ARG = 2;
|
public static final int RESULT_ERROR_INVALID_ARG = 2;
|
||||||
@@ -68,6 +69,11 @@ public class DataServiceCallback {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public static final int RESULT_ERROR_TEMPORARILY_UNAVAILABLE = 5;
|
public static final int RESULT_ERROR_TEMPORARILY_UNAVAILABLE = 5;
|
||||||
|
/**
|
||||||
|
* Request failed to complete due to radio not available.
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
|
public static final int RESULT_ERROR_RADIO_NOT_AVAILABLE = 6;
|
||||||
|
|
||||||
private final IDataServiceCallback mCallback;
|
private final IDataServiceCallback mCallback;
|
||||||
|
|
||||||
@@ -255,6 +261,8 @@ public class DataServiceCallback {
|
|||||||
return "RESULT_ERROR_ILLEGAL_STATE";
|
return "RESULT_ERROR_ILLEGAL_STATE";
|
||||||
case RESULT_ERROR_TEMPORARILY_UNAVAILABLE:
|
case RESULT_ERROR_TEMPORARILY_UNAVAILABLE:
|
||||||
return "RESULT_ERROR_TEMPORARILY_UNAVAILABLE";
|
return "RESULT_ERROR_TEMPORARILY_UNAVAILABLE";
|
||||||
|
case RESULT_ERROR_RADIO_NOT_AVAILABLE:
|
||||||
|
return "RESULT_ERROR_RADIO_NOT_AVAILABLE";
|
||||||
default:
|
default:
|
||||||
return "Unknown(" + resultCode + ")";
|
return "Unknown(" + resultCode + ")";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user