bring volume panel style inline with aospa

Change-Id: I8e39faa3815fccab6280bd8a1c4ed2c6bcaa08f7
Fix android_media_AudioSystem_getMasterMute return type.

Caused FPU stack overflow on x86.

Bug: 18023418

(cherry picked from commit c1bcdbb75877d99972f1cd13a9c40126822621bc)

Change-Id: Ia1b5a1da52b20c2e0a84321e784cd795ec649e66
Fix not to show a log with empty default ime

It'll make reboot to show a log with empty defualt ime.

Bug: 18165757
Change-Id: Ieec2532cbe003cb6307a70748a2f6c8987708eae
WallpaperManager: rather return a black bitmap from getDefaultWallpaperLocked than null

Change-Id: I686907d1f056012e1b10a5538e58634e9301d48a
view: make setWallpaperPosition() oneway

It is possible that live wallpaper can be blocked or busy when
setWallpaperPosition is called from the Launcher.  This can block the
Launcher process during scrolling, creating jank.  One
way to fix this problem is making setWallpaperPostion() oneway so the
launcher process does not wait for live-wallpaper process.  This should
not be problematic since setWallpaperPosition does not return a value.

Change-Id: I2f7883bdfd931fab8ad0459de78baaed3f13b83d
Scale down the wallpaper image if it is larger than the surface frame

Let the wallpaper can fit the screen if the wallpaper is larger.

Change-Id: Ie4116dc0386c7b390a6a71608b09645cd08ffe78
explicitly close opened streams

Change-Id: I7584e822146e4ba9b88dbae77c635408f92c7591
AndroidRuntime: stfu with the nonconditional ALOGD of useless VM lifecycle information. SRSLY.

Change-Id: Ib4068cbae72f82e7cacbffb199f25b2ad06f461b
if ITelephony is null, assume the phone is on the hook.

Change-Id: Iff423e06506a3713214ed72550c0e7c706e9e38d
TelephonyManager: can't be ringing if getITelephony() returns null

Change-Id: I21f17dfe1517a6ece267bcbf0c484162027b16b7
AccountManagerService: initialize cursors within try/finally block

Change-Id: I8368fa390e94f36fd9c65a34631f320247e5e33e
KeyguardHostView: move all user settings to observer...

... instead of reading them inline

Change-Id: I60e713927269464cc17fe396c647b9ddcef01a0c
Fixing memory leak in RenderBufferCache

In our devices with higher resolution we have observed a memory
leak in the HWUI code. When there is GC or tree modification
and buffer size is greater than the default size, we make sure
buffer is deleted.

Change-Id: Idf7052ccaf43c8a784ce0e7bdab336dca29bffd8
Signed-off-by: Samsung <aosp@samsung.com>
Clean up makefile cruft.

The build system already takes care of all these things.

Change-Id: Idef80b554e07cef5e5ed2adf1b5740a76f13ef6d
Remove MALLOC_LEAK_CHECK references.

Bug: 17378595
Change-Id: Ib9680ef97dfea6bc20d96f0bed90f4553186315c
Framework changes for moving applications to external volume

* Add static functions for retrieving external apps volume information
* Determine external apps volume using the 'externalApps' attribute in
  storage_list.xml
* Allow moving applications to an external volume regardless if the
  internal storage is emulated or not
* Check if app moving is disabled

Thanks to Pierre-Hugues Husson for identifying an issue causing the
SD card state to be incorrect (ie. SD card appearing unmounted when a
USB drive is unplugged)

Change-Id: I5561c2cf3f558b729c89663852173a532994a47a
frameworks: Add class for changing app moving setting

Change-Id: Ic9f0eed496f014fdc110946759e2041ef808e5c4
Avoid to skip app window due to un-assigned sending to bottom state while app window sort

should assign value of WindowToken.sendingToBottom according to the state of this token is moved to top or bottom
to avoid app window is skiped incorrectly due to sending to bottom state is un-assigned while app window sort
and finding focus window.

Change-Id: I190838d1d01ca229155d5176930178ab41335556
Signed-off-by: tingna_sung <tingna_sung@htc.com>
Doesn't re-sort app windows when move task to top

To avoid app window isn't moved by new task order when move task to top

Change-Id: I5f8a901bb2f20a163b7fa0a59d1dc58c1fca5f1f
Signed-off-by: tingna_sung <tingna_sung@htc.com>