Change display Strings to CharSequence (1/2)
Bug: 16416927 Change-Id: I81cd3572f3931cd97611621a1db12bea165bda56
This commit is contained in:
@@ -28576,15 +28576,15 @@ package android.telecomm {
|
||||
}
|
||||
|
||||
public class PhoneAccount implements android.os.Parcelable {
|
||||
ctor public PhoneAccount(android.telecomm.PhoneAccountHandle, android.net.Uri, java.lang.String, int, int, java.lang.String, java.lang.String, boolean);
|
||||
ctor public PhoneAccount(android.telecomm.PhoneAccountHandle, android.net.Uri, java.lang.String, int, int, java.lang.CharSequence, java.lang.CharSequence, boolean);
|
||||
method public int describeContents();
|
||||
method public android.telecomm.PhoneAccountHandle getAccountHandle();
|
||||
method public int getCapabilities();
|
||||
method public android.net.Uri getHandle();
|
||||
method public android.graphics.drawable.Drawable getIcon(android.content.Context);
|
||||
method public int getIconResId();
|
||||
method public java.lang.String getLabel();
|
||||
method public java.lang.String getShortDescription();
|
||||
method public java.lang.CharSequence getLabel();
|
||||
method public java.lang.CharSequence getShortDescription();
|
||||
method public java.lang.String getSubscriptionNumber();
|
||||
method public boolean isVideoCallingSupported();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
@@ -28679,13 +28679,13 @@ package android.telecomm {
|
||||
}
|
||||
|
||||
public final class StatusHints implements android.os.Parcelable {
|
||||
ctor public StatusHints(android.content.ComponentName, java.lang.String, int, android.os.Bundle);
|
||||
ctor public StatusHints(android.content.ComponentName, java.lang.CharSequence, int, android.os.Bundle);
|
||||
method public int describeContents();
|
||||
method public android.content.ComponentName getComponentName();
|
||||
method public android.os.Bundle getExtras();
|
||||
method public android.graphics.drawable.Drawable getIcon(android.content.Context);
|
||||
method public int getIconId();
|
||||
method public java.lang.String getLabel();
|
||||
method public java.lang.CharSequence getLabel();
|
||||
method public void writeToParcel(android.os.Parcel, int);
|
||||
field public static final android.os.Parcelable.Creator CREATOR;
|
||||
}
|
||||
|
||||
@@ -70,8 +70,8 @@ public class PhoneAccount implements Parcelable {
|
||||
private final String mSubscriptionNumber;
|
||||
private final int mCapabilities;
|
||||
private final int mIconResId;
|
||||
private final String mLabel;
|
||||
private final String mShortDescription;
|
||||
private final CharSequence mLabel;
|
||||
private final CharSequence mShortDescription;
|
||||
private boolean mVideoCallingSupported;
|
||||
|
||||
public PhoneAccount(
|
||||
@@ -80,8 +80,8 @@ public class PhoneAccount implements Parcelable {
|
||||
String subscriptionNumber,
|
||||
int capabilities,
|
||||
int iconResId,
|
||||
String label,
|
||||
String shortDescription,
|
||||
CharSequence label,
|
||||
CharSequence shortDescription,
|
||||
boolean supportsVideoCalling) {
|
||||
mAccountHandle = account;
|
||||
mHandle = handle;
|
||||
@@ -135,11 +135,11 @@ public class PhoneAccount implements Parcelable {
|
||||
}
|
||||
|
||||
/**
|
||||
* A short string label describing a {@code PhoneAccount}.
|
||||
* A short label describing a {@code PhoneAccount}.
|
||||
*
|
||||
* @return A label for this {@code PhoneAccount}.
|
||||
*/
|
||||
public String getLabel() {
|
||||
public CharSequence getLabel() {
|
||||
return mLabel;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ public class PhoneAccount implements Parcelable {
|
||||
*
|
||||
* @return A description for this {@code PhoneAccount}.
|
||||
*/
|
||||
public String getShortDescription() {
|
||||
public CharSequence getShortDescription() {
|
||||
return mShortDescription;
|
||||
}
|
||||
|
||||
@@ -213,8 +213,8 @@ public class PhoneAccount implements Parcelable {
|
||||
out.writeString(mSubscriptionNumber);
|
||||
out.writeInt(mCapabilities);
|
||||
out.writeInt(mIconResId);
|
||||
out.writeString(mLabel);
|
||||
out.writeString(mShortDescription);
|
||||
out.writeCharSequence(mLabel);
|
||||
out.writeCharSequence(mShortDescription);
|
||||
out.writeInt(mVideoCallingSupported ? 1 : 0);
|
||||
}
|
||||
|
||||
@@ -237,8 +237,8 @@ public class PhoneAccount implements Parcelable {
|
||||
mSubscriptionNumber = in.readString();
|
||||
mCapabilities = in.readInt();
|
||||
mIconResId = in.readInt();
|
||||
mLabel = in.readString();
|
||||
mShortDescription = in.readString();
|
||||
mLabel = in.readCharSequence();
|
||||
mShortDescription = in.readCharSequence();
|
||||
mVideoCallingSupported = in.readInt() == 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,11 +34,11 @@ import java.util.MissingResourceException;
|
||||
public final class StatusHints implements Parcelable {
|
||||
|
||||
private final ComponentName mComponentName;
|
||||
private final String mLabel;
|
||||
private final CharSequence mLabel;
|
||||
private final int mIconId;
|
||||
private final Bundle mExtras;
|
||||
|
||||
public StatusHints(ComponentName componentName, String label, int iconId, Bundle extras) {
|
||||
public StatusHints(ComponentName componentName, CharSequence label, int iconId, Bundle extras) {
|
||||
mComponentName = componentName;
|
||||
mLabel = label;
|
||||
mIconId = iconId;
|
||||
@@ -55,7 +55,7 @@ public final class StatusHints implements Parcelable {
|
||||
/**
|
||||
* @return The label displayed in the in-call UI.
|
||||
*/
|
||||
public String getLabel() {
|
||||
public CharSequence getLabel() {
|
||||
return mLabel;
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ public final class StatusHints implements Parcelable {
|
||||
@Override
|
||||
public void writeToParcel(Parcel out, int flags) {
|
||||
out.writeParcelable(mComponentName, flags);
|
||||
out.writeString(mLabel);
|
||||
out.writeCharSequence(mLabel);
|
||||
out.writeInt(mIconId);
|
||||
out.writeParcelable(mExtras, 0);
|
||||
}
|
||||
@@ -106,7 +106,7 @@ public final class StatusHints implements Parcelable {
|
||||
|
||||
private StatusHints(Parcel in) {
|
||||
mComponentName = in.readParcelable(getClass().getClassLoader());
|
||||
mLabel = in.readString();
|
||||
mLabel = in.readCharSequence();
|
||||
mIconId = in.readInt();
|
||||
mExtras = (Bundle) in.readParcelable(getClass().getClassLoader());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user