summaryrefslogtreecommitdiffstats
path: root/telecomm
diff options
context:
space:
mode:
authorBryce Lee <brycelee@google.com>2015-10-14 16:48:40 -0700
committerBryce Lee <brycelee@google.com>2015-10-14 16:48:40 -0700
commitb96d89cd342ad5c3a55d620e2f8922e2fed152e7 (patch)
tree17a374b5c9bb6e111371f9d4b30c6752b95ff33c /telecomm
parent6c8ddfcc5a34af2dd3c28c7b1c46ab51967b3213 (diff)
downloadframeworks_base-b96d89cd342ad5c3a55d620e2f8922e2fed152e7.zip
frameworks_base-b96d89cd342ad5c3a55d620e2f8922e2fed152e7.tar.gz
frameworks_base-b96d89cd342ad5c3a55d620e2f8922e2fed152e7.tar.bz2
Add capability to identify phone accounts that are emergency only.
Bug: 24756957 Change-Id: Id26eaa7f6632674f7122b4cd658cbe2bf9b04594
Diffstat (limited to 'telecomm')
-rw-r--r--telecomm/java/android/telecom/PhoneAccount.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java
index cdb0bf2..b64043c 100644
--- a/telecomm/java/android/telecom/PhoneAccount.java
+++ b/telecomm/java/android/telecom/PhoneAccount.java
@@ -121,6 +121,14 @@ public final class PhoneAccount implements Parcelable {
public static final int CAPABILITY_CALL_SUBJECT = 0x40;
/**
+ * Flag indicating that this {@code PhoneAccount} should only be used for emergency calls.
+ * <p>
+ * See {@link #getCapabilities}
+ * @hide
+ */
+ public static final int CAPABILITY_EMERGENCY_CALLS_ONLY = 0x80;
+
+ /**
* URI scheme for telephone number URIs.
*/
public static final String SCHEME_TEL = "tel";