Unhide constant AmbientContextEvent.EVENT_BACK_DOUBLE_TAP.

Test: local build mma
Test: "atest CtsAmbientContextServiceTestCases",
Test: "atest FrameworksServicesTests:AmbientContextManagerServiceTest"
BUG: 242480433
Change-Id: I0c73ad5d416523cdb90300c8aa00ad22f901342d
This commit is contained in:
Lili Zou
2022-09-13 14:09:40 +08:00
parent 19bcd215d1
commit 09e6beedf5
2 changed files with 1 additions and 2 deletions

View File

@@ -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<android.app.ambientcontext.AmbientContextEvent> 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

View File

@@ -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;