1 /**
2  * Copyright (c) 2019, 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;
18 
19 import android.os.RemoteCallback;
20 import android.telephony.cdma.CdmaSmsCbProgramData;
21 
22 /**
23  * Service bound to by the system to allow custom handling of cell broadcast messages.
24  * <p>
25  * @see android.telephony.CellBroadcastService
26  * @hide
27  */
28 interface ICellBroadcastService {
29 
30     /** @see android.telephony.CellBroadcastService#onGsmCellBroadcastSms */
handleGsmCellBroadcastSms(int slotId, in byte[] message)31     oneway void handleGsmCellBroadcastSms(int slotId, in byte[] message);
32 
33     /** @see android.telephony.CellBroadcastService#onCdmaCellBroadcastSms */
handleCdmaCellBroadcastSms(int slotId, in byte[] bearerData, int serviceCategory)34     oneway void handleCdmaCellBroadcastSms(int slotId, in byte[] bearerData, int serviceCategory);
35 
36     /** @see android.telephony.CellBroadcastService#onCdmaScpMessage */
handleCdmaScpMessage(int slotId, in List<CdmaSmsCbProgramData> programData, String originatingAddress, in RemoteCallback callback)37     oneway void handleCdmaScpMessage(int slotId, in List<CdmaSmsCbProgramData> programData,
38             String originatingAddress, in RemoteCallback callback);
39 
40     /** @see android.telephony.CellBroadcastService#getCellBroadcastAreaInfo */
getCellBroadcastAreaInfo(int slotIndex)41     CharSequence getCellBroadcastAreaInfo(int slotIndex);
42 }
43