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

Commit 90f28bcc authored by Oriol Prieto Gasco's avatar Oriol Prieto Gasco Committed by Oriol Prieto Gascó
Browse files

Export flags used in FlaggedApi annotations

Before calling a flagged API, client code must check the value of the flag
which gates it. Those flags must be exported in order to be accessible from
containers other than the container where the flag and the API are hosted.

Bug: 320984775
Bug: 322839671

Test: m all_aconfig_declarations
Test: printflags --format='{fully_qualified_name}:{is_exported}' | grep true
Ignore-AOSP-First: LSC

Change-Id: Ibd955fac3c345639fe1b05cce84e7a0e9eb4f077
parent e482ed43
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ container: "com.android.btservices"

flag {
    name: "a2dp_offload_codec_extensibility"
    is_exported: true
    namespace: "bluetooth"
    description: "Enable a2dp offload codec extensibility"
    bug: "308686081"
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ container: "com.android.btservices"

flag {
    name: "mfi_has_uuid"
    is_exported: true
    namespace: "bluetooth"
    description: "Use MFi HAS uuid to judge if a device is hearing aid"
    bug: "310543599"
@@ -10,6 +11,7 @@ flag {

flag {
    name: "support_metadata_device_types_apis"
    is_exported: true
    namespace: "bluetooth"
    description: "Support more device types in bt device metadata"
    bug: "289584302"
@@ -17,6 +19,7 @@ flag {

flag {
    name: "support_exclusive_manager"
    is_exported: true
    namespace: "bluetooth"
    description: "Support setting/retrieving the exclusive manager app for a BluetoothDevice"
    bug: "319716512"
@@ -24,6 +27,7 @@ flag {

flag {
    name: "key_missing_broadcast"
    is_exported: true
    namespace: "bluetooth"
    description: "Broadcast when remote device it lost bond"
    bug: "311447399"
@@ -45,6 +49,7 @@ flag {

flag {
    name: "get_address_type_api"
    is_exported: true
    namespace: "bluetooth"
    description: "Change visibility of BluetoothDevice#getAddressType API to public"
    bug: "321120941"
+1 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ flag {

flag {
    name: "enumerate_gatt_errors"
    is_exported: true
    namespace: "bluetooth"
    description: "Enumerate GATT error situations"
    bug: "320574336"
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ container: "com.android.btservices"

flag {
    name: "settings_can_control_hap_preset"
    is_exported: true
    namespace: "bluetooth"
    description: "Allow user to control the preset of hearing aid devices"
    bug: "306236481"
+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ flag {

flag {
    name: "allow_switching_hid_and_hogp"
    is_exported: true
    namespace: "bluetooth"
    description: "Allow switching between HID and HOGP supported on the same device"
    bug: "320762367"
Loading