Jordan Liu | 289dfd0 | 2019-09-23 13:35:02 -0700 | [diff] [blame] | 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 | |
Jordan Liu | e89a1eb | 2019-10-18 11:45:10 -0700 | [diff] [blame] | 19 | import android.os.RemoteCallback; |
| 20 | import android.telephony.cdma.CdmaSmsCbProgramData; |
| 21 | |
Jordan Liu | 289dfd0 | 2019-09-23 13:35:02 -0700 | [diff] [blame] | 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 */ |
| 31 | oneway void handleGsmCellBroadcastSms(int slotId, in byte[] message); |
| 32 | |
| 33 | /** @see android.telephony.CellBroadcastService#onCdmaCellBroadcastSms */ |
Jordan Liu | 6d64fc6 | 2019-10-07 13:10:14 -0700 | [diff] [blame] | 34 | oneway void handleCdmaCellBroadcastSms(int slotId, in byte[] bearerData, int serviceCategory); |
Jordan Liu | e89a1eb | 2019-10-18 11:45:10 -0700 | [diff] [blame] | 35 | |
| 36 | /** @see android.telephony.CellBroadcastService#onCdmaScpMessage */ |
| 37 | oneway void handleCdmaScpMessage(int slotId, in List<CdmaSmsCbProgramData> programData, |
| 38 | String originatingAddress, in RemoteCallback callback); |
Jack Yu | afaa71d | 2020-01-23 23:01:40 -0800 | [diff] [blame] | 39 | |
| 40 | /** @see android.telephony.CellBroadcastService#getCellBroadcastAreaInfo */ |
| 41 | CharSequence getCellBroadcastAreaInfo(int slotIndex); |
Jordan Liu | 289dfd0 | 2019-09-23 13:35:02 -0700 | [diff] [blame] | 42 | } |