• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.os.Bundle;
20 import android.telephony.CallAttributes;
21 import android.telephony.CellInfo;
22 import android.telephony.DataConnectionRealTimeInfo;
23 import android.telephony.PhoneCapability;
24 import android.telephony.PhysicalChannelConfig;
25 import android.telephony.PreciseCallState;
26 import android.telephony.PreciseDataConnectionState;
27 import android.telephony.ServiceState;
28 import android.telephony.SignalStrength;
29 import android.telephony.emergency.EmergencyNumber;
30 import android.telephony.ims.ImsReasonInfo;
31 
32 oneway interface IPhoneStateListener {
onServiceStateChanged(in ServiceState serviceState)33     void onServiceStateChanged(in ServiceState serviceState);
onSignalStrengthChanged(int asu)34     void onSignalStrengthChanged(int asu);
onMessageWaitingIndicatorChanged(boolean mwi)35     void onMessageWaitingIndicatorChanged(boolean mwi);
onCallForwardingIndicatorChanged(boolean cfi)36     void onCallForwardingIndicatorChanged(boolean cfi);
37 
38     // we use bundle here instead of CellLocation so it can get the right subclass
onCellLocationChanged(in Bundle location)39     void onCellLocationChanged(in Bundle location);
onCallStateChanged(int state, String incomingNumber)40     void onCallStateChanged(int state, String incomingNumber);
onDataConnectionStateChanged(int state, int networkType)41     void onDataConnectionStateChanged(int state, int networkType);
onDataActivity(int direction)42     void onDataActivity(int direction);
onSignalStrengthsChanged(in SignalStrength signalStrength)43     void onSignalStrengthsChanged(in SignalStrength signalStrength);
onPhysicalChannelConfigurationChanged(in List<PhysicalChannelConfig> configs)44     void onPhysicalChannelConfigurationChanged(in List<PhysicalChannelConfig> configs);
onOtaspChanged(in int otaspMode)45     void onOtaspChanged(in int otaspMode);
onCellInfoChanged(in List<CellInfo> cellInfo)46     void onCellInfoChanged(in List<CellInfo> cellInfo);
onPreciseCallStateChanged(in PreciseCallState callState)47     void onPreciseCallStateChanged(in PreciseCallState callState);
onPreciseDataConnectionStateChanged(in PreciseDataConnectionState dataConnectionState)48     void onPreciseDataConnectionStateChanged(in PreciseDataConnectionState dataConnectionState);
onDataConnectionRealTimeInfoChanged(in DataConnectionRealTimeInfo dcRtInfo)49     void onDataConnectionRealTimeInfoChanged(in DataConnectionRealTimeInfo dcRtInfo);
onSrvccStateChanged(in int state)50     void onSrvccStateChanged(in int state);
onVoiceActivationStateChanged(int activationState)51     void onVoiceActivationStateChanged(int activationState);
onDataActivationStateChanged(int activationState)52     void onDataActivationStateChanged(int activationState);
onOemHookRawEvent(in byte[] rawData)53     void onOemHookRawEvent(in byte[] rawData);
onCarrierNetworkChange(in boolean active)54     void onCarrierNetworkChange(in boolean active);
onUserMobileDataStateChanged(in boolean enabled)55     void onUserMobileDataStateChanged(in boolean enabled);
onPhoneCapabilityChanged(in PhoneCapability capability)56     void onPhoneCapabilityChanged(in PhoneCapability capability);
onActiveDataSubIdChanged(in int subId)57     void onActiveDataSubIdChanged(in int subId);
onRadioPowerStateChanged(in int state)58     void onRadioPowerStateChanged(in int state);
onCallAttributesChanged(in CallAttributes callAttributes)59     void onCallAttributesChanged(in CallAttributes callAttributes);
onEmergencyNumberListChanged(in Map emergencyNumberList)60     void onEmergencyNumberListChanged(in Map emergencyNumberList);
onCallDisconnectCauseChanged(in int disconnectCause, in int preciseDisconnectCause)61     void onCallDisconnectCauseChanged(in int disconnectCause, in int preciseDisconnectCause);
onImsCallDisconnectCauseChanged(in ImsReasonInfo imsReasonInfo)62     void onImsCallDisconnectCauseChanged(in ImsReasonInfo imsReasonInfo);
63 }
64 
65