summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothUuid.java
AgeCommit message (Collapse)Author
2022-05-15Merge TP1A.220507.001Brian Orr
Change-Id: I0474d4c5321a9bca5e519669c5e7f8eb3aee821d
2022-04-28LeAudio: Respond to TMAP read requestsŁukasz Rymanowski
* Supported roles are Call Gateway and Unicast Media Server * Broadcast roles depend on runtime flag * Also implemented a simple unit test * Use objects factory in LeAudioService Bug: 150670922 Bug: 229045392 Sponsor: @jpawlowski Test: atest BluetoothInstrumantationTests Change-Id: I91d6febda6ae080a5f6027312ec34e2e598d2a68 Merged-In: I91d6febda6ae080a5f6027312ec34e2e598d2a68 (cherry picked from commit 97d8ebdca766f4d5ee542ba55956059689e58c4c)
2022-03-25Merge TP1A.220321.002Scott Lobdell
Change-Id: Ie8206e8b9c11c3fd55b7adddac5c782ad92c9da4
2022-03-18Merge "Add docs for BluetoothUuid constants. An AVRCP constant was added as ↵Rahul Sabnis
the AVRCP_CONTROLLER constant was wrongly using the uuid for AVRCP."
2022-03-17Add docs for BluetoothUuid constants. An AVRCP constant was added as theRahul Sabnis
AVRCP_CONTROLLER constant was wrongly using the uuid for AVRCP. Tag: #feature Bug: 203092714 Test: Manual Change-Id: I9433bb9c92445535262c672eb6bdfd33b87d3eb4
2022-03-11Merge TP1A.220225.003Scott Lobdell
Change-Id: Id71ac466dbfe3707fe2e544ce22b1da8f474ec2b
2022-03-10bas: add Battery service profile supportKyunglyul Hyun
This profile provides the battery level characteristic of the BLE device. Settings.Global."settings_bluetooth_battery" or "sys.fflag.override.settings_bluetooth_battery" should be set to enable the feature. (or the ProfileService doesn't start) Bug: 193631822 Tag: #feature Test: atest BatteryStateMachineTest BatteryServiceTest DatabaseManagerTest AdapterServiceTest && manually with BLE keyboard as well Change-Id: I5459218a3362e97f37128aa6bdf286ccbdbc8761
2022-02-23Merge changes I343ff48c,I4b1ecf81Jack He
* changes: hap: Support multiple callbacks per App hap: Refactor service to match the new API
2022-02-22Bluetooth: Add Broadcast Assistant UUIDxiaowang
sponsor: siyuanh@ Test: compile Tag: #feature Bug: 208223966 Change-Id: Ifa4be661b69a1a20aedfb55d1bd7a528739a6489
2022-02-18hap: Refactor service to match the new APIJakub Tyszkowski
Bug: 150670922 Bug: 216639668 Fixes: 216639668 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I4b1ecf818a9b9bd75b1d17abeadfcea7c3c2548b
2022-02-09Merge TP1A.220126.001Haamed Gheibi
Change-Id: Ibe4916c42b096976ac917991cf0c73f02512f3d4
2022-02-04Merge TP1A.220120.003Haamed Gheibi
Change-Id: I202f5093bbd13b381ea11f969fee6154ba91fa11
2022-01-20hap: Add Hearing Access Profile boilerplateJakub Tyszkowski
Implementation will be provided by the upcoming patch. Tag: #feature Test: compilation Bug: 150670922 Sponsor: jpawlowski@ Change-Id: Ice1949eb2ea9ffd20753b0fd953dee7c81fba012
2021-12-29Use Common Audio Service UUID from latest assigned numbersJakub Pawlowski
Bug: 150670922 Test: compilation Merged-In: I35684ecec50c3db757331b6384c2579f5a28a70a Change-Id: I35684ecec50c3db757331b6384c2579f5a28a70a
2021-12-29Use Common Audio Service UUID from latest assigned numbersJakub Pawlowski
Bug: 150670922 Test: compilation Change-Id: I35684ecec50c3db757331b6384c2579f5a28a70a
2021-10-27Group CSIP device based on CAPAlice Kuo
Enable device group based on CAP for testing, the uuid value would be changed after the specification published. Bug: 150670922 Bug: 178981521 Test: pair with the LE audio coordinated set, and make sure it works Change-Id: Ia3d0dbe496dec822fee8ae6465b81688b9e9440c
2021-10-13bluetoothUuid: Add placeholder for CAP uuidŁukasz Rymanowski
Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: Manual Change-Id: I69a9cb6a341d42eff3e5ae92d9c99ab5fa3bf9a3
2021-10-08leaudio: update UUIDŁukasz Rymanowski
Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: Manual Change-Id: I7e553bd9ffec52c1a2f70e80a194ad7214fe905a
2021-08-30Merge "csip: Add constants for the Coordinated Set Identification Profile" ↵Jakub Pawlowski
am: 30e401f95a Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807297 Change-Id: I707c1fdd5831763a3bcdfa819e61ea3b01707110
2021-08-24csip: Add constants for the Coordinated Set Identification ProfileŁukasz Rymanowski
Bug: 150670922 Tag: #feature Test: compilation Sponsor: jpawlowski@ Change-Id: I331fe270b75f306d57a15933ab4afa2e48c8bf50
2021-08-10Merge changes Icabed06e,I25bc13c6 am: 020a379b50 am: dcea1a5aa5Treehugger Robot
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683328 Change-Id: I50a17e3b0a1d0da3794db7704585a7d1df3af14e
2021-08-09Bluetooth: Add Media Control ProfileJakub Tyszkowski
Tag: #feature Bug: 150670922 Sponsor: jpawlowski@ Test: compilation Change-Id: Icabed06e6b1973ecee9cd1d6eeec80c6d2a9d72e
2021-04-16More Bluetooth API annotation updates.Jeff Sharkey
This change adds a "BluetoothPermissionChecker" that ensures that all Bluetooth permission annotations are consistent. In addition, it verifies that all Bluetooth public APIs have been audited to be permission protected where relevant. We've currently standardized on saying that APIs that return device or Bluetooth state information (without sharing details about any particular remote Bluetooth device) do not need to be permission protected. This change is only annotations and has no behavior changes. Bug: 183626724 Test: ./build/soong/soong_ui.bash --make-mode Bluetooth RUN_ERROR_PRONE=true Change-Id: Ie80b15b058359bf1e9a6ee881b89cb3e5b584ca1
2021-02-08Add Volume Control UUIDŁukasz Rymanowski
Sponsor: jpawlowski@ Test: compilation Bug: 159786353 Tag: #feature Change-Id: I14116848411026ceab0ee15098687bf821e74d38
2021-01-08Bluetooth: Implement API to get device identification informationFei Zheng
Submitted on behalf of a third-party: Samsung System LSI License rights, if any, to the submission are granted solely by the copyright owner of such submission under its applicable intellectual property. Copyright (C) 2015 Samsung System LSI Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Third Party code includes additions/modifications from Qualcomm Innovation Center, Inc. Call BluetoothDevice.sdpSearch(BluetoothUuid.DIP) to search DIP information, and receive intent BluetoothDevice.ACTION_SDP_RECORD to get SdpDipRecord from BluetoothDevice.EXTRA_SDP_RECORD Bug: 141666056 Test: atest BluetoothInstrumentationTests Sponsor: alainv@ Tag: #feature Change-Id: I82d0979b77d28ec36fde6616622d216a28310b4a
2020-12-15Add LE Audio UUID placeholderJakub Pawlowski
Actual value will will be added in the future. We already have to reference it in the source. Bug: 150670922 Test: compilation Tag: #feature Sponsor: jpawlowski@ Change-Id: I3ba1e0e1136346e469952568f5a409cf32b898be
2020-01-09Use new UnsupportedAppUsage annotation.Artur Satayev
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I6ab53570aca580fbee1fcc927871caa09780f58f Merged-In: I6ab53570aca580fbee1fcc927871caa09780f58f
2019-12-04Make BluetoothUuid constants and some functions System ApisRahul Sabnis
Bug: 143245929 Test: Manual Change-Id: I5519a379a2bb5d56fe25745d8bdeaa5cf52d9e92
2018-12-28Limit access to suspected false positives.Mathew Inwood
Members modified herein are suspected to be false positives: i.e. things that were added to the greylist in P, but subsequent data analysis suggests that they are not, in fact, used after all. Add a maxTargetSdk=P to these APIs. This is lower-risk that simply removing these things from the greylist, as none of out data sources are perfect nor complete. For APIs that are not supported yet by annotations, move them to hiddenapi-greylist-max-p.txt instead which has the same effect. Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 115609023 Test: m Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0 Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687
2018-08-01Add @UnsupportedAppUsage annotationsMathew Inwood
For packages: android.bluetooth.le android.bluetooth This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ifcf24c0617acd7facc0e03f30a95c3a6b09b205c Merged-In: I88a1311e27c5f9a5f9d1035db76034f86f650efc
2018-02-26Use assigned UUID for Hearing Aid ServiceJakub Pawlowski
Test: manual Bug: 64038649 Change-Id: Iab748db944df3bba8927973d0a55d95514b9f8ed
2018-02-14Hearing Aid profileJakub Pawlowski
This is implementation of Hearing Aid Profile that will in future be connected to Bluetooth Manager - see TODOs in BluetoothHearingAid.java Bug: 69623109 Test: compilation. Manual test with HA. Change-Id: I79643ea1e14e9df7f5771169359c964a60c56618
2017-09-15Fix extracting 32-bit uuid error via calling method uuidToBytesRuina Liu
A new defined method of uuidToBytes is used to convert Bluetooth uuid to bytes in the case of BLE advertising. But the most significant 16 bits of a 32-bit uuid will be cleared after the and operations with 0X0000FFFF00000000L in the function of getServiceIdentifierFromParcelUuid. 0XFFFFFFFF00000000L should be used as bit mask. Change-Id: I83e22ffbecd718540e644289fee12bf9c3b66305 Test: Advertise with payload contains 32-bit uuid
2017-08-24Fix checkstyle errors (2/2)Jack He
* Manual style corrections with IDE assistance * Variable name refactors are done through IDE * Corrected general style errors such as: - "final private var" -> "private final var" - "&&", "+", "||" should not be at the end of line - Non-static private variable should be like "mVar" - Private static variable should be like "sVar" - Code file should always end with newline - Inherited methods should be annotated with @Override and no @hide tags - Public methods should always have a JavaDoc entry - "int[] array" is preferred over "int array[]" - private methods should be accessed without "this." when there is no name collisions. - "boolean ? true : false" -> boolean - "boolean ? false : true" -> !boolean - "boolean == true" OR "boolean != false" -> boolean - "boolean != true" OR "boolean == false" -> !boolean Bug: 63596319 Test: make checkbuild, no functional changes Change-Id: Iabdc2be912a32dd63a53213d175cf1bfef268ccd
2017-08-24Fix checkstyle errors (1/2)Jack He
* Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
2016-10-25Add helper method to convert Bluetooth UUID to bytesJakub Pawlowski
Bug: 30622771 Test: sl4a ConcurrentBleAdvertisingTest Change-Id: I7f646d1d357c51b82efc504a0e65d868ad363ddb
2015-04-15Add support for Bluetooth Sim Access Profile (2/4)Casper Bonde
Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
2014-11-20Add UUID for Pbap clientMatthew Xie
Bug: 18140961 Change-Id: I9cbeb7129b1d30aa7a195ed83821d4a5634283ed
2014-05-19Add a method to check whether a UUID is 32bit.Wei Wang
Change-Id: I92e8bab560b2083e9f4855d28b3f54f2120ef628
2014-05-06Add parse method to parse UUID from bytes for 16 bit, 32 bit and 128 bitWei Wang
Bluetooth UUIDs. Added unit tests. Change-Id: I4ecf0ede02561a5e9815acf8a5a1309d5756b887
2013-12-19BLE peripheral mode (3/4): Add peripheral mode API.Wei Wang
Change-Id: Id9d2f566b6d9ed0fffe73b67efad2e3d045360b4 Conflicts: core/java/android/bluetooth/BluetoothAdapter.java core/java/android/bluetooth/BluetoothGatt.java
2013-09-12Fixed review commentsKim Schulz
- fixed review comments (internal+google) - corrected tabs/spaces - Add connection id header for obex client operations - added support for implementing ProfileService class Change-Id: Idab8b4fa54a0f31bec4ffa263a69a9850a07f858 Bug:10692365
2013-08-15LE: Add support for the HID-over-GATT profile (2/3)Andre Eisenbach
bug:8330048 Change-Id: I600563d81dec1638dc35e31e19f61d6c04f09ae8
2013-08-09Bluetooth MAP profile - sms and mms support initial check-inMatthew Xie
bug:10116530 Change-Id: I57d022005bcff5bc3e56438a81ac92566f957744
2010-12-13Add direct calls to Bluez to add SDP records.Jaikumar Ganesh
This helps Settings app to enable just the Headset service. Change-Id: Ia9c39467df1e83d665e377313e16e6c54991f6d6
2010-08-23Add BNEP_SVC UUID for incoming tethering connections.Jaikumar Ganesh
Change-Id: I90c24edfd133ac9fa89c3467383cd61fa23954c6
2010-08-18bluetooth tetheringDanica Chang
Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
2010-06-21Changes for bluetooth keyboard support.Adam Powell
Add device class constant for PROFILE_HID and check for Device.Major.PERIPHERAL when checking for class matches. Change UUID for HID support. Fix bug in BluetoothService. Change-Id: Ie5361257d90fd749249e915824564bc3d79fb95d
2010-06-17HID profile.Jaikumar Ganesh
Change-Id: I52e965a6537bce02c751ba26fe7b44dd03832510
2009-10-06Provide an API for apps to use a dynamic RFCOMM channel and SDP record.Nick Pelly
Hide listenUsingRfcommOn(int channel) Add listenUsingRfcomm(String name, ParcelUuid uuid) The new API automatically finds a free RFCOMM channel and registers an SDP record with the given uuid and name. The SDP record is automatically removed when the socket is closed, or if the application dies. Apps are prevented from registering SDP records with the uuid of system Bluetooth profiles, such as A2DP, HFP and OPP. Apps are prevented from removing SDP records that they did not create. This is tracked by pid. TODO: Provide an API for the connecting app to look up an SDP record. Bug: 2158900 DrNo: eastham Joke: "What did the dog say to the tree? bark." Change-Id: Ia92f51c34615a7270a403255ad2b8faa98c4a3f5