aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* Follow error prone recommendationWilliam Escande2022-10-171-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` ObexServerSockets.java:228: warning: BluetoothSocket is final and does not override Object.toString Log.d(mTag, "onConnect() socket: " + conSocket); ^ BluetoothPbapService.java:767: warning: BluetoothSocket is final and does not override Object.toString + " socket=" + socket); ^ AvrcpCoverArtService.java:256: warning: BluetoothSocket is final and does not override Object.toString debug("onConnect() - device=" + device + ", socket=" + socket); ^ PbapClientConnectionHandler.java:377: warning: BluetoothSocket is final and does not override Object.toString Log.d(TAG, "Closing socket" + mSocket); ^ [...] (see https://errorprone.info/bugpattern/ObjectToString) ``` Bug: 236759221 Test: m RUN_ERROR_PRONE=true Bluetooth Ignore-AOSP-First: Cherry-pick of aosp/2133706 to solve merge conflict Merged-In: I6a49a8ef8c6b380547cbb817468fa33bf89347a3 Change-Id: I6a49a8ef8c6b380547cbb817468fa33bf89347a3 (cherry picked from commit 6134f7c0682cbf72a4caeeb2bdc9661aeab9b9f3)
* Broadcast API adjustmentJack He2022-03-101-0/+130
| | | | | | | | | | | | | * Enforce raw bytes vs. structured value consistency in metadata classes * Enforce required parameters in builder * Rename getMaximumNumberOfBroadcast to getMaximumNumberOfBroadcasts * Added utility method to parse and serialize LTV array Fixes: 218683032 Bug: 218683032 Test: atest BluetoothInstrumentationTests, cts tests Tag: #feature Change-Id: Ia10f414bdc958b75e94276d3f645687f8b9635f9
* Add a Bluetooth UserNull to serve a placeholderWilliam Escande2022-01-311-0/+7
| | | | | | | | | The UserHandle.NULL is hidden. It's is only used as a placeholder in the code when the user value is not determined. Test: Build Merged-In: I9272170838a79df8f0bdaed7d3e6cc7786fed595 Change-Id: I9272170838a79df8f0bdaed7d3e6cc7786fed595
* Remove allowBlocking from all BluetoothProfilesWilliam Escande2021-12-161-0/+41
Since Bluetooth is becoming a mainline module, it can no longer call the allowBlocking hidden api. Instead, all interface are moved to be oneway and use a synchronous data to handle the return value. Bug: 200200870 Test: Build + start Bt and play something on speaker Tag: #refactor Merged-In: I776a6322faadca1504bce24f2b6b041e756b6448 Change-Id: I776a6322faadca1504bce24f2b6b041e756b6448