diff options
author | Hall Liu <hallliu@google.com> | 2020-10-23 03:46:06 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-10-23 03:46:06 +0000 |
commit | c313e8a85de83e7e1d6e45ea237b423ba00ab0e5 (patch) | |
tree | 064d1c4100149750fbc10f7cba6d72843fa24ff2 /telecomm/java | |
parent | a9479251bae3f647009e9933f45324bd1a05696b (diff) | |
parent | 5cff38cc1b8976c65d032bd8155dde0b1fd412fd (diff) |
API tweaks in response to feedback am: 5968c09340 am: 429a15d480 am: 5cff38cc1b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1471167
Change-Id: Iaab53ad343a38a3764344f6e5ace2f7e242c79c1
Diffstat (limited to 'telecomm/java')
-rw-r--r-- | telecomm/java/android/telecom/DisconnectCause.java | 4 | ||||
-rw-r--r-- | telecomm/java/android/telecom/PhoneAccount.java | 12 |
2 files changed, 11 insertions, 5 deletions
diff --git a/telecomm/java/android/telecom/DisconnectCause.java b/telecomm/java/android/telecom/DisconnectCause.java index f7fe1ba1f998..1472a4ac27bc 100644 --- a/telecomm/java/android/telecom/DisconnectCause.java +++ b/telecomm/java/android/telecom/DisconnectCause.java @@ -16,7 +16,6 @@ package android.telecom; -import android.annotation.SystemApi; import android.media.ToneGenerator; import android.os.Parcel; import android.os.Parcelable; @@ -97,10 +96,7 @@ public final class DisconnectCause implements Parcelable { * * This reason code is only used for communication between a {@link ConnectionService} and * Telecom and should not be surfaced to the user. - * - * @hide */ - @SystemApi public static final String REASON_EMULATING_SINGLE_CALL = "EMULATING_SINGLE_CALL"; /** diff --git a/telecomm/java/android/telecom/PhoneAccount.java b/telecomm/java/android/telecom/PhoneAccount.java index cb57df0b2bbc..efdb195343f5 100644 --- a/telecomm/java/android/telecom/PhoneAccount.java +++ b/telecomm/java/android/telecom/PhoneAccount.java @@ -27,6 +27,7 @@ import android.net.Uri; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; +import android.telephony.TelephonyManager; import android.text.TextUtils; import java.util.ArrayList; @@ -51,8 +52,17 @@ public final class PhoneAccount implements Parcelable { * * This is an extras key set via {@link Builder#setExtras} which determines the order in which * {@link PhoneAccount}s from the same {@link ConnectionService} are sorted. The accounts - * are sorted by this key via standard lexicographical order, and this ordering is used to + * are sorted by this key via standard lexicographical order, (as implemented in + * {@link String#compareTo}), and this ordering is used to * determine priority when a call can be placed via multiple accounts. + * + * When multiple {@link PhoneAccount}s are supplied with the same sort order key, no ordering is + * guaranteed between those {@link PhoneAccount}s. Additionally, no ordering is guaranteed + * between {@link PhoneAccount}s that do not supply this extra, and all such accounts + * will be sorted after the accounts that do supply this extra. + * + * An example of a sort order key is slot index (see {@link TelephonyManager#getSlotIndex()}), + * which is the one used by the cell Telephony stack. * @hide */ @SystemApi |