Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2" am: db5b77c275

am: 5bf7e2cc5c

Change-Id: Ib9b33541a9679a6001fbeacb23d687cfb1a0740a
This commit is contained in:
Hall Liu
2018-12-19 14:23:54 -08:00
committed by android-build-merger
3 changed files with 26 additions and 0 deletions

View File

@@ -967,6 +967,14 @@ package android.telecom {
ctor public PhoneAccountSuggestion(android.telecom.PhoneAccountHandle, int, boolean);
}
public class PhoneAccountSuggestionService extends android.app.Service {
ctor public PhoneAccountSuggestionService();
method public void onAccountSuggestionRequest(java.lang.String);
method public android.os.IBinder onBind(android.content.Intent);
method public final void suggestPhoneAccounts(java.lang.String, java.util.List<android.telecom.PhoneAccountSuggestion>);
field public static final java.lang.String SERVICE_INTERFACE = "android.telecom.PhoneAccountSuggestionService";
}
}
package android.telephony {

View File

@@ -24,6 +24,7 @@ import android.os.Parcelable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.Objects;
public final class PhoneAccountSuggestion implements Parcelable {
@@ -132,4 +133,19 @@ public final class PhoneAccountSuggestion implements Parcelable {
dest.writeInt(mReason);
dest.writeByte((byte) (mShouldAutoSelect ? 1 : 0));
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PhoneAccountSuggestion that = (PhoneAccountSuggestion) o;
return mReason == that.mReason
&& mShouldAutoSelect == that.mShouldAutoSelect
&& Objects.equals(mHandle, that.mHandle);
}
@Override
public int hashCode() {
return Objects.hash(mHandle, mReason, mShouldAutoSelect);
}
}

View File

@@ -19,6 +19,7 @@ package android.telecom;
import android.annotation.NonNull;
import android.annotation.SdkConstant;
import android.annotation.SystemApi;
import android.annotation.TestApi;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
@@ -56,6 +57,7 @@ import java.util.Map;
* @hide
*/
@SystemApi
@TestApi
public class PhoneAccountSuggestionService extends Service {
/**
* The {@link Intent} that must be declared in the {@code intent-filter} element of the