From 7363fc0a388d0be7ceab27757a9fa75be31a1459 Mon Sep 17 00:00:00 2001 From: Etienne Ruffieux Date: Wed, 12 Jan 2022 15:49:19 +0000 Subject: [PATCH] Added SystemApi annotation to REASON_BLUETOOTH_BROADCAST As Android Bluetooth becomes a mainline module, we need to remove all hidden API usages. BluetoothManagerService is using REASON_BLUETOOTH_BROADCAST so we have to make it accessible to the Bluetooth module. Tag: #feature Bug: 211851706 Test: make Change-Id: I99ade4673836c068b2e643ce5e56d9ad0454233f --- .../framework/java/android/os/PowerExemptionManager.java | 1 - core/api/system-current.txt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java b/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java index a1a46afcffe6..161a317b2a3c 100644 --- a/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java +++ b/apex/jobscheduler/framework/java/android/os/PowerExemptionManager.java @@ -235,7 +235,6 @@ public class PowerExemptionManager { public static final int REASON_LOCKED_BOOT_COMPLETED = 202; /** * All Bluetooth broadcasts. - * @hide */ public static final int REASON_BLUETOOTH_BROADCAST = 203; /** diff --git a/core/api/system-current.txt b/core/api/system-current.txt index 069cc5e6580d..a63d8a249a88 100644 --- a/core/api/system-current.txt +++ b/core/api/system-current.txt @@ -8482,6 +8482,7 @@ package android.os { field public static final int EVENT_UNSPECIFIED = 0; // 0x0 field public static final int REASON_ACCOUNT_TRANSFER = 104; // 0x68 field public static final int REASON_ACTIVITY_RECOGNITION = 103; // 0x67 + field public static final int REASON_BLUETOOTH_BROADCAST = 203; // 0xcb field public static final int REASON_GEOFENCING = 100; // 0x64 field public static final int REASON_LOCATION_PROVIDER = 312; // 0x138 field public static final int REASON_OTHER = 1; // 0x1