• Home
  • History
  • Annotate
  • only in /system/bt/packet/tests/avrcp/
History log of /system/bt/packet/tests/avrcp/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
759463fbd7df5961abc0049108e5c2c4d73f0aa1 17-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add General Reject for invalid PDU ID" into pi-dev
3fbf8b4fff8b52b781fa611e0b62c97bca28d76f 15-May-2018 tedwang <tedwang@google.com> Add General Reject for invalid PDU ID

Add Avrcp Browse General Reject packet
Respond general reject when undefined AVRCP Browsing PDU ID sent from
remote.

Bug: 79376704
Test: run host native test net_test_btpackets
Change-Id: I8a44d8e3f0cc5fac89e23217726c76ede4aff916
vrcp_test_packets.h
eneral_reject_packet_test.cc
7a866f54e0f9b2f687a4075a87258ce74c6a3d37 14-May-2018 Hansong Zhang <hsz@google.com> AVRCP: Respond UID Changed for invalid Get Item Attributes command

When we receive GetItenAttributes command with an invalid UidCounter
other than 0x0000, we should reply UID Changed (0x05)

Bug: 79270308
Test: PTS AVRCP/TG/MCN/CB/BI-05-C; unit test
Change-Id: I819991d083944de5a08b0cd4fd0fb33c63f0142a
(cherry picked from commit 335d6e62b0fe2d81375254c9c5114867d524fc19)
vrcp_test_packets.h
5e872794641b89b63176befdb04865d5acf14aa3 09-May-2018 tedwang <tedwang@google.com> Add respond Reject with Invalid parameter for Unknown Capability ID

Add handle Get Capabilities with Unknown Capability ID and unit test
for this.

Bug: 79269978
Test: Run host native test net_test_avrcp
Change-Id: I2cb606bcb6462190354bb471577d9383e43649c1
vrcp_test_packets.h
05c13ff0be3e638bbbd54786f60f3a3b17d1e1c0 04-May-2018 Ajay Panicker <apanicke@google.com> Send correct key state and ignore keys from inactive device (1/2)

Also make it clearer whether the key state is pushed or released.

Bug: 79178216
Test: Run host native test net_test_avrcp
Change-Id: I8595ac97718bcb2af8f33643df4b9c8059a1b30b
(cherry picked from commit c4546f592b943463337a260ccbbe92546832200d)
ass_through_packet_test.cc
10c628697efecba73211998334f1f9acb9b2c9b8 27-Apr-2018 Ajay Panicker <apanicke@google.com> Implement GetTotalNumberOfItems response for AVRCP Browsing

Bug: 78636552
Test: run host test net_test_avrcp
Change-Id: Ie05d23874317978eb619d0e56a89f2c880166a52
(cherry picked from commit 16aa6a075e5cbb7c97bbc639b876221038212b62)
vrcp_test_packets.h
et_total_number_of_items_packet_test.cc
85f2a3e410af221ee8732c7a34413180d11513bc 04-Apr-2018 Ajay Panicker <apanicke@google.com> Disable absolute volume if the remote device rejects registration

Instead of trying to re-register for a rejected volume changed
notification, disable absolute volume. This prevents spinning if a
remote device continuously rejects all attempts to register. A volume
level of -2 will be used to represent that the volume notification was
rejected.

Bug: 77238060
Test: Run host native test net_test_avrcp
Change-Id: I228524fb30348ca691d0792f0c7bcc4653d1fcef
(cherry picked from commit 341424a255007cf180eb7441c8d1ae256836feba)
vrcp_test_packets.h
8b6e6b8b9f8190cfbcdabb53ced727f81523d2b4 03-Apr-2018 Ajay Panicker <apanicke@google.com> Persist VFS ID's between directory changes.

Some carkits don't honor the fact that VFS ID's only are consistent to
the folder they are currently browsing. Now a UID will remain valid
until the connection ends.

Bug: 68812037
Test: Run net_test_avrcp
Change-Id: I67898277327b54eaeca2121b9ff173b22bd4ba71
(cherry picked from commit fc136d12df62cfe68d8515c1c7bb23a68abc8d6e)
vrcp_test_packets.h
hange_path_packet_test.cc
et_folder_items_packet_test.cc
7bed53df63e72be19412e6519b2f23ed2565bdae 31-Mar-2018 Ajay Panicker <apanicke@google.com> Add MTU Handling for AVRCP Packets

Bug: 77241554
Test: Run host native tests net_test_avrcp and net_test_btpacket
Change-Id: If32aa506dc8f99220ef35efeb4d77a1023767afe
(cherry picked from commit e6552097abb756fcf92c24cc0cff4d7677fb0825)
et_element_attributes_packet_test.cc
et_folder_items_packet_test.cc
et_item_attributes_packet_test.cc
bfd23f5b102278fcb0104811e7d77c8d6e3c8487 29-Mar-2018 Ajay Panicker <apanicke@google.com> Use proper media ID when changing path

Use the current media ID on the path stack to retrieve folder contents.

Bug: 77237565
Test: run host native test net-test-avrcp
Change-Id: I88d0862f76d18a071a8530cd31954447b4e180fc
(cherry picked from commit 73c975a7bcdc2f104a35e12f8a98ef6188d77a0d)
Merged-In: I88d0862f76d18a071a8530cd31954447b4e180fc
vrcp_test_packets.h
0278ba88c94e08401349b058c0047de699c4fc6e 29-Mar-2018 Ajay Panicker <apanicke@google.com> Add missing AVRCP Set Addressed Player Response

Bug: 77237301
Test: run host native tests net-test-btpackets and net-test-avrcp
Change-Id: Ic9a2c8d8cf5dd4c5be02a83975caa92e335ca2b9
(cherry picked from commit a03a7724d6600723e6bb09fbb56dd37ceb7e8f90)
Merged-In: Ic9a2c8d8cf5dd4c5be02a83975caa92e335ca2b9
vrcp_test_packets.h
et_addressed_player_packet_test.cc
a5286c718bcbef38a35f9de68991997fb1231d72 06-Mar-2018 Ajay Panicker <apanicke@google.com> AVRCP: Fix size for Register Notification Response packets

Bug: 68854188
Test: ./run_host_unit_tests.py && ./run_unit_test.sh net_test_btpackets
Change-Id: I62d864e2c27d809944f160dc45906b90cbb84f3d
(cherry picked from commit 142763fa10b721c0d51d7585fc01bf127f5b9e32)
vrcp_test_packets.h
egister_notification_packet_test.cc
2c822c94aa90b1014800633fe6f663d5598be196 22-Feb-2018 Ajay Panicker <apanicke@google.com> Add the AVRCP Device class for the AVRCP Refactor

The AVRCP Device class handles all the state tracking for each connected
device as well as handling all the different message responses.

Bug: 68854188
Test: run_host_unit_tests.py && run_unit_tests.sh net_test_avrcp
Change-Id: Ic39337eff3e404ca3c2d96f48e79948fac83d7cb
vrcp_test_packets.h
0c348413fb8d0a579acb8178c7e006d751508a3e 17-Feb-2018 Ajay Panicker <apanicke@google.com> Add packet classes needed for AVRCP Absolute Volume

Add the Register Notification Request packet as well as the
packets Set Absolute Volume packet.

Bug: 68854188
Test: run host native test net_test_packets
Change-Id: Ie0d1f1fb23254c1353b6a73529ca93e92f231ed5
vrcp_test_packets.h
egister_notification_packet_test.cc
et_absolute_volume_packet_test.cc
8f7377353db29efe0a506123deec03d70935957a 30-Jan-2018 Ajay Panicker <apanicke@google.com> Add AVRCP Browse packets to the completed packets.

Also add class representations for the following packet types:
AVRCP Browse Packet
AVRCP Change Path
AVRCP Get Folder Items
AVRCP Get Item Attributes
AVRCP Set Browsed Player
AVRCP Get Total Number of Items
AVRCP Play Item

Bug: 68854188
Test: run host native test net_test_packets
Change-Id: I0bc682b11ec9181cfe1ed92678bb869ff3ef5740
vrcp_browse_packet_test.cc
vrcp_packet_test.cc
vrcp_reject_packet_test.cc
vrcp_test_packets.h
hange_path_packet_test.cc
et_capabilities_packet_test.cc
et_element_attributes_packet_test.cc
et_folder_items_packet_test.cc
et_item_attributes_packet_test.cc
et_play_status_packet_test.cc
et_total_number_of_items_packet_test.cc
ass_through_packet_test.cc
lay_item_packet_test.cc
egister_notification_packet_test.cc
et_browsed_player_packet_test.cc
endor_packet_test.cc
341ab2befa059e859cdc67655d83bac14980ea9e 03-Jan-2018 Ajay Panicker <apanicke@google.com> Add Packet class as alternative to BT_HDR

Adds Packets, Iterators, and Packet Builders to Bluetooth to be used as
an alternative to BT_HDR.

- Packet is a base class used to pass around data. It is intended to be
immutable after creation and subclasses will implement all required
functions and their own accessor methods to retrieve data.

- Iterator provides a convienent way to traverse packet data.

- PacketBuilder is used to construct Packets. This class is should be
the only way to mutate packet objects.

Also add class representations for the following packet types:
AVRCP (Base Packet)
AVRCP Vendor Packet
AVRCP Get Capabilities Packet
AVRCP Get Element Attributes Packet
AVRCP Register Notification Packet
AVRCP Get Play Status Packet
AVRCP Reject Packet
AVRCP Pass Through Packet

Adds net_test_btpackets to run_host_unit_tests.py for pre-submit

Bug: 68854188
Test: run host native test net_test_packets
Change-Id: I0d385710178e5feb2d5089847580754ad6308709
vrcp_packet_test.cc
vrcp_reject_packet_test.cc
vrcp_test_packets.h
et_capabilities_packet_test.cc
et_element_attributes_packet_test.cc
et_play_status_packet_test.cc
ass_through_packet_test.cc
egister_notification_packet_test.cc
endor_packet_test.cc