19066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project/* 29066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Copyright (C) 2007 The Android Open Source Project 39066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 49066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Licensed under the Apache License, Version 2.0 (the "License"); 59066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * you may not use this file except in compliance with the License. 69066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * You may obtain a copy of the License at 79066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 89066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * http://www.apache.org/licenses/LICENSE-2.0 99066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Unless required by applicable law or agreed to in writing, software 119066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * distributed under the License is distributed on an "AS IS" BASIS, 129066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * See the License for the specific language governing permissions and 149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * limitations under the License. 159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectpackage com.android.internal.telephony; 189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.content.Intent; 2037e65ebb7eb932e1a144b1cab262e11ca5fd109bRobert Greenwaltimport android.net.LinkProperties; 21f9cb86aebe9647e0fe0137fc198ba16c017445c6Robert Greenwaltimport android.net.NetworkCapabilities; 229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.os.Bundle; 23070e061a289d771e62b58379eaed153fd285b04fWink Savilleimport android.telephony.CellInfo; 249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.telephony.ServiceState; 25e9b06d754af03faf27012fbed1e7559ec1ba7c79Wink Savilleimport android.telephony.SignalStrength; 26fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Savilleimport android.telephony.CellInfo; 27fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Savilleimport android.telephony.VoLteServiceState; 289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport com.android.internal.telephony.IPhoneStateListener; 29d09c4cad65c708f2c4810d24295456708a2000d2Wink Savilleimport com.android.internal.telephony.IOnSubscriptionsChangedListener; 309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectinterface ITelephonyRegistry { 32071743f0cbbfab36150db6ec945452579d02e8ddWink Saville void addOnSubscriptionsChangedListener(String pkg, 33d09c4cad65c708f2c4810d24295456708a2000d2Wink Saville IOnSubscriptionsChangedListener callback); 34071743f0cbbfab36150db6ec945452579d02e8ddWink Saville void removeOnSubscriptionsChangedListener(String pkg, 35d09c4cad65c708f2c4810d24295456708a2000d2Wink Saville IOnSubscriptionsChangedListener callback); 369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void listen(String pkg, IPhoneStateListener callback, int events, boolean notifyNow); 3763f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void listenForSubscriber(in int subId, String pkg, IPhoneStateListener callback, int events, 38fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville boolean notifyNow); 399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyCallState(int state, String incomingNumber); 40f7e59c1f618d20b79df6e936b9daedaa7c1b4d3dShishir Agrawal void notifyCallStateForPhoneId(in int phoneId, in int subId, int state, String incomingNumber); 4163f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); 42f7e59c1f618d20b79df6e936b9daedaa7c1b4d3dShishir Agrawal void notifySignalStrengthForPhoneId(in int phoneId, in int subId, 43f7e59c1f618d20b79df6e936b9daedaa7c1b4d3dShishir Agrawal in SignalStrength signalStrength); 4463f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi); 459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyCallForwardingChanged(boolean cfi); 4663f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyCallForwardingChangedForSubscriber(in int subId, boolean cfi); 479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyDataActivity(int state); 4863f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyDataActivityForSubscriber(in int subId, int state); 499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyDataConnection(int state, boolean isDataConnectivityPossible, 5037e65ebb7eb932e1a144b1cab262e11ca5fd109bRobert Greenwalt String reason, String apn, String apnType, in LinkProperties linkProperties, 51f9cb86aebe9647e0fe0137fc198ba16c017445c6Robert Greenwalt in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); 5263f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, 53fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville String reason, String apn, String apnType, in LinkProperties linkProperties, 54fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); 5502648a4b8422733ed401f07edf8e426318bb2f8dRobert Greenwalt void notifyDataConnectionFailed(String reason, String apnType); 5663f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyDataConnectionFailedForSubscriber(int subId, String reason, String apnType); 579066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyCellLocation(in Bundle cellLocation); 5863f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyCellLocationForSubscriber(in int subId, in Bundle cellLocation); 59fd2d01302781af91d77557a99874111a4fee8365Wink Saville void notifyOtaspChanged(in int otaspMode); 60b208a24cf521401912cfce16fce550a995cf1250Wink Saville void notifyCellInfo(in List<CellInfo> cellInfo); 61c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void notifyPreciseCallState(int ringingCallState, int foregroundCallState, 62c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela int backgroundCallState); 63c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void notifyDisconnectCause(int disconnectCause, int preciseDisconnectCause); 64c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn, 65c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela String failCause); 6663f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyCellInfoForSubscriber(in int subId, in List<CellInfo> cellInfo); 67fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville void notifyVoLteServiceStateChanged(in VoLteServiceState lteState); 6812312f6d758ab0fcd1b5a1c7c885cf4997098402fionaxu void notifySimActivationStateChangedForPhoneId(in int phoneId, in int subId, 6912312f6d758ab0fcd1b5a1c7c885cf4997098402fionaxu int activationState, int activationType); 7063f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyOemHookRawEventForSubscriber(in int subId, in byte[] rawData); 71a374c3d03b28f135cdfba2cadf6fe6f03ac010bdWink Saville void notifySubscriptionInfoChanged(); 721f45264dd6b874d72ed901a2213c779d42d321c1Andrew Flynn void notifyCarrierNetworkChange(in boolean active); 739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project} 74