ITelephonyRegistry.aidl revision 071743f0cbbfab36150db6ec945452579d02e8dd
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; 24070e061a289d771e62b58379eaed153fd285b04fWink Savilleimport android.telephony.DataConnectionRealTimeInfo; 259066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.telephony.ServiceState; 26e9b06d754af03faf27012fbed1e7559ec1ba7c79Wink Savilleimport android.telephony.SignalStrength; 27fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Savilleimport android.telephony.CellInfo; 28fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Savilleimport android.telephony.VoLteServiceState; 299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport com.android.internal.telephony.IPhoneStateListener; 30d09c4cad65c708f2c4810d24295456708a2000d2Wink Savilleimport com.android.internal.telephony.IOnSubscriptionsChangedListener; 319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectinterface ITelephonyRegistry { 33071743f0cbbfab36150db6ec945452579d02e8ddWink Saville void addOnSubscriptionsChangedListener(String pkg, 34d09c4cad65c708f2c4810d24295456708a2000d2Wink Saville IOnSubscriptionsChangedListener callback); 35071743f0cbbfab36150db6ec945452579d02e8ddWink Saville void removeOnSubscriptionsChangedListener(String pkg, 36d09c4cad65c708f2c4810d24295456708a2000d2Wink Saville IOnSubscriptionsChangedListener callback); 379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void listen(String pkg, IPhoneStateListener callback, int events, boolean notifyNow); 3863f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void listenForSubscriber(in int subId, String pkg, IPhoneStateListener callback, int events, 39fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville boolean notifyNow); 409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyCallState(int state, String incomingNumber); 4163f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyCallStateForSubscriber(in int subId, int state, String incomingNumber); 4263f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyServiceStateForPhoneId(in int phoneId, in int subId, in ServiceState state); 43e9b06d754af03faf27012fbed1e7559ec1ba7c79Wink Saville void notifySignalStrength(in SignalStrength signalStrength); 4463f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifySignalStrengthForSubscriber(in int subId, in SignalStrength signalStrength); 4563f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyMessageWaitingChangedForPhoneId(in int phoneId, in int subId, in boolean mwi); 469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyCallForwardingChanged(boolean cfi); 4763f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyCallForwardingChangedForSubscriber(in int subId, boolean cfi); 489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyDataActivity(int state); 4963f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyDataActivityForSubscriber(in int subId, int state); 509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyDataConnection(int state, boolean isDataConnectivityPossible, 5137e65ebb7eb932e1a144b1cab262e11ca5fd109bRobert Greenwalt String reason, String apn, String apnType, in LinkProperties linkProperties, 52f9cb86aebe9647e0fe0137fc198ba16c017445c6Robert Greenwalt in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); 5363f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyDataConnectionForSubscriber(int subId, int state, boolean isDataConnectivityPossible, 54fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville String reason, String apn, String apnType, in LinkProperties linkProperties, 55fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville in NetworkCapabilities networkCapabilities, int networkType, boolean roaming); 5602648a4b8422733ed401f07edf8e426318bb2f8dRobert Greenwalt void notifyDataConnectionFailed(String reason, String apnType); 5763f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyDataConnectionFailedForSubscriber(int subId, String reason, String apnType); 589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void notifyCellLocation(in Bundle cellLocation); 5963f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyCellLocationForSubscriber(in int subId, in Bundle cellLocation); 60fd2d01302781af91d77557a99874111a4fee8365Wink Saville void notifyOtaspChanged(in int otaspMode); 61b208a24cf521401912cfce16fce550a995cf1250Wink Saville void notifyCellInfo(in List<CellInfo> cellInfo); 62c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void notifyPreciseCallState(int ringingCallState, int foregroundCallState, 63c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela int backgroundCallState); 64c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void notifyDisconnectCause(int disconnectCause, int preciseDisconnectCause); 65c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn, 66c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela String failCause); 6763f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyCellInfoForSubscriber(in int subId, in List<CellInfo> cellInfo); 68070e061a289d771e62b58379eaed153fd285b04fWink Saville void notifyDataConnectionRealTimeInfo(in DataConnectionRealTimeInfo dcRtInfo); 69fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville void notifyVoLteServiceStateChanged(in VoLteServiceState lteState); 7063f03dd94c43c22f2c77306059b5748e5e1e0e3cWink Saville void notifyOemHookRawEventForSubscriber(in int subId, in byte[] rawData); 71a374c3d03b28f135cdfba2cadf6fe6f03ac010bdWink Saville void notifySubscriptionInfoChanged(); 729066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project} 73