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

Commit 315c41b6 authored by Chris Wren's avatar Chris Wren Committed by android-build-merger
Browse files

Merge "fix SliceMetrics typo and disambiguate logTouch" into pi-dev

am: 362b3522

Change-Id: Id01778f18acba57ad19353e814fd0f8f278c3bc2
parents 725f2dfe 362b3522
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7291,7 +7291,7 @@ package android.app.slice {
  public class SliceMetrics {
    ctor public SliceMetrics(android.content.Context, android.net.Uri);
    method public void logHidden();
    method public void logTouch(android.net.Uri);
    method public void logTouch(int, android.net.Uri);
    method public void logVisible();
  }
+13 −4
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ import com.android.internal.logging.MetricsLogger;
/**
 * Metrics interface for slices.
 *
 * This is called by SliceView, so Slice develoers should
 * This is called by SliceView, so Slice developers should
 * not need to reference this class.
 *
 * @see androidx.slice.widget.SliceView
@@ -55,9 +55,18 @@ public class SliceMetrics {
    }

    /**
     * To be called whenever the use interacts with a slice.
     * To be called whenever the user invokes a discrete action via a slice.
     *
     * <P>
     *     Use this for discrete events like a tap or the end of a drag,
     *     not for a continuous streams of events, such as the motion during a gesture.
     * </P>
     *
     * @see androidx.slice.widget.EventInfo#actionType
     *
     * @param actionType The type of the event.
     * @param subSlice The URI of the sub-slice that is the subject of the interaction.
     */
    public void logTouch(@NonNull Uri subSlice) {
    public void logTouch(int actionType, @NonNull Uri subSlice) {
    }
}