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.os.Bundle; 209066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.telephony.ServiceState; 21e9b06d754af03faf27012fbed1e7559ec1ba7c79Wink Savilleimport android.telephony.SignalStrength; 22963db55d59a170f4b17ff907c96615a19ef6fe17John Wangimport android.telephony.CellInfo; 23070e061a289d771e62b58379eaed153fd285b04fWink Savilleimport android.telephony.DataConnectionRealTimeInfo; 24c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuelaimport android.telephony.PreciseCallState; 25c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuelaimport android.telephony.PreciseDataConnectionState; 26fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Savilleimport android.telephony.VoLteServiceState; 279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectoneway interface IPhoneStateListener { 299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void onServiceStateChanged(in ServiceState serviceState); 309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void onSignalStrengthChanged(int asu); 319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void onMessageWaitingIndicatorChanged(boolean mwi); 329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void onCallForwardingIndicatorChanged(boolean cfi); 339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project // we use bundle here instead of CellLocation so it can get the right subclass 359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void onCellLocationChanged(in Bundle location); 369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void onCallStateChanged(int state, String incomingNumber); 3798e0b146b80670b52805b4b210ef5582dad6bb68Robert Greenwalt void onDataConnectionStateChanged(int state, int networkType); 389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project void onDataActivity(int direction); 39e9b06d754af03faf27012fbed1e7559ec1ba7c79Wink Saville void onSignalStrengthsChanged(in SignalStrength signalStrength); 40fd2d01302781af91d77557a99874111a4fee8365Wink Saville void onOtaspChanged(in int otaspMode); 41b208a24cf521401912cfce16fce550a995cf1250Wink Saville void onCellInfoChanged(in List<CellInfo> cellInfo); 42c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void onPreciseCallStateChanged(in PreciseCallState callState); 43c5ac15a3e11c03951e269b243674858411204b67Antonio Marín Cerezuela void onPreciseDataConnectionStateChanged(in PreciseDataConnectionState dataConnectionState); 44070e061a289d771e62b58379eaed153fd285b04fWink Saville void onDataConnectionRealTimeInfoChanged(in DataConnectionRealTimeInfo dcRtInfo); 45fb40dd4d00bd3361b2535bc866e6c21eadc52558Wink Saville void onVoLteServiceStateChanged(in VoLteServiceState lteState); 46485f2095f8ba695b88331c01a2de468b5616a5d7New Author Steven Liu void onOemHookRawEvent(in byte[] rawData); 471f45264dd6b874d72ed901a2213c779d42d321c1Andrew Flynn void onCarrierNetworkChange(in boolean active); 489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project} 499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 50