Revert "Increase size of the tablet status bar settings"

This reverts commit 5316e632cc182dea7acaa999bb090cb6dc3552d7.

Change-Id: Ia77338410dc140432e50032c70833b434a0dc399
Frameworks/SystemUI: Hide expanded dialog when screen is off

Hide the expanded dialog while screen is off. Otherwise it
causes continuous buffer updates to SurfaceTexture
even when SCREEN is turned off and while In-Call causing a
spike in power consumtion. This fix ensures that the
power consumption is kept to a minimum in such a scenario.

CRs-Fixed: 339815

Change-Id: Ib9154528d4f88ba12ca234be7f929a61ed098be7
Bugfix : Expanded volume overlay

If you switch to the Expanded volume overlay
(Settings > Sound > Volume panel)
from any of the other settings that are not expanded
then the Expanded overlay appears collapsed.

The only way to make it appear expanded is to restart the framework
or
In the Expandable view - expand the volumes - then immediately change.

This patch fixes this and also has a slight improvement in the
case where a user selects the same choice they have already.

Change-Id: I9264ce62e239f497e0a2924c6769f066f196ebeb
Sensor: Add RotationVectorSensor2

Some ICS apps (namely, Google Maps) expects a rotation vector to be
available. Newer devices, this is provided by either Android's
sensor fusion (requires Gyro) or by hardware sensor fusion (MPL).

Older devices will lack this virtual sensor and compass in Google
Maps will not work. To fix this, we can provide our own rotation
vector sensor by converting the values from the orientation sensor.
(They are basically the same information in different formats.)

Thanks to Unhelpful for the help with related math.

Change-Id: I596f5dc44f8797bc280ae5d1e110bb92387c79d1
surfaceflinger: Enable dithering if persist.sys.use_dithering=1

* fixes color banding
* needs reboots after changed (caches variable for performance)

Change-Id: I66de607b149ec4e01967febeec234ef2994d20a4

Conflicts:

	services/surfaceflinger/SurfaceFlinger.cpp
Look at persist.sys.vm.heapsize as well as dalvik.vm.heapsize.

Change-Id: I184fd6d95be0b93f7fbd5c6057b0634a1f93ea08
Support Audio ogg type in Multimedia message

Change-Id: If9dcd59da854df64ea2ac25ed97309b7600e6421
Signed-off-by: Sang-Jun Park <sj2202.park@samsung.com>
Revert "Look at persist.sys.vm.heapsize as well as dalvik.vm.heapsize."

This reverts commit 02430168775fb9289e4a017513396baf8ef60277.

Change-Id: I666b35a0c82a8db4b6a235cad3c4be71b5f599cc
Reduce Call Answer Delay

This patch sets a boolean acceptingIncomingCall to true on
acceptCall.  In setAudioMode, we set the mode as IN_CALL if the call is
ringing and acceptingIncomingCall is true.  This initializes the
microphone sooner, and should reduce the microphone delay.

Not sure if this is the best way to do this, but this reduces call
delay to under a second for me.  I thought I might as well upload it so
others could have a look at it.

Change-Id: Ied21acb81c8447fc9949cecf861c0be4ca67ebb0
Base Framework: Added more characters to CharacterPicker

Change-Id: If3fcdddec74474ce40e1cbe3c32c20d4707955e2
Corrected error in screen backlight level
This allows for backlight to decrease when changing to dimmer location
when phone is not connected to a dock.  Previouos setting had reversed.

Change-Id: I3f9e44dec8e3deb9ecb2aeb0f775383bbd7b3d57
LCD Brightness - continued change to allow lcd dimming in both docked
and undocked modes.  It does not make sence to not allow screen to dim
in either instance.
Better options are welcome.

Change-Id: I501ec96fce64b9629a198ab713858eabee602600
Bring back LCD disable brightness decrease

This reverts commit 5a63233c9ca4f7aa2e57c776fb275e5c3d78d2ff
and b1b664a242ea311c7a96d7e614cc95799aa0b8b3

Patch Set 2: Do not change default LIGHT_DECREASE setting

Change-Id: I17616d17c86a2954d5c530c356b0541af5664ad5
framework: fix screenshot and rotation aimation for devices with abnormal hw rotation

Change-Id: I42694931cb1a754aa6c7652c0a96304ef1f88492
Get SoftAP interface from wifi.ap.interface prop

Change-Id: I27ca6abd1abd82be859829c9a0dce93687e57268
audioflinger: Optimze ditherAndClamp with ARM NEON

Change-Id: Ifc436e39f15b103cec404e8a81fa8b8a6b5f0e5f
tethering: Tolerate socket exception from ifindex look-up

The code already handles the case of internalNetworkInterface being null,
but this would never happen since it throws an exception if
NetworkInterface.getByName(internalInterface) fails. Catch the exception
and continue processing.

This is needed with some older usb gadget code which don't populate
/sys/class/net/usb0/.

Change-Id: I15adead7835ff3a4f77f87175ac85c5d9f45f9c0
Bluetooth: Fixed memory leak and file handles leak

After next pairing operation with same Bluetooth device
previous BT state machine never stopped, but new one is created.

Change-Id: Ic707d0b72fd98dc1cd9b485f337b7b6fb5a4e826
Signed-off-by: Anatolii Shuba <x0158321@ti.com>
Fix Force Close when enable airplane mode

In GSMPhone handler for message EVENT_RADIO_OFF_OR_NOT_AVAILABLE,
the for loop was trying to remove all pending MMI code starting
from the index 0 of the ArrayList mPendingMMIs. When mPendingMMIs
has more than 1 item in the list, after the 1st one in the list was
removed, the rest in the list were shifted. The 2nd one became 1st.
Assume the list size is 2, if now the for loop goes to index 1,
access to mPendingMMIs.get(1) will result a null pointer access,
and cause a Force Close.

To fix it, make the for loop to begin with the last one in the
ArrayList mPendingMMIs.

Change-Id: I3e60086186851b1d6c10fefdb086aa0ae3e16048
frameworks/base: Added property to disable Camcorder/Camera sounds

Change-Id: I05d7da1d639529f21e06da09b07c87597c4f1029