aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/OobData.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix NPE in loggingMartin Brabham2021-06-171-3/+4
| | | | | | | Bug: 191268917 Test: Manual test app, log OobData Tag: #stability Change-Id: I975722642298cb580081de9a324302d7a3282d3c
* Update nullability checks to use Objects#requireNonNullRahul Sabnis2021-06-141-13/+13
| | | | | | | | | | instead of deprecated method in Preconditions class Tag: #feature Bug: 190767948 Test: Manual Merged-In: Ie7f7282b89c13f587fdfe1bf3288eb4a3c7dcc6e Change-Id: Ie7f7282b89c13f587fdfe1bf3288eb4a3c7dcc6e
* OOB: Remove static creator methods in favor of public constructorsMartin Brabham2021-04-261-85/+27
| | | | | | | Bug: 184370881 Tag: #feature Test: Manual compile Change-Id: I502cdf5adde324b7a41cfb6974f0b43b0064a911
* Bluetooth OOB: Fix getLeAppearanceHansong Zhang2021-04-131-1/+1
| | | | | | Bug: 185196125 Test: Use OOB pairing Change-Id: I1cb1c33b0b17f2fd242f6579844996c2ccf09e62
* Fix CTS FailureMartin Brabham2021-03-161-2/+1
| | | | | | Bug: 182849735 Test: atest CtsSystemApiAnnotationTestCases:android.signature.cts.api.AnnotationTest#testAnnotation -- --abi x86_64 Change-Id: I1b9e77b05cd23299bf179c854e136fa341c81566
* Bluetooth: Modify and append to the Out-of-Band APIMartin Brabham2021-03-161-39/+944
| | | | | | | | | | | | - Modify createOutOfBand to be a SystemApi, and accept p192 and p256 data objects. - Modify OobData to become a SystemApi and to provide a Builder pattern for creation. CTS-Coverage-Bug: 182420103 Bug: 178007935 Test: compiles and runs Tag: #feature Change-Id: I46aec8c2cb64a8da8957d01d32b879d60df7a31c Merged-In: I46aec8c2cb64a8da8957d01d32b879d60df7a31c
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Fix checkstyle errors (2/2)Jack He2017-08-241-23/+24
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-3/+2
| | | | | | | | * Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
* BLE OOB Pairing - parse address type (5/5)Jakub Pawlowski2016-11-101-0/+16
| | | | | | | | | When address type is not parsed, creating bond to devices not using random address is impossible. Bug: 32780409 Test: try pairing with nRF52DK using random address Change-Id: Ie6cc1f8c008d43b2acd021b47f9bbfb1f63472e8
* resolve merge conflicts of 3d98b60 to stage-aosp-masterJakub Pawlowski2016-08-111-0/+22
|\ | | | | | | Change-Id: I71e3bd497dbdc0b3f297ad311620aa77bf7225ac
| * Add LE Secure Connection data parsing (1/4)Jakub Pawlowski2016-08-111-0/+22
| | | | | | | | | | Bug: 30460956 Change-Id: I8d6e721b3b04f5ca9e3e02f7f2b90487482e1b37
| * Implementation of BluetoothDevice.createBondOutOfBandJakub Pawlowski2016-02-031-0/+63
| | | | | | | | | This patch implements out of band pairing that uses optional data. Currently, it works only for LE transport, using Temporary Key value. In the future fields might be added to OOBData to support other options for optional data. Change-Id: I0811182efb72ac5f80521ed4876b32603cb628c1
* OobData documentationJakub Pawlowski2016-04-191-1/+10
| | | | | Bug: 27385555 Change-Id: Ie290914e4d2b9378c6dff3ae14d96d6f8b13ab9d
* Sometimes to step forward, we need to go back. [2/2]Jeff Sharkey2016-03-011-0/+1
| | | | Change-Id: Iccabb95530a6e3c3950cb9a8dfe84e75354d2f5f
* Sometimes to step forward, we need to go back. [1/2]Jeff Sharkey2016-03-011-2/+1
| | | | Change-Id: Ibff95298dc2e6c09675018ad0c45506589b6312a
* Hide android.bluetooth.OobDataJakub Pawlowski2016-03-011-0/+1
| | | | | Bug: 27385555 Change-Id: I1767909ca17b1b23a2f23ea4a5b4a02cc52eecde
* Parcelable classes should always be final.Jeff Sharkey2016-02-291-1/+1
| | | | | | | Also hide ConnectivityMetricsEvent which isn't being used yet. Bug: 27415331 Change-Id: Iacdccddda504f3f669185f807b4f35b8dc2b0212
* Implementation of BluetoothDevice.createBondOutOfBandJakub Pawlowski2016-01-151-0/+63
This patch implements out of band pairing that uses optional data. Currently, it works only for LE transport, using Temporary Key value. In the future fields might be added to OOBData to support other options for optional data. Change-Id: I0811182efb72ac5f80521ed4876b32603cb628c1