History log of /system/bt/stack/sdp/sdp_server.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
e09d86b46323c25a3fa2dc8b819be6cbd2482c4d 01-Jun-2018 Jakub Pawlowski <jpawlowski@google.com> Merge "Decrease length after reading from array in process_service_attr_req" into oc-dev am: ea5db7d0dd am: 409b40eb84
am: cbda25c0fa

Change-Id: Id6152ac454552e852bdb4a87c90c7a7bb78778e4
cbda25c0fac15fc033f8d444c10eacd07d45e3c6 01-Jun-2018 Jakub Pawlowski <jpawlowski@google.com> Merge "Decrease length after reading from array in process_service_attr_req" into oc-dev am: ea5db7d0dd
am: 409b40eb84

Change-Id: I2aef62db7ff8f477c71c94573385a5ffef2b73cf
ef7dddabbd70222fa0fafc97e8562d977f550d26 30-May-2018 Myles Watson <mylesgw@google.com> SDP: Recalculate param_len after max_list_len

Bug: 78136869
Test: manual connection to an A2DP device
Change-Id: I71392cf1a70567fec957feb36768069ac5258aa1
/system/bt/stack/sdp/sdp_server.cc
6cd2e8bf6e5707e8e77e7aca6519c58200ee58db 30-May-2018 Jakub Pawlowski <jpawlowski@google.com> Decrease length after reading from array in process_service_attr_req

Test: compilation
Bug: 78136677
Change-Id: I4807a350e2b4764a93f104ce88f23a957a7e85c0
/system/bt/stack/sdp/sdp_server.cc
4705ecf66d17fc6e946a706765a85b3aa4bb72ef 07-Feb-2018 Myles Watson <mylesgw@google.com> SDP: Check p_req_end before reading from p_req am: dd856fbc4a
am: 706536e1b4

Change-Id: Ie0351ff1f97a2a584ff089f9839b31315ab92b17
dd856fbc4ade8f7d78873db3533b4c9fd7c6d612 12-Jan-2018 Myles Watson <mylesgw@google.com> SDP: Check p_req_end before reading from p_req

Bug: 69384124
Test: Connect a headset
Change-Id: Ia30c58ed39977552e5ddc21cc3c1b54c6b1d8abe
Merged-In: Ia30c58ed39977552e5ddc21cc3c1b54c6b1d8abe
/system/bt/stack/sdp/sdp_server.cc
0b10c01b3339746c660ccc0c2672f7437588b58e 12-Jan-2018 Myles Watson <mylesgw@google.com> SDP: Check p_req_end before reading from p_req

Bug: 69384124
Test: Connect a headset
Change-Id: Ia30c58ed39977552e5ddc21cc3c1b54c6b1d8abe
/system/bt/stack/sdp/sdp_server.cc
201034078a5aabb3f8014262d4e58cf394f1ba1b 12-Jan-2018 Hansong Zhang <hsz@google.com> Merge "Fix unexpected behavior in SDP" into oc-dev am: 02ee3ed2df am: dada4eefbc
am: c13a7d179c

Change-Id: Id5df3f342cf280b8041c10bd9c5192f2e19b3140
c13a7d179cca3bdeab6638ac19d317936f36df44 12-Jan-2018 Hansong Zhang <hsz@google.com> Merge "Fix unexpected behavior in SDP" into oc-dev am: 02ee3ed2df
am: dada4eefbc

Change-Id: I672f43f0f0c174aa1cb340356a7665ec8be2cfd0
5d6b1b1316afecebd939f77e3d01ab0a400e68a9 10-Jan-2018 Hansong Zhang <hsz@google.com> Fix unexpected behavior in SDP

Bug: 68776054
Bug: 68817966
Test: Bluetooth SDP still works
Change-Id: I4eef22679a313b88d7e8ec463b29dbb592c6b5b9
/system/bt/stack/sdp/sdp_server.cc
6542d34e0415384807a624daddee134cdf77858c 24-Oct-2017 Jakub Pawlowski <jpawlowski@google.com> Make copyright headers consistent with Google template; remove "(C)"
am: 5b790feeeb

Change-Id: I2caaf1d1455140ff0e2439584f2275c5ad0bb6e3
5b790feeeb211c42bf78ca3ae9c26aa30e516765 18-Sep-2017 Jakub Pawlowski <jpawlowski@google.com> Make copyright headers consistent with Google template; remove "(C)"

Test: Comment changes only; still compiles...
Change-Id: Id699a8170112f06e4a2c9f2e0f0834d1817ace4e
/system/bt/stack/sdp/sdp_server.cc
05534800a030b888eb7a260d67eb2cef5c7d1963 09-Oct-2017 Myles Watson <mylesgw@google.com> Use unary operator instead of == bool
am: b749ebde2c

Change-Id: I61a1434e9fc7f86630b514aba6e0540937a1aa4c
b749ebde2c6a55569e4e480abda3a4ee3afe2d72 07-Oct-2017 Myles Watson <mylesgw@google.com> 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
/system/bt/stack/sdp/sdp_server.cc
8a3813ef76a3784a9a5d8c10e92ffcbf4767a2fb 11-Sep-2017 Jakub Pawlowski <jpawlowski@google.com> Fix alarms being posted on wrong thread
am: be8bbd7a83

Change-Id: I6c5148be7a78329cd568f197a28c75c8093da804
47616530ceea2ea6432ffb35cd8a3fc0a56365b5 08-Sep-2017 Jakub Pawlowski <jpawlowski@google.com> Fix alarms being posted on wrong thread

Alarms from btu_bta_alarm_queue and btu_generic_alarm_queue should be
processed on the main MessageLoop thread.
Replaced obsoleted alarm_set_on_queue() alarm API with the new
alarm_set_on_mloop() API

Test: manual
Bug: 65078753
Change-Id: I54b472b39b44a6c541dbdcdad7414056d0dd4163
Merged-In: I54b472b39b44a6c541dbdcdad7414056d0dd4163
(cherry picked from commit be8bbd7a83ec8bc900fac58a03010fbcb74956c9)
/system/bt/stack/sdp/sdp_server.cc
be8bbd7a83ec8bc900fac58a03010fbcb74956c9 08-Sep-2017 Jakub Pawlowski <jpawlowski@google.com> Fix alarms being posted on wrong thread

Alarms from btu_bta_alarm_queue and btu_generic_alarm_queue should be
processed on the main MessageLoop thread.
Replaced obsoleted alarm_set_on_queue() alarm API with the new
alarm_set_on_mloop() API

Test: manual
Bug: 65078753
Change-Id: I54b472b39b44a6c541dbdcdad7414056d0dd4163
/system/bt/stack/sdp/sdp_server.cc
e776c834768bedd043ace7e5714390b61c96a248 08-Jul-2017 Pavlin Radoslavov <pavlin@google.com> Add missing continuation offset check for SDP continuation requests

Bug: 63146698
Test: External script
Change-Id: Iea52f1689dc12bfe0d4b57996f17db4bc3bd5983
Merged-In: Iea52f1689dc12bfe0d4b57996f17db4bc3bd5983
/system/bt/stack/sdp/sdp_server.cc
61a4c96fcf1b65799442f23b40f90023c78c498c 08-Jul-2017 Pavlin Radoslavov <pavlin@google.com> Add missing continuation offset check for SDP continuation requests

Bug: 63146698
Test: External script
Change-Id: Iea52f1689dc12bfe0d4b57996f17db4bc3bd5983
/system/bt/stack/sdp/sdp_server.cc
911d1ae03efec2d54c3b1b605589d790d1745488 29-Nov-2016 Myles Watson <mylesgw@google.com> Apply clang-format to the rest of the tree

find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: mma -j32
Change-Id: I6fcc9862bb7bc07c2a367ca58fef2b3cd27a6f05
/system/bt/stack/sdp/sdp_server.cc
9ca07091a1f07ea201cee0504dab6a1d7073d429 29-Nov-2016 Myles Watson <mylesgw@google.com> Reformat long comments before clang-format

Test: mma -j32
Change-Id: I86a2a4af9dcd22d675ca1f764bb2c9623d63edcc
/system/bt/stack/sdp/sdp_server.cc
ee96a3c60fca590d38025925c072d264e06493c4 23-Nov-2016 Myles Watson <mylesgw@google.com> Fix asterisks in block quotes

Remove double asterisks from block quotes.

git grep -lP '^[*][*]' | xargs sed 's/^[*][*]/ \*/' -i

Fix asterisk line lengths

git grep -l '^[ /][*]\{79,\}[*/]' | \
xargs sed -i s,"^\([ /]\)[*]\([*]\{78\}\)[*]*\([*/]\)","\1\2\3",

Test: mma -j32
Change-Id: Ie3fd375ac2f804cb0f53bf1314a005e85973b3d7
/system/bt/stack/sdp/sdp_server.cc
d7ffd64accbd50a27289a388856e56244ccbb5da 27-Oct-2016 Myles Watson <mylesgw@google.com> Remove deprecated UNUSED macro (5/5)

Include osi.h for UNUSED_ATTR.

Test: mma -j32

Change-Id: I43260669dc1f54639e46cc9620093d727ee86276
/system/bt/stack/sdp/sdp_server.cc
d35a648d39710bbc5ac59f8add85166455af5af7 27-Oct-2016 Myles Watson <mylesgw@google.com> Remove deprecated UNUSED macro (1/5)

Generated automatically with coccinelle

/* This rule matches functions with arguments
* that have an UNUSED(arg) in the body.
*/
@r1@
identifier arg;
identifier fn;
type t;
parameter list[n] P;
@@

fn(P, const t arg) { ...
UNUSED(arg);
...
}

/* This rule removes the UNUSED line, and adds
* UNUSED_ATTR to the parameter list.
*/
@depends on r1@
identifier r1.arg;
identifier r1.fn;
type r1.t;
parameter list[r1.n] r1.P;
typedef UNUSED_ATTR;
@@

fn(P,
- const t arg
+ UNUSED_ATTR GETRIDOFTHISCOMMA, const t arg
) { ...
-UNUSED(arg);
...
}

Test: mma -j32

Change-Id: Idcaadd688d669d484e557becd050e69454508f3c
/system/bt/stack/sdp/sdp_server.cc
b2a292b5d8df2f359c38b0787bc01181225a9bc9 15-Oct-2016 Pavlin Radoslavov <pavlin@google.com> Renamed most C files to C++: *.c to *.cc

Also:
- Fixed C++ related compilation errors.
- Added missing 'extern "C"' guards in some of the header files.
- Added missing LOCAL_CPP_EXTENSION to Android.mk files.
- Added-back btif/src/btif_mce.cc and bta/mce/bta_mce_* to
btif/Android.mk and bta/Android.mk respectively.
- Fixed the alphabetical ordering of the *.cc files in some
of the Android.mk files.
- Added missing Copyright header to "osi/include/list.h"
- Updated "osi/src/wakelock.cc" to use C++ std::string
instead of dynamic allocation of C-style strings.

Test: code compilation, unit tests, and A2DP streaming
Change-Id: Ia2f7215ed9df32775c701b68fc86b09875b942c7
/system/bt/stack/sdp/sdp_server.cc