Move 'Swap volume buttons' option to 'Buttons' menu

- no one would expect to find a volume buttons option under
  Settings>Display & Lights>Rotation
- other volume buttons options are already under Settings>Buttons
- the feature actually does not depend on 'Auto-rotate screen' option,
  it depends on screen orientation which can change also by other
  means than sensor driven auto rotation - orintation change enforced
  by top app, by dock, by keyboard slide...
- title changed to 'Reorient volume buttons' (to hint at orientation)

Change-Id: I8c03c885c6f2c9ef8d23561b0a3a1a6019512c6e
(cherry picked from commit 5c45f69b9a14dc30937697ef0d4b803e15cca31e)
Camera button support (2/2)

Add new bitmask for Camera button and options to rebind
its functionality.

Change-Id: I803d3b99adcdd6f2d9de15091709fc8c783ed5de
(cherry picked from commit e65e6ca83a97e02185d2bc6fafc1d7ecc777719b)
Settings: Use meaningful titles for gamma controls

There is good anecdotal evidence that the values we modify relate
to specific modifications (contrast, brightness, saturation and the
like) of the display, this change allows us to define descriptive
headings.

Change-Id: I2935924fd86f13e95b919e7b7c7a0bc931ac50bb
(cherry picked from commit feedeef192b6f11b301b2e5abf43e944379f884c)
Add missing variables for camera button handling

Change-Id: I40abd4344800e8cf61285923cc1fac9ba39d652c
(cherry picked from commit cde6aea9e25a4345bb2375d41bd9dd7f04ffdda4)
Camera button support: fix FC

Fixed a typo in xml which caused Settings FC.

Change-Id: I0c01d03cc8effde9d8422e091a7389dcbb59ffa5
(cherry picked from commit 2740d6eb89c1e4a4d535d6621506eabd68703fae)
Camera button support: fix another ^C^V fail

Yes, that was merged way too fast...

Change-Id: I88243887446876de39e79020e6d8fecc6351bdde
(cherry picked from commit fa8abf9ef5145982be356ba72f0a26a42c7470ac)
Bluetooth: Remove out of range devices after ScanComplete

Change to remove device from UI when Bluetooth of remote
device is off or not discoverable anymore. Without this
change a device that discovered previously is available
in available devices list always, though the remote device
is not discoverable anymore. The current change updates
available devices list on scan complete removing the
devices that are available in cached devices and are not
disvorable anymore.

This reverts commit 1b652eb600ad7b4a769ad495bbb7eb4c6ab82fb2.

CRs-Fixed: 523374
Change-Id: Ia250d52e6fb7a69af242c961d33027f1e724ab25
(cherry picked from commit bb15c7fa7cc7c807fadf6f2654f3ee53e5bb5e55)
Bluetooth: Security: Add Null check during pairing cancel intent.

Added null check, so before posing event we can restrict events,
if cached device list is empty

Change-Id: I458d181abe5eec2497b80b1713ddbc3502b79786
CRs-Fixed: 546364
(cherry picked from commit b35e6ebe0defc8fb9b97826473d0a36fd59bdfda)
Bluetooth: SAP: Add SAP profile support in Settings APP

This change consists of:,
 16 digit Authentication
 SAP profile connection status changes
 SAP Disconnect from server related changes

Change-Id: I57870a75c30e03b3c244d56e9b55a1367490bfc9
(cherry picked from commit 7b9271f787897130607ec741bca80c7681fd174d)
Fix crash if HW tuning framework isn't present.

Change-Id: I0128d57a5a46e87fe414a2682847ff877d8b1428
(cherry picked from commit 3a841e2c6a274c157e3b7bb257168d467ed7aaab)