Add a new top-level setting for car/desktop dock settings.
Sub menu contains one item - Audio (settings)
Sub text for Audio shows current docked status and launches either the
audio settings or a dialog saying that you're not docked and you need to
buy a new dock from Google (kidding).
This mainly changes the way both enablers react to the airplane mode. Now
enablers show a toast message instead of disabling the check box directly. This
avoids the inconsistent state introduced by WirelessSettings which controls the
check box using layout dependency.
Related bug: 2053751
Merge commit 'd69a5ee28cb5164233805a751a7c3deafba58668'
* commit 'd69a5ee28cb5164233805a751a7c3deafba58668':
b/2367020 Enable bt profiles by default for car dock.
Settings.System.AIRPLANE_MODE_TOGGLEABLE_RADIOS is a list of
radios that can be toggled while in airplane mode. This CL
changes BluetoothEnabler to respect this.
It parallels the logic in WifiEnabler, which enables OEMs
to allow Wifi changes when in airplane mode.
Most existing devices don't include "bluetooth" in the
toggleable list, which means bluetooth will continue to be
disabled when in airplane mode for those devices.
Fixes http://b/2297314
Merge commit 'f4ec356df960245889da6f7518ec28c862ebf5e6'
* commit 'f4ec356df960245889da6f7518ec28c862ebf5e6':
b/2318290 connect should be called instead of connect(profile) if device is unpaired.
Merge commit 'fcea8c0d131e019e4441fa239720a5e4ecf9ed7d'
* commit 'fcea8c0d131e019e4441fa239720a5e4ecf9ed7d':
b/2334482 Disable Music and audio by default for the docks
Merge commit '483deed6f3d91329d02bb37af64f032e4eaa3621'
* commit '483deed6f3d91329d02bb37af64f032e4eaa3621':
b/2323277 Fixed race condition where the user clicks on the dialog before dismiss() is processed.
Bug: 2325451.
This change also improves the UI by returning an empty drawable of the appropriate
size to make sure all labels line up correctly in the list.
Merge commit '052ad24219bbb170d9d028a460741524a768915a' into eclair-mr2
* commit '052ad24219bbb170d9d028a460741524a768915a':
b/2323277 Fixed race condition where the user clicks on the dialog before dismiss() is processed.
Merge commit '0a0225418366e4502e18e414e71a04d575b1a47e'
* commit '0a0225418366e4502e18e414e71a04d575b1a47e':
b/2320107 NPE when receiving a Undock event without a device
Merge commit '362d5b17c0ff8f8f7207bbdec9c952d19c83b3be'
* commit '362d5b17c0ff8f8f7207bbdec9c952d19c83b3be':
b/2320107 Fixed NPE for class bits. Docks do not have class bits.
Merge commit '9463c2f8d5f09ef9cc015405640bbf845f0f7a8a' into eclair-mr2
* commit '9463c2f8d5f09ef9cc015405640bbf845f0f7a8a':
b/2320107 NPE when receiving a Undock event without a device