Merge pull request #5 from XperiaSTE/bluez-5.22

Update to Bluez 5.22
smp-tester: Remove incorrect test verdicts in pair_device_complete

Since the actual PDUs transmitted are not complete and therefore do not
guarantee a successful pairing, the outcome of the tests depends on a
race of which side reaches completion first: the SMP channel expected
PDUs or the mgmt callback. This patch removes any test vedicts form the
mgmt callback since for now the expected status is either way a failure.
input/hog: Remove unnecessary variables
android/hog: Fix report lookup

This fixes not utilizing the report id to match the characteristic that
map it.
android/tester: Fix duplicate const
android/tester-pan: Make cid_data static
android/tester-hidhost: Make cid_data static
android/tester: Add HDP init test case
android/tester: Add HDP App Register test cases
android/tester: Add HDP App Unregister test case
android/pts: PTS files for MCAP

Update for PIXIT and PICS for MCAP on PTS 5.2 as well as regression
test round on Android 4.4.4 against PTS 5.2
android/a2dp: Improve avdtp_close function

With this patch avdtp_close does avdtp_abort under the hood in case
stream is not yet in OPEN state.
android/a2dp: Fix for PTS testcase

This patch is a fix for PTS TC_SRC_REL_BV_01_I
PTS expects us to CLOSE stream not to ABORT the stream when
disconnecting A2DP.
android/pts: Update A2DP test results

Updated test result for TC_SRC_REL_BV_01_I
android/tester: Fix using uninitialized variable

Fix typo not initializing variable. Silence warnings:

...
/android/tester-hdp.c: 71 in create_app()
/android/tester-hdp.c: 97 in create_app()
...
>>>     Using uninitialized value "mdep2". Field
>>>     "mdep2.mdep_description" is uninitialized.
71              reg->mdep_cfg[1] = mdep2;
...
>>>     Using uninitialized value "mdep2". Field
>>>     "mdep2.mdep_description" is uninitialized.
97              reg->mdep_cfg[1] = mdep2;
...
emulator: Fix resource leak closing fd
tools: Fix resource leak closing sk
gobex: Fix use after free

It is better not to dereference freed pointer
gobex: Fix use after free
gobex: Fix use after free

Refactor function transfer_get_req_first() to avoid use after free.