Loading api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -30480,6 +30480,7 @@ package android.telecom { method public android.telecom.PhoneAccountHandle getAccountHandle(); method public android.net.Uri getAddress(); method public int getCapabilities(); method public android.os.Bundle getExtras(); method public int getHighlightColor(); method public android.graphics.drawable.Icon getIcon(); method public java.lang.CharSequence getLabel(); Loading Loading @@ -30512,6 +30513,7 @@ package android.telecom { method public android.telecom.PhoneAccount build(); method public android.telecom.PhoneAccount.Builder setAddress(android.net.Uri); method public android.telecom.PhoneAccount.Builder setCapabilities(int); method public android.telecom.PhoneAccount.Builder setExtras(android.os.Bundle); method public android.telecom.PhoneAccount.Builder setHighlightColor(int); method public android.telecom.PhoneAccount.Builder setIcon(android.graphics.drawable.Icon); method public android.telecom.PhoneAccount.Builder setShortDescription(java.lang.CharSequence); api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -32679,6 +32679,7 @@ package android.telecom { method public android.telecom.PhoneAccountHandle getAccountHandle(); method public android.net.Uri getAddress(); method public int getCapabilities(); method public android.os.Bundle getExtras(); method public int getHighlightColor(); method public android.graphics.drawable.Icon getIcon(); method public java.lang.CharSequence getLabel(); Loading Loading @@ -32712,6 +32713,7 @@ package android.telecom { method public android.telecom.PhoneAccount build(); method public android.telecom.PhoneAccount.Builder setAddress(android.net.Uri); method public android.telecom.PhoneAccount.Builder setCapabilities(int); method public android.telecom.PhoneAccount.Builder setExtras(android.os.Bundle); method public android.telecom.PhoneAccount.Builder setHighlightColor(int); method public android.telecom.PhoneAccount.Builder setIcon(android.graphics.drawable.Icon); method public android.telecom.PhoneAccount.Builder setShortDescription(java.lang.CharSequence); telecomm/java/android/telecom/PhoneAccount.java +37 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.Icon; import android.net.Uri; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; Loading Loading @@ -160,6 +161,7 @@ public final class PhoneAccount implements Parcelable { private final CharSequence mShortDescription; private final List<String> mSupportedUriSchemes; private final Icon mIcon; private final Bundle mExtras; private boolean mIsEnabled; /** Loading @@ -175,6 +177,7 @@ public final class PhoneAccount implements Parcelable { private CharSequence mShortDescription; private List<String> mSupportedUriSchemes = new ArrayList<String>(); private Icon mIcon; private Bundle mExtras; private boolean mIsEnabled = false; /** Loading Loading @@ -299,6 +302,20 @@ public final class PhoneAccount implements Parcelable { return this; } /** * Specifies the extras associated with the {@link PhoneAccount}. * <p> * {@code PhoneAccount}s only support extra values of type: {@link String}, {@link Integer}, * and {@link Boolean}. Extras which are not of these types are ignored. * * @param extras * @return */ public Builder setExtras(Bundle extras) { mExtras = extras; return this; } /** * Sets the enabled state of the phone account. * Loading Loading @@ -332,6 +349,7 @@ public final class PhoneAccount implements Parcelable { mLabel, mShortDescription, mSupportedUriSchemes, mExtras, mIsEnabled); } } Loading @@ -346,6 +364,7 @@ public final class PhoneAccount implements Parcelable { CharSequence label, CharSequence shortDescription, List<String> supportedUriSchemes, Bundle extras, boolean isEnabled) { mAccountHandle = account; mAddress = address; Loading @@ -356,6 +375,7 @@ public final class PhoneAccount implements Parcelable { mLabel = label; mShortDescription = shortDescription; mSupportedUriSchemes = Collections.unmodifiableList(supportedUriSchemes); mExtras = extras; mIsEnabled = isEnabled; } Loading Loading @@ -454,6 +474,18 @@ public final class PhoneAccount implements Parcelable { return mSupportedUriSchemes; } /** * The extras associated with this {@code PhoneAccount}. * <p> * A {@link ConnectionService} may provide implementation specific information about the * {@link PhoneAccount} via the extras. * * @return The extras. */ public Bundle getExtras() { return mExtras; } /** * The icon to represent this {@code PhoneAccount}. * Loading Loading @@ -552,6 +584,8 @@ public final class PhoneAccount implements Parcelable { out.writeInt(1); mIcon.writeToParcel(out, flags); } out.writeBundle(mExtras); out.writeByte((byte) (mIsEnabled ? 1 : 0)); } Loading Loading @@ -594,6 +628,7 @@ public final class PhoneAccount implements Parcelable { } else { mIcon = null; } mExtras = in.readBundle(); mIsEnabled = in.readByte() == 1; } Loading @@ -610,6 +645,8 @@ public final class PhoneAccount implements Parcelable { sb.append(scheme) .append(" "); } sb.append(" Extras : "); sb.append(mExtras); sb.append("]"); return sb.toString(); } Loading Loading
api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -30480,6 +30480,7 @@ package android.telecom { method public android.telecom.PhoneAccountHandle getAccountHandle(); method public android.net.Uri getAddress(); method public int getCapabilities(); method public android.os.Bundle getExtras(); method public int getHighlightColor(); method public android.graphics.drawable.Icon getIcon(); method public java.lang.CharSequence getLabel(); Loading Loading @@ -30512,6 +30513,7 @@ package android.telecom { method public android.telecom.PhoneAccount build(); method public android.telecom.PhoneAccount.Builder setAddress(android.net.Uri); method public android.telecom.PhoneAccount.Builder setCapabilities(int); method public android.telecom.PhoneAccount.Builder setExtras(android.os.Bundle); method public android.telecom.PhoneAccount.Builder setHighlightColor(int); method public android.telecom.PhoneAccount.Builder setIcon(android.graphics.drawable.Icon); method public android.telecom.PhoneAccount.Builder setShortDescription(java.lang.CharSequence);
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -32679,6 +32679,7 @@ package android.telecom { method public android.telecom.PhoneAccountHandle getAccountHandle(); method public android.net.Uri getAddress(); method public int getCapabilities(); method public android.os.Bundle getExtras(); method public int getHighlightColor(); method public android.graphics.drawable.Icon getIcon(); method public java.lang.CharSequence getLabel(); Loading Loading @@ -32712,6 +32713,7 @@ package android.telecom { method public android.telecom.PhoneAccount build(); method public android.telecom.PhoneAccount.Builder setAddress(android.net.Uri); method public android.telecom.PhoneAccount.Builder setCapabilities(int); method public android.telecom.PhoneAccount.Builder setExtras(android.os.Bundle); method public android.telecom.PhoneAccount.Builder setHighlightColor(int); method public android.telecom.PhoneAccount.Builder setIcon(android.graphics.drawable.Icon); method public android.telecom.PhoneAccount.Builder setShortDescription(java.lang.CharSequence);
telecomm/java/android/telecom/PhoneAccount.java +37 −0 Original line number Diff line number Diff line Loading @@ -28,6 +28,7 @@ import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.Icon; import android.net.Uri; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import android.text.TextUtils; Loading Loading @@ -160,6 +161,7 @@ public final class PhoneAccount implements Parcelable { private final CharSequence mShortDescription; private final List<String> mSupportedUriSchemes; private final Icon mIcon; private final Bundle mExtras; private boolean mIsEnabled; /** Loading @@ -175,6 +177,7 @@ public final class PhoneAccount implements Parcelable { private CharSequence mShortDescription; private List<String> mSupportedUriSchemes = new ArrayList<String>(); private Icon mIcon; private Bundle mExtras; private boolean mIsEnabled = false; /** Loading Loading @@ -299,6 +302,20 @@ public final class PhoneAccount implements Parcelable { return this; } /** * Specifies the extras associated with the {@link PhoneAccount}. * <p> * {@code PhoneAccount}s only support extra values of type: {@link String}, {@link Integer}, * and {@link Boolean}. Extras which are not of these types are ignored. * * @param extras * @return */ public Builder setExtras(Bundle extras) { mExtras = extras; return this; } /** * Sets the enabled state of the phone account. * Loading Loading @@ -332,6 +349,7 @@ public final class PhoneAccount implements Parcelable { mLabel, mShortDescription, mSupportedUriSchemes, mExtras, mIsEnabled); } } Loading @@ -346,6 +364,7 @@ public final class PhoneAccount implements Parcelable { CharSequence label, CharSequence shortDescription, List<String> supportedUriSchemes, Bundle extras, boolean isEnabled) { mAccountHandle = account; mAddress = address; Loading @@ -356,6 +375,7 @@ public final class PhoneAccount implements Parcelable { mLabel = label; mShortDescription = shortDescription; mSupportedUriSchemes = Collections.unmodifiableList(supportedUriSchemes); mExtras = extras; mIsEnabled = isEnabled; } Loading Loading @@ -454,6 +474,18 @@ public final class PhoneAccount implements Parcelable { return mSupportedUriSchemes; } /** * The extras associated with this {@code PhoneAccount}. * <p> * A {@link ConnectionService} may provide implementation specific information about the * {@link PhoneAccount} via the extras. * * @return The extras. */ public Bundle getExtras() { return mExtras; } /** * The icon to represent this {@code PhoneAccount}. * Loading Loading @@ -552,6 +584,8 @@ public final class PhoneAccount implements Parcelable { out.writeInt(1); mIcon.writeToParcel(out, flags); } out.writeBundle(mExtras); out.writeByte((byte) (mIsEnabled ? 1 : 0)); } Loading Loading @@ -594,6 +628,7 @@ public final class PhoneAccount implements Parcelable { } else { mIcon = null; } mExtras = in.readBundle(); mIsEnabled = in.readByte() == 1; } Loading @@ -610,6 +645,8 @@ public final class PhoneAccount implements Parcelable { sb.append(scheme) .append(" "); } sb.append(" Extras : "); sb.append(mExtras); sb.append("]"); return sb.toString(); } Loading