Merge "Revert "API tweaks"" am: c61bb461b6

am: 8230f428e4

Change-Id: I74ed1783d59efa404e32a66ee764557a2400f8f2
This commit is contained in:
Wei Sheng Shih
2019-03-06 01:53:33 -08:00
committed by android-build-merger
5 changed files with 15 additions and 11 deletions

View File

@@ -41734,7 +41734,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();

View File

@@ -5413,6 +5413,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);

View File

@@ -1444,6 +1444,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);

View File

@@ -1839,12 +1839,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.

View File

@@ -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;