• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2006 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.annotation.UnsupportedAppUsage;
20 import android.telephony.CallQuality;
21 import android.telephony.CellInfo;
22 import android.telephony.CellLocation;
23 import android.telephony.DataFailCause;
24 import android.telephony.PhoneCapability;
25 import android.telephony.PhysicalChannelConfig;
26 import android.telephony.TelephonyManager;
27 import android.telephony.ims.ImsReasonInfo;
28 
29 import java.util.List;
30 
31 /**
32  * {@hide}
33  */
34 public interface PhoneNotifier {
35 
notifyPhoneState(Phone sender)36     void notifyPhoneState(Phone sender);
37 
notifyServiceState(Phone sender)38     void notifyServiceState(Phone sender);
39 
40     /** Notify registrants of the current CellLocation */
notifyCellLocation(Phone sender, CellLocation cl)41     void notifyCellLocation(Phone sender, CellLocation cl);
42 
43     @UnsupportedAppUsage
notifySignalStrength(Phone sender)44     void notifySignalStrength(Phone sender);
45 
46     @UnsupportedAppUsage
notifyMessageWaitingChanged(Phone sender)47     void notifyMessageWaitingChanged(Phone sender);
48 
notifyCallForwardingChanged(Phone sender)49     void notifyCallForwardingChanged(Phone sender);
50 
notifyDataConnection(Phone sender, String apnType, PhoneConstants.DataState state)51     void notifyDataConnection(Phone sender, String apnType, PhoneConstants.DataState state);
52 
notifyDataConnectionFailed(Phone sender, String apnType)53     void notifyDataConnectionFailed(Phone sender, String apnType);
54 
notifyDataActivity(Phone sender)55     void notifyDataActivity(Phone sender);
56 
notifyOtaspChanged(Phone sender, int otaspMode)57     void notifyOtaspChanged(Phone sender, int otaspMode);
58 
notifyCellInfo(Phone sender, List<CellInfo> cellInfo)59     void notifyCellInfo(Phone sender, List<CellInfo> cellInfo);
60 
61     /** Notify of change to PhysicalChannelConfiguration. */
notifyPhysicalChannelConfiguration(Phone sender, List<PhysicalChannelConfig> configs)62     void notifyPhysicalChannelConfiguration(Phone sender, List<PhysicalChannelConfig> configs);
63 
notifyPreciseCallState(Phone sender)64     void notifyPreciseCallState(Phone sender);
65 
notifyDisconnectCause(Phone sender, int cause, int preciseCause)66     void notifyDisconnectCause(Phone sender, int cause, int preciseCause);
67 
notifyImsDisconnectCause(Phone sender, ImsReasonInfo imsReasonInfo)68     void notifyImsDisconnectCause(Phone sender, ImsReasonInfo imsReasonInfo);
69 
notifyPreciseDataConnectionFailed(Phone sender, String apnType, String apn, @DataFailCause.FailCause int failCause)70     public void notifyPreciseDataConnectionFailed(Phone sender, String apnType, String apn,
71                                                   @DataFailCause.FailCause int failCause);
72 
73     /** send a notification that the SRVCC state has changed.*/
notifySrvccStateChanged(Phone sender, @TelephonyManager.SrvccState int state)74     void notifySrvccStateChanged(Phone sender, @TelephonyManager.SrvccState int state);
75 
notifyVoiceActivationStateChanged(Phone sender, int activationState)76     public void notifyVoiceActivationStateChanged(Phone sender, int activationState);
77 
notifyDataActivationStateChanged(Phone sender, int activationState)78     public void notifyDataActivationStateChanged(Phone sender, int activationState);
79 
notifyUserMobileDataStateChanged(Phone sender, boolean state)80     public void notifyUserMobileDataStateChanged(Phone sender, boolean state);
81 
notifyOemHookRawEventForSubscriber(Phone sender, byte[] rawData)82     public void notifyOemHookRawEventForSubscriber(Phone sender, byte[] rawData);
83 
notifyPhoneCapabilityChanged(PhoneCapability capability)84     public void notifyPhoneCapabilityChanged(PhoneCapability capability);
85 
notifyRadioPowerStateChanged(Phone sender, @TelephonyManager.RadioPowerState int state)86     void notifyRadioPowerStateChanged(Phone sender, @TelephonyManager.RadioPowerState int state);
87 
88     /** Notify of change to EmergencyNumberList. */
notifyEmergencyNumberList(Phone sender)89     void notifyEmergencyNumberList(Phone sender);
90 
91     /** Notify of a change to the call quality of an active foreground call. */
notifyCallQualityChanged(Phone sender, CallQuality callQuality, int callNetworkType)92     void notifyCallQualityChanged(Phone sender, CallQuality callQuality, int callNetworkType);
93 }
94