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

Commit 1bcea02c authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5491916 from 43541017 to qt-release

Change-Id: I8739c5430cef3cd396d0241b6996bd77a39eeb2b
parents 519b92b4 43541017
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -53407,7 +53407,7 @@ package android.view.textclassifier {
    method @Nullable public String getCallingPackageName();
    method @NonNull public java.util.List<android.view.textclassifier.ConversationActions.Message> getConversation();
    method @NonNull public android.os.Bundle getExtras();
    method @Nullable public java.util.List<java.lang.String> getHints();
    method @NonNull public java.util.List<java.lang.String> getHints();
    method @IntRange(from=0xffffffff) public int getMaxSuggestions();
    method @NonNull public android.view.textclassifier.TextClassifier.EntityConfig getTypeConfig();
    method public void writeToParcel(android.os.Parcel, int);
@@ -53625,6 +53625,7 @@ package android.view.textclassifier {
    method public int getEventIndex();
    method public int getEventType();
    method @NonNull public android.os.Bundle getExtras();
    method @Nullable public android.icu.util.ULocale getLocale();
    method @Nullable public String getModelName();
    method @Nullable public String getResultId();
    method @NonNull public float[] getScores();
@@ -53662,6 +53663,7 @@ package android.view.textclassifier {
    method @NonNull public T setEventContext(@Nullable android.view.textclassifier.TextClassificationContext);
    method @NonNull public T setEventIndex(int);
    method @NonNull public T setExtras(@NonNull android.os.Bundle);
    method @NonNull public T setLocale(@Nullable android.icu.util.ULocale);
    method @NonNull public T setModelName(@Nullable String);
    method @NonNull public T setResultId(@Nullable String);
    method @NonNull public T setScores(@NonNull float...);
@@ -53677,14 +53679,12 @@ package android.view.textclassifier {
  }
  public static final class TextClassifierEvent.LanguageDetectionEvent extends android.view.textclassifier.TextClassifierEvent implements android.os.Parcelable {
    method @Nullable public android.icu.util.ULocale getLocale();
    field @NonNull public static final android.os.Parcelable.Creator<android.view.textclassifier.TextClassifierEvent.LanguageDetectionEvent> CREATOR;
  }
  public static final class TextClassifierEvent.LanguageDetectionEvent.Builder extends android.view.textclassifier.TextClassifierEvent.Builder<android.view.textclassifier.TextClassifierEvent.LanguageDetectionEvent.Builder> {
    ctor public TextClassifierEvent.LanguageDetectionEvent.Builder(int);
    method @NonNull public android.view.textclassifier.TextClassifierEvent.LanguageDetectionEvent build();
    method @NonNull public android.view.textclassifier.TextClassifierEvent.LanguageDetectionEvent.Builder setLocale(@Nullable android.icu.util.ULocale);
  }
  public static final class TextClassifierEvent.TextLinkifyEvent extends android.view.textclassifier.TextClassifierEvent implements android.os.Parcelable {
+1 −1
Original line number Diff line number Diff line
@@ -401,7 +401,7 @@ public final class ConversationActions implements Parcelable {
        }

        /** Returns an immutable list of hints */
        @Nullable
        @NonNull
        @Hint
        public List<String> getHints() {
            return mHints;
+27 −33
Original line number Diff line number Diff line
@@ -35,8 +35,8 @@ import java.util.Arrays;
 * something of note that relates to a feature powered by the TextClassifier. The TextClassifier may
 * log these events or use them to improve future responses to queries.
 * <p>
 * Each categories of the events have their own subclass. Events of each types has an associated
 * set of related properties. You can find the specification of them in the subclasses.
 * Each category of events has its their own subclass. Events of each type have an associated
 * set of related properties. You can find their specification in the subclasses.
 */
public abstract class TextClassifierEvent implements Parcelable {

@@ -146,6 +146,8 @@ public abstract class TextClassifierEvent implements Parcelable {
    @Nullable
    private final String mModelName;
    private final int[] mActionIndices;
    @Nullable
    private final ULocale mLocale;
    private final Bundle mExtras;

    private TextClassifierEvent(Builder builder) {
@@ -158,6 +160,7 @@ public abstract class TextClassifierEvent implements Parcelable {
        mScores = builder.mScores;
        mModelName = builder.mModelName;
        mActionIndices = builder.mActionIndices;
        mLocale = builder.mLocale;
        mExtras = builder.mExtras == null ? Bundle.EMPTY : builder.mExtras;
    }

@@ -173,6 +176,8 @@ public abstract class TextClassifierEvent implements Parcelable {
        in.readFloatArray(mScores);
        mModelName = in.readString();
        mActionIndices = in.createIntArray();
        final String languageTag = in.readString();
        mLocale = languageTag == null ? null : ULocale.forLanguageTag(languageTag);
        mExtras = in.readBundle();
    }

@@ -220,6 +225,7 @@ public abstract class TextClassifierEvent implements Parcelable {
        dest.writeFloatArray(mScores);
        dest.writeString(mModelName);
        dest.writeIntArray(mActionIndices);
        dest.writeString(mLocale == null ? null : mLocale.toLanguageTag());
        dest.writeBundle(mExtras);
    }

@@ -317,6 +323,14 @@ public abstract class TextClassifierEvent implements Parcelable {
        return mActionIndices;
    }

    /**
     * Returns the detected locale.
     */
    @Nullable
    public ULocale getLocale() {
        return mLocale;
    }

    /**
     * Returns a bundle containing non-structured extra information about this event.
     *
@@ -365,6 +379,8 @@ public abstract class TextClassifierEvent implements Parcelable {
        private String mModelName;
        private int[] mActionIndices = new int[0];
        @Nullable
        private ULocale mLocale;
        @Nullable
        private Bundle mExtras;

        /**
@@ -472,6 +488,15 @@ public abstract class TextClassifierEvent implements Parcelable {
            return self();
        }

        /**
         * Sets the detected locale.
         */
        @NonNull
        public T setLocale(@Nullable ULocale locale) {
            mLocale = locale;
            return self();
        }

        /**
         * Sets a bundle containing non-structured extra information about the event.
         *
@@ -858,26 +883,12 @@ public abstract class TextClassifierEvent implements Parcelable {
                    }
                };

        @Nullable
        private final ULocale mLocale;

        private LanguageDetectionEvent(Parcel in) {
            super(in);
            final String languageTag = in.readString();
            mLocale = languageTag == null ? null : ULocale.forLanguageTag(languageTag);
        }

        private LanguageDetectionEvent(LanguageDetectionEvent.Builder builder) {
            super(builder);
            mLocale = builder.mLocale;
        }

        /**
         * Returns the detected locale.
         */
        @Nullable
        public ULocale getLocale() {
            return mLocale;
        }

        /**
@@ -885,8 +896,6 @@ public abstract class TextClassifierEvent implements Parcelable {
         */
        public static final class Builder
                extends TextClassifierEvent.Builder<LanguageDetectionEvent.Builder> {
            @Nullable
            private ULocale mLocale;

            /**
             * Creates a builder for building {@link TextSelectionEvent}s.
@@ -897,15 +906,6 @@ public abstract class TextClassifierEvent implements Parcelable {
                super(TextClassifierEvent.CATEGORY_LANGUAGE_DETECTION, eventType);
            }

            /**
             * Sets the detected locale.
             */
            @NonNull
            public Builder setLocale(@Nullable ULocale locale) {
                mLocale = locale;
                return this;
            }

            @Override
            Builder self() {
                return this;
@@ -919,12 +919,6 @@ public abstract class TextClassifierEvent implements Parcelable {
                return new LanguageDetectionEvent(this);
            }
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            super.writeToParcel(dest, flags);
            dest.writeString(mLocale == null ? null : mLocale.toLanguageTag());
        }
    }

    /**
+8 −3
Original line number Diff line number Diff line
@@ -224,6 +224,7 @@ public class ChooserActivity extends ResolverActivity {
    public static final int LIST_VIEW_UPDATE_INTERVAL_IN_MILLIS = 250;

    private static final int MAX_EXTRA_INITIAL_INTENTS = 2;
    private static final int MAX_EXTRA_CHOOSER_TARGETS = 2;

    private boolean mListViewDataChanged = false;

@@ -412,8 +413,9 @@ public class ChooserActivity extends ResolverActivity {

        pa = intent.getParcelableArrayExtra(Intent.EXTRA_CHOOSER_TARGETS);
        if (pa != null) {
            ChooserTarget[] targets = new ChooserTarget[pa.length];
            for (int i = 0; i < pa.length; i++) {
            int count = Math.min(pa.length, MAX_EXTRA_CHOOSER_TARGETS);
            ChooserTarget[] targets = new ChooserTarget[count];
            for (int i = 0; i < count; i++) {
                if (!(pa[i] instanceof ChooserTarget)) {
                    Log.w(TAG, "Chooser target #" + i + " not a ChooserTarget: " + pa[i]);
                    targets = null;
@@ -1024,7 +1026,6 @@ public class ChooserActivity extends ResolverActivity {
                    break;
                case ChooserListAdapter.TARGET_SERVICE:
                    cat = MetricsEvent.ACTION_ACTIVITY_CHOOSER_PICKED_SERVICE_TARGET;
                    value -= mChooserListAdapter.getCallerTargetCount();
                    // Log the package name + target name to answer the question if most users
                    // share to mostly the same person or to a bunch of different people.
                    ChooserTarget target =
@@ -1036,6 +1037,10 @@ public class ChooserActivity extends ResolverActivity {
                                    + target.getTitle().toString(),
                            mMaxHashSaltDays);
                    directTargetAlsoRanked = getRankedPosition((SelectableTargetInfo) targetInfo);

                    if (mCallerChooserTargets != null) {
                        value -= mCallerChooserTargets.length;
                    }
                    break;
                case ChooserListAdapter.TARGET_STANDARD:
                    cat = MetricsEvent.ACTION_ACTIVITY_CHOOSER_PICKED_STANDARD_TARGET;
+6 −0
Original line number Diff line number Diff line
@@ -81,6 +81,12 @@ public final class SystemUiDeviceConfigFlags {
     */
    public static final String SSIN_MAX_NUM_ACTIONS = "ssin_max_num_actions";

    /**
     * (int) The amount of time (ms) before smart suggestions are clickable, since the suggestions
     * were added.
     */
    public static final String SSIN_ONCLICK_INIT_DELAY = "ssin_onclick_init_delay";

    /**
     * The default component of
     * {@link android.service.notification.NotificationAssistantService}.
Loading