summaryrefslogtreecommitdiff
path: root/core/java/android/bluetooth/BluetoothUuid.java
Commit message (Collapse)AuthorAgeFilesLines
* Migrating frameworks/base BT filesRoopa Sattiraju2022-01-171-394/+0
| | | | | | Bug: 206121418 Test: Compile Change-Id: Idb55371e9d678296fe46e5f4231ec2d12ec8b978
* Use Common Audio Service UUID from latest assigned numbersJakub Pawlowski2021-12-291-1/+1
| | | | | | Bug: 150670922 Test: compilation Change-Id: I35684ecec50c3db757331b6384c2579f5a28a70a
* Group CSIP device based on CAPAlice Kuo2021-10-271-1/+1
| | | | | | | | | | | 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
* bluetoothUuid: Add placeholder for CAP uuidŁukasz Rymanowski2021-10-131-0/+5
| | | | | | | | | Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: Manual Change-Id: I69a9cb6a341d42eff3e5ae92d9c99ab5fa3bf9a3
* leaudio: update UUIDŁukasz Rymanowski2021-10-081-3/+2
| | | | | | | | | Bug: 150670922 Tag: #feature Sponsor: jpawlowski@ Test: Manual Change-Id: I7e553bd9ffec52c1a2f70e80a194ad7214fe905a
* Merge "csip: Add constants for the Coordinated Set Identification Profile" ↵Jakub Pawlowski2021-08-301-0/+5
|\ | | | | | | | | | | | | | | am: 54beaf2012 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1807297 Change-Id: I707c1fdd5831763a3bcdfa819e61ea3b01707110
| * csip: Add constants for the Coordinated Set Identification ProfileŁukasz Rymanowski2021-08-241-0/+5
| | | | | | | | | | | | | | | | Bug: 150670922 Tag: #feature Test: compilation Sponsor: jpawlowski@ Change-Id: I331fe270b75f306d57a15933ab4afa2e48c8bf50
* | Merge changes Icabed06e,I25bc13c6 am: afce05e2e5 am: 9de9c7f693Treehugger Robot2021-08-101-0/+10
|\| | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1683328 Change-Id: I50a17e3b0a1d0da3794db7704585a7d1df3af14e
| * Bluetooth: Add Media Control ProfileJakub Tyszkowski2021-08-091-0/+10
| | | | | | | | | | | | | | | | Tag: #feature Bug: 150670922 Sponsor: jpawlowski@ Test: compilation Change-Id: Icabed06e6b1973ecee9cd1d6eeec80c6d2a9d72e
* | More Bluetooth API annotation updates.Jeff Sharkey2021-04-161-0/+2
|/ | | | | | | | | | | | | | | | | | 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
* Add Volume Control UUIDŁukasz Rymanowski2021-02-081-0/+5
| | | | | | | | | Sponsor: jpawlowski@ Test: compilation Bug: 159786353 Tag: #feature Change-Id: I14116848411026ceab0ee15098687bf821e74d38
* Bluetooth: Implement API to get device identification informationFei Zheng2021-01-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add LE Audio UUID placeholderJakub Pawlowski2020-12-151-1/+6
| | | | | | | | | | | 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
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-101-1/+1
| | | | | | | | | 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
* Make BluetoothUuid constants and some functions System ApisRahul Sabnis2019-12-041-138/+120
| | | | | | Bug: 143245929 Test: Manual Change-Id: I5519a379a2bb5d56fe25745d8bdeaa5cf52d9e92
* Limit access to suspected false positives.Mathew Inwood2018-12-281-4/+5
| | | | | | | | | | | | | | | | | | | | | | 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
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-011-0/+17
| | | | | | | | | | | | | | | | | | 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
* Use assigned UUID for Hearing Aid ServiceJakub Pawlowski2018-02-261-2/+1
| | | | | | Test: manual Bug: 64038649 Change-Id: Iab748db944df3bba8927973d0a55d95514b9f8ed
* Hearing Aid profileJakub Pawlowski2018-02-141-0/+3
| | | | | | | | | 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
* Fix extracting 32-bit uuid error via calling method uuidToBytesRuina Liu2017-09-151-1/+1
| | | | | | | | | | | | | 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
* Fix checkstyle errors (2/2)Jack He2017-08-241-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix checkstyle errors (1/2)Jack He2017-08-241-26/+32
| | | | | | | | * Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
* Add helper method to convert Bluetooth UUID to bytesJakub Pawlowski2016-10-251-0/+42
| | | | | | Bug: 30622771 Test: sl4a ConcurrentBleAdvertisingTest Change-Id: I7f646d1d357c51b82efc504a0e65d868ad363ddb
* Add support for Bluetooth Sim Access Profile (2/4)Casper Bonde2015-04-151-2/+7
| | | | Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
* Add UUID for Pbap clientMatthew Xie2014-11-201-0/+2
| | | | | Bug: 18140961 Change-Id: I9cbeb7129b1d30aa7a195ed83821d4a5634283ed
* Add a method to check whether a UUID is 32bit.Wei Wang2014-05-191-1/+19
| | | | Change-Id: I92e8bab560b2083e9f4855d28b3f54f2120ef628
* Add parse method to parse UUID from bytes for 16 bit, 32 bit and 128 bitWei Wang2014-05-061-5/+58
| | | | | | Bluetooth UUIDs. Added unit tests. Change-Id: I4ecf0ede02561a5e9815acf8a5a1309d5756b887
* BLE peripheral mode (3/4): Add peripheral mode API.Wei Wang2013-12-191-0/+16
| | | | | | | | Change-Id: Id9d2f566b6d9ed0fffe73b67efad2e3d045360b4 Conflicts: core/java/android/bluetooth/BluetoothAdapter.java core/java/android/bluetooth/BluetoothGatt.java
* Fixed review commentsKim Schulz2013-09-121-2/+8
| | | | | | | | | | | - 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
* LE: Add support for the HID-over-GATT profile (2/3)Andre Eisenbach2013-08-151-0/+2
| | | | | bug:8330048 Change-Id: I600563d81dec1638dc35e31e19f61d6c04f09ae8
* Bluetooth MAP profile - sms and mms support initial check-inMatthew Xie2013-08-091-1/+12
| | | | | | bug:10116530 Change-Id: I57d022005bcff5bc3e56438a81ac92566f957744
* Add direct calls to Bluez to add SDP records.Jaikumar Ganesh2010-12-131-0/+19
| | | | | | This helps Settings app to enable just the Headset service. Change-Id: Ia9c39467df1e83d665e377313e16e6c54991f6d6
* Add BNEP_SVC UUID for incoming tethering connections.Jaikumar Ganesh2010-08-231-2/+8
| | | | Change-Id: I90c24edfd133ac9fa89c3467383cd61fa23954c6
* bluetooth tetheringDanica Chang2010-08-181-1/+12
| | | | Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
* Changes for bluetooth keyboard support.Adam Powell2010-06-211-1/+1
| | | | | | | | | | | 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
* HID profile.Jaikumar Ganesh2010-06-171-0/+6
| | | | Change-Id: I52e965a6537bce02c751ba26fe7b44dd03832510
* Provide an API for apps to use a dynamic RFCOMM channel and SDP record.Nick Pelly2009-10-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | 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
* Move android.bluetooth.ParcelUuid to android.os.ParcelUuidNick Pelly2009-09-281-0/+2
| | | | Change-Id: I564429d5c5b6a5372b6ff26a53b0d7e518b53631
* Cache the remote device's service channel.Jaikumar Ganesh2009-09-211-0/+6
| | | | | | | | | | Bluez Device implementation is such that when a device is unpaired, we removes the device and hence there is no way to interact with it unless you pair again. Remote service channel call is used to get the rfcomm channel number which will be used in profiles like OPP which don't require pairing. Change-Id: I868a6cdfdb1b7d3591dd8b66cd0320f41a9c1b92
* Make ParcelUuid helper functions consistent.Jaikumar Ganesh2009-09-161-2/+14
| | | | | | Treat zero length arrays and null arrays to be same. Change-Id: I8c6c28e5dc3da1f31f6f6abfc747db4c2975a90b
* Change handling of remoteUuids.Jaikumar Ganesh2009-09-161-18/+78
| | | | | | Use the ParcelUuid instead of UUID Change-Id:Ie05d65a62e8a4df8182a4c737d46c14142bfec43
* Use correct UUID to authorize AVRCPJackson Fan2009-08-241-0/+5
|
* Fix UUID typo and allow incoming AVRCP connections.Jaikumar Ganesh2009-07-311-8/+10
|
* Reconnect to A2DP device only if it supports that profile, fix HF AG UUID.Jaikumar Ganesh2009-07-161-1/+1
|
* Framework changes for bluez4.Jaikumar Ganesh2009-06-091-0/+62
Changes in the Bluetooth JNI calls and framework functions for Bluez4.