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 import android.telephony.satellite.stub.NTRadioTechnology; 20 import android.telephony.satellite.stub.PointingInfo; 21 import android.telephony.satellite.stub.SatelliteDatagram; 22 import android.telephony.satellite.stub.SatelliteError; 23 import android.telephony.satellite.stub.SatelliteModemState; 24 25 /** 26 * {@hide} 27 */ 28 oneway interface ISatelliteListener { 29 /** 30 * Indicates that the satellite provision state has changed. 31 * 32 * @param provisioned True means the service is provisioned and false means it is not. 33 */ onSatelliteProvisionStateChanged(in boolean provisioned)34 void onSatelliteProvisionStateChanged(in boolean provisioned); 35 36 /** 37 * Indicates that new datagrams have been received on the device. 38 * 39 * @param datagram New datagram that was received. 40 * @param pendingCount Number of additional datagrams yet to be received. 41 */ onSatelliteDatagramReceived(in SatelliteDatagram datagram, in int pendingCount)42 void onSatelliteDatagramReceived(in SatelliteDatagram datagram, in int pendingCount); 43 44 /** 45 * Indicates that the satellite has pending datagrams for the device to be pulled. 46 */ onPendingDatagrams()47 void onPendingDatagrams(); 48 49 /** 50 * Indicates that the satellite pointing input has changed. 51 * 52 * @param pointingInfo The current pointing info. 53 */ onSatellitePositionChanged(in PointingInfo pointingInfo)54 void onSatellitePositionChanged(in PointingInfo pointingInfo); 55 56 /** 57 * Indicates that the satellite modem state has changed. 58 * 59 * @param state The current satellite modem state. 60 */ onSatelliteModemStateChanged(in SatelliteModemState state)61 void onSatelliteModemStateChanged(in SatelliteModemState state); 62 } 63