Modifier and Type | Field and Description |
---|---|
static int |
CAPABILITY_CAN_PAUSE_VIDEO
For video calls, indicates whether the outgoing video for the call can be paused using
the
VideoProfile.STATE_PAUSED VideoState. |
static int |
CAPABILITY_CAN_PULL_CALL
When set for an external call, indicates that this
Call can be pulled from a
remote device to the current device. |
static int |
CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION
Call sends responses through connection.
|
static int |
CAPABILITY_CAN_UPGRADE_TO_VIDEO
Call can be upgraded to a video call.
|
static int |
CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO
When set, prevents a video
Call from being downgraded to an audio-only call. |
static int |
CAPABILITY_DISCONNECT_FROM_CONFERENCE
Call is able to be individually disconnected when in a
Conference . |
static int |
CAPABILITY_HOLD
Call can currently be put on hold or unheld.
|
static int |
CAPABILITY_MANAGE_CONFERENCE
Call supports conference call management.
|
static int |
CAPABILITY_MERGE_CONFERENCE
Calls within a conference can be merged.
|
static int |
CAPABILITY_MUTE
Call can be muted.
|
static int |
CAPABILITY_RESPOND_VIA_TEXT
Call supports responding via text option.
|
static int |
CAPABILITY_SEPARATE_FROM_CONFERENCE
Call is able to be separated from its parent
Conference , if any. |
static int |
CAPABILITY_SPEED_UP_MT_AUDIO
Speed up audio setup for MT call.
|
static int |
CAPABILITY_SUPPORT_HOLD
Call supports the hold feature.
|
static int |
CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL
Local device supports bidirectional video calling.
|
static int |
CAPABILITY_SUPPORTS_VT_LOCAL_RX
Local device supports receiving video.
|
static int |
CAPABILITY_SUPPORTS_VT_LOCAL_TX
Local device supports transmitting video.
|
static int |
CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL
Remote device supports bidirectional video calling.
|
static int |
CAPABILITY_SUPPORTS_VT_REMOTE_RX
Remote device supports receiving video.
|
static int |
CAPABILITY_SUPPORTS_VT_REMOTE_TX
Remote device supports transmitting video.
|
static int |
CAPABILITY_SWAP_CONFERENCE
Calls within a conference can be swapped between foreground and background.
|
static int |
CAPABILITY_UNUSED_1 |
static int |
PROPERTY_CONFERENCE
Whether the call is currently a conference.
|
static int |
PROPERTY_EMERGENCY_CALLBACK_MODE
Whether the call is made while the device is in emergency callback mode.
|
static int |
PROPERTY_ENTERPRISE_CALL
Whether the call is associated with the work profile.
|
static int |
PROPERTY_GENERIC_CONFERENCE
Whether the call is a generic conference, where we do not know the precise state of
participants in the conference (eg. on CDMA).
|
static int |
PROPERTY_HAS_CDMA_VOICE_PRIVACY
Indicates that the call has CDMA Enhanced Voice Privacy enabled.
|
static int |
PROPERTY_HIGH_DEF_AUDIO
Call is using high definition audio.
|
static int |
PROPERTY_IS_EXTERNAL_CALL
When set, indicates that this
Call does not actually exist locally for the
ConnectionService . |
static int |
PROPERTY_WIFI
Connection is using WIFI.
|
Constructor and Description |
---|
Details(String telecomCallId,
Uri handle,
int handlePresentation,
String callerDisplayName,
int callerDisplayNamePresentation,
PhoneAccountHandle accountHandle,
int capabilities,
int properties,
DisconnectCause disconnectCause,
long connectTimeMillis,
GatewayInfo gatewayInfo,
int videoState,
StatusHints statusHints,
Bundle extras,
Bundle intentExtras) |
Modifier and Type | Method and Description |
---|---|
boolean |
can(int capability)
Whether the capabilities of this
Details supports the specified capability. |
static boolean |
can(int capabilities,
int capability)
Whether the supplied capabilities supports the specified capability.
|
static String |
capabilitiesToString(int capabilities)
Render a set of capability bits (
CAPABILITY_* ) as a human readable string. |
static Call.Details |
createFromParcelableCall(ParcelableCall parcelableCall) |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
PhoneAccountHandle |
getAccountHandle() |
int |
getCallCapabilities() |
String |
getCallerDisplayName() |
int |
getCallerDisplayNamePresentation() |
int |
getCallProperties() |
long |
getConnectTimeMillis() |
DisconnectCause |
getDisconnectCause() |
Bundle |
getExtras() |
GatewayInfo |
getGatewayInfo() |
Uri |
getHandle() |
int |
getHandlePresentation() |
Bundle |
getIntentExtras() |
StatusHints |
getStatusHints() |
String |
getTelecomCallId() |
int |
getVideoState() |
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
hasProperty(int property)
Whether the properties of this
Details includes the specified property. |
static boolean |
hasProperty(int properties,
int property)
Whether the supplied properties includes the specified property.
|
static String |
propertiesToString(int properties)
Render a set of property bits (
PROPERTY_* ) as a human readable string. |
String |
toString()
Returns a string representation of the object.
|
public static final int CAPABILITY_HOLD
public static final int CAPABILITY_SUPPORT_HOLD
public static final int CAPABILITY_MERGE_CONFERENCE
ConnectionService
has the option to
add a Conference
call before the child Connection
s are merged. This is how
CDMA-based Connection
s are implemented. For these unmerged Conference
s, this
capability allows a merge button to be shown while the conference call is in the foreground
of the in-call UI.
This is only intended for use by a Conference
.
public static final int CAPABILITY_SWAP_CONFERENCE
CAPABILITY_MERGE_CONFERENCE
for additional information.
This is only intended for use by a Conference
.
public static final int CAPABILITY_UNUSED_1
public static final int CAPABILITY_RESPOND_VIA_TEXT
public static final int CAPABILITY_MUTE
public static final int CAPABILITY_MANAGE_CONFERENCE
Conference
calls which can have Connection
s as children.public static final int CAPABILITY_SUPPORTS_VT_LOCAL_RX
public static final int CAPABILITY_SUPPORTS_VT_LOCAL_TX
public static final int CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL
public static final int CAPABILITY_SUPPORTS_VT_REMOTE_RX
public static final int CAPABILITY_SUPPORTS_VT_REMOTE_TX
public static final int CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL
public static final int CAPABILITY_SEPARATE_FROM_CONFERENCE
Conference
, if any.public static final int CAPABILITY_DISCONNECT_FROM_CONFERENCE
Conference
.public static final int CAPABILITY_SPEED_UP_MT_AUDIO
public static final int CAPABILITY_CAN_UPGRADE_TO_VIDEO
public static final int CAPABILITY_CAN_PAUSE_VIDEO
VideoProfile.STATE_PAUSED
VideoState.public static final int CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION
public static final int CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO
Call
from being downgraded to an audio-only call.
Should be set when the VideoState has the VideoProfile.STATE_TX_ENABLED
or
VideoProfile.STATE_RX_ENABLED
bits set to indicate that the connection cannot be
downgraded from a video call back to a VideoState of
VideoProfile.STATE_AUDIO_ONLY
.
Intuitively, a call which can be downgraded to audio should also have local and remote
video
capabilities (see CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL
and
CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL
).
public static final int CAPABILITY_CAN_PULL_CALL
Call
can be pulled from a
remote device to the current device.
Should only be set on a Call
where PROPERTY_IS_EXTERNAL_CALL
is set.
An InCallService
will only see calls with this capability if it has the
TelecomManager.METADATA_INCLUDE_EXTERNAL_CALLS
metadata set to true
in its manifest.
See Connection.CAPABILITY_CAN_PULL_CALL
and
Connection.PROPERTY_IS_EXTERNAL_CALL
.
public static final int PROPERTY_CONFERENCE
public static final int PROPERTY_GENERIC_CONFERENCE
public static final int PROPERTY_EMERGENCY_CALLBACK_MODE
public static final int PROPERTY_WIFI
public static final int PROPERTY_HIGH_DEF_AUDIO
public static final int PROPERTY_ENTERPRISE_CALL
public static final int PROPERTY_IS_EXTERNAL_CALL
Call
does not actually exist locally for the
ConnectionService
.
Consider, for example, a scenario where a user has two phones with the same phone number.
When a user places a call on one device, the telephony stack can represent that call on
the other device by adding it to the ConnectionService
with the
Connection.PROPERTY_IS_EXTERNAL_CALL
property set.
An InCallService
will only see calls with this property if it has the
TelecomManager.METADATA_INCLUDE_EXTERNAL_CALLS
metadata set to true
in its manifest.
public static final int PROPERTY_HAS_CDMA_VOICE_PRIVACY
public Details(String telecomCallId, Uri handle, int handlePresentation, String callerDisplayName, int callerDisplayNamePresentation, PhoneAccountHandle accountHandle, int capabilities, int properties, DisconnectCause disconnectCause, long connectTimeMillis, GatewayInfo gatewayInfo, int videoState, StatusHints statusHints, Bundle extras, Bundle intentExtras)
public static boolean can(int capabilities, int capability)
capabilities
- A bit field of capabilities.capability
- The capability to check capabilities for.public boolean can(int capability)
Details
supports the specified capability.capability
- The capability to check capabilities for.public static String capabilitiesToString(int capabilities)
CAPABILITY_*
) as a human readable string.capabilities
- A capability bit field.public static boolean hasProperty(int properties, int property)
properties
- A bit field of properties.property
- The property to check properties for.public boolean hasProperty(int property)
Details
includes the specified property.property
- The property to check properties for.public static String propertiesToString(int properties)
PROPERTY_*
) as a human readable string.properties
- A property bit field.public String getTelecomCallId()
public Uri getHandle()
Call
is currently
connected.public int getHandlePresentation()
TelecomManager
for valid values.public String getCallerDisplayName()
public int getCallerDisplayNamePresentation()
TelecomManager
for valid values.public PhoneAccountHandle getAccountHandle()
PhoneAccountHandle
whereby the Call
is currently being
routed.public int getCallCapabilities()
Call
, as defined by the various
CAPABILITY_*
constants in this class.public int getCallProperties()
Call
, as defined by the various
PROPERTY_*
constants in this class.public DisconnectCause getDisconnectCause()
Call.STATE_DISCONNECTED
Call
, the disconnect cause expressed
by DisconnectCause
.public final long getConnectTimeMillis()
Call
has been connected. This information is updated
periodically, but user interfaces should not rely on this to display any "call time
clock".public GatewayInfo getGatewayInfo()
Call
may be using.public int getVideoState()
Call
.public StatusHints getStatusHints()
StatusHints
, or null
if none
have been set.public Bundle getExtras()
public Bundle getIntentExtras()
public boolean equals(Object o)
Object
The equals
method implements an equivalence relation
on non-null object references:
x
, x.equals(x)
should return
true
.
x
and y
, x.equals(y)
should return true
if and only if
y.equals(x)
returns true
.
x
, y
, and z
, if
x.equals(y)
returns true
and
y.equals(z)
returns true
, then
x.equals(z)
should return true
.
x
and y
, multiple invocations of
x.equals(y)
consistently return true
or consistently return false
, provided no
information used in equals
comparisons on the
objects is modified.
x
,
x.equals(null)
should return false
.
The equals
method for class Object
implements
the most discriminating possible equivalence relation on objects;
that is, for any non-null reference values x
and
y
, this method returns true
if and only
if x
and y
refer to the same object
(x == y
has the value true
).
Note that it is generally necessary to override the hashCode
method whenever this method is overridden, so as to maintain the
general contract for the hashCode
method, which states
that equal objects must have equal hash codes.
equals
in class Object
o
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.Object.hashCode()
,
HashMap
public int hashCode()
Object
HashMap
.
The general contract of hashCode
is:
hashCode
method
must consistently return the same integer, provided no information
used in equals
comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
equals(Object)
method, then calling the hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode
method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hash tables.
As much as is reasonably practical, the hashCode method defined by
class Object
does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
JavaTM programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public static Call.Details createFromParcelableCall(ParcelableCall parcelableCall)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())