Build 1.0_r1(from source)

com.android.internal.telephony
Interface ITelephony

All Superinterfaces:
IInterface
All Known Implementing Classes:
ITelephony.Stub

public interface ITelephony
extends IInterface

Interface used to interact with the phone. Mostly this is used by the TelephonyManager class. A few places are still using this directly. Please clean them up if possible and use TelephonyManager insteadl.


Nested Class Summary
static class ITelephony.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 void call(String number)
          Place a call to the numer.
 void cancelMissedCallsNotification()
          Cancels the missed calls notification.
 void dial(String number)
          Dial a number.
 int disableApnType(String type)
          Disable a specific APN type.
 boolean disableDataConnectivity()
          Disallow mobile data connections.
 void disableLocationUpdates()
          Disable location update notifications.
 int enableApnType(String type)
          Enable a specific APN type.
 boolean enableDataConnectivity()
          Allow mobile data connections.
 void enableLocationUpdates()
          Enable location update notifications.
 boolean endCall()
          End call or go to the Home screen
 int getCallState()
           
 Bundle getCellLocation()
           
 int getDataActivity()
           
 int getDataState()
           
 boolean handlePinMmi(String dialString)
          Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which are initiated without SEND (so dial is not appropriate).
 boolean isDataConnectivityPossible()
          Report whether data connectivity is possible.
 boolean isIdle()
          Check if the phone is idle.
 boolean isOffhook()
          Check if we are in either an active or holding call
 boolean isRadioOn()
          Check to see if the radio is on or not.
 boolean isRinging()
          Check if an incoming phone call is ringing or call waiting.
 boolean isSimPinEnabled()
          Check if the SIM pin lock is enabled.
 boolean setRadio(boolean turnOn)
          Set the radio to on or off
 boolean showCallScreen()
          If there is currently a call in progress, show the call screen.
 boolean supplyPin(String pin)
          Supply a pin to unlock the SIM.
 void toggleRadioOnOff()
          Toggles the radio on or off.
 void updateServiceLocation()
          Request to update location information in service state
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

dial

void dial(String number)
          throws RemoteException
Dial a number. This doesn't place the call. It displays the Dialer screen.

Parameters:
number - the number to be dialed. If null, this would display the Dialer screen with no number pre-filled.
Throws:
RemoteException

call

void call(String number)
          throws RemoteException
Place a call to the numer.

Parameters:
number - the number to be called.
Throws:
RemoteException

showCallScreen

boolean showCallScreen()
                       throws RemoteException
If there is currently a call in progress, show the call screen. Returns true if the call screen was shown.

Throws:
RemoteException

endCall

boolean endCall()
                throws RemoteException
End call or go to the Home screen

Returns:
whether it hung up
Throws:
RemoteException

isOffhook

boolean isOffhook()
                  throws RemoteException
Check if we are in either an active or holding call

Returns:
true if the phone state is OFFHOOK.
Throws:
RemoteException

isRinging

boolean isRinging()
                  throws RemoteException
Check if an incoming phone call is ringing or call waiting.

Returns:
true if the phone state is RINGING.
Throws:
RemoteException

isIdle

boolean isIdle()
               throws RemoteException
Check if the phone is idle.

Returns:
true if the phone state is IDLE.
Throws:
RemoteException

isRadioOn

boolean isRadioOn()
                  throws RemoteException
Check to see if the radio is on or not.

Returns:
returns true if the radio is on.
Throws:
RemoteException

isSimPinEnabled

boolean isSimPinEnabled()
                        throws RemoteException
Check if the SIM pin lock is enabled.

Returns:
true if the SIM pin lock is enabled.
Throws:
RemoteException

cancelMissedCallsNotification

void cancelMissedCallsNotification()
                                   throws RemoteException
Cancels the missed calls notification.

Throws:
RemoteException

supplyPin

boolean supplyPin(String pin)
                  throws RemoteException
Supply a pin to unlock the SIM. Blocks until a result is determined.

Parameters:
pin - The pin to check.
Returns:
whether the operation was a success.
Throws:
RemoteException

handlePinMmi

boolean handlePinMmi(String dialString)
                     throws RemoteException
Handles PIN MMI commands (PIN/PIN2/PUK/PUK2), which are initiated without SEND (so dial is not appropriate).

Parameters:
dialString - the MMI command to be executed.
Returns:
true if MMI command is executed.
Throws:
RemoteException

toggleRadioOnOff

void toggleRadioOnOff()
                      throws RemoteException
Toggles the radio on or off.

Throws:
RemoteException

setRadio

boolean setRadio(boolean turnOn)
                 throws RemoteException
Set the radio to on or off

Throws:
RemoteException

updateServiceLocation

void updateServiceLocation()
                           throws RemoteException
Request to update location information in service state

Throws:
RemoteException

enableLocationUpdates

void enableLocationUpdates()
                           throws RemoteException
Enable location update notifications.

Throws:
RemoteException

disableLocationUpdates

void disableLocationUpdates()
                            throws RemoteException
Disable location update notifications.

Throws:
RemoteException

enableApnType

int enableApnType(String type)
                  throws RemoteException
Enable a specific APN type.

Throws:
RemoteException

disableApnType

int disableApnType(String type)
                   throws RemoteException
Disable a specific APN type.

Throws:
RemoteException

enableDataConnectivity

boolean enableDataConnectivity()
                               throws RemoteException
Allow mobile data connections.

Throws:
RemoteException

disableDataConnectivity

boolean disableDataConnectivity()
                                throws RemoteException
Disallow mobile data connections.

Throws:
RemoteException

isDataConnectivityPossible

boolean isDataConnectivityPossible()
                                   throws RemoteException
Report whether data connectivity is possible.

Throws:
RemoteException

getCellLocation

Bundle getCellLocation()
                       throws RemoteException
Throws:
RemoteException

getCallState

int getCallState()
                 throws RemoteException
Throws:
RemoteException

getDataActivity

int getDataActivity()
                    throws RemoteException
Throws:
RemoteException

getDataState

int getDataState()
                 throws RemoteException
Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature