diff options
-rw-r--r-- | api/current.txt | 23 | ||||
-rw-r--r-- | telecomm/java/android/telecomm/CallCapabilities.java | 50 | ||||
-rw-r--r-- | telecomm/java/android/telecomm/CallNumberPresentation.java | 32 |
3 files changed, 105 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index c90d219..e9bd376 100644 --- a/api/current.txt +++ b/api/current.txt @@ -24848,6 +24848,20 @@ package android.telecomm { field public final int supportedRouteMask; } + public class CallCapabilities { + ctor public CallCapabilities(); + field public static final int ADD_CALL = 16; // 0x10 + field public static final int ALL = 511; // 0x1ff + field public static final int CONNECTION_HANDOFF = 256; // 0x100 + field public static final int GENERIC_CONFERENCE = 128; // 0x80 + field public static final int HOLD = 1; // 0x1 + field public static final int MERGE_CALLS = 4; // 0x4 + field public static final int MUTE = 64; // 0x40 + field public static final int RESPOND_VIA_TEXT = 32; // 0x20 + field public static final int SUPPORT_HOLD = 2; // 0x2 + field public static final int SWAP_CALLS = 8; // 0x8 + } + public final class CallInfo implements android.os.Parcelable { ctor public CallInfo(java.lang.String, android.telecomm.CallState, android.net.Uri); method public int describeContents(); @@ -24860,6 +24874,15 @@ package android.telecomm { field public static final android.os.Parcelable.Creator CREATOR; } + public final class CallNumberPresentation extends java.lang.Enum { + method public static android.telecomm.CallNumberPresentation valueOf(java.lang.String); + method public static final android.telecomm.CallNumberPresentation[] values(); + enum_constant public static final android.telecomm.CallNumberPresentation ALLOWED; + enum_constant public static final android.telecomm.CallNumberPresentation PAYPHONE; + enum_constant public static final android.telecomm.CallNumberPresentation RESTRICTED; + enum_constant public static final android.telecomm.CallNumberPresentation UNKNOWN; + } + public abstract class CallService extends android.app.Service { ctor public CallService(); method public abstract void abort(java.lang.String); diff --git a/telecomm/java/android/telecomm/CallCapabilities.java b/telecomm/java/android/telecomm/CallCapabilities.java new file mode 100644 index 0000000..b2b33a3 --- /dev/null +++ b/telecomm/java/android/telecomm/CallCapabilities.java @@ -0,0 +1,50 @@ +/* + * Copyright 2014, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telecomm; + +/** Defines actions a call currently supports. */ +public class CallCapabilities { + /** Call can currently be put on hold or unheld. */ + public static final int HOLD = 0x00000001; + + /** Call supports the hold feature. */ + public static final int SUPPORT_HOLD = 0x00000002; + + /** Call can currently be merged. */ + public static final int MERGE_CALLS = 0x00000004; + + /* Call can currently be swapped with another call. */ + public static final int SWAP_CALLS = 0x00000008; + + /* Call currently supports adding another call to this one. */ + public static final int ADD_CALL = 0x00000010; + + /* Call supports responding via text option. */ + public static final int RESPOND_VIA_TEXT = 0x00000020; + + /* Call can be muted. */ + public static final int MUTE = 0x00000040; + + /* Call supports generic conference mode. */ + public static final int GENERIC_CONFERENCE = 0x00000080; + + /* Call currently supports switch between connections. */ + public static final int CONNECTION_HANDOFF = 0x00000100; + + public static final int ALL = HOLD | SUPPORT_HOLD | MERGE_CALLS | SWAP_CALLS | ADD_CALL + | RESPOND_VIA_TEXT | MUTE | GENERIC_CONFERENCE | CONNECTION_HANDOFF; +} diff --git a/telecomm/java/android/telecomm/CallNumberPresentation.java b/telecomm/java/android/telecomm/CallNumberPresentation.java new file mode 100644 index 0000000..6cd22f8 --- /dev/null +++ b/telecomm/java/android/telecomm/CallNumberPresentation.java @@ -0,0 +1,32 @@ +/* + * Copyright 2014, The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.telecomm; + +/** Defines how numbers are displayed in caller id. */ +public enum CallNumberPresentation { + /** Number is displayed normally. */ + ALLOWED, + + /** Number was blocked. */ + RESTRICTED, + + /** Presentation was not specified or is unknown. */ + UNKNOWN, + + /** Number should be displayed as a pay phone. */ + PAYPHONE +} |