* commit '3ae9505f67b24fd29388d2ab0666086e81db6fce': Even more javadocs for telecom.
This commit is contained in:
@@ -23,12 +23,16 @@ import android.os.Parcelable;
|
|||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When calls are made, they may contain gateway information for services which route phone calls
|
* Encapsulated gateway address information for outgoing call. When calls are made, the system
|
||||||
* through their own service/numbers. The data consists of a number to call and the package name of
|
* provides a facility to specify two addresses for the call: one to display as the address being
|
||||||
* the service. This data is used in two ways:
|
* dialed and a separate (gateway) address to actually dial. Telecom provides this information to
|
||||||
|
* {@link ConnectionService}s when placing the call as an instance of {@code GatewayInfo}.
|
||||||
|
* <p>
|
||||||
|
* The data consists of an address to call, an address to display and the package name of the
|
||||||
|
* service. This data is used in two ways:
|
||||||
* <ol>
|
* <ol>
|
||||||
* <li> Call the appropriate routing number
|
* <li> Call the appropriate gateway address.
|
||||||
* <li> Display information about how the call is being routed to the user
|
* <li> Display information about how the call is being routed to the user.
|
||||||
* </ol>
|
* </ol>
|
||||||
*/
|
*/
|
||||||
public class GatewayInfo implements Parcelable {
|
public class GatewayInfo implements Parcelable {
|
||||||
@@ -46,31 +50,39 @@ public class GatewayInfo implements Parcelable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Package name of the gateway provider service. used to place the call with.
|
* Package name of the gateway provider service that provided the gateway information.
|
||||||
|
* This can be used to identify the gateway address source and to load an appropriate icon when
|
||||||
|
* displaying gateway information in the in-call UI.
|
||||||
*/
|
*/
|
||||||
public String getGatewayProviderPackageName() {
|
public String getGatewayProviderPackageName() {
|
||||||
return mGatewayProviderPackageName;
|
return mGatewayProviderPackageName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gateway provider address to use when actually placing the call.
|
* Returns the gateway address to dial when placing the call.
|
||||||
*/
|
*/
|
||||||
public Uri getGatewayAddress() {
|
public Uri getGatewayAddress() {
|
||||||
return mGatewayAddress;
|
return mGatewayAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The actual call address that the user is trying to connect to via the gateway.
|
* Returns the address that the user is trying to connect to via the gateway.
|
||||||
*/
|
*/
|
||||||
public Uri getOriginalAddress() {
|
public Uri getOriginalAddress() {
|
||||||
return mOriginalAddress;
|
return mOriginalAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Indicates whether this {@code GatewayInfo} instance contains any data. A returned value of
|
||||||
|
* false indicates that no gateway number is being used for the call.
|
||||||
|
*/
|
||||||
public boolean isEmpty() {
|
public boolean isEmpty() {
|
||||||
return TextUtils.isEmpty(mGatewayProviderPackageName) || mGatewayAddress == null;
|
return TextUtils.isEmpty(mGatewayProviderPackageName) || mGatewayAddress == null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Implement the Parcelable interface */
|
/**
|
||||||
|
* The Parcelable interface.
|
||||||
|
* */
|
||||||
public static final Parcelable.Creator<GatewayInfo> CREATOR =
|
public static final Parcelable.Creator<GatewayInfo> CREATOR =
|
||||||
new Parcelable.Creator<GatewayInfo> () {
|
new Parcelable.Creator<GatewayInfo> () {
|
||||||
|
|
||||||
|
|||||||
@@ -17,8 +17,8 @@
|
|||||||
package android.telecom;
|
package android.telecom;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Defines capabilities a phone call can support, such as conference calling and video telephony.
|
* Defines capabilities for {@link Connection}s and {@link Conference}s such as hold, swap, and
|
||||||
* Also defines properties of a phone call, such as whether it is using VoLTE technology.
|
* merge.
|
||||||
*/
|
*/
|
||||||
public final class PhoneCapabilities {
|
public final class PhoneCapabilities {
|
||||||
/** Call can currently be put on hold or unheld. */
|
/** Call can currently be put on hold or unheld. */
|
||||||
@@ -28,15 +28,22 @@ public final class PhoneCapabilities {
|
|||||||
public static final int SUPPORT_HOLD = 0x00000002;
|
public static final int SUPPORT_HOLD = 0x00000002;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls within a conference can be merged. Some connection services create a conference call
|
* Calls within a conference can be merged. A {@link ConnectionService} has the option to
|
||||||
* only after two calls have been merged. However, a conference call can also be added the
|
* add a {@link Conference} call before the child {@link Connection}s are merged. This is how
|
||||||
* moment there are more than one call. CDMA calls are implemented in this way because the call
|
* CDMA-based {@link Connection}s are implemented. For these unmerged {@link Conference}s, this
|
||||||
* actions are more limited when more than one call exists. This flag allows merge to be exposed
|
* capability allows a merge button to be shown while the conference call is in the foreground
|
||||||
* as a capability on the conference call instead of individual calls.
|
* of the in-call UI.
|
||||||
|
* <p>
|
||||||
|
* This is only intended for use by a {@link Conference}.
|
||||||
*/
|
*/
|
||||||
public static final int MERGE_CONFERENCE = 0x00000004;
|
public static final int MERGE_CONFERENCE = 0x00000004;
|
||||||
|
|
||||||
/** Calls withing a conference can be swapped between foreground and background. */
|
/**
|
||||||
|
* Calls within a conference can be swapped between foreground and background.
|
||||||
|
* See {@link #MERGE_CONFERENCE} for additional information.
|
||||||
|
* <p>
|
||||||
|
* This is only intended for use by a {@link Conference}.
|
||||||
|
*/
|
||||||
public static final int SWAP_CONFERENCE = 0x00000008;
|
public static final int SWAP_CONFERENCE = 0x00000008;
|
||||||
|
|
||||||
/** Call currently supports adding another call to this one. */
|
/** Call currently supports adding another call to this one. */
|
||||||
@@ -49,8 +56,8 @@ public final class PhoneCapabilities {
|
|||||||
public static final int MUTE = 0x00000040;
|
public static final int MUTE = 0x00000040;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Call supports conference call management. This capability only applies to conference calls
|
* Call supports conference call management. This capability only applies to {@link Conference}
|
||||||
* which can have other calls as children.
|
* calls which can have {@link Connection}s as children.
|
||||||
*/
|
*/
|
||||||
public static final int MANAGE_CONFERENCE = 0x00000080;
|
public static final int MANAGE_CONFERENCE = 0x00000080;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user