Loading system/vendor_libs/test_vendor_lib/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,8 @@ cc_test_host { "test/async_manager_unittest.cc", "test/bt_address_unittest.cc", "test/packet_stream_unittest.cc", "test/l2cap_test.cc", "test/l2cap_sdu_test.cc", ], local_include_dirs: [ "include", Loading system/vendor_libs/test_vendor_lib/include/l2cap_packet.h +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ class L2capPacket { // Construct a vector of just the L2CAP payload. This essentially // will remove the L2CAP header from the private member variable. // TODO: Remove this in favor of custom iterators. std::vector<uint8_t> get_l2cap_payload() const; uint16_t get_l2cap_cid() const; Loading system/vendor_libs/test_vendor_lib/include/l2cap_sdu.h +3 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,9 @@ class L2capSdu { // Returns a completed L2capSdu object. L2capSdu(std::vector<uint8_t> create_from); // Adds an FCS to create_from and returns an L2capSdu object static L2capSdu L2capSduBuilder(std::vector<uint8_t> create_from); // Get a vector iterator that points to the first byte of the // L2CAP payload within an SDU. The offset parameter will be the // number of bytes that are in the SDU header. This should always Loading Loading
system/vendor_libs/test_vendor_lib/Android.bp +2 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,8 @@ cc_test_host { "test/async_manager_unittest.cc", "test/bt_address_unittest.cc", "test/packet_stream_unittest.cc", "test/l2cap_test.cc", "test/l2cap_sdu_test.cc", ], local_include_dirs: [ "include", Loading
system/vendor_libs/test_vendor_lib/include/l2cap_packet.h +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ class L2capPacket { // Construct a vector of just the L2CAP payload. This essentially // will remove the L2CAP header from the private member variable. // TODO: Remove this in favor of custom iterators. std::vector<uint8_t> get_l2cap_payload() const; uint16_t get_l2cap_cid() const; Loading
system/vendor_libs/test_vendor_lib/include/l2cap_sdu.h +3 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,9 @@ class L2capSdu { // Returns a completed L2capSdu object. L2capSdu(std::vector<uint8_t> create_from); // Adds an FCS to create_from and returns an L2capSdu object static L2capSdu L2capSduBuilder(std::vector<uint8_t> create_from); // Get a vector iterator that points to the first byte of the // L2CAP payload within an SDU. The offset parameter will be the // number of bytes that are in the SDU header. This should always Loading