tether: Link to legacy wifi for tiap_drv module based wlan #5

remember to add this in system.prop :
  wifi.hotspot.ti = 1
  wifi.ap.interface = tiap0

and in the frameworks overlay :
  <!-- whether Softap rely on a different interface (beware these flags can be badly understood) -->
  <bool name="config_wifi_ap_use_single_interface">true</bool>

  <!-- Dont reload the firmware via the framework, let wifi legacy and tiap_loader do that -->
  <bool name="config_wifi_ap_firmware_reload">false</bool>

Change-Id: I248d9e5c929386f5e03efa1dde6eafa56c38f5c7

Conflicts:

	services/java/com/android/server/NetworkManagementService.java
CpuGovernorService for all, optional iobusy server thread

This is not QCOM specific, enable the feature for all

- Disable easily the iowait busy feature by a flag
This sysfs ondemand feature requires kernel >= 2.6.35

- Add a DBG flag to remove the on/off spams, only keep the notifications
I/CpuGovernorService( 2332): intent action: android.intent.action.SCREEN_ON
I/CpuGovernorService( 2332): intent action: android.intent.action.SCREEN_OFF

Change-Id: Ib1b393caaa5608f54cc8525ea3657fcab0dbf7fe
Add OMAP_COMPAT and OMAP_ENHANCEMENT frameworks flags

OMAP_ENHANCEMENT is for omapzoom stuff, if required...

OMAP_COMPAT will be required soon to use the specific
wlan and omap3 codecs. (Same as CM7)

PS: We already use omap3-compat as hardware/ti/omap3
    on the defy ics version since months...

Change-Id: I7e9d9abd39b8bf5b62fa5583241eb0fcfffaba01
Force the screen-on after phone calls, ignore proximity sensor

Proximity workaround for device specific settings, this is required
on phone with a case hiding the proximity sensor, or buggy sensors.

From Quarx2k <agent00791@gmail.com> (gingerbread)

Change-Id: I5b6174d5f19ef601dd503b4dadafb3defbf2bb00
Fix sluggish to launch an app

The new trace feature/code in 4.0.4, which will dump the app stack
trace every 500ms if an app can't be launched within 500ms, is
holding the global ActivityManagerService lock unnecessarily. It
slows down the app's startup.

Change-Id: Ic0cf095c779f0e925f54e75b8cd9d5ccf6f4ed8d
From: Catherine Liu <wlcl05@motorola.com>
hwui: Allow to blacklist android applications

Add support for a local config folder with blacklisted process names
/data/local/hwui.deny/<package name>

Only enabled with "hwui.use.blacklist=true"

This system can be used easily from adb shell, without reboot
or with a setting app, like the one i use, HwaSettings

Change-Id: I436b5dd7d6bf9fd36be7e86fc9d2a174a66701ff
hack to get data connection up again (thanks to XDA User: SlugZero)
SystemUI: Fix RecentsPanel deadlock on rapidly pressing

Make sure mShwoing is false when view is not visible to
avoid deadlock.

CRs-Fixed: 380332
Change-Id: I301e24809765d47a5a2ac729790541030f328d6e
Make sure onPostExecute() is never called after cancel()
Bug #5651553

As dfined by the documentation.

Change-Id: I627a49ee000d6990b61fd64dde9b06f72cd5cbae
Always initialize AsyncTask on the main thread.

Change-Id: I039e5d6cb7157a0c8873e0d29161daf1cbda5577
Shouldn't catch Throwable in AsyncTask.

Throwable includes classes of Error that really should be fatal.

Bug: 5945222
Change-Id: I602f958396048451f404dd2306cdf5e57172acf0
Update AsyncTask documentation

Change-Id: I678506309f027bb12d0c3f42436a60611aca5d8c
Add simple caching to XML compilation

XML compilation stage will perform many (expensive) resource ID
lookups - for the same entries. Adding this simple cache can
dramatically improve performance of this stage (often a bottleneck)

Updated: fixed for Mac OS X (also tested on Windows, Linux)

back ported from http://review.cyanogenmod.com/#/c/24040/

Change-Id: I6cdbb3101b6d636deb7b6730cbeb3a4749bce7cd
Signed-off-by: Jorrit Jongma <jorrit@jongma.org>
wifi: add rx filter init to fix broken unicast/broadcast (tiwlan)

- rx filters were broken for older tiwlan driver that expects
  unicast and broadcast filters to be added
- after an UPnP app was started (causing rx filtering enabled),
  both unicast and broadcast data packets were being dropped till
  wifi driver restart
- TODO: this should be better done directly in the driver code, but
  I haven't seen a clean way how to do it, so it's done in framework
  for now

Change-Id: I061eb8b231b8f158cf0ccbee637f2a4e6331b1fb
Wifi: Fix the resume problem, jb patch is not enough (squashed)

Change-Id: I721d25a3d2de7794c80cc69114bdde83a8f40214
wifi: trace power mode

Change-Id: I58ffcbca2f401783c541093bd36f897e3ce341fd
reduce PB size from 2MB to 512KB (omap3 variant)

this allows us to enable h/w acceleration on low-end
devices while keeping memory usage down.

Change-Id: If2b79fe7dead3a1ec1739d0f28eb9e19b83d138b
Frameworks-base: Fix wifi-sleep-policy

Without this patch, the wifi sleep policy don't stop. Wifi
keeps turned on after the screen is off, no matter what I choose in
Settings.

Solves this issue:
http://code.google.com/p/android/issues/detail?id=23211

Change-Id: I3942827db00bd448827390bbc6ca31673d8e3397
Frameworks-base: Fix wifi-sleep-policy #2

Without this patch, the wifi-sleep-policy don't stop wifi. Wifi keeps turned on after the screen is off, no matter what I choose in Settings.

Taken from jelly-bean:
https://github.com/CyanogenMod/android_frameworks_base/commit/f48fb85a8c4f72ec08b98f15ec3d9c70c247de7d

Solves this issue:
http://code.google.com/p/android/issues/detail?id=23211

Change-Id: I3942827db00bd448827390bbc6ca31673d8e3397
enable bandwidth control: ignore the iptables errors

Change-Id: I2f85c8d93482b7c03631db810bc25d402164701c