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.cts;
18 
19 import android.telephony.satellite.stub.SatelliteDatagram;
20 
21 /**
22  * {@hide}
23  */
24 oneway interface ILocalSatelliteListener {
25     /**
26      * Indicates that the remote service - SatelliteModemInterface - has successfully connected to
27      * the MockSatelliteService.
28      */
onRemoteServiceConnected()29     void onRemoteServiceConnected();
30 
31     /**
32      * Indicates that MockSatelliteService has just received the request
33      * startSendingSatellitePointingInfo from Telephony.
34      */
onStartSendingSatellitePointingInfo()35     void onStartSendingSatellitePointingInfo();
36 
37     /**
38      * Indicates that MockSatelliteService has just received the request
39      * stopSendingSatellitePointingInfo from Telephony.
40      */
onStopSendingSatellitePointingInfo()41     void onStopSendingSatellitePointingInfo();
42 
43     /**
44      * Indicates that MockSatelliteService has just received the request
45      * pollPendingSatelliteSatelliteDatagrams from Telephony.
46      */
onPollPendingSatelliteDatagrams()47     void onPollPendingSatelliteDatagrams();
48 
49     /**
50      * Indicates that MockSatelliteService has just received the request
51      * sendSatelliteSatelliteDatagram from Telephony.
52      */
onSendSatelliteDatagram(in SatelliteDatagram datagram, in boolean isEmergency)53     void onSendSatelliteDatagram(in SatelliteDatagram datagram, in boolean isEmergency);
54 
55     /**
56      * Indicates that MockSatelliteService has just received the request
57      * requestSatelliteListeningEnabled from Telephony.
58      */
onSatelliteListeningEnabled(in boolean enabled)59     void onSatelliteListeningEnabled(in boolean enabled);
60 
61     /**
62      * Indicates that MockSatelliteService has just received the request
63      * setSatellitePlmn from Telephony.
64      */
onSetSatellitePlmn()65     void onSetSatellitePlmn();
66 
67     /**
68      * Indicates that MockSatelliteService has just received the request
69      * requestSatelliteEnabled from Telephony.
70      */
onRequestSatelliteEnabled(in boolean enableSatellite)71     void onRequestSatelliteEnabled(in boolean enableSatellite);
72 }
73