The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 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 com.android.internal.telephony; |
| 18 | |
| 19 | import android.content.Intent; |
Robert Greenwalt | 37e65eb | 2010-08-30 10:56:47 -0700 | [diff] [blame] | 20 | import android.net.LinkProperties; |
Robert Greenwalt | f9cb86a | 2014-04-08 17:34:00 -0700 | [diff] [blame^] | 21 | import android.net.NetworkCapabilities; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 22 | import android.os.Bundle; |
Wink Saville | 070e061 | 2014-04-15 22:04:10 -0700 | [diff] [blame] | 23 | import android.telephony.CellInfo; |
| 24 | import android.telephony.DataConnectionRealTimeInfo; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 25 | import android.telephony.ServiceState; |
Wink Saville | e9b06d7 | 2009-05-18 21:47:50 -0700 | [diff] [blame] | 26 | import android.telephony.SignalStrength; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 27 | import com.android.internal.telephony.IPhoneStateListener; |
| 28 | |
| 29 | interface ITelephonyRegistry { |
| 30 | void listen(String pkg, IPhoneStateListener callback, int events, boolean notifyNow); |
| 31 | |
| 32 | void notifyCallState(int state, String incomingNumber); |
| 33 | void notifyServiceState(in ServiceState state); |
Wink Saville | e9b06d7 | 2009-05-18 21:47:50 -0700 | [diff] [blame] | 34 | void notifySignalStrength(in SignalStrength signalStrength); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 35 | void notifyMessageWaitingChanged(boolean mwi); |
| 36 | void notifyCallForwardingChanged(boolean cfi); |
| 37 | void notifyDataActivity(int state); |
| 38 | void notifyDataConnection(int state, boolean isDataConnectivityPossible, |
Robert Greenwalt | 37e65eb | 2010-08-30 10:56:47 -0700 | [diff] [blame] | 39 | String reason, String apn, String apnType, in LinkProperties linkProperties, |
Robert Greenwalt | f9cb86a | 2014-04-08 17:34:00 -0700 | [diff] [blame^] | 40 | in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); |
Robert Greenwalt | 02648a4 | 2010-05-18 10:52:51 -0700 | [diff] [blame] | 41 | void notifyDataConnectionFailed(String reason, String apnType); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 42 | void notifyCellLocation(in Bundle cellLocation); |
Wink Saville | fd2d013 | 2010-10-28 14:22:26 -0700 | [diff] [blame] | 43 | void notifyOtaspChanged(in int otaspMode); |
Wink Saville | b208a24 | 2012-07-25 14:08:09 -0700 | [diff] [blame] | 44 | void notifyCellInfo(in List<CellInfo> cellInfo); |
Antonio Marín Cerezuela | c5ac15a | 2013-05-27 11:36:36 +0200 | [diff] [blame] | 45 | void notifyPreciseCallState(int ringingCallState, int foregroundCallState, |
| 46 | int backgroundCallState); |
| 47 | void notifyDisconnectCause(int disconnectCause, int preciseDisconnectCause); |
| 48 | void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn, |
| 49 | String failCause); |
Wink Saville | 070e061 | 2014-04-15 22:04:10 -0700 | [diff] [blame] | 50 | void notifyDataConnectionRealTimeInfo(in DataConnectionRealTimeInfo dcRtInfo); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | } |