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 17syntax = "proto2"; 18package android.telephony; 19 20option java_outer_classname = "SatelliteProtoEnums"; 21option java_multiple_files = true; 22 23// Feature types of satellite datagram 24enum DatagramType { 25 // Datagram type is unknown. This generic datagram type should be used only when the datagram 26 // type cannot be mapped to other specific datagram types 27 DATAGRAM_TYPE_UNKNOWN = 0; 28 // Datagram type indicating that the datagram to be sent or received is of type SOS message. 29 DATAGRAM_TYPE_SOS_MESSAGE = 1; 30 // Datagram type indicating that the datagram to be sent or received is of type location sharing. 31 DATAGRAM_TYPE_LOCATION_SHARING = 2; 32} 33 34// Result code of Incoming / Outgoing satellite datagram 35// SatelliteServiceResultEnum is not completed yet, it'll be updated once design is fixed 36enum SatelliteError { 37 SATELLITE_ERROR_NONE = 0; 38 SATELLITE_ERROR = 1; 39 SATELLITE_SERVER_ERROR = 2; 40 SATELLITE_SERVICE_ERROR = 3; 41 SATELLITE_MODEM_ERROR = 4; 42 SATELLITE_NETWORK_ERROR = 5; 43 SATELLITE_INVALID_TELEPHONY_STATE = 6; 44 SATELLITE_INVALID_MODEM_STATE = 7; 45 SATELLITE_INVALID_ARGUMENTS = 8; 46 SATELLITE_REQUEST_FAILED = 9; 47 SATELLITE_RADIO_NOT_AVAILABLE = 10; 48 SATELLITE_REQUEST_NOT_SUPPORTED = 11; 49 SATELLITE_NO_RESOURCES = 12; 50 SATELLITE_SERVICE_NOT_PROVISIONED = 13; 51 SATELLITE_SERVICE_PROVISION_IN_PROGRESS = 14; 52 SATELLITE_REQUEST_ABORTED = 15; 53 SATELLITE_ACCESS_BARRED = 16; 54 SATELLITE_NETWORK_TIMEOUT = 17; 55 SATELLITE_NOT_REACHABLE = 18; 56 SATELLITE_NOT_AUTHORIZED = 19; 57 SATELLITE_NOT_SUPPORTED = 20; 58} 59 60// Technology of Satellite Communication 61enum NTRadioTechnology { 62 /* Satellite technology unknown */ 63 NT_RADIO_TECHNOLOGY_UNKNOWN = 0; 64 /* 3GPP NB-IoT (Narrowband Internet of Things) over Non-Terrestrial-Networks technology */ 65 NT_RADIO_TECHNOLOGY_NB_IOT_NTN = 1; 66 /* 3GPP 5G NR over Non-Terrestrial-Networks technology */ 67 NT_RADIO_TECHNOLOGY_NR_NTN = 2; 68 /* 3GPP eMTC (enhanced Machine-Type Communication) over Non-Terrestrial-Networks technology */ 69 NT_RADIO_TECHNOLOGY_EMTC_NTN = 3; 70 /* Proprietary technology like Iridium or Bullitt */ 71 NT_RADIO_TECHNOLOGY_PROPRIETARY = 4; 72}