OSDN Git Service

android-x86/frameworks-base.git
10 years agoam dc97144b: Merge "Always call super.onCreate(). Always."
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.

10 years agoMerge "Always call super.onCreate(). Always."
Nick Kralevich [Fri, 4 Apr 2014 23:18:45 +0000 (23:18 +0000)]
Merge "Always call super.onCreate().  Always."

10 years agoAlways 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

10 years agoam c420ce34: Merge "Marquee text RTL improvements"
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

10 years agoMerge "Marquee text RTL improvements"
Raph Levien [Thu, 3 Apr 2014 15:50:28 +0000 (15:50 +0000)]
Merge "Marquee text RTL improvements"

10 years agoam 374db6c3: Merge "Remove ProcessState::mArgc,mArgV,mArgLen"
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

10 years agoMerge "Remove ProcessState::mArgc,mArgV,mArgLen"
Narayan Kamath [Thu, 3 Apr 2014 13:59:37 +0000 (13:59 +0000)]
Merge "Remove ProcessState::mArgc,mArgV,mArgLen"

10 years agoRemove 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

10 years agoam 369a0057: Merge "Update ViewRootImpl for 64bit functor type."
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.

10 years agoMerge "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."

10 years agoam 89dddcc9: Merge "Use default visibility for Snapshot::getLocalClip."
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.

10 years agoMerge "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."

10 years agoUse 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

10 years agoUpdate ViewRootImpl for 64bit functor type.
Ben Murdoch [Wed, 2 Apr 2014 13:41:41 +0000 (14:41 +0100)]
Update ViewRootImpl for 64bit functor type.

Change-Id: Ie9020f0276c58ebf0977e4aef725fbc26aaf67b2

10 years agoam 17b1b8fe: Merge "Move zygote startup logic to the frameworks."
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.

10 years agoMerge "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."

10 years agoMove 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

10 years agoam b3cafa56: Merge "Fix RenderScriptGL setSurfaceTexture problem"
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

10 years agoMerge "Fix RenderScriptGL setSurfaceTexture problem"
Jason Sams [Mon, 31 Mar 2014 23:21:42 +0000 (23:21 +0000)]
Merge "Fix RenderScriptGL setSurfaceTexture problem"

10 years agoam 3b2a9d22: Merge "Change when the SELinux relabel of /data/data occurs."
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.

10 years agoMerge "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."

10 years agoam e3434fc4: Merge "Improve detail message for X509TrustManagerExtensions argument...
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

10 years agoMerge "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"

10 years agoImprove 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

10 years agoam ab561f5b: Merge "Don\'t make isSafeMode a field on the Zygote class."
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.

10 years agoMerge "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."

10 years agoDon'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

10 years agoam 91bbb75c: Merge "Cast CallMethod\'s size_t parameters to jint"
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

10 years agoMerge "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"

10 years agoFix RenderScriptGL setSurfaceTexture problem
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>
10 years agoam 1e4cad81: Merge "GlobalActions: Fix Airplane Mode on/off issue"
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

10 years agoMerge "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"

10 years agoGlobalActions: 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

10 years agoam e9b4fd07: Merge "Mark constructor as accessible in LayoutInflater."
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.

10 years agoam d511bc17: Merge "[ActivityManager] Fix a bug: unable to start activity after start...
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.

10 years agoam e328056d: Merge "Add support for additional international keyboard mappings"
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

10 years agoam ff3362f0: (-s ours) Merge "DO NOT MERGE - [ActivityManager] Ensure consistency...
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.

10 years agoMerge "Mark constructor as accessible in LayoutInflater."
Jeff Hao [Fri, 28 Mar 2014 21:41:20 +0000 (21:41 +0000)]
Merge "Mark constructor as accessible in LayoutInflater."

10 years agoMerge "[ActivityManager] Fix a bug: unable to start activity after starting activitie...
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."

10 years agoMerge "Add support for additional international keyboard mappings"
Michael Wright [Fri, 28 Mar 2014 20:26:08 +0000 (20:26 +0000)]
Merge "Add support for additional international keyboard mappings"

10 years agoMerge "DO NOT MERGE - [ActivityManager] Ensure consistency behavior when a background...
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."

10 years agoMark constructor as accessible in LayoutInflater.
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

10 years agoam 49c06150: Merge "Remove duplicate call disconnect codes."
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.

10 years agoMerge "Remove duplicate call disconnect codes."
Anders Kristensen [Fri, 28 Mar 2014 17:19:57 +0000 (17:19 +0000)]
Merge "Remove duplicate call disconnect codes."

10 years agoChange when the SELinux relabel of /data/data occurs.
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>
10 years agoam 55a65509: Merge "Reduce warning verbosity in aapt"
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

10 years agoMerge "Reduce warning verbosity in aapt"
Adam Lesinski [Thu, 27 Mar 2014 20:55:14 +0000 (20:55 +0000)]
Merge "Reduce warning verbosity in aapt"

10 years agoam a2824410: Merge "Do not show Home behind full screen activity"
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

10 years agoMerge "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"

10 years agoam f0ffa8a3: Merge "app_process: use LOCAL_MULTILIB := both"
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

10 years agoMerge "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"

10 years agoapp_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

10 years agoAdd support for additional international keyboard mappings
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>
10 years agoam cd3f60f3: Merge "AArch64: Make frameworks/base code more portable"
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

10 years agoMerge "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"

10 years agoAArch64: 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>
10 years agoDo not show Home behind full screen activity
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

10 years agoam 57f2764b: Merge "CertificateChainValidator: initialize TrustManagerFactory"
Kenny Root [Wed, 26 Mar 2014 23:59:11 +0000 (23:59 +0000)]
am 57f2764b: Merge "CertificateChainValidator: initialize TrustManagerFactory"

* commit '57f2764bf104b0fe7b5cd67ad5b2cae9bc8352ed':
  CertificateChainValidator: initialize TrustManagerFactory

10 years agoMerge "CertificateChainValidator: initialize TrustManagerFactory"
Kenny Root [Wed, 26 Mar 2014 22:51:52 +0000 (22:51 +0000)]
Merge "CertificateChainValidator: initialize TrustManagerFactory"

10 years agoam 5daf51c0: Merge "jni: 64-bit compile issue"
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

10 years agoMerge "jni: 64-bit compile issue"
Mark Salyzyn [Wed, 26 Mar 2014 19:52:11 +0000 (19:52 +0000)]
Merge "jni: 64-bit compile issue"

10 years agojni: 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

10 years agoam 491eaf22: Merge "Note libselinux dependency on packages.list format changes."
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.

10 years agoMerge "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."

10 years agoCertificateChainValidator: initialize TrustManagerFactory
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

10 years agoNote libselinux dependency on packages.list format changes.
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>
10 years agoDO NOT MERGE - [ActivityManager] Ensure consistency behavior when a background activi...
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

10 years agoam 80470cdf: Merge "Solve three memory leaks related to PatchCache"
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

10 years agoMerge "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"

10 years agoMarquee text RTL improvements
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

10 years agoam 77ceb5e8: Merge "Use X509ExtendedTrustManager and not Conscrypt"
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

10 years agoam 2cacc619: Merge "Don\'t wait for finishing animation when second display is discon...
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

10 years agoMerge "Use X509ExtendedTrustManager and not Conscrypt"
Kenny Root [Tue, 25 Mar 2014 17:06:54 +0000 (17:06 +0000)]
Merge "Use X509ExtendedTrustManager and not Conscrypt"

10 years agoMerge "Don't wait for finishing animation when second display is disconnected"
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"

10 years agoam 5f0d44f6: Merge "Fix scaleNinePatch."
Narayan Kamath [Tue, 25 Mar 2014 14:27:11 +0000 (07:27 -0700)]
am 5f0d44f6: Merge "Fix scaleNinePatch."

* commit '5f0d44f69768a39b0bcd9d1d072ce3606a1ca1ed':
  Fix scaleNinePatch.

10 years agoMerge "Fix scaleNinePatch."
Narayan Kamath [Tue, 25 Mar 2014 13:56:51 +0000 (13:56 +0000)]
Merge "Fix scaleNinePatch."

10 years agoCast CallMethod's size_t parameters to jint
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>
10 years agoDon't wait for finishing animation when second display is disconnected
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

10 years agoSolve three memory leaks related to PatchCache
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

10 years agoUse X509ExtendedTrustManager and not Conscrypt
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

10 years agoReduce warning verbosity in aapt
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

10 years agoam 557a93e1: Merge "Set ScreenshotSurface secure if any secure content is shown."
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.

10 years agoMerge "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."

10 years agoFix scaleNinePatch.
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

10 years agoam 88517170: Merge "Adjust to the change in the private SSLParameterImpl API."
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.

10 years agoMerge "Adjust to the change in the private SSLParameterImpl API."
Alex Klyubin [Fri, 21 Mar 2014 18:36:07 +0000 (18:36 +0000)]
Merge "Adjust to the change in the private SSLParameterImpl API."

10 years agoAdjust to the change in the private SSLParameterImpl API.
Alex Klyubin [Fri, 21 Mar 2014 18:13:50 +0000 (11:13 -0700)]
Adjust to the change in the private SSLParameterImpl API.

Conscrypt's SSLParameterImpl getDefaultTrustManager was renamed to
getDefaultX509TrustManager.

Bug: 13563574
Change-Id: I601c651d631f5a2e4a04d21941186553988e5286

10 years ago[ActivityManager] Fix a bug: unable to start activity after starting activities durin...
leo_hsu [Fri, 21 Mar 2014 04:27:16 +0000 (12:27 +0800)]
[ActivityManager] Fix a bug: unable to start activity after starting activities during screen off.

Symptom: Unable to start any activity.
Root Cause: ActivityStack.mPausingActivity() points to a destroyed activity of a died process, so that ActivityStackSupervisor.allPausedActivitiesComplete() always returns false.
Solution: Set mPausingActivity to null in ActivityStack.cleanUpActivityLocked().
Reproduce steps:
    a. Turn screen off.
    b. A background service starts an activity X (in process X).
    c. A background service starts a no-history activity Y (in process Y), but the main thread of Y was blocked.
    d. A background service starts Y 3~4 times --> this causes am_failed_to_pause on X.
    e. Main thread of Y is freed finally --> this causes Y crash for android.view.WindowManager$BadTokenException.
    f. Turn screen on, X is shown on screen, but neither back key nor home key can work because mPausingActivity is Y.

Change-Id: I320b3db407e2d4cc745c8ca22a6e548742234242

10 years agoam 4308a523: Merge "bootanimation: build 32-bit if 64-bit gl libraries are not available"
Colin Cross [Thu, 20 Mar 2014 17:33:20 +0000 (10:33 -0700)]
am 4308a523: Merge "bootanimation: build 32-bit if 64-bit gl libraries are not available"

* commit '4308a5230e2887c1ee12e7bdc60e0b93212637ab':
  bootanimation: build 32-bit if 64-bit gl libraries are not available

10 years agoMerge "bootanimation: build 32-bit if 64-bit gl libraries are not available"
Colin Cross [Thu, 20 Mar 2014 17:28:11 +0000 (17:28 +0000)]
Merge "bootanimation: build 32-bit if 64-bit gl libraries are not available"

10 years agoam 0da4ad42: Merge "Don\'t register methods when there\'s nothing to register."
Narayan Kamath [Thu, 20 Mar 2014 10:13:27 +0000 (03:13 -0700)]
am 0da4ad42: Merge "Don\'t register methods when there\'s nothing to register."

* commit '0da4ad425d52d1aeec16b31b784c456753532dc2':
  Don't register methods when there's nothing to register.

10 years agoMerge "Don't register methods when there's nothing to register."
Narayan Kamath [Thu, 20 Mar 2014 10:08:37 +0000 (10:08 +0000)]
Merge "Don't register methods when there's nothing to register."

10 years agoSet ScreenshotSurface secure if any secure content is shown.
Minoru Aoi [Thu, 13 Mar 2014 03:00:34 +0000 (12:00 +0900)]
Set ScreenshotSurface secure if any secure content is shown.

The screenrecord command can record secure content during rotation.
This is because the ScreenshotSurface surface for rotation animation
is not set secure even though its screenshot contains secure content.

Change-Id: I5a70be71ddfc26de4230e7d4fe547210c2154210

10 years agoam dac29800: Merge "Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON"
Chris Craik [Thu, 20 Mar 2014 02:24:53 +0000 (19:24 -0700)]
am dac29800: Merge "Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON"

* commit 'dac298005ce3c1361e27bb740e4b518765d43d77':
  Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON

10 years agoMerge "Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON"
Chris Craik [Thu, 20 Mar 2014 02:19:53 +0000 (02:19 +0000)]
Merge "Prevent Lockscreen album art from activating FLAG_KEEP_SCREEN_ON"

10 years agoam 83725810: Merge "Get rid of noise during boot."
Nick Kralevich [Thu, 20 Mar 2014 01:47:45 +0000 (18:47 -0700)]
am 83725810: Merge "Get rid of noise during boot."

* commit '8372581089422364f4f8bc948b9cbdcf5f8c2e91':
  Get rid of noise during boot.

10 years agoMerge "Get rid of noise during boot."
Nick Kralevich [Thu, 20 Mar 2014 01:37:38 +0000 (01:37 +0000)]
Merge "Get rid of noise during boot."

10 years agoGet rid of noise during boot.
Dianne Hackborn [Thu, 20 Mar 2014 00:49:09 +0000 (17:49 -0700)]
Get rid of noise during boot.

This log is not an error, it is a warning, don't spam a stack
crawl when it happens.

Change-Id: I6038e3625cc0c16af9e54887b5e7ec451d9f864d

10 years agoam 19fc55e1: Merge "build app_process64 on 64-bit targets"
Colin Cross [Thu, 20 Mar 2014 01:19:25 +0000 (18:19 -0700)]
am 19fc55e1: Merge "build app_process64 on 64-bit targets"

* commit '19fc55e1e3a51aba4db985d186d1f4ec075d7ca1':
  build app_process64 on 64-bit targets

10 years agoMerge "build app_process64 on 64-bit targets"
Colin Cross [Thu, 20 Mar 2014 01:14:43 +0000 (01:14 +0000)]
Merge "build app_process64 on 64-bit targets"