Methods Summary |
---|
public void | activateCellBroadcastSms(int activate, android.os.Message response)
Rlog.e(LOG_TAG, "Error! This functionality is not implemented for Volte.");
|
public boolean | canDial()
int serviceState = getServiceState().getState();
Rlog.v(LOG_TAG, "canDial(): serviceState = " + serviceState);
if (serviceState == ServiceState.STATE_POWER_OFF) return false;
String disableCall = SystemProperties.get(
TelephonyProperties.PROPERTY_DISABLE_CALL, "false");
Rlog.v(LOG_TAG, "canDial(): disableCall = " + disableCall);
if (disableCall.equals("true")) return false;
Rlog.v(LOG_TAG, "canDial(): ringingCall: " + getRingingCall().getState());
Rlog.v(LOG_TAG, "canDial(): foregndCall: " + getForegroundCall().getState());
Rlog.v(LOG_TAG, "canDial(): backgndCall: " + getBackgroundCall().getState());
return !getRingingCall().isRinging()
&& (!getForegroundCall().getState().isAlive()
|| !getBackgroundCall().getState().isAlive());
|
public com.android.internal.telephony.Connection | dial(java.lang.String dialString, com.android.internal.telephony.UUSInfo uusInfo, int videoState)
// ignore UUSInfo
return dial(dialString, videoState);
|
public boolean | disableDataConnectivity()
return false;
|
public void | disableLocationUpdates()
|
public boolean | enableDataConnectivity()
return false;
|
public void | enableLocationUpdates()
|
public java.util.List | getAllCellInfo()
return getServiceStateTracker().getAllCellInfo();
|
public void | getAvailableNetworks(android.os.Message response)
|
public boolean | getCallForwardingIndicator()
return false;
|
public void | getCallForwardingOption(int commandInterfaceCFReason, android.os.Message onComplete)
|
public void | getCallWaiting(android.os.Message onComplete)
AsyncResult.forMessage(onComplete, null, null);
onComplete.sendToTarget();
|
public void | getCellBroadcastSmsConfig(android.os.Message response)
Rlog.e(LOG_TAG, "Error! This functionality is not implemented for Volte.");
|
public android.telephony.CellLocation | getCellLocation()
return null;
|
public java.util.List | getCurrentDataConnectionList()
return null;
|
public DataActivityState | getDataActivityState()
return DataActivityState.NONE;
|
public void | getDataCallList(android.os.Message response)
|
public PhoneConstants.DataState | getDataConnectionState()
return PhoneConstants.DataState.DISCONNECTED;
|
public PhoneConstants.DataState | getDataConnectionState(java.lang.String apnType)
return PhoneConstants.DataState.DISCONNECTED;
|
public boolean | getDataEnabled()
return false;
|
public boolean | getDataRoamingEnabled()
return false;
|
public java.lang.String | getDeviceId()
return null;
|
public java.lang.String | getDeviceSvn()
return null;
|
public java.lang.String | getEsn()
Rlog.e(LOG_TAG, "[VoltePhone] getEsn() is a CDMA method");
return "0";
|
public java.lang.String | getGroupIdLevel1()
return null;
|
public com.android.internal.telephony.IccCard | getIccCard()
return null;
|
public com.android.internal.telephony.uicc.IccFileHandler | getIccFileHandler()
return null;
|
public com.android.internal.telephony.IccPhoneBookInterfaceManager | getIccPhoneBookInterfaceManager()
return null;
|
public boolean | getIccRecordsLoaded()
return false;
|
public java.lang.String | getIccSerialNumber()
return null;
|
public java.lang.String | getImei()
return null;
|
public java.lang.String | getLine1AlphaTag()
return null;
|
public java.lang.String | getLine1Number()
return null;
|
public android.net.LinkProperties | getLinkProperties(java.lang.String apnType)
// FIXME: what's this for Volte?
return null;
|
public java.lang.String | getMeid()
Rlog.e(LOG_TAG, "[VoltePhone] getMeid() is a CDMA method");
return "0";
|
public boolean | getMessageWaitingIndicator()
return false;
|
public void | getNeighboringCids(android.os.Message response)
|
public void | getOutgoingCallerIdDisplay(android.os.Message onComplete)
// FIXME: what to reply?
AsyncResult.forMessage(onComplete, null, null);
onComplete.sendToTarget();
|
public java.util.List | getPendingMmiCodes()
return new ArrayList<MmiCode>(0);
|
public com.android.internal.telephony.PhoneSubInfo | getPhoneSubInfo()
return null;
|
public int | getPhoneType()
return PhoneConstants.PHONE_TYPE_IMS;
|
public android.telephony.ServiceState | getServiceState()
// FIXME: we may need to provide this when data connectivity is lost
// or when server is down
ServiceState s = new ServiceState();
s.setState(ServiceState.STATE_IN_SERVICE);
return s;
|
public android.telephony.SignalStrength | getSignalStrength()
return new SignalStrength();
|
public PhoneConstants.State | getState()
return mState;
|
public java.lang.String | getSubscriberId()
return null;
|
public java.lang.String | getVoiceMailAlphaTag()
return null;
|
public java.lang.String | getVoiceMailNumber()
return null;
|
public boolean | handleInCallMmiCommands(java.lang.String dialString)
return false;
|
public boolean | handlePinMmi(java.lang.String dialString)
return false;
|
public boolean | isDataConnectivityPossible()
return false;
|
boolean | isInCall()
Call.State foregroundCallState = getForegroundCall().getState();
Call.State backgroundCallState = getBackgroundCall().getState();
Call.State ringingCallState = getRingingCall().getState();
return (foregroundCallState.isAlive() || backgroundCallState.isAlive()
|| ringingCallState.isAlive());
|
public void | migrateFrom(com.android.internal.telephony.PhoneBase from)
super.migrateFrom(from);
migrate(mRingbackRegistrants, ((ImsPhoneBase)from).mRingbackRegistrants);
|
public boolean | needsOtaServiceProvisioning()
// FIXME: what's this for Volte?
return false;
|
public void | notifyCallForwardingIndicator()
mNotifier.notifyCallForwardingChanged(this);
|
void | notifyDisconnect(com.android.internal.telephony.Connection cn)
mDisconnectRegistrants.notifyResult(cn);
|
void | notifyPhoneStateChanged()Notify any interested party of a Phone state change
{@link com.android.internal.telephony.PhoneConstants.State}
mNotifier.notifyPhoneState(this);
|
void | notifyPreciseCallStateChanged()Notify registrants of a change in the call state. This notifies changes in
{@link com.android.internal.telephony.Call.State}. Use this when changes
in the precise call state are needed, else use notifyPhoneStateChanged.
/* we'd love it if this was package-scoped*/
super.notifyPreciseCallStateChangedP();
|
void | notifyServiceStateChanged(android.telephony.ServiceState ss)
super.notifyServiceStateChangedP(ss);
|
void | notifySuppServiceFailed(SuppService code)
mSuppServiceFailedRegistrants.notifyResult(code);
|
void | notifyUnknownConnection()
mUnknownConnectionRegistrants.notifyResult(this);
|
public void | onTtyModeReceived(int mode)
AsyncResult result = new AsyncResult(null, Integer.valueOf(mode), null);
mTtyModeReceivedRegistrants.notifyRegistrants(result);
|
protected void | onUpdateIccAvailability()
|
public void | registerForOnHoldTone(android.os.Handler h, int what, java.lang.Object obj)
mOnHoldRegistrants.addUnique(h, what, obj);
|
public void | registerForRingbackTone(android.os.Handler h, int what, java.lang.Object obj)
mRingbackRegistrants.addUnique(h, what, obj);
|
public void | registerForSuppServiceNotification(android.os.Handler h, int what, java.lang.Object obj)
|
public void | registerForTtyModeReceived(android.os.Handler h, int what, java.lang.Object obj)
mTtyModeReceivedRegistrants.addUnique(h, what, obj);
|
public void | saveClirSetting(int commandInterfaceCLIRMode)
|
public void | selectNetworkManually(com.android.internal.telephony.OperatorInfo network, android.os.Message response)
|
public void | sendUssdResponse(java.lang.String ussdMessge)
|
public void | setCallForwardingOption(int commandInterfaceCFAction, int commandInterfaceCFReason, java.lang.String dialingNumber, int timerSeconds, android.os.Message onComplete)
|
public void | setCallWaiting(boolean enable, android.os.Message onComplete)
Rlog.e(LOG_TAG, "call waiting not supported");
|
public void | setCellBroadcastSmsConfig(int[] configValuesArray, android.os.Message response)
Rlog.e(LOG_TAG, "Error! This functionality is not implemented for Volte.");
|
public void | setDataEnabled(boolean enable)
|
public void | setDataRoamingEnabled(boolean enable)
|
public boolean | setLine1Number(java.lang.String alphaTag, java.lang.String number, android.os.Message onComplete)
// FIXME: what to reply for Volte?
return false;
|
public void | setNetworkSelectionModeAutomatic(android.os.Message response)
|
public void | setOutgoingCallerIdDisplay(int commandInterfaceCLIRMode, android.os.Message onComplete)
// FIXME: what's this for Volte?
AsyncResult.forMessage(onComplete, null, null);
onComplete.sendToTarget();
|
public void | setRadioPower(boolean power)
|
public void | setVoiceMailNumber(java.lang.String alphaTag, java.lang.String voiceMailNumber, android.os.Message onComplete)
// FIXME: what to reply for Volte?
AsyncResult.forMessage(onComplete, null, null);
onComplete.sendToTarget();
|
protected void | startOnHoldTone()
AsyncResult result = new AsyncResult(null, Boolean.TRUE, null);
mOnHoldRegistrants.notifyRegistrants(result);
|
protected void | startRingbackTone()
AsyncResult result = new AsyncResult(null, Boolean.TRUE, null);
mRingbackRegistrants.notifyRegistrants(result);
|
protected void | stopOnHoldTone()
AsyncResult result = new AsyncResult(null, Boolean.FALSE, null);
mOnHoldRegistrants.notifyRegistrants(result);
|
protected void | stopRingbackTone()
AsyncResult result = new AsyncResult(null, Boolean.FALSE, null);
mRingbackRegistrants.notifyRegistrants(result);
|
public void | unregisterForOnHoldTone(android.os.Handler h)
mOnHoldRegistrants.remove(h);
|
public void | unregisterForRingbackTone(android.os.Handler h)
mRingbackRegistrants.remove(h);
|
public void | unregisterForSuppServiceNotification(android.os.Handler h)
|
public void | unregisterForTtyModeReceived(android.os.Handler h)
mTtyModeReceivedRegistrants.remove(h);
|
boolean | updateCurrentCarrierInProvider()
return false;
|
void | updatePhoneState()
PhoneConstants.State oldState = mState;
if (getRingingCall().isRinging()) {
mState = PhoneConstants.State.RINGING;
} else if (getForegroundCall().isIdle()
&& getBackgroundCall().isIdle()) {
mState = PhoneConstants.State.IDLE;
} else {
mState = PhoneConstants.State.OFFHOOK;
}
if (mState != oldState) {
Rlog.d(LOG_TAG, " ^^^ new phone state: " + mState);
notifyPhoneStateChanged();
}
|
public void | updateServiceLocation()
|