ignore invlaid play position update from remote control client.

differentiate between applications that use
 the new RemoteControlClient APIs to pass a playback position but
 don't have one yet, and applications that use the legacy API and
 will never pass a position.

bug:9294855
Change-Id: I015b9ded72497464352a9fbb6a605cedfffad373
Merge "ignore invlaid play position update from remote control client." into jb-mr2-dev
Merge commit 'android-4.3_r2.1' into merge_branch

* commit 'android-4.3_r2.1':
  ignore invlaid play position update from remote control client.
Bluetooth: Added a property to have the tethering setting persist

Added a property to have the tethering setting persist, so that
in the BT on/off the value can be restored and based on the value
tethering settings will be restored/altered.

Change-Id: I814641b2150377838d55378ff06b5cd80343b35f
CRs-fixed: 506194
Merge "Bluetooth: Added a property to have the tethering setting persist"
Merge "Merge commit 'android-4.3_r2.1' into merge_branch"
Bluetooth: Query BluetoothPhoneService at BT ON.

This will allow the application to have
updated values of call states.

CRs-fixed: 506853
Change-Id: I0b1e9cdfd7ecac05062c82aa563849f49a5ae520
Bluetooth: Update the roam status.

This change makes sure that roam status
change is updated to headset immediately
instead of updating at network service state
changed.

CRs-Fixed: 503919
Change-Id: Ia5c68e2158241459f48a1718689361ad0cd6fbf8
Bluetooth: Fix to update mTetherOn with proper value.

As the mTetherOn indicates, whether bluetooth tethering
is on/off. So incoming pan(DUT as NAP Role) connection
is only accepted, if mTetherOn is set true. So mTetherOn
should be updated with proper value.

Change-Id: I31cfe4e3f3b7fd2ed1f970418f28286100d29514
CRs-fixed: 506194
Merge "Bluetooth: Fix to update mTetherOn with proper value."
Revert "Bluetooth: Fix to update mTetherOn with proper value."

This reverts commit 649ef29479c35ca92194868b4721c469b9142291.

Revert "Bluetooth: Added a property to have the tethering setting persist"

This reverts commit 205cd5db88e30bc8a7cfdfe959f58cf4e0d9c3c3.
This is is a combination of 2 commits.

Changed  the implementation via
Change-Id: Ifbe1bc4909d259e7e8e6e9801b28d974f38c5354
Bluetooth: Added  Shared Preferences to restore tethering setting

Added a Shared Preferences to have the tethering setting persist,
so that during the BT on/off the value can be restored and based
on the value tethering settings will be restored/altered.

CRs-fixed: 506194
Change-Id: I3fffbb78712f4177178531c6c202b786bfcd9d39
Bluetooth: set apk format as acceptable shareinbound types.

Adding apk format as a acceptable inbound types ,to be able
to receive these file formats from remote device.

Change-Id: I5175b634b88418b0d5c9baaedb84a48fe0d97357
CRs-fixed: 497427
Merge "Revert "Bluetooth: Fix to update mTetherOn with proper value.""
Merge "Bluetooth: set apk format as acceptable shareinbound types."
Merge "Bluetooth: Added  Shared Preferences to restore tethering setting"
Merge "Bluetooth: Update the roam status."
Bluetooth: Send proper track number

As per specification
RegisterNotification - If no track is currently selected
then return 0xFFFFFFFFFFFFFFFF in the interim response.
Changes are made to ensure return above value if play state
is not playing.

Change-Id: Ib27eeeb65fe6659178658e58eb8f875168b236df
CRs-Fixed: 519337
Merge "Bluetooth: Send proper track number"
Bluetooth: Send pairing cancel intent only if pairing in progress

This patch sends pairing cancel intent on acl disconnetion only if
pairing is in progress. Without this patch, in case there was an
ongoing pairing while acl disconnect is received for some other
device, ongoing pairing was getting cancelled un-intentionally due
to side-effects caused by dbff9ae0ebdcdf63db6c125331002dbb6f50f953

Change-Id: I859f79a8b7f196fe7617419dbbd6284a47228700
CRs-Fixed: 508911