Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3acee763 authored by Santos Cordon's avatar Santos Cordon Committed by Android Git Automerger
Browse files

am ca8e44fb: Merge "Change display Strings to CharSequence (1/3)" into lmp-dev

* commit 'ca8e44fb5ae5eb9206d9d61408b90ade31d33e8f':
  Change display Strings to CharSequence (1/3)
parents ec317937 541a06e7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -28691,15 +28691,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);
@@ -28793,13 +28793,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;
  }
+11 −11
Original line number Diff line number Diff line
@@ -71,8 +71,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(
@@ -81,8 +81,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;
@@ -136,11 +136,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;
    }

@@ -149,7 +149,7 @@ public class PhoneAccount implements Parcelable {
     *
     * @return A description for this {@code PhoneAccount}.
     */
    public String getShortDescription() {
    public CharSequence getShortDescription() {
        return mShortDescription;
    }

@@ -214,8 +214,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);
    }

@@ -238,8 +238,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;
    }
}
+5 −5
Original line number Diff line number Diff line
@@ -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());
    }