summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Wei Sheng Shih <wilsonshih@google.com> 2019-03-06 02:02:49 -0800
committer android-build-merger <android-build-merger@google.com> 2019-03-06 02:02:49 -0800
commit9ec61a3214c5a81be76dbe2d6b7cdf6bcb988fba (patch)
tree933e978e65fad619f47ee7ed94991cbf5ab2fef7
parentdd823c03d2cff02a6204102c4b86c7f04d70fd12 (diff)
parentfdc3dc56709a9a2705b62dda18daa7c88c7f53f7 (diff)
Merge "Revert "API tweaks"" am: c61bb461b6 am: 8230f428e4
am: fdc3dc5670 Change-Id: I53aba1bcac7bc5aabba152dcb9f6510befba4f69
-rw-r--r--api/current.txt1
-rw-r--r--api/system-current.txt4
-rw-r--r--api/test-current.txt4
-rw-r--r--core/res/AndroidManifest.xml4
-rw-r--r--telecomm/java/android/telecom/PhoneAccountSuggestion.java13
5 files changed, 15 insertions, 11 deletions
diff --git a/api/current.txt b/api/current.txt
index 7f07d09f204c..7b05726d1ee1 100644
--- a/api/current.txt
+++ b/api/current.txt
@@ -43830,7 +43830,6 @@ 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 9b552e26600f..98464d81a870 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -7002,6 +7002,10 @@ 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 6f8e0fab6eb9..b220325f1e0d 100644
--- a/api/test-current.txt
+++ b/api/test-current.txt
@@ -2355,6 +2355,10 @@ 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 ccfbde590eba..4c4393d4fd61 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
+ <p>Protection level: signature|privileged
@SystemApi
@hide
-->
<permission android:name="android.permission.BIND_PHONE_ACCOUNT_SUGGESTION_SERVICE"
- android:protectionLevel="signature" />
+ android:protectionLevel="signature|privileged" />
<!-- 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 2589d9504f6d..3799cf332d7a 100644
--- a/telecomm/java/android/telecom/PhoneAccountSuggestion.java
+++ b/telecomm/java/android/telecom/PhoneAccountSuggestion.java
@@ -18,6 +18,8 @@ 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;
@@ -67,15 +69,10 @@ public final class PhoneAccountSuggestion implements Parcelable {
private boolean mShouldAutoSelect;
/**
- * 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()}.
+ * @hide
*/
+ @SystemApi
+ @TestApi
public PhoneAccountSuggestion(@NonNull PhoneAccountHandle handle, @SuggestionReason int reason,
boolean shouldAutoSelect) {
this.mHandle = handle;