OSDN Git Service

android-x86/system-bt.git
3 years agoEnum-ify bta/av/bta_av_int::BTA_AV_RS_
Chris Manton [Thu, 15 Oct 2020 17:15:23 +0000 (10:15 -0700)]
Enum-ify bta/av/bta_av_int::BTA_AV_RS_

Also add BtaAvRoleSwitchText

Towards readable and loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I334e82ed2d5bb7860b4089b2f2c00158bfb7c2f3

3 years agoEnum-ify stack/btm/security_device_record::tBTM_SM4_
Chris Manton [Fri, 16 Oct 2020 21:14:55 +0000 (14:14 -0700)]
Enum-ify stack/btm/security_device_record::tBTM_SM4_

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Idf55cc17565dcc19dec61d2d477438044af7e318

3 years agoEnum-ify stack/include/l2cdefs::tL2CAP_CONN
Chris Manton [Sun, 11 Oct 2020 23:57:42 +0000 (16:57 -0700)]
Enum-ify stack/include/l2cdefs::tL2CAP_CONN

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Id0815ac6ed901b03d660b84d044a0ef903e222ff

3 years agoEnum-ify stack/include/btm_api_types::BTM_LE_KEY
Chris Manton [Thu, 10 Sep 2020 03:34:37 +0000 (20:34 -0700)]
Enum-ify stack/include/btm_api_types::BTM_LE_KEY

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ifb4af8cd36dd7e90f3491e271c7ec91a762c994e

3 years agoEnum-ify stack/avdt/avdt_int::AVDT_CCB_
Chris Manton [Sun, 20 Dec 2020 19:04:25 +0000 (11:04 -0800)]
Enum-ify stack/avdt/avdt_int::AVDT_CCB_

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I671c666b03bc7baed46901421ecbaf7c74ff9942

3 years agoEnum-ify bta/include/bta_ag_api::tBTA_AG_EVT
Chris Manton [Tue, 15 Dec 2020 02:17:13 +0000 (18:17 -0800)]
Enum-ify bta/include/bta_ag_api::tBTA_AG_EVT

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ic430d4ca56ce4c734e9f8cf3b157f466a646d8a6

3 years agoAdd bta/ag/bta_ag_int::tBTA_AG_API_RESULT::ToString
Chris Manton [Tue, 15 Dec 2020 05:22:10 +0000 (21:22 -0800)]
Add bta/ag/bta_ag_int::tBTA_AG_API_RESULT::ToString

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I66a697dec3da605b3580975557bb17fe9e69b0ba

3 years agoConsolidate exits stack/acl/btm_acl::hci_start_role_switch_to_central
Chris Manton [Thu, 17 Dec 2020 06:50:17 +0000 (22:50 -0800)]
Consolidate exits stack/acl/btm_acl::hci_start_role_switch_to_central

Also add role switch into hci interface

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Icd473efe6ee8c6e0032dd5f5d4d4ed2880537ba1

3 years agoAdd BTM_LogHistory to BTM_RemoveSco
Chris Manton [Wed, 16 Dec 2020 22:23:20 +0000 (14:23 -0800)]
Add BTM_LogHistory to BTM_RemoveSco

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ifabbe8cf65fc56dbe43105d9cd133a7b6ae97025

3 years agoEnum-ify bta/include/bta_ag_api::tBTA_AG_RES
Chris Manton [Tue, 15 Dec 2020 05:22:28 +0000 (21:22 -0800)]
Enum-ify bta/include/bta_ag_api::tBTA_AG_RES

Also add bta_ag_result_text

Towards readable and loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I192fd3060cbf0ab739af37b8ebda29edab87c3c5

3 years agoAdd tACL_CONN::SupportsSecureConnections
Chris Manton [Sat, 2 Jan 2021 03:11:49 +0000 (19:11 -0800)]
Add tACL_CONN::SupportsSecureConnections

Towards encapsulation

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I4ede2886aa5d90bfab8fccea5edaed70ad1514e7

3 years agoRe-log stack/btm/btm_sco::btm_sco_disc_chk_pend_for_modechange
Chris Manton [Mon, 14 Dec 2020 23:28:35 +0000 (15:28 -0800)]
Re-log stack/btm/btm_sco::btm_sco_disc_chk_pend_for_modechange

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I7ad0d2e091ae5e89718f9a5fddb74c2025afd909

3 years agoRe-log bta/av/bta_av_main::bta_av_sco_chg_cback
Chris Manton [Mon, 14 Dec 2020 23:27:47 +0000 (15:27 -0800)]
Re-log bta/av/bta_av_main::bta_av_sco_chg_cback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I2f5e63c5b647e0913a319808170cfd7983c59a5d

3 years agoRe-log bta/ag/bta_ag_sco::bta_ag_sco_event
Chris Manton [Mon, 14 Dec 2020 23:27:32 +0000 (15:27 -0800)]
Re-log bta/ag/bta_ag_sco::bta_ag_sco_event

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I47a60377dd59377e757ccc8e675c477649f8bed0

3 years agoRe-log bta/ag/bta_ag_sco::bta_ag_sco_disc_cback
Chris Manton [Mon, 14 Dec 2020 23:27:21 +0000 (15:27 -0800)]
Re-log bta/ag/bta_ag_sco::bta_ag_sco_disc_cback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Idd8ec314c9fd1109f43f0aed4e0795d1281a97a9

3 years agoAdd tACL_CONN::RemoteAddress
Chris Manton [Thu, 31 Dec 2020 01:12:15 +0000 (17:12 -0800)]
Add tACL_CONN::RemoteAddress

Towards encapsulation

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ifc6ee3fe951a34d03a44bdd5273294651c4a0686

3 years agoIntroduce btm client interface
Chris Manton [Mon, 4 Jan 2021 01:35:22 +0000 (17:35 -0800)]
Introduce btm client interface

Eventually replace compile-time deps with interfaces

Towards modular code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: If50e41e9f4c2c7bff4eabebe34df9e485972928c

3 years agoProperly include stack/include/hci_error_code::<string>
Chris Manton [Sun, 3 Jan 2021 18:51:37 +0000 (10:51 -0800)]
Properly include stack/include/hci_error_code::<string>

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I02a8eb926c478b40a8d6e37443ef2cbf2f2f5d0e

3 years agoRe-log stack/l2cap/l2c_link::l2c_link_timeout
Chris Manton [Sat, 26 Dec 2020 23:06:35 +0000 (15:06 -0800)]
Re-log stack/l2cap/l2c_link::l2c_link_timeout

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I2b979cc5d9d38af829b03092a66f4e67b1bf05c5

3 years agoRe-log stack/btm/btm_sco.::btm_sco_removed
Chris Manton [Sat, 26 Dec 2020 23:06:26 +0000 (15:06 -0800)]
Re-log stack/btm/btm_sco.::btm_sco_removed

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I41c61bab20c2b5fdd544dcb66fd6d0e8dab68813

3 years agobtm_loghistory stack/btm/btm_sco::BTM_CreateSco
Chris Manton [Sat, 26 Dec 2020 23:06:07 +0000 (15:06 -0800)]
btm_loghistory stack/btm/btm_sco::BTM_CreateSco

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I48603cf0fccc0eba5086ae9a6c0f3431382a824b

3 years agoRe-log btif/src/btif_profile_queue::btif_queue_connect_next
Chris Manton [Sat, 26 Dec 2020 23:05:35 +0000 (15:05 -0800)]
Re-log btif/src/btif_profile_queue::btif_queue_connect_next

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I4393c8c2a5a1e13500c782d4ad694c0194b226e0

3 years agoRe-log btif/src/btif_profile_queue::queue_int_add
Chris Manton [Sat, 26 Dec 2020 23:05:26 +0000 (15:05 -0800)]
Re-log btif/src/btif_profile_queue::queue_int_add

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I3c6f66f8bf3f02a6ad5d9029f8ff77aebb50a625

3 years agoRe-log btif/src/btif_profile_queue::ConnectNode
Chris Manton [Sat, 26 Dec 2020 23:05:07 +0000 (15:05 -0800)]
Re-log btif/src/btif_profile_queue::ConnectNode

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I8a11860ac67c7700b8fad18094ee1b334a08c7b5

3 years agoRe-log btif/src/btif_hf::HeadsetInterface::PhoneStateChange
Chris Manton [Sat, 26 Dec 2020 23:04:45 +0000 (15:04 -0800)]
Re-log btif/src/btif_hf::HeadsetInterface::PhoneStateChange

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I15eaff0ca87530a27c4ac52d85c1e38aa87fb4e0

3 years agoRe-log btif/src/btif_av::src_connect_sink
Chris Manton [Sat, 26 Dec 2020 23:04:26 +0000 (15:04 -0800)]
Re-log btif/src/btif_av::src_connect_sink

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I2771820eb4a6cb4be372284d56b94ff6d4fdfce3

3 years agobtm_loghistory: btm_sec_auth_complete::Bonding
Chris Manton [Mon, 14 Dec 2020 06:47:17 +0000 (22:47 -0800)]
btm_loghistory: btm_sec_auth_complete::Bonding

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I785ae8c22b6fed7a7f95a46dc5d026a0ef9f7328

3 years agoConsolidate exits stack/btm/btm_sec:NotifyBondingChange
Chris Manton [Mon, 14 Dec 2020 06:46:37 +0000 (22:46 -0800)]
Consolidate exits stack/btm/btm_sec:NotifyBondingChange

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I60dbeba12920ef4434cf2ccc91dcd8821ce8fbab

3 years agoAdd btm_history for btif/src/btif_av::a2dp
Chris Manton [Mon, 14 Dec 2020 06:21:40 +0000 (22:21 -0800)]
Add btm_history for btif/src/btif_av::a2dp

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I72835a8d229002d9f963e2c8c476605bf125bd01

3 years agoRemove friends stack/acl/acl::
Chris Manton [Fri, 1 Jan 2021 01:15:43 +0000 (17:15 -0800)]
Remove friends stack/acl/acl::

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id:
I73de315993083bf7756fb9c33be4150e040bc89a

Change-Id: Ie104ecf307d2a620dc6187c9008222e2f43b2672

3 years agoUse tACL_CONN::is_transport_
Chris Manton [Fri, 11 Dec 2020 00:28:58 +0000 (16:28 -0800)]
Use tACL_CONN::is_transport_

Towards encapsulated code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I065acf0d31c25750649249336120fa7acf62b33b

3 years agoRe-log StackAclBtmAcl::btm_acl_role_changed
Chris Manton [Fri, 11 Dec 2020 00:28:48 +0000 (16:28 -0800)]
Re-log StackAclBtmAcl::btm_acl_role_changed

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I8161729fc4f71f2c7dcf1b33ec73dfe4f861b8c4

3 years agoRe-log BTM_SetPowerMode
Chris Manton [Fri, 11 Dec 2020 00:21:10 +0000 (16:21 -0800)]
Re-log BTM_SetPowerMode

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Id7c72fa3eff6a88d3574bcf2a8d715badd87e2c8

3 years agoRemove #ifdef BTM_SSR_INCLUDED
Chris Manton [Sun, 20 Dec 2020 17:14:05 +0000 (09:14 -0800)]
Remove #ifdef BTM_SSR_INCLUDED

SSR may not be used but will be compiled.

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I51cecc883443dcbfb84f78d1493e739060dbc04c

3 years agoAdd headless dumpsys and gd init flags options
Chris Manton [Sun, 27 Dec 2020 22:00:46 +0000 (14:00 -0800)]
Add headless dumpsys and gd init flags options

Bug: 147316415
Test: cert
Tag: #refactor

Change-Id: Ifb4c21b0ee771e11f1d0aac7e8b963efde613fc8

3 years agoPlumb in main/shim/acl::connection interface
Chris Manton [Sun, 27 Dec 2020 17:52:15 +0000 (09:52 -0800)]
Plumb in  main/shim/acl::connection interface

Bug: 166280067
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I5646a63e9e9a686b1d5538d0d994f941233310cf

3 years agoIntroduce LinkConnectionInterface
Chris Manton [Sun, 27 Dec 2020 17:47:40 +0000 (09:47 -0800)]
Introduce LinkConnectionInterface

Bug: 166280067
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I0b12d97ffee9db3cda508067836c85ceb8a04bda

3 years agoAdd tACL_CONN::Handle
Chris Manton [Tue, 29 Dec 2020 03:23:57 +0000 (19:23 -0800)]
Add tACL_CONN::Handle

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I7cd3c2a460f358e393ca6c84b1b3cf6ec845b83e

3 years agoAdd headless::connect test
Chris Manton [Mon, 28 Dec 2020 20:45:50 +0000 (12:45 -0800)]
Add headless::connect test

Bug: 147316415
Test: cert
Tag: #refactor

Change-Id: Ibe2a88aa832bd9a461c02158a6546d964828e295

3 years agoCheck shim bluetooth::shim::is_gd_link_policy_enabled
Chris Manton [Tue, 29 Dec 2020 03:27:13 +0000 (19:27 -0800)]
Check shim bluetooth::shim::is_gd_link_policy_enabled

Bug: 175344733
Test: cert
Tag: #refactor
Change-Id: Icf7adcf91223fb9919198b28567589921bbff36b

3 years agoShim in is_gd_link_policy_enabled
Chris Manton [Tue, 29 Dec 2020 03:26:47 +0000 (19:26 -0800)]
Shim in is_gd_link_policy_enabled

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: Ibe1bbd5905b0427e5ca649b9fd95abca490f1ecf

3 years agoAdd main::shim::link_policy implementation
Chris Manton [Thu, 31 Dec 2020 20:44:43 +0000 (12:44 -0800)]
Add main::shim::link_policy implementation

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: Ib273141abd7f91f9361b0e7b10de5ad5f2b92b20

3 years agoIntroduce tACL_CB_::Reset()
Chris Manton [Tue, 29 Dec 2020 03:19:36 +0000 (19:19 -0800)]
Introduce tACL_CB_::Reset()

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ib5b8a77eba21affbdbb17eb16d60cfc3b1a0c40d

3 years agoAdd tACL_CB::tACL_CONN::policy
Chris Manton [Thu, 31 Dec 2020 19:00:47 +0000 (11:00 -0800)]
Add tACL_CB::tACL_CONN::policy

Provide space for link policy state

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: I852b30c1d772c56ac765a975cda7a88adf57584c

3 years agoDe-anonymize stack/acl/acl::tACL_CONN
Chris Manton [Mon, 4 Jan 2021 00:27:27 +0000 (16:27 -0800)]
De-anonymize stack/acl/acl::tACL_CONN

Bug: 166280067
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I5ec02f7bbfc5a11c4c74edf856c3e24f57ce414a

3 years agogd_acl: Add link policy mode methods
Chris Manton [Tue, 22 Dec 2020 21:30:59 +0000 (13:30 -0800)]
gd_acl: Add link policy mode methods

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: Ib9e59e4978f671cf545b51297715c4c3fb6ede60

3 years agoIntroduce main/shim/link_policy.h
Chris Manton [Thu, 31 Dec 2020 17:39:46 +0000 (09:39 -0800)]
Introduce main/shim/link_policy.h

Bug: 175344733
Test: cert
Tag: #refactor
Change-Id: I5011df4f706ba0114de22abd0b8b36658a2edb5d

3 years agoConnect gd acl shim sniff subrating
Chris Manton [Thu, 31 Dec 2020 17:39:46 +0000 (09:39 -0800)]
Connect gd acl shim sniff subrating

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: I824dc66f9ddcf11f88ebf75eed06d97144428bd8

3 years agogd: Handle EventCode::SNIFF_SUBRATING in acl connection
Chris Manton [Wed, 23 Dec 2020 06:23:15 +0000 (22:23 -0800)]
gd: Handle EventCode::SNIFF_SUBRATING in acl connection

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: I71ae0cbd35e3faf1d5112ca3b735423752852898

3 years agogd: Add rust flags gd_link_policy
Chris Manton [Wed, 23 Dec 2020 01:09:50 +0000 (17:09 -0800)]
gd: Add rust flags gd_link_policy

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: I4c94a40ed18069cae9433ca447f07e2a40874323

3 years agoFormalize conversion HCI_TO_BTM_POWER_MODE
Chris Manton [Sat, 26 Dec 2020 05:44:59 +0000 (21:44 -0800)]
Formalize conversion HCI_TO_BTM_POWER_MODE

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I59e201618412e53c1975e2234387860556354f71

3 years agoRe-group and label interfaces main/shim/acl::
Chris Manton [Sun, 27 Dec 2020 17:50:22 +0000 (09:50 -0800)]
Re-group and label interfaces main/shim/acl::

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ifd2d40b5104153171cf00de20000e4e64ae4e542

3 years agoAdd include/hardware/bluetooth::bt_status_text
Chris Manton [Mon, 28 Dec 2020 20:45:17 +0000 (12:45 -0800)]
Add include/hardware/bluetooth::bt_status_text

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I2a39853ff6000ae78ce48476ec408991cade3876

3 years agoRemove unused main/shim/btm_api::BTM_SetPowerMode
Chris Manton [Sat, 26 Dec 2020 21:16:33 +0000 (13:16 -0800)]
Remove unused main/shim/btm_api::BTM_SetPowerMode

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: I40aa79b2857f55430862f75e431a2a93f2f47557

3 years agoUse stack/acl/btm_acl::BTM_SetLinkPolicyActiveMode
Chris Manton [Sat, 26 Dec 2020 21:09:05 +0000 (13:09 -0800)]
Use stack/acl/btm_acl::BTM_SetLinkPolicyActiveMode

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: Id326a5ebc521b536f54202c32ec70bed29612592

3 years agoAdd stack/acl/acl::tSSR_PARAMS
Chris Manton [Tue, 29 Dec 2020 03:20:47 +0000 (19:20 -0800)]
Add stack/acl/acl::tSSR_PARAMS

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: Ib6471de7996a19b845bfdc19b561afb452ce9258

3 years agoAdd link policy registration tACL_CB::clients
Chris Manton [Tue, 29 Dec 2020 07:15:33 +0000 (23:15 -0800)]
Add link policy registration tACL_CB::clients

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: Ifa23c76f69786673194d5bac8af1bd25f78d9ff7

3 years agoAdd uninitialized value stack/include/btm_api_types::tBTM_PM_MODE
Chris Manton [Fri, 25 Dec 2020 03:55:10 +0000 (19:55 -0800)]
Add uninitialized value stack/include/btm_api_types::tBTM_PM_MODE

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: I28b1b17446078227a00ed21abb099179b3e3cf8a

3 years agoAdd stack/acl/acl::link policies
Chris Manton [Tue, 29 Dec 2020 03:24:39 +0000 (19:24 -0800)]
Add stack/acl/acl::link policies

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I20c485628c6f48650040504929497134e8fb6385

3 years agoUse proper type stack/acl/::tLINK_POLICY
Chris Manton [Thu, 24 Dec 2020 17:20:11 +0000 (09:20 -0800)]
Use proper type stack/acl/::tLINK_POLICY

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I7d915bb5c8e5f1e776d3b2c3db90f95acc6de846

3 years agoAdd stack/acl/btm_pm::BTM_SetLinkPolicyActiveMode
Chris Manton [Sat, 26 Dec 2020 20:56:17 +0000 (12:56 -0800)]
Add stack/acl/btm_pm::BTM_SetLinkPolicyActiveMode

Bug: 175344733
Test: cert
Tag: #refactor

Change-Id: Ic3fae4495111f50dc17abe510fea395b33b91431

3 years agoGroup like functions main/shim/acl::
Chris Manton [Sun, 27 Dec 2020 17:49:04 +0000 (09:49 -0800)]
Group like functions main/shim/acl::

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I555d895b49c0eb0f9e8e1cd5f67a124f5eeeb23b

3 years agogd: add shim layer for LE scanning manager
Chienyuan [Tue, 29 Dec 2020 06:54:18 +0000 (14:54 +0800)]
gd: add shim layer for LE scanning manager

Tag: #refactor
Bug: 159815595
Test: manual
Change-Id: Idea9ad04a51938a3f8bcc2d594dd1d7483adde5c

3 years agoMerge "Shim: Add GD scanning init flags"
Treehugger Robot [Tue, 29 Dec 2020 06:12:21 +0000 (06:12 +0000)]
Merge "Shim: Add GD scanning init flags"

3 years agoShim: Add GD scanning init flags
Chienyuan [Mon, 28 Dec 2020 08:43:08 +0000 (16:43 +0800)]
Shim: Add GD scanning init flags

Tag: #gd-refactor
Bug: 159815595
Test: cert/run --host
Change-Id: I758d69ff5ab7bb6029444aa699fc4d638ba21a2a

3 years agogd: Set flag for connectable advertising
Chienyuan [Fri, 25 Dec 2020 10:19:25 +0000 (18:19 +0800)]
gd: Set flag for connectable advertising

Tag: #gd-refactor
Bug: 176047975
Test: cert/run --host
Test: atest --host bluetooth_test_gd
Change-Id: Iea0e70eba8a9401e66a6078ba3f62adada81af0c

3 years agogd: Handle duration and max advertising event
Chienyuan [Fri, 25 Dec 2020 09:11:44 +0000 (17:11 +0800)]
gd: Handle duration and max advertising event

Tag: #gd-refactor
Bug: 176047975
Test: cert/run --host
Test: atest --host bluetooth_test_gd
Change-Id: Ie87986b11ed0b412290296c50ebb0b8bce31fb7d

3 years agoFix bad SC bit in Pairing Request/Response between two android phones
Jakub Pawlowski [Wed, 23 Dec 2020 20:41:30 +0000 (21:41 +0100)]
Fix bad SC bit in Pairing Request/Response between two android phones

This patch fixes recent regression where Secure Connection pairing is no
longer used, even between two capable devices.

Tag: #gd-refactor
Bug: 141555841
Test: bond two LE devices capable of Secure Connection
Change-Id: If621078a62cb42d2f6b88e94801ada5d107a727a

3 years agoMerge "[GD-Controller] Enable SSP controller when security layer is not enabled"
Treehugger Robot [Wed, 23 Dec 2020 04:15:19 +0000 (04:15 +0000)]
Merge "[GD-Controller] Enable SSP controller when security layer is not enabled"

3 years agoMerge "stack/eatt: Add multi read var and multi notification handling"
Jakub Pawlowski [Wed, 23 Dec 2020 02:02:37 +0000 (02:02 +0000)]
Merge "stack/eatt: Add multi read var and multi notification handling"

3 years agoMerge changes I7a22a399,Id3686045
Treehugger Robot [Tue, 22 Dec 2020 20:22:21 +0000 (20:22 +0000)]
Merge changes I7a22a399,Id3686045

* changes:
  HCI: Add support for synchronous commands
  [GD-SCO] Add SCO related commands and events

3 years ago[GD-Controller] Enable SSP controller when security layer is not enabled
Jack He [Tue, 22 Dec 2020 20:18:54 +0000 (12:18 -0800)]
[GD-Controller] Enable SSP controller when security layer is not enabled

* This allows Simple Secure Pairing when only controller layer is
enabled

Fixes: 176048878
Tag: #gd-refactor
Test: gd/cert/run
Change-Id: I2ab30bb47f75cde94c1d2d83bc284027771eef60

3 years agostack/eatt: Add multi read var and multi notification handling
Łukasz Rymanowski [Thu, 18 Jun 2020 10:18:16 +0000 (12:18 +0200)]
stack/eatt: Add multi read var and multi notification handling

Multi read variable is added to GATT server.
Multi notification handling as a GATT client.

Tag: #feature
Bug: 159786353
Sponsor: jpawlowski@
Test: compile & manual testing
Change-Id: Ibeb27a0eb7f0c9c241bc9dbac24d6f4306140005

3 years agoStraighten out stack/acl/btm_acl::acl_address_from_handle
Chris Manton [Tue, 22 Dec 2020 00:43:12 +0000 (16:43 -0800)]
Straighten out stack/acl/btm_acl::acl_address_from_handle

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I64fa3a2dc6cef8080eaf0e6536f6a7d553ff02d2

3 years agoConsolidate #defs BT_PSM_
Chris Manton [Mon, 21 Dec 2020 23:37:36 +0000 (15:37 -0800)]
Consolidate #defs BT_PSM_

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I2d05e6bdbebbd5bd796de995bb582ba3e499d381

3 years agoRe-log BTM_SetPowerMode
Chris Manton [Tue, 22 Dec 2020 02:31:43 +0000 (18:31 -0800)]
Re-log BTM_SetPowerMode

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Iad96cb93c510b5df5630245d9fc6637ca07d3c05

3 years agoRe-log BTM_SetSsrParams
Chris Manton [Tue, 22 Dec 2020 02:33:37 +0000 (18:33 -0800)]
Re-log BTM_SetSsrParams

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ida8b507b32d5978b0ce98596ac58dde37874c39a

3 years agoStreamline process_ssr_event
Chris Manton [Tue, 22 Dec 2020 02:33:17 +0000 (18:33 -0800)]
Streamline process_ssr_event

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I875ec08cb039286f0d9538f5f173b82376d245b9

3 years agoUse tACL_CB::DefaultPacketTypes
Chris Manton [Sun, 13 Dec 2020 01:13:46 +0000 (17:13 -0800)]
Use tACL_CB::DefaultPacketTypes

Towards encapsulation

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ie034c9703f18b18a7338b362816414f602e1923c

3 years agoRe-log stack/acl/btm_pm::btm_pm_proc_cmd_status
Chris Manton [Fri, 11 Dec 2020 00:20:17 +0000 (16:20 -0800)]
Re-log stack/acl/btm_pm::btm_pm_proc_cmd_status

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ia8dceac14b10761ef40db6d9999d768462b7ae50

3 years agoUse proper types tHCI_STATUS
Chris Manton [Thu, 10 Dec 2020 02:15:14 +0000 (18:15 -0800)]
Use proper types tHCI_STATUS

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ied837f99e446b509d5f6d03a53465a9c07c70d04

3 years agoRe-log bta/dm/bta_dm_pm::bta_dm_pm_sniff
Chris Manton [Thu, 10 Dec 2020 04:26:35 +0000 (20:26 -0800)]
Re-log bta/dm/bta_dm_pm::bta_dm_pm_sniff

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I3c38e184a0eafb16f0aa653365e74c41ab822d49

3 years agoEncapsulate tBTM_PM_MCB::state
Chris Manton [Mon, 7 Dec 2020 04:15:25 +0000 (20:15 -0800)]
Encapsulate tBTM_PM_MCB::state

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ieb954f5d1395e0b860e5483b534ae2a0df274b1c

3 years agoStreamline stack/acl/btm_pm::BTM_ReadPowerMode
Chris Manton [Wed, 9 Dec 2020 22:22:37 +0000 (14:22 -0800)]
Streamline stack/acl/btm_pm::BTM_ReadPowerMode

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Id9e92d788a8d4ecb624db6155e39c509787b9aa2

3 years agoRe-log bta/dm/bta_dm_pm::bta_dm_pm_timer_cback
Chris Manton [Fri, 11 Dec 2020 00:25:38 +0000 (16:25 -0800)]
Re-log bta/dm/bta_dm_pm::bta_dm_pm_timer_cback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I7149d0578c7cc3674c7a54c9952994400e67195c

3 years agoRe-log bta/dm/bta_dm_pm::bta_dm_pm_cback
Chris Manton [Thu, 10 Dec 2020 21:30:48 +0000 (13:30 -0800)]
Re-log bta/dm/bta_dm_pm::bta_dm_pm_cback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I4b19475d9731ca151894327393fbf4cf560ecfac

3 years agoRe-log bta/dm/bta_dm_act::bta_dm_rm_cback
Chris Manton [Wed, 9 Dec 2020 17:04:00 +0000 (09:04 -0800)]
Re-log bta/dm/bta_dm_act::bta_dm_rm_cback

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I86b87654fb9e9c8a0de8a9c2966712cfd9ab8056

3 years agoRe-log bta/av/bta_av_aact::bta_av_conn_failed
Chris Manton [Wed, 9 Dec 2020 16:52:50 +0000 (08:52 -0800)]
Re-log bta/av/bta_av_aact::bta_av_conn_failed

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ie4d215f13959efe536298478510116b867ba10bb

3 years agoRe-log bta/dm/bta_dm_pm::bta_dm_pm_set_mode
Chris Manton [Wed, 9 Dec 2020 16:52:36 +0000 (08:52 -0800)]
Re-log bta/dm/bta_dm_pm::bta_dm_pm_set_mode

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I36ec01426689b61693eb63210344df2b788474b7

3 years agoEncapsulate bta/dm/bta_dm_int::tBTA_DM_DEV_INFO
Chris Manton [Wed, 9 Dec 2020 20:28:53 +0000 (12:28 -0800)]
Encapsulate bta/dm/bta_dm_int::tBTA_DM_DEV_INFO

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ie829593e381619b7ee46e2fb73d9b5bb842b2d31

3 years agoAdd stack/include/btm_api_types::is_legal_power_mode
Chris Manton [Wed, 9 Dec 2020 23:13:18 +0000 (15:13 -0800)]
Add stack/include/btm_api_types::is_legal_power_mode

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I001c2476f23acb57fbb57f20e6212e9eb3f0ef9c

3 years agoAdd audio gateway BtaIdSysText::BTA_ID_AG
Chris Manton [Sat, 19 Dec 2020 01:58:42 +0000 (17:58 -0800)]
Add audio gateway BtaIdSysText::BTA_ID_AG

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Id263cdd4b0c56ec1eeae517ee1c8b96cca096daa

3 years agoAdd tBTA_AG_SCB::ToString
Chris Manton [Tue, 15 Dec 2020 00:16:04 +0000 (16:16 -0800)]
Add tBTA_AG_SCB::ToString

Monster structure needs visibility

Towards readability

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working

Change-Id: I7d20e5d71f2108103bb878fb3774421e8df76a6e

3 years agoMerge "Swich TEST_MAPPING config to unit_tests:true"
Julien Desprez [Tue, 22 Dec 2020 00:59:36 +0000 (00:59 +0000)]
Merge "Swich TEST_MAPPING config to unit_tests:true"

3 years agoSwich TEST_MAPPING config to unit_tests:true
Julien Desprez [Mon, 21 Dec 2020 22:00:45 +0000 (14:00 -0800)]
Swich TEST_MAPPING config to unit_tests:true

All unit_tests:true are run in presubmit which avoids
the explicit definition of TEST_MAPPING.

Test: presubmit runs all those tests
Bug: 175408655
Change-Id: Ibf2b80f902bffa4924853f001780e2d273cf451f

3 years agoAdd L2CAP 5.2 packets
Hansong Zhang [Thu, 17 Dec 2020 19:20:02 +0000 (11:20 -0800)]
Add L2CAP 5.2 packets

Bug: 141555841
Tag: #gd-refactor
Test: make
Change-Id: I73b6e21f06824aed74e7131dec388108f5ecd018

3 years agoenum-ify bta/ag/bta_ag_int::tBTA_AG_SCO
Chris Manton [Tue, 15 Dec 2020 00:08:11 +0000 (16:08 -0800)]
enum-ify bta/ag/bta_ag_int::tBTA_AG_SCO

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: If8bcba05b54b4665244331a11039272df9c8f5c9

3 years agoRearrange enumify stack/btm/btm_sco::SCO_ST_
Chris Manton [Mon, 14 Dec 2020 23:26:54 +0000 (15:26 -0800)]
Rearrange enumify stack/btm/btm_sco::SCO_ST_

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ia68644821a23772e43746036d890de979cee1d84

3 years agoRe-include stack/acl/btm_pm
Chris Manton [Thu, 10 Dec 2020 22:16:11 +0000 (14:16 -0800)]
Re-include stack/acl/btm_pm

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: Ib2d5d5d1f5db8e0047a04749fd1ed0660db4ab35

3 years agoenum-ify stack/include/avrc_defs::tAVRC_PDU
Chris Manton [Sat, 12 Dec 2020 17:15:24 +0000 (09:15 -0800)]
enum-ify stack/include/avrc_defs::tAVRC_PDU

Towards readable code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host

Change-Id: I667063c026983dcfe04f8b2a98466febdcaeb041