Age | Commit message (Collapse) | Author |
|
Bug: 232987004
Test: cert/run
Tag: #gd-refactor
Change-Id: Icf4fe88a181e497bdc6994e5e3973e25f4166916
(cherry picked from commit 27fd22c14c108eed3bb8977d684d701f98f5b4df)
Merged-In: Icf4fe88a181e497bdc6994e5e3973e25f4166916
|
|
Bug: 230123996
Test: gd/cert
Change-Id: I3f609fe5f248e214ec7fb2ae75f6dc1e886d3059
(cherry picked from commit 065d24d44b48f3808f1f40a8b8f41c6d9c1ff5e9)
Merged-In: I3f609fe5f248e214ec7fb2ae75f6dc1e886d3059
|
|
Bug: 230123996
Test: cert/run
Change-Id: Ide5b514b0052f6991cc6ae28c0126dc8010ff67d
(cherry picked from commit 9a9ff6ff094ff58f03af21b882555aa0369b3847)
Merged-In: Ide5b514b0052f6991cc6ae28c0126dc8010ff67d
|
|
Bug: 228326164
Test: cert/run
Tag: #feature
Change-Id: Ibe0a988077266c1e60ee24bd5b7c6f77cc5b9173
(cherry picked from commit 0b05e8a2e8089b17e75659540da989798ac3c0f9)
Merged-In: Ibe0a988077266c1e60ee24bd5b7c6f77cc5b9173
|
|
Bug: 231364385
Test: cert/run
Tag: #gd-refactor
Change-Id: I69c5b07bbdd4cf70d500fd5146ea02741065ee6b
(cherry picked from commit 85ce98197c501f726dedd4e3c9158be904aa0c5a)
|
|
Test: build libbluetooth
Change-Id: I1e5a5a5ad4174f7ba603045dc19dab436cf4554d
|
|
Previoulsy Root-Canal always notified LE connection completion
with the event LE_Connection_Complete. However the specification
indicate that LE_Enhanced_Connection_Complete should be used
in preference if the event is unmsked by the host.
This patch modifies the behaviour of HandleLeConnect to:
- Send LE_Enhanced_Connection_Complete or LE_Connection_Complete
events only if unmasked by the host.
- Send LE_Enhanced_Connection in preference to LE_Connection_Complete
when unmasked.
Test: PTS VCS test against Eiffel
Change-Id: Ibc90196e1ed716643e82c2c630e4c9a5354bc3ae
|
|
The LE local supported features mask was previously defined
as an hexadecimal value, making it complex to read and edit.
Define an enum with LL feature bit values, and initialize the
le_supported_features_ field in DeviceProperties using
an explicit feature list.
Bug: 228326164
Test: VCS PTS tests against Eiffel
Change-Id: I2bbc1b6ac4f6f825437ad889ba910192e6a2d7d8
|
|
|
|
|
|
Bug: 229047843
Tag: #refactor
Test: gd/cert/run
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines
Change-Id: Ic3c297438b73af95cc6e8ff1d2c35302a9e897ce
|
|
* changes:
PDL: Remove Located and Named trait
PDL: Remove unnecessary `extern crate`
|
|
The traits were not used for dynamic dispatch nor
for generic code.
The `Named` trait was also directly implemented on
stdlib types (via FieldPath).
As the trait was not giving any advantages over
a direct impl, remove them and put methods
directly on the ast nodes.
Test: compiles
Change-Id: I5ccf498cf985ea4206c2fb42bed5e0d7eb3c5b92
|
|
Test: compiles
Change-Id: Ifcd68ba5864183e89f902ebed62ae18bd3dd3738
|
|
Test: None
Change-Id: Ie4056c0fbcf1ae4a68bc51c96f016aa801b2f166
|
|
Packet, struct, and group previously lived in different scopes,
which allowed packets and structs to have the same name.
This impacts the rust code generation as packets and structs are
disambiguated by adding appropriate suffixes, which is undesirable.
Packets and groups are now declared in the same namespace
as structs and other typedef declarations. An error is raised
if a packet is declared with the same name as another struct or
group declaration.
Test: pdl_inline_tests, validate hci_packets.pdl file
Bug: 228327522
Change-Id: I8055bed118e04de7297e240ac075ca529b5a8f8a
|
|
The single object is triggering CFI as this file doesn't
contains LTO that are required for Control Flow Integrity
to work
Bug: 228517914
Test: Run RootCanal and see that we have devices registering
Change-Id: I9289efc6e786c4ac830f65d6cc23da2c6492f350
|
|
Packet and Struct currently live in different scopes, which allows
packet and struct to have the same name. This impacts the rust
code generation as packets and structs are disambiguated by adding
appropriate suffixes, which is undesirable.
This change renames the few name conflicts in hci_packets.pdl that
prevent an immediate enforcement of this new rule.
Bug: 228327522
Test: Tested libbluetooth, root-canal target compilation
Change-Id: I88bbd394b56dbf6ac24ead4dcdeddcd467f71426
|
|
|
|
|
|
|
|
|
|
Editors typically have better support for editing text in docstrings
than in attributes.
Test: pdl --help
Change-Id: I3b1062a188feb6d34d727442390bf1859270bf77
|
|
Before, we would always exit the loop at the first iteration since the
`line_starts` passed in start with a zero offset. We should actually
search through the line starts to find the last line which starts
before the given offset.
This also adds new unit tests to cover this.
Test: atest pdl_inline_tests
Change-Id: I171803822c3cb58deec167a2bc063cbd8f99110f
|
|
Added SPDX-license-identifier-Apache-2.0 to:
tools/pdl/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: I99415333310de5e04e3a07adc877a8d4e454ed84
|
|
|
|
The PDL parser re-implementation currently parses
input PDL source files, runs linter checks on
the parsed AST, and serializes the AST to JSON.
Test: m pdl + run against test/*.pdl
Change-Id: If86e0265582e1ee21f14c1341c9069d43b17f97a
|
|
Test: Run root-canal and add a sniffer
Change-Id: I51a1ecabf77ed54fc9e3f8d1aabe2bd10493a2d2
|
|
The data path direction is bit field in LE Remove ISO Data Path command.
Bit 0: remove input data path
Bit 1: remove output data path
Bug: 226438214
Test: make build
Change-Id: I5ee340fc36c119fecd614115f779b9cb1bb5be38
|
|
This is done by introducing a new HciTransport pure virtual class
used by HciDevice and implemented by HciSocketTransport
This make it possible to create other transport than the
HciSocketTransport
All the hci related code is also moved into a new model/hci
folder
Test: gd/cert/run
Change-Id: I7f5259aa87c51d58fc4c7c7c666e62060491f30f
|
|
Test: Pass the AVDTP PTS-bot tests with Eiffel
Change-Id: I939bbd84329f3289d24c7cc20fb006ecdbd48b67
|
|
* changes:
RootCanal: Decouple TestModel from {LinkLayer,Hci}SocketDevice
RootCanal: Fix device registration
|
|
Instead of constructing the {LinkLayer,Hci}SocketDevice
inside the test model take it as a parameter and expose it
to the TestModel caller to be able to give subclasses to
the testmodel
This also remove the hard dependency of socket
for the TestModel
Test: gd/cert/run
Change-Id: Ia516a41463174baf186e0c3c4fe4da04393756cc
|
|
Test: m root-canal
Change-Id: I8b2a7f18c84c699678a2936d139038c8cf483682
|
|
|
|
kNumCommandPackets is just for flow control.
Bug: 223907866
Test: cert/run
Tag: #gd-refactor
Change-Id: Ie323bfca7ae1ecf89c5c6503d7a34bf3f6167391
|
|
* changes:
RootCanal: Reinitialise connection state on HCI_Reset
RootCanal: Remove unused members in LinkLayerController
|
|
|
|
Bug: 223779974
Test: m root-canal
Change-Id: I624cd7408d0a1aa78bd5ee47a1614d84c1eaf06a
|
|
Test: m root-canal
Change-Id: I68dabd23c5a1337f5ca23cfc0f6cacc25c0d9d7b
|
|
Bug: 223660948
Test: cert/run
Tag: #gd-refactor
Change-Id: Ibde188d6ceceaa42314487fa3ef53c8900cc9de7
|
|
The Core specification does not require that
LE Set Advertising Parameters be called before
LE Set Advertising Enable; instead default values
are specified for all advertising parameters.
This change lets hosts enable advertising
using the default parameters.
Test: PTS test GATT/SR/GAD/BV-01-C against Eiffel stack
Change-Id: I5d429d40eddb7ceff3d33a7d864db48a8f2ed3e9
|
|
Rename the namespace from test_vendor_lib to rootcanal
Test: None
Change-Id: I9cf72eef6c6100888faa0e6344ebd4c5b7ec716e
|
|
This folder will host Bluetooth tools
The OWNERS file is copied from system/
Test: None
Change-Id: I29f3fc32794692ad2e62cc0e31a4339a4a2b1ea4
|