Loading api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -36950,7 +36950,7 @@ package android.service.autofill { field public static final java.lang.String SERVICE_META_DATA = "android.autofill"; } public final class CharSequenceTransformation implements android.os.Parcelable { public final class CharSequenceTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.CharSequenceTransformation> CREATOR; Loading Loading @@ -37047,7 +37047,7 @@ package android.service.autofill { method public android.service.autofill.FillResponse.Builder setSaveInfo(android.service.autofill.SaveInfo); } public final class ImageTransformation implements android.os.Parcelable { public final class ImageTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.ImageTransformation> CREATOR; api/system-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -40031,7 +40031,7 @@ package android.service.autofill { field public static final java.lang.String SERVICE_META_DATA = "android.autofill"; } public final class CharSequenceTransformation implements android.os.Parcelable { public final class CharSequenceTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.CharSequenceTransformation> CREATOR; Loading Loading @@ -40128,7 +40128,7 @@ package android.service.autofill { method public android.service.autofill.FillResponse.Builder setSaveInfo(android.service.autofill.SaveInfo); } public final class ImageTransformation implements android.os.Parcelable { public final class ImageTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.ImageTransformation> CREATOR; api/test-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -37123,7 +37123,7 @@ package android.service.autofill { field public static final java.lang.String SERVICE_META_DATA = "android.autofill"; } public final class CharSequenceTransformation implements android.os.Parcelable { public final class CharSequenceTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public void apply(android.service.autofill.ValueFinder, android.widget.RemoteViews, int); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); Loading Loading @@ -37221,7 +37221,7 @@ package android.service.autofill { method public android.service.autofill.FillResponse.Builder setSaveInfo(android.service.autofill.SaveInfo); } public final class ImageTransformation implements android.os.Parcelable { public final class ImageTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public void apply(android.service.autofill.ValueFinder, android.widget.RemoteViews, int); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); core/java/android/service/autofill/CharSequenceTransformation.java +2 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,8 @@ import java.util.regex.Pattern; * .addField(ccExpYearId, "^(\\d\\d\\d\\d)$", " / $1"); * </pre> */ public final class CharSequenceTransformation extends InternalTransformation implements Parcelable { public final class CharSequenceTransformation extends InternalTransformation implements Transformation, Parcelable { private static final String TAG = "CharSequenceTransformation"; @NonNull private final ArrayMap<AutofillId, Pair<Pattern, String>> mFields; Loading core/java/android/service/autofill/CustomDescription.java +7 −3 Original line number Diff line number Diff line Loading @@ -78,7 +78,6 @@ import com.android.internal.util.Preconditions; * <p>See {@link ImageTransformation}, {@link CharSequenceTransformation} for more info about these * transformations. */ // TODO(b/62534917): add integration tests public final class CustomDescription implements Parcelable { private static final String TAG = "CustomDescription"; Loading @@ -93,7 +92,6 @@ public final class CustomDescription implements Parcelable { /** @hide */ public RemoteViews getPresentation(ValueFinder finder) { // TODO(b/62534917): need to handler errors, like not finding the ID if (mTransformations != null) { final int size = mTransformations.size(); if (sDebug) Log.d(TAG, "getPresentation(): applying " + size + " transformations"); Loading @@ -101,7 +99,13 @@ public final class CustomDescription implements Parcelable { final int id = mTransformations.keyAt(i); final InternalTransformation transformation = mTransformations.valueAt(i); if (sDebug) Log.d(TAG, "#" + i + ": " + transformation); try { transformation.apply(finder, mPresentation, id); } catch (Exception e) { Log.e(TAG, "Could not apply transformation " + transformation + ". " + e.getClass()); } } } return mPresentation; Loading Loading
api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -36950,7 +36950,7 @@ package android.service.autofill { field public static final java.lang.String SERVICE_META_DATA = "android.autofill"; } public final class CharSequenceTransformation implements android.os.Parcelable { public final class CharSequenceTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.CharSequenceTransformation> CREATOR; Loading Loading @@ -37047,7 +37047,7 @@ package android.service.autofill { method public android.service.autofill.FillResponse.Builder setSaveInfo(android.service.autofill.SaveInfo); } public final class ImageTransformation implements android.os.Parcelable { public final class ImageTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.ImageTransformation> CREATOR;
api/system-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -40031,7 +40031,7 @@ package android.service.autofill { field public static final java.lang.String SERVICE_META_DATA = "android.autofill"; } public final class CharSequenceTransformation implements android.os.Parcelable { public final class CharSequenceTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.CharSequenceTransformation> CREATOR; Loading Loading @@ -40128,7 +40128,7 @@ package android.service.autofill { method public android.service.autofill.FillResponse.Builder setSaveInfo(android.service.autofill.SaveInfo); } public final class ImageTransformation implements android.os.Parcelable { public final class ImageTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); field public static final android.os.Parcelable.Creator<android.service.autofill.ImageTransformation> CREATOR;
api/test-current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -37123,7 +37123,7 @@ package android.service.autofill { field public static final java.lang.String SERVICE_META_DATA = "android.autofill"; } public final class CharSequenceTransformation implements android.os.Parcelable { public final class CharSequenceTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public void apply(android.service.autofill.ValueFinder, android.widget.RemoteViews, int); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); Loading Loading @@ -37221,7 +37221,7 @@ package android.service.autofill { method public android.service.autofill.FillResponse.Builder setSaveInfo(android.service.autofill.SaveInfo); } public final class ImageTransformation implements android.os.Parcelable { public final class ImageTransformation implements android.os.Parcelable android.service.autofill.Transformation { method public void apply(android.service.autofill.ValueFinder, android.widget.RemoteViews, int); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int);
core/java/android/service/autofill/CharSequenceTransformation.java +2 −1 Original line number Diff line number Diff line Loading @@ -55,7 +55,8 @@ import java.util.regex.Pattern; * .addField(ccExpYearId, "^(\\d\\d\\d\\d)$", " / $1"); * </pre> */ public final class CharSequenceTransformation extends InternalTransformation implements Parcelable { public final class CharSequenceTransformation extends InternalTransformation implements Transformation, Parcelable { private static final String TAG = "CharSequenceTransformation"; @NonNull private final ArrayMap<AutofillId, Pair<Pattern, String>> mFields; Loading
core/java/android/service/autofill/CustomDescription.java +7 −3 Original line number Diff line number Diff line Loading @@ -78,7 +78,6 @@ import com.android.internal.util.Preconditions; * <p>See {@link ImageTransformation}, {@link CharSequenceTransformation} for more info about these * transformations. */ // TODO(b/62534917): add integration tests public final class CustomDescription implements Parcelable { private static final String TAG = "CustomDescription"; Loading @@ -93,7 +92,6 @@ public final class CustomDescription implements Parcelable { /** @hide */ public RemoteViews getPresentation(ValueFinder finder) { // TODO(b/62534917): need to handler errors, like not finding the ID if (mTransformations != null) { final int size = mTransformations.size(); if (sDebug) Log.d(TAG, "getPresentation(): applying " + size + " transformations"); Loading @@ -101,7 +99,13 @@ public final class CustomDescription implements Parcelable { final int id = mTransformations.keyAt(i); final InternalTransformation transformation = mTransformations.valueAt(i); if (sDebug) Log.d(TAG, "#" + i + ": " + transformation); try { transformation.apply(finder, mPresentation, id); } catch (Exception e) { Log.e(TAG, "Could not apply transformation " + transformation + ". " + e.getClass()); } } } return mPresentation; Loading