aboutsummaryrefslogtreecommitdiff
path: root/service/java/com/android/server/bluetooth/BluetoothModeChangeHelper.java
Commit message (Collapse)AuthorAgeFilesLines
* Bluetooth APM enhancementStephanie Bak2022-08-091-0/+71
| | | | | | | Bug: 239983569 Test: manual Ignore-AOSP-First: merge conflicts in AOSP Change-Id: I2092880e047a1a9d50a47e4724e5fb2815d04f2d
* Changing server location to com.android.server.bluetoothRoopa Sattiraju2022-02-141-1/+1
| | | | | | Bug: 217736913 Test: Compile and bringup Change-Id: I3c1e07567949dd9e503a62b65feee4c7b5e10b2d
* Removed hidden call to getLeState in Bluetooth serviceEtienne Ruffieux2022-02-011-1/+1
| | | | | | | Tag: #feature Bug: 211851706 Test: manual Change-Id: Ifc3c59611722446bf4baae0bbceef023604b9f0a
* Migrating Bluetooth resources to Bluetooth moduleEtienne Ruffieux2022-01-251-3/+2
| | | | | | | | | | | | | | | | | | | | 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
* As airplane mode turn on, keep BT on if LE audio profile connectedAlice Kuo2021-11-231-2/+19
| | | | | | Bug: 207464971 Test: w/o LE audio device, and turn on/off airplane mode Change-Id: I1865c5ff7e8c04a4188dc7c379223e48c8b29ad9
* Update Bluetooth API annotations.Jeff Sharkey2021-04-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* BluetoothAirplaneModeListener -> BluetoothModeChangeHelperHansong Zhang2020-10-151-0/+143
Common code can be used for BluetoothDeviceConfigListener. Test: atest FrameworksServicesTests Change-Id: Ic5ab3c04876c341bde79c03f0551719c5f774437