OSDN Git Service
Andre Eisenbach [Tue, 10 Oct 2017 12:38:38 +0000 (12:38 +0000)]
Change DI record default company ID to Google am:
484d8e4f66 am:
ddb12ce8c4
am:
25cce0dc16
Change-Id: I000b45e8e62d249a08581eb3e4d95f6612104376
Andre Eisenbach [Tue, 10 Oct 2017 12:36:37 +0000 (12:36 +0000)]
Change DI record default company ID to Google am:
484d8e4f66
am:
ddb12ce8c4
Change-Id: I0965c86cf0d07a289a9ebd86ab6099dc85fa8505
Andre Eisenbach [Tue, 10 Oct 2017 12:34:32 +0000 (12:34 +0000)]
Change DI record default company ID to Google
am:
484d8e4f66
Change-Id: I02a44ccd7900c718f55603cff616165385ec8dd7
Andre Eisenbach [Tue, 10 Oct 2017 10:29:49 +0000 (03:29 -0700)]
Change DI record default company ID to Google
Test: manual
Change-Id: I181e9716dc2c9e48272dcc7f1a00841b4ed5c8dc
Jakub Pawlowski [Tue, 10 Oct 2017 06:18:18 +0000 (06:18 +0000)]
Linux build fix - include what you use am:
7a7e8e963c am:
c440ac812c
am:
8820b26edc
Change-Id: Ibcfe26e7264287964de4f6c93ffb87fee88fae09
Jakub Pawlowski [Tue, 10 Oct 2017 06:16:23 +0000 (06:16 +0000)]
Linux build fix - include what you use am:
7a7e8e963c
am:
c440ac812c
Change-Id: I78f4bcd9dcd34901b660037f4ca97d0ee010a92c
Jakub Pawlowski [Tue, 10 Oct 2017 06:14:49 +0000 (06:14 +0000)]
Linux build fix - include what you use
am:
7a7e8e963c
Change-Id: I58a6c891729c6ee5746dee249e39094e7540bc09
Jakub Pawlowski [Tue, 10 Oct 2017 03:57:39 +0000 (03:57 +0000)]
Fix linking error during stack startup am:
6ea3e1418b am:
0710e3b073
am:
ede04dd6d2
Change-Id: Iecea48f9137387b3fb52d48e9cfb3b0d20d5fcf7
Jakub Pawlowski [Tue, 10 Oct 2017 03:55:52 +0000 (03:55 +0000)]
Fix linking error during stack startup am:
6ea3e1418b
am:
0710e3b073
Change-Id: I1394ffe40644245b980b537f2474bec3e4083281
Jakub Pawlowski [Tue, 10 Oct 2017 03:53:39 +0000 (20:53 -0700)]
Linux build fix - include what you use
sys/uio.h should be included for writev
Change-Id: I1f66391d15109366356af09c825afa1216fbbf34
Jakub Pawlowski [Tue, 10 Oct 2017 03:53:51 +0000 (03:53 +0000)]
Fix linking error during stack startup
am:
6ea3e1418b
Change-Id: I8eb43d9919f70970627a22f10d1af6b5950859e8
Jakub Pawlowski [Mon, 9 Oct 2017 22:13:38 +0000 (15:13 -0700)]
Fix linking error during stack startup
Change-Id: I0ac207eada1ddf2181a4c2826ede74310ce119d1
Myles Watson [Mon, 9 Oct 2017 20:08:37 +0000 (20:08 +0000)]
Manually convert to unary where coccinelle could not am:
5d5fcf26d9 am:
af90de6d13
am:
ccbe0affa7
Change-Id: I40e70f47c787536e7db904fa6f5f6ef09d3388b1
Myles Watson [Mon, 9 Oct 2017 20:07:54 +0000 (20:07 +0000)]
Use unary operator instead of == bool am:
b749ebde2c am:
05534800a0
am:
7389d20acb
Change-Id: I0b5bb284f11e3b4be9f66e96bc877742613db7c2
Myles Watson [Mon, 9 Oct 2017 19:59:48 +0000 (19:59 +0000)]
Manually convert to unary where coccinelle could not am:
5d5fcf26d9
am:
af90de6d13
Change-Id: Ia9182618de7738559d0e307ebdeba52b23ba3b1f
Myles Watson [Mon, 9 Oct 2017 19:59:14 +0000 (19:59 +0000)]
Use unary operator instead of == bool am:
b749ebde2c
am:
05534800a0
Change-Id: Id5de13e5051cfcf00c4a5f668d1b79254e4a86fa
Myles Watson [Mon, 9 Oct 2017 19:55:28 +0000 (19:55 +0000)]
Manually convert to unary where coccinelle could not
am:
5d5fcf26d9
Change-Id: Id59052d157cd09b5cf46298261a810c43e7f7fb7
Myles Watson [Mon, 9 Oct 2017 19:55:02 +0000 (19:55 +0000)]
Use unary operator instead of == bool
am:
b749ebde2c
Change-Id: I61a1434e9fc7f86630b514aba6e0540937a1aa4c
Myles Watson [Fri, 6 Oct 2017 23:51:21 +0000 (16:51 -0700)]
Manually convert to unary where coccinelle could not
Test: build
Change-Id: I7b5ea758b94bf225e8776f64256d644c3e96b198
Myles Watson [Fri, 6 Oct 2017 23:39:05 +0000 (16:39 -0700)]
Use unary operator instead of == bool
Automatically generated with coccinelle:
@@
expression e1;
@@
-e1 == false
+!e1
@@
expression e1;
@@
-false == e1
+!e1
@@
expression e1;
@@
-e1 == true
+e1
@@
expression e1;
@@
-true == e1
+e1
Test: build
Change-Id: Ic7df0dc43b550594855e457466b6bccd8f3443a3
Myles Watson [Fri, 6 Oct 2017 22:00:29 +0000 (22:00 +0000)]
Merge "Remove the build team from OWNERS in system/bt" am:
9eb8abb9f8 am:
01f332df73
am:
6f157b7667
Change-Id: I194f441dadd2a2aa8040c84d54b062da945434d4
Myles Watson [Fri, 6 Oct 2017 21:53:17 +0000 (21:53 +0000)]
Merge "Remove the build team from OWNERS in system/bt" am:
9eb8abb9f8
am:
01f332df73
Change-Id: I2285a3cf39650d23d0631bda9921e2d8d858147e
Myles Watson [Fri, 6 Oct 2017 21:47:58 +0000 (21:47 +0000)]
Merge "Remove the build team from OWNERS in system/bt"
am:
9eb8abb9f8
Change-Id: Ibe8aa4f45105100087d3264596ef4ced4e6a96fc
Treehugger Robot [Fri, 6 Oct 2017 21:40:34 +0000 (21:40 +0000)]
Merge "Remove the build team from OWNERS in system/bt"
Myles Watson [Fri, 6 Oct 2017 20:46:43 +0000 (20:46 +0000)]
Merge "Remove -Wno-typedef-redefinition" am:
17927cfa5e am:
b435b2587a
am:
04dc2727a0
Change-Id: Ia26aebac13c64f0cfa4b091c488a7096092d2ae4
Myles Watson [Fri, 6 Oct 2017 20:43:31 +0000 (20:43 +0000)]
Merge "Remove -Wno-typedef-redefinition" am:
17927cfa5e
am:
b435b2587a
Change-Id: I6a60de2aa391a94416d1f984b9c96493ec377501
Myles Watson [Fri, 6 Oct 2017 20:39:05 +0000 (20:39 +0000)]
Merge "Remove -Wno-typedef-redefinition"
am:
17927cfa5e
Change-Id: I3e722cfa3d85d87c0dee9cd27b0801cf22acbda9
Treehugger Robot [Fri, 6 Oct 2017 20:27:29 +0000 (20:27 +0000)]
Merge "Remove -Wno-typedef-redefinition"
Myles Watson [Thu, 5 Oct 2017 23:21:51 +0000 (16:21 -0700)]
Remove the build team from OWNERS in system/bt
Test: build
Change-Id: I17f1fa9c0b5cdf4dc871c54f5731371f6828255c
Chih-Hung Hsieh [Fri, 6 Oct 2017 01:25:23 +0000 (01:25 +0000)]
Use -Werror in system/bt/vendor_libs/linux/interface/ am:
ad01e9a992 am:
7fdf10dcef
am:
04451096b4
Change-Id: I0f83d317c166ee03371e0fa3420a003475e9322c
Chih-Hung Hsieh [Fri, 6 Oct 2017 01:22:54 +0000 (01:22 +0000)]
Use -Werror in system/bt/vendor_libs/linux/interface/ am:
ad01e9a992
am:
7fdf10dcef
Change-Id: Ie12ffad3bb779688c7549617e76b3ece07cfc3df
Chih-Hung Hsieh [Fri, 6 Oct 2017 01:21:25 +0000 (01:21 +0000)]
Use -Werror in system/bt/vendor_libs/linux/interface/
am:
ad01e9a992
Change-Id: Id6411c4c3f5929b47103f3c2550b4a13d5ca9b42
Myles Watson [Thu, 5 Oct 2017 23:38:11 +0000 (16:38 -0700)]
Remove -Wno-typedef-redefinition
Test: build
Change-Id: I42cc5ad8f77061bdce8906f7e454c8120f4e71b2
Chih-Hung Hsieh [Mon, 2 Oct 2017 22:48:17 +0000 (15:48 -0700)]
Use -Werror in system/bt/vendor_libs/linux/interface/
Bug:
66996870
Test: build with WITH_TIDY=1
Change-Id: I2eca0a5fff52c83a86b060fd274c5a4cd1c53664
Jack He [Thu, 5 Oct 2017 17:36:29 +0000 (10:36 -0700)]
Fix build error in bitf_av.cc
* Removed duplicate case in btif_av_state_opening_handler
Bug:
67458695
Change-Id: I0aaebd4d42b143acbfe6220f057f61cf95936c90
Test: build
Jack He [Thu, 5 Oct 2017 16:20:18 +0000 (16:20 +0000)]
A2DP: Advance btif profile queue on OPENING->other_state transition
am:
1a2ea0fb6b -s ours
Change-Id: I0332beed9520db0b4412022d2acacbeda2edef0a
c_sdamga [Thu, 5 Oct 2017 16:20:14 +0000 (16:20 +0000)]
Handle Disconnect request in AV Opening State handler
am:
ab6fcc863e
Change-Id: Ifeae98a17dbf18a407f5033561949bfa2a9c911d
Jack He [Mon, 2 Oct 2017 21:07:33 +0000 (14:07 -0700)]
A2DP: Advance btif profile queue on OPENING->other_state transition
* Entering BTIF_AV_STATE_OPENING is only possible through
BTIF_AV_CONNECT_REQ_EVT (initiated by us) OR
BTA_AV_PENDING_EVT (initiated by remote)
from BTIF_AV_STATE_IDLE
* If we go from BTIF_AV_CONNECT_REQ_EVT, we must have a pending
connection request in btif_profile_queue that should be advanced when
we quit BTIF_AV_STATE_OPENING state
* This CL adds a flag to indicate whether an AV connection is initiated
by us and only advance queue when it is
* Also add queue advancement in BTA_AV_REJECT_EVT and BTA_AV_CLOSE_EVT
Bug:
67317954
Test: make
Change-Id: I16dc8ebf76c6edaacb1f7a4a44e604170ff9a8b0
(cherry picked from commit
a3626477587e99347dcf966087497e9a1c4732a4)
c_sdamga [Mon, 20 Jul 2015 13:47:04 +0000 (19:17 +0530)]
Handle Disconnect request in AV Opening State handler
Usecase:
1. Uncheck media from settings UI
2. initiate A2dp connection from remote, send AVRCP play from remote
Failure:
A2dp connection stuck in opening state.
Rootcause:
When A2dp is unchecked from settings UI and remote initiated
a2dp connection and AVRCP play, music starts streaming on DUT
since A2dp connection disconnected. As A2dp connection was not
completed, btif state stuck in opening state.
Fix:
Handled the disconnection request in the opening state
so that AV state machine moves to proper state before
processing AVRCP Play.
Test: 1. Uncheck media from settings UI
2. initiate A2dp connection from remote, send AVRCP play
Bug:
35415160
Change-Id: If1cda5b78100419fdc60c97349efafdd4a18d40c
(cherry picked from commit
ff1b9d26ca9a5a25d45bab09df1c0346104051a9)
Subramanian Srinivasan [Thu, 5 Oct 2017 02:07:38 +0000 (02:07 +0000)]
Fix adv instance validity check during suspend and resume of resolving list
am:
5f984c9fa3
Change-Id: Ie652c54260c337734839bf1e413ae0156275eb82
Pavlin Radoslavov [Thu, 5 Oct 2017 02:03:59 +0000 (02:03 +0000)]
Merge "Decrese the default verbosity for A2DP codec info logs" am:
c25f957c7f am:
25aceb5082
am:
ab49552a2d
Change-Id: I15600111a5dbf25abbbda05b422348fb24a05568
Pavlin Radoslavov [Thu, 5 Oct 2017 02:00:57 +0000 (02:00 +0000)]
Merge "Decrese the default verbosity for A2DP codec info logs" am:
c25f957c7f
am:
25aceb5082
Change-Id: I853d8bd2b04051994d34bd4f7757827e07248eb7
Pavlin Radoslavov [Thu, 5 Oct 2017 01:59:52 +0000 (01:59 +0000)]
Merge "Decrese the default verbosity for A2DP codec info logs"
am:
c25f957c7f
Change-Id: I4d2956a8f87088e52968a48e06a92fa1dde1dbb9
Pavlin Radoslavov [Thu, 5 Oct 2017 01:52:14 +0000 (01:52 +0000)]
Merge "Added extra A2DP logging when there is an error" am:
81e9b33cdf am:
f8cf3cad8e
am:
b94757337f
Change-Id: Ie64390bdc86b5870b2ca24cd4b6a12d76ec93f84
Treehugger Robot [Thu, 5 Oct 2017 01:51:14 +0000 (01:51 +0000)]
Merge "Decrese the default verbosity for A2DP codec info logs"
Pavlin Radoslavov [Thu, 5 Oct 2017 01:49:06 +0000 (01:49 +0000)]
Merge "Added extra A2DP logging when there is an error" am:
81e9b33cdf
am:
f8cf3cad8e
Change-Id: Ieeed02b15ab41d64a8bf8b60a7317df9a52e5372
Pavlin Radoslavov [Thu, 5 Oct 2017 01:46:04 +0000 (01:46 +0000)]
Merge "Added extra A2DP logging when there is an error"
am:
81e9b33cdf
Change-Id: Ibee8229736a8d50aeb79a5e39a33ea7339c85692
Treehugger Robot [Thu, 5 Oct 2017 01:39:45 +0000 (01:39 +0000)]
Merge "Added extra A2DP logging when there is an error"
Jakub Pawlowski [Thu, 5 Oct 2017 01:38:15 +0000 (01:38 +0000)]
Merge "Fix net_test_bluetooth" am:
936980bf40 am:
a3b213aaea
am:
383b6d1ccb
Change-Id: I891d3f66908ec1d13793f8dbb1509eef923003d6
Jakub Pawlowski [Thu, 5 Oct 2017 01:36:13 +0000 (01:36 +0000)]
Merge "Fix net_test_bluetooth" am:
936980bf40
am:
a3b213aaea
Change-Id: I17911327f6deeb5590c48d6f642067ce8094b913
Jakub Pawlowski [Thu, 5 Oct 2017 01:32:23 +0000 (01:32 +0000)]
Merge "Fix net_test_bluetooth"
am:
936980bf40
Change-Id: I1e95b2748fc9fc589e6c82636f5d2fb5597f57f3
Treehugger Robot [Thu, 5 Oct 2017 01:25:42 +0000 (01:25 +0000)]
Merge "Fix net_test_bluetooth"
Pavlin Radoslavov [Wed, 4 Oct 2017 18:26:04 +0000 (11:26 -0700)]
Decrese the default verbosity for A2DP codec info logs
Bug:
64159791
Test: Manual
Change-Id: Ida10f5d2aa6643df136a41891d7775e175c06570
(cherry picked from commit
b4ae75f4524fd5bf55d015f860f1deaee0d81f43)
Pavlin Radoslavov [Wed, 4 Oct 2017 12:36:25 +0000 (05:36 -0700)]
Added extra A2DP logging when there is an error
Bug:
64159791
Test: Manual
Change-Id: Ic1001892b7abc9784a21a183d141df51b1b92fc0
(cherry picked from commit
6c6d2f6a14847ee75c72b1366449c45ab66feb00)
Myles Watson [Wed, 4 Oct 2017 23:51:27 +0000 (23:51 +0000)]
btm: Return the result in btm_pm_compare_modes am:
13538385f4 am:
4b868f2470
am:
5432a0ad31
Change-Id: I2814d17d8f05eb4c867376bb37ecb6b0539edd43
Myles Watson [Wed, 4 Oct 2017 23:50:06 +0000 (23:50 +0000)]
btm: Return the result in btm_pm_compare_modes am:
13538385f4
am:
4b868f2470
Change-Id: Icde59e57d295c1aac9e784dfb11cca44947494c2
Myles Watson [Wed, 4 Oct 2017 23:47:00 +0000 (23:47 +0000)]
btm: Return the result in btm_pm_compare_modes
am:
13538385f4
Change-Id: I0c2aee751cb58c9e89ded941b7359ddd9f4a38cb
Pavlin Radoslavov [Wed, 4 Oct 2017 23:32:43 +0000 (23:32 +0000)]
Merge "Added extra A2DP logging when there is an error" into oc-mr1-dev
am:
9be5bbf264 -s ours
Change-Id: I3e113975fc8e6fce200c489d77072c02e189d877
Subramanian Srinivasan [Fri, 29 Sep 2017 01:41:03 +0000 (18:41 -0700)]
Fix adv instance validity check during suspend and resume of resolving list
When BT is shutdown, multi advertisement instance pointer is made
null by BleAdvertisingManager::CleanUp function.
Any subsequent BleAdvertisingManager::Get function call made at
this point(eg during suspension and resumption of resolving list
activity)leads to a crash as the instance pointer is null.
Hence, use BleAdvertisingManager::IsInitialized function instead
of BleAdvertisingManager::Get function to check the validity of
multi advertisement instance.
Bug:
67325491
Change-Id: Ibbae7fa546bb52494be78eaff6d4b7b15614ab15
TreeHugger Robot [Wed, 4 Oct 2017 23:21:12 +0000 (23:21 +0000)]
Merge "Added extra A2DP logging when there is an error" into oc-mr1-dev
Jakub Pawlowski [Wed, 4 Oct 2017 23:01:26 +0000 (16:01 -0700)]
Fix net_test_bluetooth
Test: net_test_bluetooth
Change-Id: I8c84f0db3ce0e4f6efbd6d7d3cdc794be8fb7faa
Pavlin Radoslavov [Wed, 4 Oct 2017 21:05:00 +0000 (21:05 +0000)]
Decrese the default verbosity for A2DP codec info logs
am:
b4ae75f452
Change-Id: Iefb797e7941c8432d623ac445f3ee44e7027dbf7
Jakub Pawlowski [Wed, 4 Oct 2017 18:44:38 +0000 (18:44 +0000)]
Use std::list in GATT related code am:
d9ca4100b8 am:
d97fcf2e78
am:
d98c94bca1
Change-Id: I7d758845b9a52b289f131372be8875204f16766a
Myles Watson [Wed, 4 Oct 2017 18:42:07 +0000 (18:42 +0000)]
Merge "Run clang format on files touched by CL 488398" am:
3494410e02 am:
61fdc8c4e3
am:
05a7d5d3d5
Change-Id: Ia91ba9739c95b9017800150765448c4fb3f4570e
Jack He [Wed, 4 Oct 2017 18:39:43 +0000 (18:39 +0000)]
A2DP: Advance btif profile queue on OPENING->other_state transition am:
a362647758 am:
9681130c74
am:
b2f27af45a
Change-Id: Ib0391896c2668a5d3f6bc942a0b3dc8f05861455
Myles Watson [Tue, 3 Oct 2017 23:51:30 +0000 (16:51 -0700)]
btm: Return the result in btm_pm_compare_modes
Test: build
Bug:
67383347
Change-Id: Id4407c1a73592674f0d86b1be1152abc088908b5
Jakub Pawlowski [Wed, 4 Oct 2017 18:34:47 +0000 (18:34 +0000)]
Use std::list in GATT related code am:
d9ca4100b8
am:
d97fcf2e78
Change-Id: I018b6fcf1328ab2d4a851ced070b7aa5a4f01725
c_sdamga [Wed, 4 Oct 2017 18:34:30 +0000 (18:34 +0000)]
Handle Disconnect request in AV Opening State handler am:
ff1b9d26ca am:
f1e77c091a
am:
8415940694
Change-Id: Ia963cae2964644b3283a577822e34f4f0e76d465
Jakub Pawlowski [Wed, 4 Oct 2017 18:33:04 +0000 (18:33 +0000)]
Use std::list in GATT related code
am:
d9ca4100b8
Change-Id: Ic62a1be3f450695bfaa649c6f39f451c9907102f
Pavlin Radoslavov [Wed, 4 Oct 2017 12:36:25 +0000 (05:36 -0700)]
Added extra A2DP logging when there is an error
Bug:
64159791
Test: Manual
Change-Id: Ic1001892b7abc9784a21a183d141df51b1b92fc0
Pavlin Radoslavov [Wed, 4 Oct 2017 18:26:04 +0000 (11:26 -0700)]
Decrese the default verbosity for A2DP codec info logs
Bug:
64159791
Test: Manual
Change-Id: Ida10f5d2aa6643df136a41891d7775e175c06570
Jakub Pawlowski [Sat, 9 Sep 2017 19:50:38 +0000 (12:50 -0700)]
Use std::list in GATT related code
Bug:
67057055
Test: sl4a Gatt* tests
Change-Id: I8201ebdad5ba4c3d5d0a2fd3d0fe9dc900b51d60
Myles Watson [Wed, 4 Oct 2017 18:09:20 +0000 (18:09 +0000)]
Merge "Run clang format on files touched by CL 488398" am:
3494410e02
am:
61fdc8c4e3
Change-Id: I1f079c4b8e8b6ddc1b97a8fc17b5234debe126cf
Jack He [Wed, 4 Oct 2017 18:07:01 +0000 (18:07 +0000)]
A2DP: Advance btif profile queue on OPENING->other_state transition am:
a362647758
am:
9681130c74
Change-Id: Ic0f7e2a5f0a82fcdfbf3769c3bf6a718ef33847e
c_sdamga [Wed, 4 Oct 2017 18:06:32 +0000 (18:06 +0000)]
Handle Disconnect request in AV Opening State handler am:
ff1b9d26ca
am:
f1e77c091a
Change-Id: I22ef0ef08ec769928ffcdb0113455af765e53d4d
Myles Watson [Wed, 4 Oct 2017 17:38:53 +0000 (17:38 +0000)]
Merge "Run clang format on files touched by CL 488398"
am:
3494410e02
Change-Id: Id4fe99fb0e84b2b5a80401c73ebc704fd4c6cb10
Jack He [Wed, 4 Oct 2017 17:37:39 +0000 (17:37 +0000)]
A2DP: Advance btif profile queue on OPENING->other_state transition
am:
a362647758
Change-Id: I322c3ef42b38106a7cb1206b7e1c02dac79c3aa5
c_sdamga [Wed, 4 Oct 2017 17:36:25 +0000 (17:36 +0000)]
Handle Disconnect request in AV Opening State handler
am:
ff1b9d26ca
Change-Id: I508456cc74a52b61ca0aadcde5d39588fcebb861
Treehugger Robot [Wed, 4 Oct 2017 17:22:17 +0000 (17:22 +0000)]
Merge "Run clang format on files touched by CL 488398"
Jack He [Mon, 2 Oct 2017 21:07:33 +0000 (14:07 -0700)]
A2DP: Advance btif profile queue on OPENING->other_state transition
* Entering BTIF_AV_STATE_OPENING is only possible through
BTIF_AV_CONNECT_REQ_EVT (initiated by us) OR
BTA_AV_PENDING_EVT (initiated by remote)
from BTIF_AV_STATE_IDLE
* If we go from BTIF_AV_CONNECT_REQ_EVT, we must have a pending
connection request in btif_profile_queue that should be advanced when
we quit BTIF_AV_STATE_OPENING state
* This CL adds a flag to indicate whether an AV connection is initiated
by us and only advance queue when it is
* Also add queue advancement in BTA_AV_REJECT_EVT and BTA_AV_CLOSE_EVT
Bug:
67317954
Test: make
Change-Id: I16dc8ebf76c6edaacb1f7a4a44e604170ff9a8b0
c_sdamga [Mon, 20 Jul 2015 13:47:04 +0000 (19:17 +0530)]
Handle Disconnect request in AV Opening State handler
Usecase:
1. Uncheck media from settings UI
2. initiate A2dp connection from remote, send AVRCP play from remote
Failure:
A2dp connection stuck in opening state.
Rootcause:
When A2dp is unchecked from settings UI and remote initiated
a2dp connection and AVRCP play, music starts streaming on DUT
since A2dp connection disconnected. As A2dp connection was not
completed, btif state stuck in opening state.
Fix:
Handled the disconnection request in the opening state
so that AV state machine moves to proper state before
processing AVRCP Play.
Test: 1. Uncheck media from settings UI
2. initiate A2dp connection from remote, send AVRCP play
Bug:
35415160
Change-Id: If1cda5b78100419fdc60c97349efafdd4a18d40c
Myles Watson [Tue, 19 Sep 2017 17:01:28 +0000 (10:01 -0700)]
Run clang format on files touched by CL 488398
https://android-review.googlesource.com/#/c/488398/
Test: build
Change-Id: Iefbd5b632087be00a12b1a0c851f9e3f3b514532
Pavlin Radoslavov [Tue, 3 Oct 2017 19:51:23 +0000 (19:51 +0000)]
Remove casts to (tBTA_GATTC*) unions to avoid unaligned accesses
am:
bd8505b73e
Change-Id: I9a84c355ec9c7c545f5c94b11a7f65f13172af42
Subramanian Srinivasan [Tue, 3 Oct 2017 19:34:55 +0000 (19:34 +0000)]
Fix adv instance validity check during suspend and resume of resolving list am:
2e08795a89 am:
e94eed5c52
am:
7f108cedef
Change-Id: I368c85ea053db84a877674735cefcfc95b77f961
Subramanian Srinivasan [Tue, 3 Oct 2017 19:32:27 +0000 (19:32 +0000)]
Fix adv instance validity check during suspend and resume of resolving list am:
2e08795a89
am:
e94eed5c52
Change-Id: Ibd32a00a857295b2ec605a22156086ed74a69a07
Subramanian Srinivasan [Tue, 3 Oct 2017 19:31:12 +0000 (19:31 +0000)]
Fix adv instance validity check during suspend and resume of resolving list
am:
2e08795a89
Change-Id: I8a0b390c60ab2ef35407931e4e6baf56cddcfd69
Subramanian Srinivasan [Fri, 29 Sep 2017 01:41:03 +0000 (18:41 -0700)]
Fix adv instance validity check during suspend and resume of resolving list
When BT is shutdown, multi advertisement instance pointer is made
null by BleAdvertisingManager::CleanUp function.
Any subsequent BleAdvertisingManager::Get function call made at
this point(eg during suspension and resumption of resolving list
activity)leads to a crash as the instance pointer is null.
Hence, use BleAdvertisingManager::IsInitialized function instead
of BleAdvertisingManager::Get function to check the validity of
multi advertisement instance.
Bug:
67325491
Change-Id: Ibbae7fa546bb52494be78eaff6d4b7b15614ab15
Pavlin Radoslavov [Fri, 29 Sep 2017 01:11:06 +0000 (18:11 -0700)]
Remove casts to (tBTA_GATTC*) unions to avoid unaligned accesses
Bug:
65381426
Test: unit tests
Change-Id: I37e89ec7187ab1c61be4c736385a9fc5ec88d737
(cherry picked from commit
b147c652e90c60daa7113933c48a465491707213)
Stanley Tng [Tue, 3 Oct 2017 16:58:40 +0000 (16:58 +0000)]
Add comments to function arrays to indicate usage am:
5af6abaf2e am:
5fe2a86efe
am:
e5f4664b3a
Change-Id: I69b305021849958bff2cd21a353557d691588e41
Stanley Tng [Tue, 3 Oct 2017 16:56:48 +0000 (16:56 +0000)]
Add comments to function arrays to indicate usage am:
5af6abaf2e
am:
5fe2a86efe
Change-Id: I9c6358f5b1f7b48302b447432cf6418658112fc2
Stanley Tng [Tue, 3 Oct 2017 16:54:52 +0000 (16:54 +0000)]
Add comments to function arrays to indicate usage
am:
5af6abaf2e
Change-Id: Ic9672ec4fe12571004355735105a0a820f2159d4
Stanley Tng [Fri, 29 Sep 2017 16:01:25 +0000 (09:01 -0700)]
Add comments to function arrays to indicate usage
No logic change. More comments are added to function arrays to indicate
how each array entry are used.
Test: Manual
Change-Id: I59283cb9786da6f3a4b8a4b36e36e79a25ca6cb8
Pavlin Radoslavov [Tue, 3 Oct 2017 14:30:31 +0000 (14:30 +0000)]
Fixed the implementation of std::equal_to<bt_bdaddr_t> am:
181144a501 am:
eb9ba99523 -s ours
am:
341d500ee4
Change-Id: I0f3d3323f3f329824e7f39dadae060b3aafe0f3e
Pavlin Radoslavov [Tue, 3 Oct 2017 14:28:01 +0000 (14:28 +0000)]
Fixed the implementation of std::equal_to<bt_bdaddr_t> am:
181144a501
am:
eb9ba99523 -s ours
Change-Id: Ib581c7f9b6474c68956de8a41efadff9f8572545
Pavlin Radoslavov [Tue, 3 Oct 2017 14:28:01 +0000 (14:28 +0000)]
Fixed the implementation of std::equal_to<bt_bdaddr_t> am:
181144a501 am:
eb9ba99523 -s ours
am:
3bab285ab1
Change-Id: Ifd0949e652fa9584015e758f61cf6ce252f8a27d
Pavlin Radoslavov [Tue, 3 Oct 2017 14:26:02 +0000 (14:26 +0000)]
Fixed the implementation of std::equal_to<bt_bdaddr_t> am:
181144a501
am:
eb9ba99523 -s ours
Change-Id: Icb88881bc68722c67ee63d70ff4cbe7b575090f6
Pavlin Radoslavov [Tue, 3 Oct 2017 05:15:41 +0000 (05:15 +0000)]
Fixed the implementation of std::equal_to<bt_bdaddr_t>
am:
181144a501
Change-Id: Ic8e35d75ebe14eccd7fd169572fe5bff39d150f6
Dan Willemsen [Tue, 3 Oct 2017 03:35:09 +0000 (03:35 +0000)]
Merge "Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]" am:
092fdf13ec am:
ae39e0abae
am:
30b7ed1ce6
Change-Id: I28fa899f57e93bc3570f0e85058caf4854aa008e
Dan Willemsen [Tue, 3 Oct 2017 03:19:05 +0000 (03:19 +0000)]
Merge "Rename target.linux[_x86[_64]] to target.linux_glibc[_x86[_64]]" am:
092fdf13ec
am:
ae39e0abae
Change-Id: I1daee4dbd08bda84bd28d41e7cf13351223eedf2
Pavlin Radoslavov [Wed, 30 Aug 2017 00:03:21 +0000 (17:03 -0700)]
Fixed the implementation of std::equal_to<bt_bdaddr_t>
Now we correctly suppress the processing of repetitive
BLE scan results.
Test: Manual with extra log messages
Bug:
65174158
Bug:
64975965
Change-Id: Ic4386c5e2fbabdc218f6ec675c5b298a7af41e5a
Merged-In: Ie0694843ad5fbd2a80b310c5f532e5e5a9548043