OSDN Git Service

android-x86/frameworks-base.git
9 years agoUpdate asan/app_process.
Evgenii Stepanov [Thu, 7 May 2015 17:55:59 +0000 (10:55 -0700)]
Update asan/app_process.

Build both 32 and 64-bit versions and don't limit it to eng.

Change-Id: I5d6cc8005291100d5fe0f1385e8a0b4ba5f4d630

9 years agoMerge "Frameworks/base: Fix null-pointer access"
Andreas Gampe [Thu, 7 May 2015 15:47:29 +0000 (15:47 +0000)]
Merge "Frameworks/base: Fix null-pointer access"

9 years agoMerge "Fix setting hotspot bounds in a drawable container"
Dan Albert [Wed, 6 May 2015 22:49:31 +0000 (22:49 +0000)]
Merge "Fix setting hotspot bounds in a drawable container"

9 years agoMerge "Don't use stlport."
Dan Albert [Wed, 6 May 2015 19:53:39 +0000 (19:53 +0000)]
Merge "Don't use stlport."

9 years agoDon't use stlport.
Dan Albert [Wed, 6 May 2015 19:49:09 +0000 (12:49 -0700)]
Don't use stlport.

Bug: http://b/15193147
Change-Id: I8afa633d2c100393e5501553ea389d71a2701c8d

9 years agoMerge "optimize wallpaper load,avoid show black wallpaper."
Michael Wright [Wed, 6 May 2015 15:35:46 +0000 (15:35 +0000)]
Merge "optimize wallpaper load,avoid show black wallpaper."

9 years agooptimize wallpaper load,avoid show black wallpaper.
longyu.huang [Wed, 6 May 2015 08:46:23 +0000 (01:46 -0700)]
optimize wallpaper load,avoid show black wallpaper.

[Preconditions]
open auto-rotate

[Procedures]
1.enter Contacts app, and rotate 90 degrees to the right
2.press power key to lock screen,and unlock
3.rotare 90 degrees to the left and exit Contacts app
4.the wallpaper will be black first,then show the really wallpaper

9 years agoMerge "Remove all_modules's dependency on keymaps validation."
Ying Wang [Tue, 5 May 2015 23:32:48 +0000 (23:32 +0000)]
Merge "Remove all_modules's dependency on keymaps validation."

9 years agoRemove all_modules's dependency on keymaps validation.
Ying Wang [Tue, 5 May 2015 23:12:41 +0000 (16:12 -0700)]
Remove all_modules's dependency on keymaps validation.

With this we won't try to run validatekeymaps.exe when you run
"USE_MINGW=1 mma".
Also it seems it's too much to run the validation for every mma/mmma.
Validation in just platform build (droidcore) should be enough.

Change-Id: I22431009d4c2dd765bbd14b24eb5c8729b53d6c1

9 years agoFix setting hotspot bounds in a drawable container
Alexander Martinz [Tue, 5 May 2015 22:44:24 +0000 (00:44 +0200)]
Fix setting hotspot bounds in a drawable container

We are passing the wrong parameters for setting hotspot bounds.
Bottom and right are in the wrong order, correct it.

Change-Id: I2762fc3a4c29f05ba8b7e71a5c6cad0be16c2ae0

9 years agoMerge "Fix Allocation-less launches"
Jason Sams [Tue, 5 May 2015 21:57:26 +0000 (21:57 +0000)]
Merge "Fix Allocation-less launches"

9 years agoMerge "Overhaul of the RenderScript reference documentation."
Jean-Luc Brouillet [Tue, 5 May 2015 21:31:13 +0000 (21:31 +0000)]
Merge "Overhaul of the RenderScript reference documentation."

9 years agoMerge "Fix binder force gc will block binder thread"
Hiroshi Yamauchi [Tue, 5 May 2015 18:58:21 +0000 (18:58 +0000)]
Merge "Fix binder force gc will block binder thread"

9 years agoMerge "Remove unused aapt target."
Chih-Hung Hsieh [Mon, 4 May 2015 23:36:22 +0000 (23:36 +0000)]
Merge "Remove unused aapt target."

9 years agoRemove unused aapt target.
Chih-Hung Hsieh [Mon, 4 May 2015 21:10:13 +0000 (14:10 -0700)]
Remove unused aapt target.

BUG: 20765163
Change-Id: I13f36f76541216c5c1c20ae8866e09038e08e6f8

9 years agoMerge "Sanity checks in JNI code for closure creation"
Yang Ni [Mon, 4 May 2015 22:02:44 +0000 (22:02 +0000)]
Merge "Sanity checks in JNI code for closure creation"

9 years agoMerge "Fix NPE in JobServiceContext when closing job."
Chris Tate [Sat, 2 May 2015 01:29:44 +0000 (01:29 +0000)]
Merge "Fix NPE in JobServiceContext when closing job."

9 years agoSanity checks in JNI code for closure creation
Yang Ni [Thu, 30 Apr 2015 23:13:54 +0000 (16:13 -0700)]
Sanity checks in JNI code for closure creation

b/20728113

In case the requested size for memory allocation overflows, or memory
allocation fails.

Change-Id: I8dac132dd4d0210938660ffbb82cbe44000d2a90

9 years agoFix binder force gc will block binder thread
mark_chen [Fri, 20 Mar 2015 08:03:55 +0000 (16:03 +0800)]
Fix binder force gc will block binder thread

Symptom: Force gc caused activity launch time took longer
Root Cause: Runtime.getRuntime().gc will block binder thread
Solution: Use VMRuntime.requestConcurrentGC() will not block binder
thread

Bug: 20554807
Change-Id: I48a103c8241c4c85ced4d9a0b231d9f1dc200f35

9 years agoMerge "Look at map extensions before /dev/ + ashmem."
Mathieu Chartier [Fri, 1 May 2015 20:18:06 +0000 (20:18 +0000)]
Merge "Look at map extensions before /dev/ + ashmem."

9 years agoLook at map extensions before /dev/ + ashmem.
Mathieu Chartier [Fri, 1 May 2015 18:30:22 +0000 (11:30 -0700)]
Look at map extensions before /dev/ + ashmem.

Prevents stuff like:
dalvik-classes.dex appearing as GC overhead.

(cherry picked from commit 9308462a5972192a1ad9abd01b36e1ad545eef99)

Bug: 20752953
Change-Id: Iab0935e882a5d938651ec2581845d8242aaf98af

9 years agoOverhaul of the RenderScript reference documentation.
Jean-Luc Brouillet [Fri, 24 Apr 2015 22:59:02 +0000 (15:59 -0700)]
Overhaul of the RenderScript reference documentation.

This CL replaces the Doxygen generated documentation by one that's created
by our internal tool found in framework/rs/api.  The big advantages:

- Can handle overloaded functions.  Doxygen could not and RenderScript has many.
- Can have version information.
- Can match the look of the Java documentation.
- Cleaner look and no leaking of internal paths.

This CL also include changes introduced by the L release which was missing
previously.

Change-Id: I5ff712cb6dc9993a93cb3c356602825fdfc8d81e

9 years agoMerge "Adjust display inversion matrix to account for luminance"
Dan Stoza [Thu, 30 Apr 2015 19:36:24 +0000 (19:36 +0000)]
Merge "Adjust display inversion matrix to account for luminance"

9 years agoFix NPE in JobServiceContext when closing job.
riddle_hsu [Thu, 30 Apr 2015 17:52:58 +0000 (01:52 +0800)]
Fix NPE in JobServiceContext when closing job.

Disconnect may come after job is canceled.
Add a finished state to avoid cleanup finished job again.

Real case:
http://code.google.com/p/android/issues/detail?id=170814

Change-Id: I9c7a1b944a8393e30396f473ebeb8332e51f21f1

9 years agoMerge "Fix no vibration during shutdown."
John Spurlock [Thu, 30 Apr 2015 12:22:38 +0000 (12:22 +0000)]
Merge "Fix no vibration during shutdown."

9 years agoAdjust display inversion matrix to account for luminance
Alan Viverette [Wed, 29 Apr 2015 00:30:04 +0000 (17:30 -0700)]
Adjust display inversion matrix to account for luminance

Bug: 20346301
Change-Id: I10633705f2bfddbdeec063f9489a4f8679b9e8ee
(cherry picked from commit 6437518061fc8718590e0272ed17ea64710d2299)

9 years agoMerge "Add a static dependency on libbase."
Narayan Kamath [Wed, 29 Apr 2015 14:09:03 +0000 (14:09 +0000)]
Merge "Add a static dependency on libbase."

9 years agoAdd a static dependency on libbase.
Narayan Kamath [Tue, 28 Apr 2015 08:23:26 +0000 (09:23 +0100)]
Add a static dependency on libbase.

Used by libziparchive.

Change-Id: I120494b620c72b36a725b01f1f274f5dc862a9a3

9 years agoMerge "Add missing error codes from keymaster_defs.h."
Shawn Willden [Wed, 29 Apr 2015 04:30:17 +0000 (04:30 +0000)]
Merge "Add missing error codes from keymaster_defs.h."

9 years agoMerge "Context leaks in EditText causes out of memory"
Alan Viverette [Wed, 29 Apr 2015 04:19:38 +0000 (04:19 +0000)]
Merge "Context leaks in EditText causes out of memory"

9 years agoMerge "Fix build"
Mathieu Chartier [Tue, 28 Apr 2015 23:45:25 +0000 (23:45 +0000)]
Merge "Fix build"

9 years agoFix build
Mathieu Chartier [Tue, 28 Apr 2015 23:43:57 +0000 (16:43 -0700)]
Fix build

Change-Id: Ie056247ee9c4ae7693f3f5f5f68d4322546ee61a

9 years agoMerge "Properly describe exception"
Mathieu Chartier [Tue, 28 Apr 2015 23:40:31 +0000 (23:40 +0000)]
Merge "Properly describe exception"

9 years agoProperly describe exception
Mathieu Chartier [Tue, 28 Apr 2015 23:30:30 +0000 (16:30 -0700)]
Properly describe exception

Previously we used DetachCurrentThread which raised a SIGABRT from
within ART. The new approach is to use ExceptionDescribe and exit.

Bug: 20640601
Change-Id: Ia6c2345b656b2ada29d262399798a6ed717a7f85

9 years agoMerge "Add OP_AUTH_NEEDED KeyStore result code"
Chad Brubaker [Tue, 28 Apr 2015 20:34:29 +0000 (20:34 +0000)]
Merge "Add OP_AUTH_NEEDED KeyStore result code"

9 years agoMerge "Fix for infinite loop in RemoteViewsAdapter"
Alan Viverette [Tue, 28 Apr 2015 17:10:40 +0000 (17:10 +0000)]
Merge "Fix for infinite loop in RemoteViewsAdapter"

9 years agoMerge "Sometimes the application context is null"
Marco Nelissen [Tue, 28 Apr 2015 15:26:52 +0000 (15:26 +0000)]
Merge "Sometimes the application context is null"

9 years agoMerge "Fix NPE in Bundle#hasFileDescriptor on null-valued SparseArray"
Narayan Kamath [Tue, 28 Apr 2015 08:32:55 +0000 (08:32 +0000)]
Merge "Fix NPE in Bundle#hasFileDescriptor on null-valued SparseArray"

9 years agoFix NPE in Bundle#hasFileDescriptor on null-valued SparseArray
Taiju Tsuiki [Tue, 28 Apr 2015 04:36:15 +0000 (13:36 +0900)]
Fix NPE in Bundle#hasFileDescriptor on null-valued SparseArray

Add a null check for each values of SparseArray in Bundle#hasFileDescriptor
to avoid NullPointerException.

Change-Id: I43ecc01f2759ccbe85b902fa118d55cb74ebf38b

9 years agoMerge "Fix NullPointerException in Bundle#hasFileDescriptors"
Narayan Kamath [Tue, 28 Apr 2015 08:29:09 +0000 (08:29 +0000)]
Merge "Fix NullPointerException in Bundle#hasFileDescriptors"

9 years agoFix NullPointerException in Bundle#hasFileDescriptors
Taiju Tsuiki [Wed, 22 Apr 2015 07:59:00 +0000 (16:59 +0900)]
Fix NullPointerException in Bundle#hasFileDescriptors

Add null check for array elements in Bundle#hasFileDescriptors to avoid NPE on
null valued array.

Change-Id: Ic6ef8864ca6add023c7a69ba3c9474b0f6291723

9 years agoAdd missing error codes from keymaster_defs.h.
Shawn Willden [Tue, 28 Apr 2015 06:05:03 +0000 (00:05 -0600)]
Add missing error codes from keymaster_defs.h.

Bug: 20127433
Change-Id: I32eab62459003c526d3cf9ef108be7b2fd709960

9 years agoMerge "Frameworks/base: Add debug.gencfi property"
Andreas Gampe [Mon, 27 Apr 2015 15:06:46 +0000 (15:06 +0000)]
Merge "Frameworks/base: Add debug.gencfi property"

9 years agoMerge "Fix incorrect javadoc for Uri.getQueryParameter."
Narayan Kamath [Mon, 27 Apr 2015 10:44:34 +0000 (10:44 +0000)]
Merge "Fix incorrect javadoc for Uri.getQueryParameter."

9 years agoFix incorrect javadoc for Uri.getQueryParameter.
Narayan Kamath [Mon, 27 Apr 2015 10:00:54 +0000 (11:00 +0100)]
Fix incorrect javadoc for Uri.getQueryParameter.

This first went out with Jelly Bean and not ICS.

bug: https://code.google.com/p/android/issues/detail?id=61651
Change-Id: I26f6b18593fe089bd3a52ec1d159494923bcbad1

9 years agoMerge "fix compiler error under FORTIFY_SOURCE=2"
Nick Kralevich [Sat, 25 Apr 2015 21:22:31 +0000 (21:22 +0000)]
Merge "fix compiler error under FORTIFY_SOURCE=2"

9 years agofix compiler error under FORTIFY_SOURCE=2
Nick Kralevich [Sat, 25 Apr 2015 03:25:50 +0000 (20:25 -0700)]
fix compiler error under FORTIFY_SOURCE=2

frameworks/base/libs/androidfw/ObbFile.cpp:340:5: error: ignoring return value of function declared with warn_unused_result attribute [-Werror,-Wunused-result]
    ftruncate(fd, mFooterStart);
    ^~~~~~~~~ ~~~~~~~~~~~~~~~~
1 error generated.
amake: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libandroidfw_intermediates/ObbFile.o] Error 1

Change-Id: I7080d64e7a830a10b41c1ebf33c60d32b7c8356e

9 years agoFrameworks/base: Add debug.gencfi property
Andreas Gampe [Fri, 24 Apr 2015 23:28:48 +0000 (16:28 -0700)]
Frameworks/base: Add debug.gencfi property

Add the debug.gencfi system property that forces generation of
CFI data.

Change-Id: Ida66f8c1567634d05cfdbba1a982be3684e94369

9 years agoMerge "Revert "[ActivityManager] Improve multi-thread access the same provider""
Wale Ogunwale [Fri, 24 Apr 2015 21:49:45 +0000 (21:49 +0000)]
Merge "Revert "[ActivityManager] Improve multi-thread access the same provider""

9 years agoMerge "Revert "Clean-up state if we have an exception when acquiring provider""
Wale Ogunwale [Fri, 24 Apr 2015 21:49:41 +0000 (21:49 +0000)]
Merge "Revert "Clean-up state if we have an exception when acquiring provider""

9 years agoRevert "[ActivityManager] Improve multi-thread access the same provider"
Wale Ogunwale [Fri, 24 Apr 2015 21:45:14 +0000 (14:45 -0700)]
Revert "[ActivityManager] Improve multi-thread access the same provider"

This reverts commit 57307b21cbdb261eeca081051ed61540dcf905f8.

Bug: 20091132

9 years agoRevert "Clean-up state if we have an exception when acquiring provider"
Wale Ogunwale [Fri, 24 Apr 2015 21:44:54 +0000 (14:44 -0700)]
Revert "Clean-up state if we have an exception when acquiring provider"

This reverts commit 73e239bdc9493d81215d5afe739b3ed095686ba2.

Bug: 20091132

9 years agoMerge "frameworks/base: switch to using NativeConstants."
Kenny Root [Fri, 24 Apr 2015 21:26:06 +0000 (21:26 +0000)]
Merge "frameworks/base: switch to using NativeConstants."

9 years agoMerge "No runtime exceptions during normal use of AndroidKeyStore crypto."
Alex Klyubin [Fri, 24 Apr 2015 20:00:57 +0000 (20:00 +0000)]
Merge "No runtime exceptions during normal use of AndroidKeyStore crypto."

9 years agoAdd OP_AUTH_NEEDED KeyStore result code
Chad Brubaker [Fri, 24 Apr 2015 17:32:18 +0000 (10:32 -0700)]
Add OP_AUTH_NEEDED KeyStore result code

OP_AUTH_NEEDED will be returned from begin when an operation needs
a per operation authentication before calling update. Note that the
begin call succeeds when this error is returned, the token and handle
are valid.

Change-Id: I28953add4ffd7d873fc33ba3f2cf788f72b07d06

9 years agoNo runtime exceptions during normal use of AndroidKeyStore crypto.
Alex Klyubin [Tue, 21 Apr 2015 22:17:24 +0000 (15:17 -0700)]
No runtime exceptions during normal use of AndroidKeyStore crypto.

This changes the implementation of AndroidKeyStore-backed Cipher and
Mac to avoid throwing runtime exceptions during normal use. Runtime
exceptions will now be thrown only due to truly exceptional and
unrecoverable errors (e.g., keystore unreachable, or crypto primitive
not initialized).

This also changes the implementation of Cipher to cache any errors
encountered in Cipher.update until Cipher.doFinal which then throws
them as checked exceptions.

Bug: 20525947
Change-Id: I3c4ad57fe70abfbb817a79402f722a0208660727

9 years agoMerge "Reset AndroidKeyStore Mac and Cipher state when init fails."
Alex Klyubin [Fri, 24 Apr 2015 17:52:35 +0000 (17:52 +0000)]
Merge "Reset AndroidKeyStore Mac and Cipher state when init fails."

9 years agoReset AndroidKeyStore Mac and Cipher state when init fails.
Alex Klyubin [Fri, 24 Apr 2015 17:47:17 +0000 (10:47 -0700)]
Reset AndroidKeyStore Mac and Cipher state when init fails.

For consistency, this also switches AndroidKeyStore's Mac init/reset
implementation to the same approach as used in Cipher.

Bug: 18088752
Change-Id: Id34caf7cfe04f2058e22d8632890f762927bb31c

9 years agoMerge "[ActivityManager] Avoid orphan ContentProviderRecord."
Olawale Ogunwale [Fri, 24 Apr 2015 17:42:58 +0000 (17:42 +0000)]
Merge "[ActivityManager] Avoid orphan ContentProviderRecord."

9 years agoframeworks/base: switch to using NativeConstants.
Adam Langley [Fri, 24 Apr 2015 16:59:35 +0000 (09:59 -0700)]
frameworks/base: switch to using NativeConstants.

NativeCrypto is a conscrypt class that contained several OpenSSL
constants. NativeConstants is the new class that contains the same
thing, but the latter is automatically generated and thus won't drift
from the C headers.

Bug: 20521989

Change-Id: I45c7b9a6844a06e3ffd09be692ebf733e1ebbbcc

9 years agoMerge "Load ICU4J data on boot"
Neil Fuller [Fri, 24 Apr 2015 10:30:16 +0000 (10:30 +0000)]
Merge "Load ICU4J data on boot"

9 years agoLoad ICU4J data on boot
Neil Fuller [Thu, 23 Apr 2015 13:50:34 +0000 (14:50 +0100)]
Load ICU4J data on boot

Bug: 20252074
Bug: 20396452
Change-Id: I17de761e0d81caa2fc280b5cc368ee6113a5d655

9 years agoMerge "Move new script group API into ScriptGroup class"
Yang Ni [Wed, 22 Apr 2015 23:14:34 +0000 (23:14 +0000)]
Merge "Move new script group API into ScriptGroup class"

9 years agoMove new script group API into ScriptGroup class
Yang Ni [Fri, 17 Apr 2015 23:51:55 +0000 (16:51 -0700)]
Move new script group API into ScriptGroup class

And mark existing methods and builder deprecated.
Removed ScriptGroup2 class.
Renamed nested class UnboundValue to Input.
Marked classes Closure, Future, and Input as final.

Change-Id: I362910c115e9d0173dc515674e08bf4878232879

9 years agoSometimes the application context is null
Marco Nelissen [Fri, 17 Apr 2015 16:50:56 +0000 (09:50 -0700)]
Sometimes the application context is null

when called from systemui.

Bug: https://code.google.com/p/android/issues/detail?id=152173
Change-Id: I27153a48d7edce7006517507d813e24ce6f63a7d

9 years agoMerge "Revert "Sometimes the application context is null""
Marco Nelissen [Wed, 22 Apr 2015 20:08:36 +0000 (20:08 +0000)]
Merge "Revert "Sometimes the application context is null""

9 years agoRevert "Sometimes the application context is null"
Marco Nelissen [Wed, 22 Apr 2015 20:07:15 +0000 (20:07 +0000)]
Revert "Sometimes the application context is null"

This reverts commit d86281cb3da685672d89f964228980f6753adcae.

Change-Id: Icaf8e1e4812f64060066331f9000be15c134d1d2

9 years agoMerge "Sometimes the application context is null"
Marco Nelissen [Wed, 22 Apr 2015 19:06:36 +0000 (19:06 +0000)]
Merge "Sometimes the application context is null"

9 years agoMerge "Frameworks/base: Compile-time optimize SQLiteConnection"
Andreas Gampe [Tue, 21 Apr 2015 23:31:51 +0000 (23:31 +0000)]
Merge "Frameworks/base: Compile-time optimize SQLiteConnection"

9 years agoMerge "Update getExportedPropertyMethods to new reflection API"
Mathieu Chartier [Tue, 21 Apr 2015 23:03:33 +0000 (23:03 +0000)]
Merge "Update getExportedPropertyMethods to new reflection API"

9 years agoFrameworks/base: Compile-time optimize SQLiteConnection
Andreas Gampe [Mon, 20 Apr 2015 22:29:04 +0000 (15:29 -0700)]
Frameworks/base: Compile-time optimize SQLiteConnection

Do not cache compiled regular expression and date formatter. Both
cannot be compile-time created, are expensive at preloading time,
and only used in the rare case of dumping the connection (mainly
on errors).

Bug: 19498458
Bug: 19542228
Change-Id: Ia38491a3f852ccf699b815ff05289b338e932f2a

9 years agoUpdate getExportedPropertyMethods to new reflection API
Mathieu Chartier [Fri, 17 Apr 2015 19:49:57 +0000 (12:49 -0700)]
Update getExportedPropertyMethods to new reflection API

Bug: 19264997

Change-Id: Ife79c469fdb09f30e3aefcfc3e0ce5ed32303fce

9 years agoMerge "Frameworks/base: Fix comment"
Andreas Gampe [Tue, 21 Apr 2015 16:10:26 +0000 (16:10 +0000)]
Merge "Frameworks/base: Fix comment"

9 years agoFrameworks/base: Fix comment
Andreas Gampe [Tue, 21 Apr 2015 16:01:51 +0000 (09:01 -0700)]
Frameworks/base: Fix comment

Fix comment in ZygoteInit.

Change-Id: I853581c8d44ee52ee8e113c67ea68621643ecb39

9 years agoMerge "[ActivityManager] Move UI operation to UI handler"
Olawale Ogunwale [Tue, 21 Apr 2015 15:31:58 +0000 (15:31 +0000)]
Merge "[ActivityManager] Move UI operation to UI handler"

9 years ago[ActivityManager] Move UI operation to UI handler
riddle_hsu [Thu, 16 Apr 2015 04:45:48 +0000 (12:45 +0800)]
[ActivityManager] Move UI operation to UI handler

Because ANR will dump cpu usage, stack traces in ActivityManager
thread, if system is busy or in low-end device, it may spend more
than 5s to dump. So when there is UI operation (e.g. pop dialog)
in ActivityManager thread, it may meet key dispatch timeout.

Change-Id: Ie550e31a7cff65bdcfc9af2c32989e9deb5fb2cf

9 years agoMerge "[ActivityManager] Avoid unnecessary restart provider process"
Olawale Ogunwale [Tue, 21 Apr 2015 15:29:09 +0000 (15:29 +0000)]
Merge "[ActivityManager] Avoid unnecessary restart provider process"

9 years agoSometimes the application context is null
Marco Nelissen [Fri, 17 Apr 2015 16:50:56 +0000 (09:50 -0700)]
Sometimes the application context is null

when called from systemui.

Bug: https://code.google.com/p/android/issues/detail?id=152173
Change-Id: Ic7b98e39fd9ad2436b855cf9f7f53d3e7a1948c0

9 years agoMerge "Prevent infinite layout and wallpaper flashing"
Craig Mautner [Tue, 21 Apr 2015 14:54:42 +0000 (14:54 +0000)]
Merge "Prevent infinite layout and wallpaper flashing"

9 years agoMerge "Frameworks/base: Use better Class.forName in ZygoteInit"
Andreas Gampe [Tue, 21 Apr 2015 04:01:59 +0000 (04:01 +0000)]
Merge "Frameworks/base: Use better Class.forName in ZygoteInit"

9 years agoFrameworks/base: Use better Class.forName in ZygoteInit
Andreas Gampe [Tue, 21 Apr 2015 02:16:37 +0000 (19:16 -0700)]
Frameworks/base: Use better Class.forName in ZygoteInit

Use the three-argument version of Class.forName. This saves an
expensive stack lookup for the caller's class-loader on each
invocation.

Bug: 19498458
Change-Id: I859affde31e580fd2de3f70ee0a9295936c2d9f4

9 years agoMerge "Make MediaPlayer fail fast on UnknownServiceException."
Alex Klyubin [Mon, 20 Apr 2015 17:54:14 +0000 (17:54 +0000)]
Merge "Make MediaPlayer fail fast on UnknownServiceException."

9 years agoMake MediaPlayer fail fast on UnknownServiceException.
Alex Klyubin [Mon, 20 Apr 2015 17:11:57 +0000 (10:11 -0700)]
Make MediaPlayer fail fast on UnknownServiceException.

This makes MediaPlayer's network streaming code fail fast when an
UnknownServiceException is encountered. This currently occurs when the
application declares that it does not perform cleartext network
traffic and tries to load media over cleartext HTTP. Without this CL,
MediaPlayer blocks for 30 seconds because it treats this error as
recoverable and goes into a ten retry loop with a three second delay
before each retry.

The result at MediaPlayer client level is
MediaPlayer.MEDIA_ERROR_UNKNOWN error. This error code is used for
non-recoverable situations such as when an invalid redirect is
encountered or the destination is unreachable.

Bug: 20026006
Change-Id: I10f0dadb7740902f8c7c73d0df96cfff31f08ada

9 years agoMerge "Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS"
Dmitriy Ivanov [Fri, 17 Apr 2015 19:01:40 +0000 (19:01 +0000)]
Merge "Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS"

9 years agoRemove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS
Dmitriy Ivanov [Fri, 17 Apr 2015 18:50:29 +0000 (11:50 -0700)]
Remove LOCAL_JNI_SHARED_LIBRARIES_ZIP_OPTIONS

  It is no longer needed.

Change-Id: I1b5a58528507df35cc0792a18be5583e3605cbe0

9 years agoMerge "Explicitly use clang."
Dan Albert [Fri, 17 Apr 2015 17:43:35 +0000 (17:43 +0000)]
Merge "Explicitly use clang."

9 years agoExplicitly use clang.
Dan Albert [Fri, 17 Apr 2015 17:40:48 +0000 (10:40 -0700)]
Explicitly use clang.

This was implicitly enabled by using ASAN.

Change-Id: I562402a8191e2a3ab3eefd43860fbe7c58d441d8

9 years agoMerge "[ActivityManager] Fix activity always visible."
Olawale Ogunwale [Fri, 17 Apr 2015 15:50:46 +0000 (15:50 +0000)]
Merge "[ActivityManager] Fix activity always visible."

9 years agoMerge "Expose peer LLCP version in NDEF callbacks."
Martijn Coenen [Fri, 17 Apr 2015 07:02:54 +0000 (07:02 +0000)]
Merge "Expose peer LLCP version in NDEF callbacks."

9 years agoFix Allocation-less launches
Jason Sams [Thu, 16 Apr 2015 22:13:52 +0000 (15:13 -0700)]
Fix Allocation-less launches

Change-Id: Ic4c6644072a11aab9a273070be5734519136f685

9 years agoMerge "Support KM_LONG_REP"
Chad Brubaker [Thu, 16 Apr 2015 21:56:10 +0000 (21:56 +0000)]
Merge "Support KM_LONG_REP"

9 years agoSupport KM_LONG_REP
Chad Brubaker [Thu, 16 Apr 2015 21:30:30 +0000 (14:30 -0700)]
Support KM_LONG_REP

Change-Id: I37814bcb03dc8918e27226ec43230fa4218723d0

9 years agoMerge "Add Keymaster KM_ORIGIN_UNKNOWN constant."
Alex Klyubin [Thu, 16 Apr 2015 19:50:11 +0000 (19:50 +0000)]
Merge "Add Keymaster KM_ORIGIN_UNKNOWN constant."

9 years agoMerge "Document hprof-conv -z"
Brian Carlstrom [Thu, 16 Apr 2015 17:07:58 +0000 (17:07 +0000)]
Merge "Document hprof-conv -z"

9 years agoDocument hprof-conv -z
Brian Carlstrom [Fri, 27 Mar 2015 05:41:45 +0000 (22:41 -0700)]
Document hprof-conv -z

Bug: 18473132
Change-Id: I3c0fcc2c15d4c590ed852f41aa4fd2a2531a6db8

9 years agoMerge "Add IV-related Keymaster error codes."
Alex Klyubin [Thu, 16 Apr 2015 16:39:30 +0000 (16:39 +0000)]
Merge "Add IV-related Keymaster error codes."

9 years agoMerge "Remove IV auto-generation workaround."
Alex Klyubin [Thu, 16 Apr 2015 16:39:07 +0000 (16:39 +0000)]
Merge "Remove IV auto-generation workaround."

9 years ago[ActivityManager] Avoid unnecessary restart provider process
riddle_hsu [Thu, 16 Apr 2015 03:36:23 +0000 (11:36 +0800)]
[ActivityManager] Avoid unnecessary restart provider process

Caller C accesses provider P. Both processes of C and P died
before P publishes, P will still be restarted even there is
no connection because P is in mLaunchingProviders.
When device is low memory, the restarting provider process
may be killed easily before publish because no caller to raise
its oom-adj. Then device will busy keeping restart it.

Solution:
If there is no connection to the provider, do not restart it.

Change-Id: If6f2d2258d78b6c0989c6e5f3e0cad14db821464

9 years agoMerge "[RenderScript] typo fix in Allocation.java"
Miao Wang [Thu, 16 Apr 2015 02:03:26 +0000 (02:03 +0000)]
Merge "[RenderScript] typo fix in Allocation.java"

9 years ago[RenderScript] typo fix in Allocation.java
Miao Wang [Thu, 16 Apr 2015 00:44:32 +0000 (17:44 -0700)]
[RenderScript] typo fix in Allocation.java

Change-Id: Id0eae76387d18c5bfed6cdbb52781b0dc3e4ae90