public class DefaultPhoneNotifier extends Object implements PhoneNotifier
Modifier and Type | Field and Description |
---|---|
protected ITelephonyRegistry |
mRegistry |
Constructor and Description |
---|
DefaultPhoneNotifier() |
Modifier and Type | Method and Description |
---|---|
static PhoneConstants.State |
convertCallState(int state)
Convert the TelephonyManager.CALL_STATE_* constants into the
PhoneConstants.State enum for the public API. |
static int |
convertCallState(PhoneConstants.State state)
Convert the
PhoneConstants.State enum into the TelephonyManager.CALL_STATE_*
constants for the public API. |
static int |
convertDataActivityState(PhoneInternalInterface.DataActivityState state)
Convert the
Phone.DataActivityState enum into the TelephonyManager.DATA_* constants
for the public API. |
static PhoneConstants.DataState |
convertDataState(int state)
Convert the TelephonyManager.DATA_* constants into
PhoneConstants.DataState enum
for the public API. |
static int |
convertDataState(PhoneConstants.DataState state)
Convert the
PhoneConstants.DataState enum into the TelephonyManager.DATA_* constants
for the public API. |
static int |
convertPreciseCallState(Call.State state)
Convert the
Call.State enum into the PreciseCallState.PRECISE_CALL_STATE_* constants
for the public API. |
void |
notifyCallForwardingChanged(Phone sender) |
void |
notifyCellInfo(Phone sender,
List<CellInfo> cellInfo) |
void |
notifyCellLocation(Phone sender) |
void |
notifyDataActivity(Phone sender) |
void |
notifyDataConnection(Phone sender,
String reason,
String apnType,
PhoneConstants.DataState state)
TODO - reason should never be null
|
void |
notifyDataConnectionFailed(Phone sender,
String reason,
String apnType) |
void |
notifyDisconnectCause(int cause,
int preciseCause) |
void |
notifyMessageWaitingChanged(Phone sender) |
void |
notifyOemHookRawEventForSubscriber(int subId,
byte[] rawData) |
void |
notifyOtaspChanged(Phone sender,
int otaspMode) |
void |
notifyPhoneState(Phone sender) |
void |
notifyPreciseCallState(Phone sender) |
void |
notifyPreciseDataConnectionFailed(Phone sender,
String reason,
String apnType,
String apn,
String failCause) |
void |
notifyServiceState(Phone sender) |
void |
notifySignalStrength(Phone sender) |
void |
notifyVoLteServiceStateChanged(Phone sender,
VoLteServiceState lteState) |
public void notifyPhoneState(Phone sender)
notifyPhoneState
in interface PhoneNotifier
public void notifyServiceState(Phone sender)
notifyServiceState
in interface PhoneNotifier
public void notifySignalStrength(Phone sender)
notifySignalStrength
in interface PhoneNotifier
public void notifyMessageWaitingChanged(Phone sender)
notifyMessageWaitingChanged
in interface PhoneNotifier
public void notifyCallForwardingChanged(Phone sender)
notifyCallForwardingChanged
in interface PhoneNotifier
public void notifyDataActivity(Phone sender)
notifyDataActivity
in interface PhoneNotifier
public void notifyDataConnection(Phone sender, String reason, String apnType, PhoneConstants.DataState state)
PhoneNotifier
notifyDataConnection
in interface PhoneNotifier
public void notifyDataConnectionFailed(Phone sender, String reason, String apnType)
notifyDataConnectionFailed
in interface PhoneNotifier
public void notifyCellLocation(Phone sender)
notifyCellLocation
in interface PhoneNotifier
public void notifyCellInfo(Phone sender, List<CellInfo> cellInfo)
notifyCellInfo
in interface PhoneNotifier
public void notifyOtaspChanged(Phone sender, int otaspMode)
notifyOtaspChanged
in interface PhoneNotifier
public void notifyPreciseCallState(Phone sender)
notifyPreciseCallState
in interface PhoneNotifier
public void notifyDisconnectCause(int cause, int preciseCause)
notifyDisconnectCause
in interface PhoneNotifier
public void notifyPreciseDataConnectionFailed(Phone sender, String reason, String apnType, String apn, String failCause)
notifyPreciseDataConnectionFailed
in interface PhoneNotifier
public void notifyVoLteServiceStateChanged(Phone sender, VoLteServiceState lteState)
notifyVoLteServiceStateChanged
in interface PhoneNotifier
public void notifyOemHookRawEventForSubscriber(int subId, byte[] rawData)
notifyOemHookRawEventForSubscriber
in interface PhoneNotifier
public static int convertCallState(PhoneConstants.State state)
PhoneConstants.State
enum into the TelephonyManager.CALL_STATE_*
constants for the public API.public static PhoneConstants.State convertCallState(int state)
PhoneConstants.State
enum for the public API.public static int convertDataState(PhoneConstants.DataState state)
PhoneConstants.DataState
enum into the TelephonyManager.DATA_* constants
for the public API.public static PhoneConstants.DataState convertDataState(int state)
PhoneConstants.DataState
enum
for the public API.public static int convertDataActivityState(PhoneInternalInterface.DataActivityState state)
Phone.DataActivityState
enum into the TelephonyManager.DATA_* constants
for the public API.public static int convertPreciseCallState(Call.State state)
Call.State
enum into the PreciseCallState.PRECISE_CALL_STATE_* constants
for the public API.