android/tester: Fix wrong state comparison in A2DP and AVRCP tests

btav_connection_state_t and btav_audio_state_t enum values are wrongly
stored in different enum type(bt_state_t state).
android/tester: Add AVRCP GetPlayStatus test case
android/tester: Add AVRCP RegNotifTrackChanged test case
android/tester: Add AVRCP GetElementAttributes test case
obexd/mas: Handle register notification open

Changes made to handle method open for mime_notification_registration
shared/gatt-db: Fix use of INT_TO_PTR for handles

This make use of UINT_TO_PTR since handles are uint16_t.
lib: Update company identifiers
android/pts: Update GAP PICS and PIXIT

This updates PICS and PIXIT setup for PTS 5.3.0.4
android/pts: Update GAP results

Some cases were disabled due to updated PICS setup (mostly Privacy Feature 1.0)
Revert "core: Fix unnecessary calls to agent_cancel()"

agent_cancel calls are necessary since agent_unref only call it in case
the last reference is dropped.
shared/hfp: Fix memory leak

Free fmt allocated by asprintf().
unit/test-hfp: Fix wrong check
tools/mcaptest: Add missing mainloop quit

MCAP test should quit from main loop if mcl disconnects or if can't
create mdl, mcl. Tested with PTS 5.3 test cases.
android/handsfree: Add helper to check codec negotiation support

This patch adds helper to test if codec negotiation is supported.

This patch fixes also logic behind that. So far we assumed that codec
negotiation is there if HFP HF does support it, even HFP AG does not
support it. It cause a problem with e.g. SLC creation in scenario where
HFP AG is not supporting codec negoctiation. In such a case we
incorrectly reply with ERROR on AT+CIND? because we incorretly expected
AT+BAC before that command. Issue found on UPF.
hciattach: bcm43xx: Use final baudrate to download the firmware

Speed up bcm43xx init by setting the final baudrate before firmware
download.
shared/att: Fix memory leak

This fixes the following backtrack when running test-gatt:

104 (40 direct, 64 indirect) bytes in 1 blocks are definitely lost in loss record 58 of 63
   at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x405E59: bt_gatt_exchange_mtu (gatt-helpers.c:477)
   by 0x4082D5: bt_gatt_client_new (gatt-client.c:1196)
   by 0x4030AB: create_context.constprop.4 (test-gatt.c:230)
   by 0x4032A5: test_client (test-gatt.c:320)
   by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x402A41: main (test-gatt.c:452)
shared/att: Fix another memory leak

In case of bt_att_cancel_all before resetting destroy callback to NULL
it needs to be called so the requestor can properly free the resources:

104 (40 direct, 64 indirect) bytes in 1 blocks are definitely lost in loss record 47 of 55
   at 0x4C291D4: calloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
   by 0x408359: bt_gatt_exchange_mtu (gatt-helpers.c:479)
   by 0x405345: bt_gatt_client_new (gatt-client.c:1196)
   by 0x401A4B: test_client (test-gatt.c:198)
   by 0x4E9E5E0: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9E7A5: ??? (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x4E9EB1A: g_test_run_suite (in /usr/lib64/libglib-2.0.so.0.3800.2)
   by 0x40162E: main (test-gatt.c:265)
Remove unused g_attrib_set_debug function

This function is not used, and also not implemented.
attrib: Remove MTU-probing code

Probing for the MTU using bt_io is problematic for
testing because you cannot impersonate AF_BLUETOOTH sockets
with a socketpair.
shared/io: Remove disconnect handler in io_destroy

Diconnect callback may be called after destroying IO in next
mainloop iteration (it leada to reading freed data). Removing
disconnect handler prevents that situation.