aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/le/PeriodicAdvertisingParameters.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix comment typo in PeriodicAdvertisingParametersJakub Pawlowski2021-03-031-1/+1
| | | | | | | Bug: 176967118 Test: m ds-docs-java Exempt-From-Owner-Approval: Docs-only change Change-Id: I1777ca23ba6f395eeb2ec98b970ccbf920661663
* Fix checkstyle errors (2/2)Jack He2017-08-241-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-15/+20
| | | | | | | | * Automatic style corrections through IDE Bug: 63596319 Test: make checkbuild, no manual changes, no functional changes Change-Id: I2397d55abc34c9b7a9b748bec6137778df3421a7
* Bluetooth: Fix Periodic Adv interval checkSunny Kapdi2017-05-101-2/+2
| | | | | | | | | The MIN and MAX values need to be swapped else the parameter check in setInterval would always fail Bug: 37579882 Change-Id: I48538c2a61be88caaf04abd94074b3d9eb6dde96
* Remove enable from PeriodicAdvertisingPariameters (1/2)Jakub Pawlowski2017-04-111-20/+2
| | | | | | | | | | | | | | | Instead of setting enable to true, one can just pass null PeriodicAdvertisingParameters and achieve same result when starting the set. Passing the "enable" when updating the parameters make no sense, and might be confusing. Experience with "timeout" field, which was a part of AdvertiseSettings show that merging fields that go into different HCI commands can cause problems during processing, so keep enable as separate field. Test: manual Bug: 30622771 Change-Id: Ida02c59eb8433537179b4d22202fe745f8b4bb3e
* Bluetooth API spelling fixes ("wether" -> "whether")Jakub Pawlowski2017-03-281-1/+1
| | | | | | Bug: 30622771 Test: manual Change-Id: I01c8b18d0057f2fd6e477ce2ca0b779321b6c0e6
* Bluetooth 5 Advertising APIJakub Pawlowski2017-03-081-0/+134
Test: manual Bug: 30622771 Change-Id: Id6856e6110872ec50ff1af54ddc75c0104a6459c (cherry picked from commit 5324a14cf490656269ef862d7f8f6b139a21c0e6)