Quiet Hours: allow disabling of system sounds (1 of 2)

* this include touch and lockscreen sounds

Change-Id: I4b16be00ae24dafd0039834bf63f6df3ef918619
QuietHours: clean up and consolidate code

Change-Id: Ib745ba91f800489518f1c7b5d2512ba946039696
Move android-4.3_r3.1 config options

Change-Id: I9c51a13236795c18903e001a4070b7e8959b7278
Status bar brightness control improvements

- Prevent brightness changes after notifications panel has been opened.
- Don't adjust brightness for swipes <45° from vertical.
- Stop using a VelocityTracker since we weren't actually giving it any
  events to track.

Change-Id: Ie28c5c186b692e3f308bba4a1ee02faeb0982ac1
Active Display: send unlock broadcast

This will unregister the receiver and fix the memory leak.

Change-Id: Ib99c27c6ad57eaf14d7e9f1adf2a651133ed2503
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
NetStats: Use holo_blue_light as color

Change-Id: I9e1b69f694a0d5ba6d90000cab6ada7e8ac63936
NetStats: Show "MB/s" instead of only "MB"

Change-Id: I23fa4560a7551495cc4ffa5610c806d4da48f73b
NetStats: Don't update stats when screen is off

Also moved registering of broadcast receiver and settings
observer to onAttachedToWindow() and unregistering to
onDetachedFromWindow() to avoid these being leaked.

Change-Id: Ia131a0db65c4c762b7f28493e812f9fb21358a27
Active Display: Catch possible NPE during handleDismissNotification()

[log]

* AD doesn't register if notification has been cleared on different device
  (computer) so catch the NPE that would ensue

Change-Id: Ibdb7f526d2c709ebf7a888de717247b7a6114e3e
Add checkbox in recents settings to make app shortcuts in recents optional

Since some time there is a shortcut bar in recents for some selected apps.
I don't need it and it clutters the interface. Maybe somebody else likes
the shortcuts so I thought I'd just make it optional.
This is the UI part. Other part is in packages/apps/Settings with
Change-Id: I0f365616e048292e43552bcf84bf24798d6432b9
This patch needs the before mentioned patch.
I didn't find out how to make the patches depend on each other.
IPV6 tethering: Check info for null before removeUpstreamV6Interface

When tethering on dual stack networks such as verizon wireless and
sending or recieving MMS you get an null pointer exception and hard
reboot.

It starts to go wrong here:
10-14 19:11:51.375: E/Mms/smil(28035): Failed to parse SMIL document.
10-14 19:11:51.375: E/Mms/smil(28035): org.xml.sax.SAXParseException:
expected start tag notEND_DOCUMENT null@1:1 in java.io.InputStreamReader
@4192ada0

And then:
10-14 19:11:55.559: E/AndroidRuntime(23125): java.lang.NullPointerException
10-14 19:11:55.559: E/AndroidRuntime(23125):    at com.android.server.
connectivity.Tethering$TetherMasterSM$TetherModeAliveState.processMessage
(Tethering.java:1573)

Which is line 1573 of:

https://github.com/CyanogenMod/android_frameworks_base/blob/cm-10.2/services/java/com/android/server/connectivity/Tethering.java#L1573

CMD_UPSTREAM_CHANGED's message.obj can be null (line 776).

Change-Id: I13d531d398f2e33a828c6e81f25f4b2a27518d34
Trying out dark green for circle battery

Change-Id: Ia24788bfcdf7c2526b5984d561b868447256d443
Camera button support: useful features & bugfixes (1/2)

Patchset 2: fixed duplicates

Patchset 3: fixed build errors / more dupes...

Change-Id: I233fd8fbae9076284bae8a5dcce809619faa5eb3
FIXED THE BUILD....

Next time please check for duplicate strings! Thank you!

Change-Id: I0ed5d1c6d460261f1d523c87d7e3a24fbdea4054
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
Remove duplicates again..

Change-Id: Ib2e67cedd41fea706f55aa6b43a4a6733afac762
Signed-off-by: Lokesh Chamane <lokesh.c703@gmail.com>
p2p: Flush the p2p scan result on group remove event

Flush out p2p scan results on receiving group removal event.
p2p scan window will be updated on next p2p scan.

Change-Id: I3bcfed355574478bda2cac688b7df956c2701683
CRs-Fixed: 504022
Wifi: wifi not connecting, once the APN gets disabled state

APNs are disabled on select network and they are enabled on
receiving connected event.
But forgetting an APN before the connected event is received,
will result all the remaining APN to be in disabled state and
they never connect.
So, Enabling all the disabled APN on forget network will help
to connect automatically to a saved APN.

Change-Id: I6ac5e9856d6ec0b72c089b159206abd2de98e6a3
CRs-fixed: 496165
Revert "p2p: Fix for discovery failure until AP is connected in WFD client"

This reverts commit 738434a7df1cf7d0aada02e7905bdb4a51b5d3d6.

Change-Id: I4c1f061aa26077134029527dfc3e55112fed5038
CRs-Fixed: 532138
p2p:Fix for discovery failure until STA is connected to AP.

The station when connecting to AP (wifi state is either
connecting or obtaining ip address) shall stop the already
issued p2p_find on the DHCP start and start the same after
the DHCP handshake. p2p service manager shall return a failure
for any p2p_find operation during these period resulting in a
discover failure.
Address this by deferring the p2p_find issued during this period
(set mDiscoveryPostponed to true) rather than returning a failure.

Change-Id: I40b2017bf126fd0d543ada8853223402cda63e9d
CRs-Fixed: 532138
Clear the scan list when an empty list is received

When the framework receives an empty scan list from supplicant, it does
not clear the local list. So the UI will continue to show the previous
scan list even when there are no APs around. So clear the local list,
when an empty list is received.

CRs-Fixed: 552212
Change-Id: I8715bc31ce0df7bd54c96fcf7d7b73592429f12a