Smooth Spinners: Makes the loading "spinner" animation smoother in non-holo apps

The loading "spinner" animation is quite jerky by default when the progress xml's from
drawable are called in applications that don't use the holo progress animation. The holo
"spinner" animation is already smooth by default. This makes every other "spinner"
animation smooth.

We've been changing this value in all ROM's we release, both AOSP and CM based ones
as well as stock ROM's, since it gives a more polished look to the entire system. In the past
3 years we've been using this small tweak we have not noticed anything that would
adversely affect battery life or system operations as a whole.

Change-Id: I4cc3eb90b437b0b9b8a1ea40e04bac5a664ad8c9
Another optimization of glyph cache uploads

Previously, cache textures were updated whenever mCurrentCacheTexuture was changed.
Since updating cache textures needs glTexSubImage2D call, frequent changing
of mCurrentCacheTexture (which can easily happen when an app uses lots of unique glyphs
even with precaching) caused many glTexSubImage2D calls and bad framerates.
This patch optimized isssueDrawCommand function. Consequently, changing mCurrentCacheTexture doesn't
cause glTexSubImage2D call any more and it will improve font rendering performance.

Change-Id: Id19d959fa0e69eeb2a39f83a57e311d7394586b2
Signed-off-by: Sangkyu Lee <geteuid@gmail.com>
Fix FindBugs issues

IntProperty: Infinite recursive loop
SQLiteSession: Null pointer dereference
UsbStoreActivity: Null pointer derefence
LocationManagerService: No relationship between generic parameter and method argument
ActivityManagerService: Call to equals() comparing different types
ChooseAccountTypeActivity: Possible null pointer dereference
RuimRecords: Possible null pointer derefence

Change-Id: I9d631c50c30eb98e32cca5a5085513b6904db676
fix memory leak in WebViewCore

Change-Id: Ie73d61d7273fd66fb994c0c795ef06396f007631
Fixed sizing issues with Nav keys. Edited big menu button to have equal length lines.

Patch set 2:
Also removed drawing alpha from notifications--makes notifications stand out.
Fixed big menu icon--I left out a png.

Change-Id: If122706b36f6b2848cc6e8458dccc9f0c2abfb3d

Conflicts:
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_ime.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_back_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_home.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_home_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu_big.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_menu_land_big.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_recent.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_recent_land.png
	packages/SystemUI/res/drawable-xhdpi/ic_sysbar_search.png
Revert "Fixed sizing issues with Nav keys. Edited big menu button to have equal length lines."

This reverts commit 35c988ca302a90503ce67eff2f053c82f5fe6088.
remove external process reference from ContentProviderRecord
ContentProviderRecords is removed from provider map by activity manager service
when the process hosting the content providers terminates and this causes GC
to free the content provider records but the reference to external process
using the content provider isn't cleared. Fix is to clear the reference and
unlink for death notification.

Change-Id: I078048d4314baeb0a6e9d83273fe9dbd6c707db9
Possible leak in android_emoji_EmojiFactory_newInstance

jchars is not released correctly if factory is NULL.
In addition, unnecessary string conversion removed.

Change-Id: I3ea58391dfe7a96ea6d6ae61bb0867a2d8d49fb0

Conflicts:
	core/jni/android_emoji_EmojiFactory.cpp
clean up
Allow swiping between notifications and quicksettings screens.

CS3: fix whitespace

Change-Id: If6f28de0bed5d3ffacf1fd7df6763b200d53dddd

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
Properly handle changes in phone audio focus.

Change-Id: I921651684f4369a47aa83e93010266c40be71a41
Use standard formula for calculating hwrotation

Change-Id: I12efbce4a8107a1058921e5ec4cb4b6e0ef072ab
enable market restore

Change-Id: I79067023cd1b3575bad14fae752049622d11c100
Prevent scanning during DHCP process

Wi-Fi should be in active state during the entire DHCP process, and
shouldn't go to IEEE 802.11 power save mode. If the framework requests
scan during the DHCP process, the Wi-Fi chip has to start scanning
on channels different from the current one, and going to power save
mode is a prerequisite for scan. The result directly impacts user
experience: DHCP process takes longer, and even can fail.

Change-Id: I8171388bb70072e4c42cb3c074dd955da84e494b
Avoid possible memory leaks by ensuring stream closures

Stream close() methods should always be called in finally block
to ensure we don't accidentally leak a stream.

Time to fix some old sloppy code.

Patch Set 2:
 + ensure closure of some other streams
Patch Set 3:
 + missing import java.io.IOException
Patch Set 4:
 + missing import
Patch Set 5:
 + missing ';'
 + whitespace cleanup
Patch Set 6:
 - Reverted changes to MemoryUsage (final requirement
     prevents my implentation)
 + fixed Object allocation in Root.java
Patch Set 7:
 + fixed curly bracket style violations
Patch Set 8:
 x fixed my own sloppy code :/

Change-Id: I3460b558ed5b4489296388c9a52fbb773cefd31f
REVISIT: remove some lag launching apps and improve scrolling

CHANGES:
    AbsListView:
        Clear cache when aborting previous fling
    Activity manager service:
        Reduce unnecessary locking in message handler
        Move a few locks relating to idle activities from inside
            a foor loop to outside. would rather hold until it's
            done than get stuck waiting for something else to release

Change-Id: Ie59615bfad90e3d7acd4f95367248868497e172d
F I X  WIFISERVICE  W A R M   R E B O O T

WiFi open network notification: fix potential crash

set notification broadcast to null after unregistering it

Change-Id: I0645f54aadea9d86b69b365ba7e03d2d05d795be
Signed-off-by: Roman Birg <romanbirg@gmail.com>

Conflicts:
	services/java/com/android/server/WifiService.java
Tweak "smooth spinners" so small spinner works again and attempt to make horizontal bar smoother

Change-Id: I6bb8c8c3ad3503b3c1e475aba93bf8c226dcd4f0
Performance increase in thumbnail handling

Allow for 160*120 thumbnails which is what cameras commonly
generates. The constants for the micro thumbnail were set to other
values, resulting in recalculations of the thumbnais, which
takes time.

This change only affects the maximum size of the temporary image,
when choosing whether to use the EXIF thumbnail or decoding and
downsampling the full image. Without this change, it will choose
an x16 downsampling of the full image over an x2 downsampling of
the EXIF thumbnail, after the change it will prefer the EXIF
thumbnail.

Cf the DCF specifications at http://www.exif.org/dcf.PDF,
"3.3.6. DCF basic thumbnail data structure, (C) Pixel count"

Tested by running DDMS and measuring the time required to create
a thumbnail. This was 220-280 ms prior to change, < 20 ms after.

Change-Id: I59c753493f947e920bad3fde5eeed5d49d509863
fix potential memory leak

use delete before return

Change-Id: I5449ad90bb6910f057bd825b722c9803a7343c34