diff options
author | 2019-03-06 17:17:16 -0800 | |
---|---|---|
committer | 2019-03-06 17:17:16 -0800 | |
commit | 60905c039b6a1fa33de657d21d24b51933bf8f5d (patch) | |
tree | 7247d4b59b756db73414e609f9c1293ffc738bff | |
parent | a3e9952ee5434e3df1b8e5adb7f45a64ae62857a (diff) | |
parent | fe12d8de3f670c95b5006ca6301f53e2339e0254 (diff) |
Merge "API tweaks" am: f3fbbeaa05 am: 4c3e0ccfa5
am: fe12d8de3f
Change-Id: I13342f7735adb24240c4ca34245f93e3d7579d78
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | api/system-current.txt | 4 | ||||
-rw-r--r-- | api/test-current.txt | 4 | ||||
-rw-r--r-- | core/res/AndroidManifest.xml | 4 | ||||
-rw-r--r-- | telecomm/java/android/telecom/PhoneAccountSuggestion.java | 13 |
5 files changed, 11 insertions, 15 deletions
diff --git a/api/current.txt b/api/current.txt index 0f3cb1b552f4..c467270f4312 100644 --- a/api/current.txt +++ b/api/current.txt @@ -43765,6 +43765,7 @@ package android.telecom { } public final class PhoneAccountSuggestion implements android.os.Parcelable { + ctor public PhoneAccountSuggestion(@NonNull android.telecom.PhoneAccountHandle, int, boolean); method public int describeContents(); method @NonNull public android.telecom.PhoneAccountHandle getPhoneAccountHandle(); method public int getReason(); diff --git a/api/system-current.txt b/api/system-current.txt index 2ed385fb83d0..fd2e8c18cd82 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -7069,10 +7069,6 @@ package android.telecom { field public static final int CAPABILITY_MULTI_USER = 32; // 0x20 } - public final class PhoneAccountSuggestion implements android.os.Parcelable { - ctor public PhoneAccountSuggestion(@NonNull android.telecom.PhoneAccountHandle, int, boolean); - } - public class PhoneAccountSuggestionService extends android.app.Service { ctor public PhoneAccountSuggestionService(); method public void onAccountSuggestionRequest(@NonNull String); diff --git a/api/test-current.txt b/api/test-current.txt index bc011574e8fb..40e150dbc0b7 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -2398,10 +2398,6 @@ package android.telecom { method public android.telecom.Connection getPrimaryConnection(); } - public final class PhoneAccountSuggestion implements android.os.Parcelable { - ctor public PhoneAccountSuggestion(@NonNull android.telecom.PhoneAccountHandle, int, boolean); - } - public class PhoneAccountSuggestionService extends android.app.Service { ctor public PhoneAccountSuggestionService(); method public void onAccountSuggestionRequest(@NonNull String); diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index 9aaa14f9b821..c9199be728b4 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2002,12 +2002,12 @@ <!-- Must be required by a {@link android.telecom.PhoneAccountSuggestionService}, to ensure that only the system can bind to it. - <p>Protection level: signature|privileged + <p>Protection level: signature @SystemApi @hide --> <permission android:name="android.permission.BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE" - android:protectionLevel="signature|privileged" /> + android:protectionLevel="signature" /> <!-- Must be required by a {@link android.telecom.CallRedirectionService}, to ensure that only the system can bind to it. diff --git a/telecomm/java/android/telecom/PhoneAccountSuggestion.java b/telecomm/java/android/telecom/PhoneAccountSuggestion.java index 3799cf332d7a..2589d9504f6d 100644 --- a/telecomm/java/android/telecom/PhoneAccountSuggestion.java +++ b/telecomm/java/android/telecom/PhoneAccountSuggestion.java @@ -18,8 +18,6 @@ package android.telecom; import android.annotation.IntDef; import android.annotation.NonNull; -import android.annotation.SystemApi; -import android.annotation.TestApi; import android.os.Parcel; import android.os.Parcelable; @@ -69,10 +67,15 @@ public final class PhoneAccountSuggestion implements Parcelable { private boolean mShouldAutoSelect; /** - * @hide + * Creates a new instance of {@link PhoneAccountSuggestion}. This constructor is intended for + * use by apps implementing a {@link PhoneAccountSuggestionService}, and generally should not be + * used by dialer apps other than for testing purposes. + * + * @param handle The {@link PhoneAccountHandle} for this suggestion. + * @param reason The reason for this suggestion + * @param shouldAutoSelect Whether the dialer should automatically place the call using this + * account. See {@link #shouldAutoSelect()}. */ - @SystemApi - @TestApi public PhoneAccountSuggestion(@NonNull PhoneAccountHandle handle, @SuggestionReason int reason, boolean shouldAutoSelect) { this.mHandle = handle; |