blob: 4f20ed67fda44e2bd155cbb9810071076781c298 [file] [log] [blame]
Jordan Liu289dfd02019-09-23 13:35:02 -07001/**
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
17package android.telephony;
18
Jordan Liue89a1eb2019-10-18 11:45:10 -070019import android.os.RemoteCallback;
20import android.telephony.cdma.CdmaSmsCbProgramData;
21
Jordan Liu289dfd02019-09-23 13:35:02 -070022/**
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 */
28interface ICellBroadcastService {
29
30 /** @see android.telephony.CellBroadcastService#onGsmCellBroadcastSms */
31 oneway void handleGsmCellBroadcastSms(int slotId, in byte[] message);
32
33 /** @see android.telephony.CellBroadcastService#onCdmaCellBroadcastSms */
Jordan Liu6d64fc62019-10-07 13:10:14 -070034 oneway void handleCdmaCellBroadcastSms(int slotId, in byte[] bearerData, int serviceCategory);
Jordan Liue89a1eb2019-10-18 11:45:10 -070035
36 /** @see android.telephony.CellBroadcastService#onCdmaScpMessage */
37 oneway void handleCdmaScpMessage(int slotId, in List<CdmaSmsCbProgramData> programData,
38 String originatingAddress, in RemoteCallback callback);
Jack Yuafaa71d2020-01-23 23:01:40 -080039
40 /** @see android.telephony.CellBroadcastService#getCellBroadcastAreaInfo */
41 CharSequence getCellBroadcastAreaInfo(int slotIndex);
Jordan Liu289dfd02019-09-23 13:35:02 -070042}