summaryrefslogtreecommitdiff
path: root/service/java/com/android/server/bluetooth/BluetoothModeChangeHelper.java
AgeCommit message (Collapse)Author
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Id71ac466dbfe3707fe2e544ce22b1da8f474ec2b
2022-03-07Merge TP1A.220209.001Deyao Ren
Change-Id: Id0e2895d3220831d2c617a243047e8229af8acc9
2022-02-14Changing server location to com.android.server.bluetoothRoopa Sattiraju
Bug: 217736913 Test: Compile and bringup Change-Id: I3c1e07567949dd9e503a62b65feee4c7b5e10b2d
2022-02-09Merge TP1A.220126.001Haamed Gheibi
Change-Id: Ibe4916c42b096976ac917991cf0c73f02512f3d4
2022-02-04Merge TP1A.220120.003Haamed Gheibi
Change-Id: I202f5093bbd13b381ea11f969fee6154ba91fa11
2022-02-01Removed hidden call to getLeState in Bluetooth serviceEtienne Ruffieux
Tag: #feature Bug: 211851706 Test: manual Change-Id: Ifc3c59611722446bf4baae0bbceef023604b9f0a
2022-01-25Migrating Bluetooth resources to Bluetooth moduleEtienne Ruffieux
In order for the Bluetooth module to build as an apex all non-public resources must be located in the same package. Made getMaxConnectedAudioDevices system API in order for development Settings to access it. Removed isInbandRingingSupported as only usage was by bt service (config is now directly in service). Removed isBluetoothVoiceDialingEnabled as there were no usages, and no overlays. All configs used only by the Bluetooth app are moved to the Bluetooth module. Tag: #feature Bug: 211570675 Test: build Test: make RunSettingsRoboTests Change-Id: Ieed30c31fc44b5b477d43ae120ef11f96ab115ca
2021-11-23As airplane mode turn on, keep BT on if LE audio profile connectedAlice Kuo
Bug: 207464971 Test: w/o LE audio device, and turn on/off airplane mode Change-Id: I1865c5ff7e8c04a4188dc7c379223e48c8b29ad9
2021-04-14Update Bluetooth API annotations.Jeff Sharkey
Recent work has introduced a new "Nearby devices" runtime permission which protects all existing Bluetooth APIs; we've done this by defining a <split-permission> to convert the old BLUETOOTH and BLUETOOTH_ADMIN permissions into one of three new permissions: * BLUETOOTH_ADVERTISE: Required to be able to advertise to nearby Bluetooth devices. * BLUETOOTH_CONNECT: Allows applications to connect to paired bluetooth devices. * BLUETOOTH_SCAN: Required to be able to discover and pair nearby Bluetooth devices. At its core, this change begins updating the Bluetooth APIs to have correct @RequiresPermission indicating which permission is actually enforced internally. To ensure alignment across Binder, the newly added "RequiresPermissionChecker" Error Prone checker was used to discover any inconsistencies, ensuring correctness from server-side enforcement up through to the public APIs. In addition, since developers will continue building apps for both modern and legacy platforms, this change introduces new auto-doc annotations which will emit helpful consistent documentation describing the behavior of older devices that are still using the old permission model. Bug: 183626724 Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true Change-Id: I02aa127e8e07f239561f4f2a3bbdfc6fccb82f7f
2020-10-15BluetoothAirplaneModeListener -> BluetoothModeChangeHelperHansong Zhang
Common code can be used for BluetoothDeviceConfigListener. Test: atest FrameworksServicesTests Change-Id: Ic5ab3c04876c341bde79c03f0551719c5f774437