blob: b104c11c339bfcf4a039f0959739a8f96adf5243 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001/*
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
17package com.android.internal.telephony;
18
19import android.content.Intent;
Robert Greenwalt37e65eb2010-08-30 10:56:47 -070020import android.net.LinkProperties;
Robert Greenwaltf9cb86a2014-04-08 17:34:00 -070021import android.net.NetworkCapabilities;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080022import android.os.Bundle;
Wink Saville070e0612014-04-15 22:04:10 -070023import android.telephony.CellInfo;
24import android.telephony.DataConnectionRealTimeInfo;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080025import android.telephony.ServiceState;
Wink Savillee9b06d72009-05-18 21:47:50 -070026import android.telephony.SignalStrength;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080027import com.android.internal.telephony.IPhoneStateListener;
28
29interface 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 Savillee9b06d72009-05-18 21:47:50 -070034 void notifySignalStrength(in SignalStrength signalStrength);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080035 void notifyMessageWaitingChanged(boolean mwi);
36 void notifyCallForwardingChanged(boolean cfi);
37 void notifyDataActivity(int state);
38 void notifyDataConnection(int state, boolean isDataConnectivityPossible,
Robert Greenwalt37e65eb2010-08-30 10:56:47 -070039 String reason, String apn, String apnType, in LinkProperties linkProperties,
Robert Greenwaltf9cb86a2014-04-08 17:34:00 -070040 in NetworkCapabilities networkCapabilities, int networkType, boolean roaming);
Robert Greenwalt02648a42010-05-18 10:52:51 -070041 void notifyDataConnectionFailed(String reason, String apnType);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080042 void notifyCellLocation(in Bundle cellLocation);
Wink Savillefd2d0132010-10-28 14:22:26 -070043 void notifyOtaspChanged(in int otaspMode);
Wink Savilleb208a242012-07-25 14:08:09 -070044 void notifyCellInfo(in List<CellInfo> cellInfo);
Antonio Marín Cerezuelac5ac15a2013-05-27 11:36:36 +020045 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 Saville070e0612014-04-15 22:04:10 -070050 void notifyDataConnectionRealTimeInfo(in DataConnectionRealTimeInfo dcRtInfo);
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080051}