1 /* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package android.telephony.satellite.stub; 18 19 /** 20 * {@hide} 21 */ 22 @Backing(type="int") 23 enum SatelliteError { 24 /** 25 * The request was successfully processed. 26 */ 27 ERROR_NONE = 0, 28 /** 29 * A generic error which should be used only when other specific errors cannot be used. 30 */ 31 SATELLITE_ERROR = 1, 32 /** 33 * Error received from the satellite server. 34 */ 35 SERVER_ERROR = 2, 36 /** 37 * Error received from the vendor service. This generic error code should be used 38 * only when the error cannot be mapped to other specific service error codes. 39 */ 40 SERVICE_ERROR = 3, 41 /** 42 * Error received from satellite modem. This generic error code should be used only when 43 * the error cannot be mapped to other specific modem error codes. 44 */ 45 MODEM_ERROR = 4, 46 /** 47 * Error received from the satellite network. This generic error code should be used only when 48 * the error cannot be mapped to other specific network error codes. 49 */ 50 NETWORK_ERROR = 5, 51 /** 52 * Telephony is not in a valid state to receive requests from clients. 53 */ 54 INVALID_TELEPHONY_STATE = 6, 55 /** 56 * Satellite modem is not in a valid state to receive requests from clients. 57 */ 58 INVALID_MODEM_STATE = 7, 59 /** 60 * Either vendor service, or modem, or Telephony framework has received a request with 61 * invalid arguments from its clients. 62 */ 63 INVALID_ARGUMENTS = 8, 64 /** 65 * Telephony framework failed to send a request or receive a response from the vendor service 66 * or satellite modem due to internal error. 67 */ 68 REQUEST_FAILED = 9, 69 /** 70 * Radio did not start or is resetting. 71 */ 72 RADIO_NOT_AVAILABLE = 10, 73 /** 74 * The request is not supported by either the satellite modem or the network. 75 */ 76 REQUEST_NOT_SUPPORTED = 11, 77 /** 78 * Satellite modem or network has no resources available to handle requests from clients. 79 */ 80 NO_RESOURCES = 12, 81 /** 82 * Satellite service is not provisioned yet. 83 */ 84 SERVICE_NOT_PROVISIONED = 13, 85 /** 86 * Satellite service provision is already in progress. 87 */ 88 SERVICE_PROVISION_IN_PROGRESS = 14, 89 /** 90 * The ongoing request was aborted by either the satellite modem or the network. 91 */ 92 REQUEST_ABORTED = 15, 93 /** 94 * The device/subscriber is barred from accessing the satellite service. 95 */ 96 SATELLITE_ACCESS_BARRED = 16, 97 /** 98 * Satellite modem timeout to receive ACK or response from the satellite network after 99 * sending a request to the network. 100 */ 101 NETWORK_TIMEOUT = 17, 102 /** 103 * Satellite network is not reachable from the modem. 104 */ 105 SATELLITE_NOT_REACHABLE = 18, 106 /** 107 * The device/subscriber is not authorized to register with the satellite service provider. 108 */ 109 NOT_AUTHORIZED = 19 110 } 111