public class TelephonyCapabilities extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canDistinguishDialingAndConnected(int phoneType)
Returns true if the device can distinguish the phone's dialing state
(Call.State.DIALING/ALERTING) and connected state (Call.State.ACTIVE).
|
static int |
getDeviceIdLabel(Phone phone)
Returns a resource ID for a label to use when displaying the
"device id" of the current device.
|
static boolean |
supportsAdn(int phoneType)
Return true if phones with the given phone type support ADN
(Abbreviated Dialing Numbers).
|
static boolean |
supportsAnswerAndHold(Phone phone)
Return true if the current phone supports distinct "Answer & Hold"
and "Answer & End" behaviors in the call-waiting scenario.
|
static boolean |
supportsConferenceCallManagement(Phone phone)
Return true if the current phone supports the ability to explicitly
manage the state of a conference call (i.e. view the participants,
and hangup or separate individual callers.)
|
static boolean |
supportsEcm(Phone phone)
Return true if the current phone supports ECM ("Emergency Callback
Mode"), which is a feature where the device goes into a special
state for a short period of time after making an outgoing emergency
call.
|
static boolean |
supportsHoldAndUnhold(Phone phone)
Return true if the current phone supports explicit "Hold" and
"Unhold" actions for an active call.
|
static boolean |
supportsNetworkSelection(Phone phone)
Return true if this phone allows the user to select which
network to use.
|
static boolean |
supportsOtasp(Phone phone)
Return true if the current phone supports Over The Air Service
Provisioning (OTASP)
Currently this is assumed to be true for CDMA phones, and false
otherwise.
|
static boolean |
supportsVoiceMessageCount(Phone phone)
Return true if the current phone supports voice message count.
|
public static boolean supportsEcm(Phone phone)
public static boolean supportsOtasp(Phone phone)
public static boolean supportsVoiceMessageCount(Phone phone)
public static boolean supportsNetworkSelection(Phone phone)
public static int getDeviceIdLabel(Phone phone)
public static boolean supportsConferenceCallManagement(Phone phone)
public static boolean supportsHoldAndUnhold(Phone phone)
public static boolean supportsAnswerAndHold(Phone phone)
public static boolean supportsAdn(int phoneType)
PhoneConstants.PHONE_TYPE_GSM
).
This is using int for an argument for letting apps outside
Phone process access to it, while other methods in this class is
using Phone object.
TODO: Theoretically phones other than GSM may have the ADN capability.
Consider having better check here, or have better capability as part
of public API, with which the argument should be replaced with
something more appropriate.public static boolean canDistinguishDialingAndConnected(int phoneType)