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.telephony.BarringInfo;
20 import android.telephony.CallAttributes;
21 import android.telephony.CellIdentity;
22 import android.telephony.CellInfo;
23 import android.telephony.DataConnectionRealTimeInfo;
24 import android.telephony.TelephonyDisplayInfo;
25 import android.telephony.PhoneCapability;
26 import android.telephony.PreciseCallState;
27 import android.telephony.PreciseDataConnectionState;
28 import android.telephony.ServiceState;
29 import android.telephony.SignalStrength;
30 import android.telephony.emergency.EmergencyNumber;
31 import android.telephony.ims.ImsReasonInfo;
32 
33 /**
34  * {@hide}
35  */
36 oneway interface IPhoneStateListener {
onServiceStateChanged(in ServiceState serviceState)37     void onServiceStateChanged(in ServiceState serviceState);
onSignalStrengthChanged(int asu)38     void onSignalStrengthChanged(int asu);
onMessageWaitingIndicatorChanged(boolean mwi)39     void onMessageWaitingIndicatorChanged(boolean mwi);
onCallForwardingIndicatorChanged(boolean cfi)40     void onCallForwardingIndicatorChanged(boolean cfi);
41 
42     // Uses CellIdentity which is Parcelable here; will convert to CellLocation in client.
onCellLocationChanged(in CellIdentity location)43     void onCellLocationChanged(in CellIdentity location);
onCallStateChanged(int state, String incomingNumber)44     void onCallStateChanged(int state, String incomingNumber);
onDataConnectionStateChanged(int state, int networkType)45     void onDataConnectionStateChanged(int state, int networkType);
onDataActivity(int direction)46     void onDataActivity(int direction);
onSignalStrengthsChanged(in SignalStrength signalStrength)47     void onSignalStrengthsChanged(in SignalStrength signalStrength);
onCellInfoChanged(in List<CellInfo> cellInfo)48     void onCellInfoChanged(in List<CellInfo> cellInfo);
onPreciseCallStateChanged(in PreciseCallState callState)49     void onPreciseCallStateChanged(in PreciseCallState callState);
onPreciseDataConnectionStateChanged(in PreciseDataConnectionState dataConnectionState)50     void onPreciseDataConnectionStateChanged(in PreciseDataConnectionState dataConnectionState);
onDataConnectionRealTimeInfoChanged(in DataConnectionRealTimeInfo dcRtInfo)51     void onDataConnectionRealTimeInfoChanged(in DataConnectionRealTimeInfo dcRtInfo);
onSrvccStateChanged(in int state)52     void onSrvccStateChanged(in int state);
onVoiceActivationStateChanged(int activationState)53     void onVoiceActivationStateChanged(int activationState);
onDataActivationStateChanged(int activationState)54     void onDataActivationStateChanged(int activationState);
onOemHookRawEvent(in byte[] rawData)55     void onOemHookRawEvent(in byte[] rawData);
onCarrierNetworkChange(in boolean active)56     void onCarrierNetworkChange(in boolean active);
onUserMobileDataStateChanged(in boolean enabled)57     void onUserMobileDataStateChanged(in boolean enabled);
onDisplayInfoChanged(in TelephonyDisplayInfo telephonyDisplayInfo)58     void onDisplayInfoChanged(in TelephonyDisplayInfo telephonyDisplayInfo);
onPhoneCapabilityChanged(in PhoneCapability capability)59     void onPhoneCapabilityChanged(in PhoneCapability capability);
onActiveDataSubIdChanged(in int subId)60     void onActiveDataSubIdChanged(in int subId);
onRadioPowerStateChanged(in int state)61     void onRadioPowerStateChanged(in int state);
onCallAttributesChanged(in CallAttributes callAttributes)62     void onCallAttributesChanged(in CallAttributes callAttributes);
onEmergencyNumberListChanged(in Map emergencyNumberList)63     void onEmergencyNumberListChanged(in Map emergencyNumberList);
onOutgoingEmergencyCall(in EmergencyNumber placedEmergencyNumber)64     void onOutgoingEmergencyCall(in EmergencyNumber placedEmergencyNumber);
onOutgoingEmergencySms(in EmergencyNumber sentEmergencyNumber)65     void onOutgoingEmergencySms(in EmergencyNumber sentEmergencyNumber);
onCallDisconnectCauseChanged(in int disconnectCause, in int preciseDisconnectCause)66     void onCallDisconnectCauseChanged(in int disconnectCause, in int preciseDisconnectCause);
onImsCallDisconnectCauseChanged(in ImsReasonInfo imsReasonInfo)67     void onImsCallDisconnectCauseChanged(in ImsReasonInfo imsReasonInfo);
onRegistrationFailed(in CellIdentity cellIdentity, String chosenPlmn, int domain, int causeCode, int additionalCauseCode)68     void onRegistrationFailed(in CellIdentity cellIdentity,
69              String chosenPlmn, int domain, int causeCode, int additionalCauseCode);
onBarringInfoChanged(in BarringInfo barringInfo)70     void onBarringInfoChanged(in BarringInfo barringInfo);
71 }
72