From 09e6beedf5f8bb861d25b94925641780032e7708 Mon Sep 17 00:00:00 2001 From: Lili Zou Date: Tue, 13 Sep 2022 14:09:40 +0800 Subject: [PATCH] Unhide constant AmbientContextEvent.EVENT_BACK_DOUBLE_TAP. Test: local build mma Test: "atest CtsAmbientContextServiceTestCases", Test: "atest FrameworksServicesTests:AmbientContextManagerServiceTest" BUG: 242480433 Change-Id: I0c73ad5d416523cdb90300c8aa00ad22f901342d --- core/api/system-current.txt | 1 + core/java/android/app/ambientcontext/AmbientContextEvent.java | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/api/system-current.txt b/core/api/system-current.txt index f09244ad7859d..776b4cb133ec2 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -1318,6 +1318,7 @@ package android.app.ambientcontext { method @NonNull public java.time.Instant getStartTime(); method public void writeToParcel(@NonNull android.os.Parcel, int); field @NonNull public static final android.os.Parcelable.Creator CREATOR; + field public static final int EVENT_BACK_DOUBLE_TAP = 3; // 0x3 field public static final int EVENT_COUGH = 1; // 0x1 field public static final int EVENT_SNORE = 2; // 0x2 field public static final int EVENT_UNKNOWN = 0; // 0x0 diff --git a/core/java/android/app/ambientcontext/AmbientContextEvent.java b/core/java/android/app/ambientcontext/AmbientContextEvent.java index af48fde6423a7..865e1fbaf74ed 100644 --- a/core/java/android/app/ambientcontext/AmbientContextEvent.java +++ b/core/java/android/app/ambientcontext/AmbientContextEvent.java @@ -63,8 +63,6 @@ public final class AmbientContextEvent implements Parcelable { * The integer indicating a double-tap event was detected. * For detecting this event type, there's no specific consent activity to request access, but * the consent is implied through the double tap toggle in the Settings app. - * - * @hide */ public static final int EVENT_BACK_DOUBLE_TAP = 3;