OSDN Git Service
Narayan Kamath [Wed, 9 Apr 2014 14:15:16 +0000 (14:15 +0000)]
am
a6f5e79d: Merge "Allow connections to multiple zygotes."
* commit '
a6f5e79dd182b05909fa53109e74638afcd7ee12':
Allow connections to multiple zygotes.
Narayan Kamath [Wed, 9 Apr 2014 14:12:22 +0000 (14:12 +0000)]
Merge "Allow connections to multiple zygotes."
Narayan Kamath [Thu, 3 Apr 2014 19:15:15 +0000 (20:15 +0100)]
Allow connections to multiple zygotes.
Adds a new String argument "abi" to Process.start.
This method will now query the zygotes to
determine what ABIs the primary and the secondary
zygote support (the secondary is optional) and dispatch
a fork request over the right zygote connection.
Both zygotes are assumed to be active at all points.
Change-Id: I460319b4481ff1c1666e8172223691820658a35c
Narayan Kamath [Wed, 9 Apr 2014 13:59:00 +0000 (13:59 +0000)]
am
d4b64409: Merge "Make zygotes aware of their supported ABIs."
* commit '
d4b644092e8d2719d01ad297b080bd50b1fdf60d':
Make zygotes aware of their supported ABIs.
Narayan Kamath [Wed, 9 Apr 2014 13:58:57 +0000 (13:58 +0000)]
am
cecfb94f: Merge "Clean up argc / argv processing for runtime args."
* commit '
cecfb94f3f1b2978ba66342d7920e83770c808e3':
Clean up argc / argv processing for runtime args.
Narayan Kamath [Wed, 9 Apr 2014 13:55:55 +0000 (13:55 +0000)]
Merge "Make zygotes aware of their supported ABIs."
Narayan Kamath [Wed, 9 Apr 2014 13:55:54 +0000 (13:55 +0000)]
Merge "Clean up argc / argv processing for runtime args."
Narayan Kamath [Mon, 7 Apr 2014 12:56:15 +0000 (13:56 +0100)]
Make zygotes aware of their supported ABIs.
Query system properties for the list of ABIs and pass
it as a command line argument to ZygoteInit.
Also add a new Zygote command that returns this list of
ABIs to peers.
Change-Id: I68034c6f63fa626911122579a011a0a25a8cda94
Narayan Kamath [Mon, 7 Apr 2014 11:44:58 +0000 (12:44 +0100)]
Clean up argc / argv processing for runtime args.
- Make copies of argc, argv before argv is potentially
overwritten with the process name.
- Allow multiple command line arguments to be passed to
ZygoteInit (this is required for some of the 64 bit
zygote work).
- Add an explanatory comment about how these argments
are processed.
Change-Id: I752be69c5c0f97ed17d1a3dded19f46ee00929b0
Narayan Kamath [Wed, 9 Apr 2014 09:09:58 +0000 (09:09 +0000)]
am
a5608acb: Merge "Don\'t allow MemoryFiles of negative length."
* commit '
a5608acbd7647e0fd9aa87e5319715b0cbd6b0c0':
Don't allow MemoryFiles of negative length.
Narayan Kamath [Wed, 9 Apr 2014 09:07:29 +0000 (09:07 +0000)]
Merge "Don't allow MemoryFiles of negative length."
Narayan Kamath [Tue, 8 Apr 2014 15:10:52 +0000 (16:10 +0100)]
Don't allow MemoryFiles of negative length.
Prevents us from converting a (signed) jint into an
(unsigned) size_t and having horrible things happen.
Change-Id: I0f04e2eb9852ae7fc49b435fd0974f56e86751a4
Craig Mautner [Mon, 7 Apr 2014 22:14:56 +0000 (22:14 +0000)]
am
3fb2b713: Merge "[ActivityManager] Reduce report ANR on wrong activity."
* commit '
3fb2b7132b64c65163e7c6cd948e45f703e93687':
[ActivityManager] Reduce report ANR on wrong activity.
Craig Mautner [Mon, 7 Apr 2014 22:10:47 +0000 (22:10 +0000)]
Merge "[ActivityManager] Reduce report ANR on wrong activity."
riddle_hsu [Mon, 7 Apr 2014 18:44:03 +0000 (02:44 +0800)]
[ActivityManager] Reduce report ANR on wrong activity.
Symptom: ANR report on wrong activity.
Root Cause:
KK changed resume behavior that will not update focus when only resume,
if the activity blocked, it may report ANR on previous focus.
By original concept, it will try to correct the ANR target,
but the stack of waiting(waitingVisible=true) activity may
different with current top stack.
If it gets key dispatch timeout, mResumedActivity and mPausingActivity
of its stack will be null becuase it is not top stack.
Then it is unable to change ANR target to the real no response activity.
Solution:
Use focused stack to get the real culprit.
Reproduce steps:
1.Launch an Activity X from launcher, press home key.
2.Launch X from launcher again, X blocks(sleeps 15sec) in onResume, press back key in the beginning of blocking duration.
3.ANR dialog shows launcher is no response.
Change-Id: I99416ad91e349096f995990f2240a97616fbaf28
Nick Kralevich [Fri, 4 Apr 2014 23:25:52 +0000 (23:25 +0000)]
am
dc97144b: Merge "Always call super.onCreate(). Always."
* commit '
dc97144b3f83bf6dae90493a6631afc6523dfce2':
Always call super.onCreate(). Always.
Nick Kralevich [Fri, 4 Apr 2014 23:18:45 +0000 (23:18 +0000)]
Merge "Always call super.onCreate(). Always."
Christopher Tate [Wed, 12 Feb 2014 21:14:10 +0000 (13:14 -0800)]
Always call super.onCreate(). Always.
Bug
12991134
(cherrypick of commit
9d6376a1d88ab5b3a41ee4400e3aaa4c4ee69e2a)
Change-Id: Ife16ef93408253e3318a06dc0206ab4b88c7f367
Raph Levien [Thu, 3 Apr 2014 15:55:22 +0000 (15:55 +0000)]
am
c420ce34: Merge "Marquee text RTL improvements"
* commit '
c420ce34ba177cd959cbb9432e9597d377e6cee6':
Marquee text RTL improvements
Raph Levien [Thu, 3 Apr 2014 15:50:28 +0000 (15:50 +0000)]
Merge "Marquee text RTL improvements"
Narayan Kamath [Thu, 3 Apr 2014 14:05:28 +0000 (14:05 +0000)]
am
374db6c3: Merge "Remove ProcessState::mArgc,mArgV,mArgLen"
* commit '
374db6c3792e9ed56230e09fee4742632ce8159a':
Remove ProcessState::mArgc,mArgV,mArgLen
Narayan Kamath [Thu, 3 Apr 2014 13:59:37 +0000 (13:59 +0000)]
Merge "Remove ProcessState::mArgc,mArgV,mArgLen"
Narayan Kamath [Fri, 28 Mar 2014 13:39:21 +0000 (13:39 +0000)]
Remove ProcessState::mArgc,mArgV,mArgLen
These look like historical oddities, and weren't really being
used for anything useful.
Process:setArgV0 was being called by android.util.Process, but
that functionality can be moved directly into the implementation
of that class.
bug:
13647418
Change-Id: I216c8f8a4c065f0cf3a61f19f9e32decd26f93f6
Ben Murdoch [Thu, 3 Apr 2014 09:54:33 +0000 (09:54 +0000)]
am
369a0057: Merge "Update ViewRootImpl for 64bit functor type."
* commit '
369a00574da218975718ce07ffe6abba5c17bf92':
Update ViewRootImpl for 64bit functor type.
Ben Murdoch [Thu, 3 Apr 2014 09:48:43 +0000 (09:48 +0000)]
Merge "Update ViewRootImpl for 64bit functor type."
Ben Cheng [Wed, 2 Apr 2014 20:54:47 +0000 (20:54 +0000)]
am
89dddcc9: Merge "Use default visibility for Snapshot::getLocalClip."
* commit '
89dddcc948cb3e826bfddeefae73066849aba0fc':
Use default visibility for Snapshot::getLocalClip.
Ben Cheng [Wed, 2 Apr 2014 20:50:59 +0000 (20:50 +0000)]
Merge "Use default visibility for Snapshot::getLocalClip."
Ben Cheng [Wed, 2 Apr 2014 19:45:57 +0000 (12:45 -0700)]
Use default visibility for Snapshot::getLocalClip.
The method is in libhwui.so but used by libandroid_runtime.so
(via android_view_GLES20Canvas.cpp). If the compiler decides not to
inline this method, the linker won't be able to resolve the dependency
when it has hidden visibility.
The problem is found when testing GCC 4.9.
Change-Id: I3b4d096c7767f0bef0796886dfb2c5ba2ecff48c
Ben Murdoch [Wed, 2 Apr 2014 13:41:41 +0000 (14:41 +0100)]
Update ViewRootImpl for 64bit functor type.
Change-Id: Ie9020f0276c58ebf0977e4aef725fbc26aaf67b2
Narayan Kamath [Wed, 2 Apr 2014 10:35:38 +0000 (10:35 +0000)]
am
17b1b8fe: Merge "Move zygote startup logic to the frameworks."
* commit '
17b1b8fe8c0c8f05f2077acc82428881bf591a78':
Move zygote startup logic to the frameworks.
Narayan Kamath [Wed, 2 Apr 2014 10:29:55 +0000 (10:29 +0000)]
Merge "Move zygote startup logic to the frameworks."
Narayan Kamath [Mon, 31 Mar 2014 12:41:26 +0000 (13:41 +0100)]
Move zygote startup logic to the frameworks.
The Zygote class is now in com.android.internal.os. It is
responsible for the vast majority of work before and after
the call to fork(). It calls back into the Runtime via
the new dalvik.system.ZygoteHooks class to allow the Runtime
to perform pre fork cleanup and post fork initialization.
The native code in Zygote.cpp is a direct and straightforward
port of the existing code in art. Most differences are
superficial, for example :
- We use C style logging (ALOGE) instead of stream based
logging.
- We call env->FatalError() instead of using LOG(FATAL)
Change-Id: Ia101fb2af12d23894fe57e4134d2bc6d142e5059
Jason Sams [Tue, 1 Apr 2014 00:10:55 +0000 (00:10 +0000)]
am
b3cafa56: Merge "Fix RenderScriptGL setSurfaceTexture problem"
* commit '
b3cafa56205942343930e4fbb0a3d50d6e33a046':
Fix RenderScriptGL setSurfaceTexture problem
Jason Sams [Mon, 31 Mar 2014 23:21:42 +0000 (23:21 +0000)]
Merge "Fix RenderScriptGL setSurfaceTexture problem"
Nick Kralevich [Mon, 31 Mar 2014 20:14:37 +0000 (20:14 +0000)]
am
3b2a9d22: Merge "Change when the SELinux relabel of /data/data occurs."
* commit '
3b2a9d22794cb9f1c2a28884b5c3ba92ecc6ff96':
Change when the SELinux relabel of /data/data occurs.
Nick Kralevich [Mon, 31 Mar 2014 20:09:31 +0000 (20:09 +0000)]
Merge "Change when the SELinux relabel of /data/data occurs."
Brian Carlstrom [Mon, 31 Mar 2014 19:55:16 +0000 (19:55 +0000)]
am
e3434fc4: Merge "Improve detail message for X509TrustManagerExtensions argument validation"
* commit '
e3434fc4fb164b66e529e675dfc31652a4c69cb5':
Improve detail message for X509TrustManagerExtensions argument validation
Brian Carlstrom [Mon, 31 Mar 2014 19:49:34 +0000 (19:49 +0000)]
Merge "Improve detail message for X509TrustManagerExtensions argument validation"
Brian Carlstrom [Mon, 31 Mar 2014 18:20:51 +0000 (11:20 -0700)]
Improve detail message for X509TrustManagerExtensions argument validation
Bug:
13728564
Change-Id: I03d08babcdc0d11baff5e76a339b4285e92edee8
Narayan Kamath [Mon, 31 Mar 2014 12:42:14 +0000 (12:42 +0000)]
am
ab561f5b: Merge "Don\'t make isSafeMode a field on the Zygote class."
* commit '
ab561f5b4073055c414866ff3dbe8372263474a7':
Don't make isSafeMode a field on the Zygote class.
Narayan Kamath [Mon, 31 Mar 2014 12:32:49 +0000 (12:32 +0000)]
Merge "Don't make isSafeMode a field on the Zygote class."
Narayan Kamath [Fri, 28 Mar 2014 13:10:41 +0000 (13:10 +0000)]
Don't make isSafeMode a field on the Zygote class.
This field is written and read exclusively by the system server,
and should therefore belong to the SystemServer class.
Change-Id: I2708a9a45c0c9cd1a6f563e8cc5844bd8c424bf7
Narayan Kamath [Mon, 31 Mar 2014 09:41:39 +0000 (09:41 +0000)]
am
91bbb75c: Merge "Cast CallMethod\'s size_t parameters to jint"
* commit '
91bbb75c75568dee854fb10633f8ce3683265ffd':
Cast CallMethod's size_t parameters to jint
Narayan Kamath [Mon, 31 Mar 2014 09:37:32 +0000 (09:37 +0000)]
Merge "Cast CallMethod's size_t parameters to jint"
Xiaofei Wan [Mon, 31 Mar 2014 06:26:20 +0000 (14:26 +0800)]
Fix RenderScriptGL setSurfaceTexture problem
rsnContextSetSurfaceTexture() has no implementation in rs-jni, use nContextSetSurface() in setSurfaceTexture().
Change-Id: I066432575c9e74f21ea3a3776628b572b6e31377
Signed-off-by: Xiaofei Wan <xiaofei.wan@intel.com>
Wink Saville [Sun, 30 Mar 2014 15:11:27 +0000 (15:11 +0000)]
am
1e4cad81: Merge "GlobalActions: Fix Airplane Mode on/off issue"
* commit '
1e4cad8198056a5e27a7aeb104ceb8ada331eafe':
GlobalActions: Fix Airplane Mode on/off issue
Wink Saville [Sun, 30 Mar 2014 00:15:22 +0000 (00:15 +0000)]
Merge "GlobalActions: Fix Airplane Mode on/off issue"
nagarw [Thu, 20 Feb 2014 11:40:46 +0000 (17:10 +0530)]
GlobalActions: Fix Airplane Mode on/off issue
Issue: Unable to turn off Airplane mode from power button
after phone reboot
Fix: Initialize mHasTelephony before the PhoneStateListener is
registered to the TelephonyManager so that correct value
of mHasTelephony is reflected when onServiceStateChanged
callback is called.
Bug:
13697360
Change-Id: Ide8afd9c16ea90b98b5912dbff440c5fd67b178d
Jeff Hao [Fri, 28 Mar 2014 22:16:41 +0000 (22:16 +0000)]
am
e9b4fd07: Merge "Mark constructor as accessible in LayoutInflater."
* commit '
e9b4fd0718c00a504602453185de676618beed4b':
Mark constructor as accessible in LayoutInflater.
Craig Mautner [Fri, 28 Mar 2014 22:16:38 +0000 (22:16 +0000)]
am
d511bc17: Merge "[ActivityManager] Fix a bug: unable to start activity after starting activities during screen off."
* commit '
d511bc17d614b1291f1b85f84180c1db157d2790':
[ActivityManager] Fix a bug: unable to start activity after starting activities during screen off.
Michael Wright [Fri, 28 Mar 2014 22:16:35 +0000 (22:16 +0000)]
am
e328056d: Merge "Add support for additional international keyboard mappings"
* commit '
e328056ddcba0edd0e49b4697dfcc84f3658cb39':
Add support for additional international keyboard mappings
Craig Mautner [Fri, 28 Mar 2014 22:16:33 +0000 (22:16 +0000)]
am
ff3362f0: (-s ours) Merge "DO NOT MERGE - [ActivityManager] Ensure consistency behavior when a background activity brings another existed activity to front."
* commit '
ff3362f0d8378d616f39cbcf8b86b6f03e7d30b9':
DO NOT MERGE - [ActivityManager] Ensure consistency behavior when a background activity brings another existed activity to front.
Jeff Hao [Fri, 28 Mar 2014 21:41:20 +0000 (21:41 +0000)]
Merge "Mark constructor as accessible in LayoutInflater."
Craig Mautner [Fri, 28 Mar 2014 20:27:32 +0000 (20:27 +0000)]
Merge "[ActivityManager] Fix a bug: unable to start activity after starting activities during screen off."
Michael Wright [Fri, 28 Mar 2014 20:26:08 +0000 (20:26 +0000)]
Merge "Add support for additional international keyboard mappings"
Craig Mautner [Fri, 28 Mar 2014 20:23:34 +0000 (20:23 +0000)]
Merge "DO NOT MERGE - [ActivityManager] Ensure consistency behavior when a background activity brings another existed activity to front."
Jeff Hao [Fri, 28 Mar 2014 18:33:53 +0000 (11:33 -0700)]
Mark constructor as accessible in LayoutInflater.
Needed to bypass new access checks for fields, methods, and
constructors.
Change-Id: I8ff0b44a6cb4f4af1c72734bca366d8b89528030
Anders Kristensen [Fri, 28 Mar 2014 17:27:18 +0000 (17:27 +0000)]
am
49c06150: Merge "Remove duplicate call disconnect codes."
* commit '
49c061501dbcff0dd6f6621afa76136d0857622a':
Remove duplicate call disconnect codes.
Anders Kristensen [Fri, 28 Mar 2014 17:19:57 +0000 (17:19 +0000)]
Merge "Remove duplicate call disconnect codes."
Robert Craig [Thu, 27 Mar 2014 14:00:58 +0000 (10:00 -0400)]
Change when the SELinux relabel of /data/data occurs.
Perform the relabel of the /data/data/<pkg> directories
when the app is being scanned by the PMS. The impetus
for this change was that the data directories of forward
locked apps were receiving the wrong label during an
OTA. Because the PMS doesn't actually scan forward locked
apps til later in the boot process, the prior restorecon
call was actually applying the default label of
system_data_file for all such apps. By performing a
restorecon on each individual app as they are entered into
the PMS we can handle them correctly. This mechanism also
allows us to pass down the seinfo tag as part of the
restorecon call which drops our need to rely on the contents
of packages.list.
Change-Id: Ie440cba2c96f0907458086348197e1506d31c1b6
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Adam Lesinski [Thu, 27 Mar 2014 21:00:08 +0000 (21:00 +0000)]
am
55a65509: Merge "Reduce warning verbosity in aapt"
* commit '
55a655091a30667ba7c091dc22d350c0bb8d8641':
Reduce warning verbosity in aapt
Adam Lesinski [Thu, 27 Mar 2014 20:55:14 +0000 (20:55 +0000)]
Merge "Reduce warning verbosity in aapt"
Craig Mautner [Thu, 27 Mar 2014 20:07:57 +0000 (20:07 +0000)]
am
a2824410: Merge "Do not show Home behind full screen activity"
* commit '
a282441038b8a82be1b9b6afc41145e5570ce377':
Do not show Home behind full screen activity
Craig Mautner [Thu, 27 Mar 2014 20:01:11 +0000 (20:01 +0000)]
Merge "Do not show Home behind full screen activity"
Colin Cross [Thu, 27 Mar 2014 17:30:01 +0000 (17:30 +0000)]
am
f0ffa8a3: Merge "app_process: use LOCAL_MULTILIB := both"
* commit '
f0ffa8a38e90f64912686833dba9823b251fae57':
app_process: use LOCAL_MULTILIB := both
Colin Cross [Thu, 27 Mar 2014 17:26:07 +0000 (17:26 +0000)]
Merge "app_process: use LOCAL_MULTILIB := both"
Colin Cross [Thu, 27 Mar 2014 17:20:29 +0000 (10:20 -0700)]
app_process: use LOCAL_MULTILIB := both
Use LOCAL_MULTILIB := both to build app_process64 instead of
duplicating the build rule.
Also causes PRODUCT_PACKAGES := app_process to install both
versions on 64-bit platforms, as the module names for both
app_process and app_process64 are now app_process.
Change-Id: Ia3c3265d15475771b0cae8bace53b8fbf351c186
Olivier Gay [Thu, 27 Mar 2014 16:21:01 +0000 (17:21 +0100)]
Add support for additional international keyboard mappings
Add kcm mapping files for Arabic, Greek, Hebrew, Lithuanian
and Spanish (Latin).
Change-Id: I35cb2a4d6e016c6f565fba05710ba1626452fe68
Signed-off-by: Olivier Gay <ogay@logitech.com>
Signed-off-by: Manuel Carthoblaz <mcarthob@logitech.com>
Signed-off-by: Mathieu Meisser <mmeisser@logitech.com>
Narayan Kamath [Thu, 27 Mar 2014 12:36:10 +0000 (12:36 +0000)]
am
cd3f60f3: Merge "AArch64: Make frameworks/base code more portable"
* commit '
cd3f60f30366a34b4499aab5a47b622069ba9cd6':
AArch64: Make frameworks/base code more portable
Narayan Kamath [Thu, 27 Mar 2014 12:30:53 +0000 (12:30 +0000)]
Merge "AArch64: Make frameworks/base code more portable"
Ashok Bhat [Tue, 25 Mar 2014 20:51:35 +0000 (20:51 +0000)]
AArch64: Make frameworks/base code more portable
Changes in this patch include
[x] Use %zu for size_t, %zd for ssize_t
[x] Some minor changes have been done to conform with
standard JNI practice (e.g. use of jint instead of int
in JNI function prototypes)
Change-Id: Id1aaa7894a7d0b85ac7ecd7b2bfd8cc40374261f
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Yevgen Pronenko [Fri, 14 Mar 2014 10:57:06 +0000 (11:57 +0100)]
Do not show Home behind full screen activity
When ensureActivitiesVisibleLocked goes through foreground activity
stack and reaches non-fullscreen activity, it sets showHomeBehindStack
variable to true.
If there is a fullscreen activity behind, showHomeBehindStack remains
unchanged, which causes Home application to be displayed anyway.
In this case user will see a fullscreen activity and Home activity
simultaneously.
To fix the issue we set showHomeBehindStack to false when we reach
fullscreen activity in the activity stack.
This was made visible by the following commit:
446ef1de8d373c1b017df8d19ebf9a47811fb402
Change-Id: I535c1283a4e26f5cf606375b837d4b7195324af0
Kenny Root [Wed, 26 Mar 2014 23:59:11 +0000 (23:59 +0000)]
am
57f2764b: Merge "CertificateChainValidator: initialize TrustManagerFactory"
* commit '
57f2764bf104b0fe7b5cd67ad5b2cae9bc8352ed':
CertificateChainValidator: initialize TrustManagerFactory
Kenny Root [Wed, 26 Mar 2014 22:51:52 +0000 (22:51 +0000)]
Merge "CertificateChainValidator: initialize TrustManagerFactory"
Mark Salyzyn [Wed, 26 Mar 2014 19:56:02 +0000 (12:56 -0700)]
am
5daf51c0: Merge "jni: 64-bit compile issue"
* commit '
5daf51c0fe6d5bea858c37291fed88bd3094d3ec':
jni: 64-bit compile issue
Mark Salyzyn [Wed, 26 Mar 2014 19:52:11 +0000 (19:52 +0000)]
Merge "jni: 64-bit compile issue"
Mark Salyzyn [Thu, 20 Mar 2014 19:09:01 +0000 (12:09 -0700)]
jni: 64-bit compile issue
- switch to PRId64
- some unused parameter warning suppression
Change-Id: Ia36bd1a247bb6e866a6b1050ab1362ebc9d31786
Nick Kralevich [Wed, 26 Mar 2014 15:47:39 +0000 (08:47 -0700)]
am
491eaf22: Merge "Note libselinux dependency on packages.list format changes."
* commit '
491eaf2255a95186e84092eae4ec43582eebb37b':
Note libselinux dependency on packages.list format changes.
Nick Kralevich [Wed, 26 Mar 2014 15:41:14 +0000 (15:41 +0000)]
Merge "Note libselinux dependency on packages.list format changes."
Kenny Root [Wed, 26 Mar 2014 15:40:43 +0000 (08:40 -0700)]
CertificateChainValidator: initialize TrustManagerFactory
Need to call TrustManagerFactory#init before use. I suspect this class
isn't used anywhere since this hasn't caused a problem yet.
Change-Id: I17425d0bba4795d71960062361a755830abba7de
Stephen Smalley [Wed, 26 Mar 2014 13:19:12 +0000 (09:19 -0400)]
Note libselinux dependency on packages.list format changes.
Change-Id: I3c34a86f5706c4fca826a8634936131e4e4fc297
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
riddle_hsu [Wed, 26 Mar 2014 12:43:17 +0000 (20:43 +0800)]
DO NOT MERGE - [ActivityManager] Ensure consistency behavior when a background activity brings another existed activity to front.
Symptom: ANR occurs on previous activity.
Root Cause:
In KK, when a background activity starts another existed background activity (bring to front),
if current focused stack is not the same as the stack of target starting activity,
it will still resume the top of target stack, even the top activity on the target stack may not the same as target activity.
And it will result incorrect focus, press back key will send to previous stack's top then popup ANR on previous activity:
"Reason: Waiting because no window has focus but there is a focused application".
By original code comment, it looks 'bring to front' should not happen in this issue case.
// If the target task is not in the front, then we need
// to bring it to the front... except... well, with
// SINGLE_TASK_LAUNCH it's not entirely clear. We'd like
// to have the same behavior as if a new instance was
// being started, which means not bringing it to the front
// if the caller is not itself in the front.
If the caller and target are in the same stask, it will just deliver new intent without changing task order (the same behavior as JellyBean).
So the patch concept is just to avoid to use target stack to resume top when caller and target are in different stack.
Solution: Do not allow to resume another stack top if non-top activity try to bring existed activity to front.
It may not be a good solution, just a reminder for the issue case.
Reproduce steps:
Assume A, B, C are different app tasks.
When the application stack is like:
Top C
B
A
#Case 1: Home is foreground
A starts B with NEW_TASK, C will resume, focus still stays at Home, and window order does not update.
Then press back key or volumn key will result ANR on Home.
#Case 2: App is foreground (Resumed activity is C)
A starts Home, Home will resume, focus still stays at C, and window order does did not update.
Then press back key or volumn key will result ANR on C.
Change-Id: If05070123b248e2335791e43a4d4ddee6db11d84
Chris Craik [Tue, 25 Mar 2014 20:21:01 +0000 (13:21 -0700)]
am
80470cdf: Merge "Solve three memory leaks related to PatchCache"
* commit '
80470cdf6c6995f4afe8d5e2c4b6e898625173fb':
Solve three memory leaks related to PatchCache
Chris Craik [Tue, 25 Mar 2014 20:11:33 +0000 (20:11 +0000)]
Merge "Solve three memory leaks related to PatchCache"
Michael Lekman [Wed, 11 Jan 2012 13:27:52 +0000 (14:27 +0100)]
Marquee text RTL improvements
Changed marquee text to scroll according to
the reading direction. Arabic text will
show the right edge and scroll towards
the left edge and vice versa for Latin.
Corrected marquee flicker when scroll animation
finished. The ghost scroll's x position was cast
to int and it made the text flicker when
marquee stops.
Ghost part didn't display for RTL languages.
Added multiplication with
getParagraphDirection to negate the ghost
offset.
Change-Id: I689039118df01a62f73ef0079c857fea1bfcc5a0
Kenny Root [Tue, 25 Mar 2014 17:19:27 +0000 (10:19 -0700)]
am
77ceb5e8: Merge "Use X509ExtendedTrustManager and not Conscrypt"
* commit '
77ceb5e8f18608cdbf19831f6188db87a5e0c058':
Use X509ExtendedTrustManager and not Conscrypt
Craig Mautner [Tue, 25 Mar 2014 17:19:24 +0000 (10:19 -0700)]
am
2cacc619: Merge "Don\'t wait for finishing animation when second display is disconnected"
* commit '
2cacc619d62f58ee8a9d0fcfac942c6d5faf7031':
Don't wait for finishing animation when second display is disconnected
Kenny Root [Tue, 25 Mar 2014 17:06:54 +0000 (17:06 +0000)]
Merge "Use X509ExtendedTrustManager and not Conscrypt"
Craig Mautner [Tue, 25 Mar 2014 17:01:27 +0000 (17:01 +0000)]
Merge "Don't wait for finishing animation when second display is disconnected"
Narayan Kamath [Tue, 25 Mar 2014 14:27:11 +0000 (07:27 -0700)]
am
5f0d44f6: Merge "Fix scaleNinePatch."
* commit '
5f0d44f69768a39b0bcd9d1d072ce3606a1ca1ed':
Fix scaleNinePatch.
Narayan Kamath [Tue, 25 Mar 2014 13:56:51 +0000 (13:56 +0000)]
Merge "Fix scaleNinePatch."
Ashok Bhat [Wed, 5 Mar 2014 15:23:13 +0000 (15:23 +0000)]
Cast CallMethod's size_t parameters to jint
This will avoid problems caused by automatic type
promotion of parameters when passed to a variadic function.
Change-Id: I9340cf4bc3afcb84ebb2843d2aaa1e832b0df7f4
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Koji Fukui [Fri, 14 Mar 2014 12:20:21 +0000 (21:20 +0900)]
Don't wait for finishing animation when second display is disconnected
Basically WindowManagerService wait for finishing animation when
a window is removed. But when second display is disconnected, windows
on second display can't be shown even if animation is waited for.
On the contrary, it keeps on waiting for finishing the animation
in special case.
With this fix windows are immediately removed without waiting for
animation when second display is disconnected.
Change-Id: I1354c193c04db394a21a11c174e10c8e7da17a0e
Jens Gulin [Tue, 4 Feb 2014 16:38:02 +0000 (17:38 +0100)]
Solve three memory leaks related to PatchCache
A Patch can be fairly large, holding bitmap data, but
is also frequently leaked which adds to the severity.
The feature is used in many important processes such
as Home, SystemUI and Chrome.
The following leaks are solved:
1. The Patch itself was not always freed.
PatchCache::removeDeferred() can mark patches to be
cared for by PatchCache::clearGarbage(). But
mCache.remove() would only destroy the container
and the pointer, not the Patch object itself.
2. The vertices stored in the Patch at Patch::createMesh()
would always leak. The empty/default destructor in Patch
would not properly destroy "vertices" since it's just a
pointer.
3. A BufferBlock that's added to the mFreeBlocks
in PatchCache could leak. The leak happened when a
patch later needed the entire free block, because the
object was removed from the list but never deleted
in PatchCache::setupMesh().
Change-Id: I41e60824479230b67426fc546d3dbff294c8891f
Kenny Root [Mon, 24 Mar 2014 17:18:18 +0000 (10:18 -0700)]
Use X509ExtendedTrustManager and not Conscrypt
This allows the new X509ExtendedTrustManager to be used instead of
Conscrypt directly.
Bug:
13103812
Change-Id: I736f475342395f26657f2371828a6d3a0065a50a
Adam Lesinski [Fri, 21 Mar 2014 01:04:57 +0000 (18:04 -0700)]
Reduce warning verbosity in aapt
- Attributed source of problems to the correct file.
- Only verify string localizations against valid
locales.
Bug:
13140015
Change-Id: I9dabc5efa0510649caee8af0c8ebb803d6f48269
Craig Mautner [Mon, 24 Mar 2014 14:34:59 +0000 (07:34 -0700)]
am
557a93e1: Merge "Set ScreenshotSurface secure if any secure content is shown."
* commit '
557a93e104f1fec69ed05b2d0ff26c78bca4c5d6':
Set ScreenshotSurface secure if any secure content is shown.
Craig Mautner [Mon, 24 Mar 2014 14:31:38 +0000 (14:31 +0000)]
Merge "Set ScreenshotSurface secure if any secure content is shown."
Narayan Kamath [Tue, 11 Mar 2014 16:50:30 +0000 (16:50 +0000)]
Fix scaleNinePatch.
Use yDivs for yDivs, and not xDivs.
bug:
13394494
(cherry picked from commit
42a51ae8812bccde7ff370cc2688f7955e489ad4)
Change-Id: Ia0a7d701a170945216ab247a483e7f972b6fe17e
Alex Klyubin [Fri, 21 Mar 2014 18:41:38 +0000 (11:41 -0700)]
am
88517170: Merge "Adjust to the change in the private SSLParameterImpl API."
* commit '
88517170cbb09b45324d5b457a0e5e840cc7d09b':
Adjust to the change in the private SSLParameterImpl API.