120518 Commits

Author SHA1 Message Date
Craig Mautner
4895bf78ff Merge "Fix a bug that the RecentTask list of other’s may show up to non-primary users." 2014-07-29 21:36:05 +00:00
Eunae Kim
26ac40305a Fix a bug that the RecentTask list of other’s may show up to non-primary users.
When switching to a newly created user, the user may face this bug when he opens the RecentTask screen.
A possible bug scenario is described as follows:
A user id of a removed user may be recycled when created a new user.
However, mRecentTasks is not correctly controlled so that old information may still remain and be possibly mapped to wrong user.
This patch prevents this bug by explicitly removing old information in mRecentTasks when removing existing user.

Change-Id: I1874dbd604598a5d740ae1e034981e21214c15c6
Signed-off-by: Eunae Kim <eunae.kim@lge.com>
2014-07-31 13:58:53 +09:00
henry.uh_chen
a199720190 [View] Clear Hardware-Layers before system destroys HardwareRenderer​.
Symptom: Sometimes HardwareLayer display is corrupted.

Root Cause: In some cases, ViewRootImpl destroys HardwareRenderer​ without
clearing HardwareLayers in the view hirarchy. If the system trims memory fully
and kill the glContext at the same time, HardwareLayer may corrupt.

Solution: Clear Hardware-Layers before system destroys HardwareRenderer​.

Reproduce steps: Modify the cache's trim memory mechanism to make it easier to
trim fully, HardwareLayers implemented in app will easily be corrupted.
Modification of the cache is not required but make it easier to reproduce.

Change-Id: If57c802cdacf8dc37cbbcc199e74f9482834f981
2014-07-25 18:07:24 +08:00
Tim Murray
638a2b2dac am 8224edb9: Merge "Update makefile for clang host build."
* commit '8224edb94f6421a2d910362c56940dcf991847e6':
  Update makefile for clang host build.
2014-07-24 21:04:20 +00:00
Tim Murray
8224edb94f Merge "Update makefile for clang host build." 2014-07-23 18:45:08 +00:00
Chris Craik
88fbb5f48f am 215ecb93: Merge "Restore untrusted glStencilMask value on resume after functor"
* commit '215ecb93e9ca93a7445f38534b29ac917557f8e1':
  Restore untrusted glStencilMask value on resume after functor
2014-07-23 00:20:16 +00:00
Chris Craik
215ecb93e9 Merge "Restore untrusted glStencilMask value on resume after functor" 2014-07-22 20:34:45 +00:00
Chris Craik
c47aba2a77 Restore untrusted glStencilMask value on resume after functor
Fixes an issue where the stencil buffer is corrupted
(used in overdraw debugging, path clipping) when used in
conjunction with a HW accelerated WebView.

bug:15023700
bug:16465551

Change-Id: If201b503931380f7107a34e9a9a2f877a50f72b1
2014-07-22 23:19:02 +00:00
Chris Craik
8040d6fccb am bfb349e2: Merge "[Bitmap] Add null pointer protection in Bitmap_sameAs()"
* commit 'bfb349e2421d5b74701818f6aa486f057b2e5884':
  [Bitmap] Add null pointer protection in Bitmap_sameAs()
2014-07-22 19:15:15 +00:00
Chris Craik
48242d801c am 50a2d633: Merge "[HWUI] Fix invisible views are still shown in popup window"
* commit '50a2d6339c7a6ee121c4aa52afc4cc027913f3fc':
  [HWUI] Fix invisible views are still shown in popup window
2014-07-22 19:11:18 +00:00
Chris Craik
bfb349e242 Merge "[Bitmap] Add null pointer protection in Bitmap_sameAs()" 2014-07-22 16:35:00 +00:00
Chris Craik
50a2d6339c Merge "[HWUI] Fix invisible views are still shown in popup window" 2014-07-22 16:35:00 +00:00
Neil Fuller
1a4290473d am fc6346d4: Merge "Rewriting android.text.format.Time without the native _tz functions"
* commit 'fc6346d461c9ed9b499643db830885241cc82838':
  Rewriting android.text.format.Time without the native _tz functions
2014-07-22 15:29:08 +00:00
Narayan Kamath
b5c714fca7 am e242111c: Merge "Remove copy of Locale.adjustLanguageCode."
* commit 'e242111c5dc63e1cbba41d2341b493cb9c064589':
  Remove copy of Locale.adjustLanguageCode.
2014-07-22 13:30:41 +00:00
Craig Mautner
b7bb95b0f3 am 02fd104f: Merge "Skip broadcasting to a receiver if the receiver seems to be dead"
* commit '02fd104f303cb7d55d6af42be8fe7be543e9aba5':
  Skip broadcasting to a receiver if the receiver seems to be dead
2014-07-21 15:31:38 +00:00
Yohann Roussel
9cfbca64ac am 3bdbf644: Merge "Add support.multidex tests app for an update bug."
* commit '3bdbf644d61f46b531838558fabbd5b990fc4913':
  Add support.multidex tests app for an update bug.
2014-07-18 10:59:05 +00:00
Tim Murray
132ed0f2b4 Update makefile for clang host build.
bug 16172793

Change-Id: If7484c5dbcccce7d925bec97bff0a3e4c30e9434
2014-07-17 16:37:42 -07:00
Craig Mautner
02fd104f30 Merge "Skip broadcasting to a receiver if the receiver seems to be dead" 2014-07-17 23:22:21 +00:00
Koji Fukui
63909886b2 Skip broadcasting to a receiver if the receiver seems to be dead
If an application that has a broadcast receiver is killed
during broadcasting, thread variable of ProcessRecord becomes null
so that IIntentReceiver#performReceive() is called
in BroadcastQueue#performReceiveLocked(). But if binder driver has not
noticed the death of the application yet, it can't throw
DeadObjectException. After that, binder driver notices. But it can't
notify DeadObjectException to the caller because performReceive() is
async call. So broadcasting keeps on waiting for finishing
performReceive() until timeout.

This change checks the death of the application before calling
performReceive() and skips broadcasting to the receiver
if the application has already died.

Change-Id: Ifa02b8b1a7e7b6fd314de90fedff5b7a5326825d
2014-07-21 09:53:05 +02:00
Yohann Roussel
3bdbf644d6 Merge "Add support.multidex tests app for an update bug." 2014-07-17 22:37:43 +00:00
Neil Fuller
fc6346d461 Merge "Rewriting android.text.format.Time without the native _tz functions" 2014-07-17 22:36:58 +00:00
Neil Fuller
d7f0849b8c Rewriting android.text.format.Time without the native _tz functions
Bug: 15765976
Change-Id: I666b72ecf9da8a9dcfb97cc503006b415909a558
2014-07-22 15:06:16 +01:00
Narayan Kamath
e242111c5d Merge "Remove copy of Locale.adjustLanguageCode." 2014-07-17 22:36:58 +00:00
Narayan Kamath
1d31a5f824 Remove copy of Locale.adjustLanguageCode.
Change-Id: Iba8c67890f95d50fadcd1245dc083d646fe6bcc1
2014-07-18 16:09:36 +01:00
Chris Craik
8470bb0ac9 am 152d9e61: Merge "[HWUI]: fix residual line on FrameBuffer"
* commit '152d9e61284d31e3b9dfa8dccca3c3c78382035d':
  [HWUI]: fix residual line on FrameBuffer
2014-07-17 19:32:08 +00:00
Chris Craik
152d9e6128 Merge "[HWUI]: fix residual line on FrameBuffer" 2014-07-17 18:05:27 +00:00
Craig Mautner
15c2da7ce5 am 2e7b2521: Merge "[ActivityManager]: Update home process when home activity resumed"
* commit '2e7b2521f1758bf16935a9a879c595cc44eab37f':
  [ActivityManager]: Update home process when home activity resumed
2014-07-16 17:21:21 +00:00
Craig Mautner
2e7b2521f1 Merge "[ActivityManager]: Update home process when home activity resumed" 2014-07-16 16:25:15 +00:00
louis_chang
73fd117c65 [ActivityManager]: Update home process when home activity resumed
Symptom:
  When switch between two home activities, the home process might not be updated to the correct one. In that case, the home activity might be killed easily.

Root Cause:
  The home process is updated only when a home activity is newly created or being restarted. ActivityManager did not update the home process when simply resume a home activity.

Solution:
  Update home process when home activity resumed

Reproduce Steps:
  1. Install a launcher application, such as Apex Launcher
  2. Press home key to change to Apex Launcher by "Just once" option
  3. Press home key to switch back to original home activity by "Just once" option.
     (The home process is still the Apex Launcher's process because ActivityManager does not update the home process when resuming the original home activity.)

Change-Id: I046279ca7ba851a283ee67ea19202890f7b3f343
2014-07-16 17:16:34 +00:00
Craig Mautner
07c3b19556 am d543c3e1: Merge "[ActivityManager] Do not finish root activity when reset task"
* commit 'd543c3e113ffa82a63669feca540ca2e10b1576f':
  [ActivityManager] Do not finish root activity when reset task
2014-07-16 15:50:43 +00:00
Craig Mautner
3eb3b1d66a am 7f4b4202: Merge "[ActivityManager] Move top task to top in window manager"
* commit '7f4b4202130620edf385b7544e1358c589ee69d2':
  [ActivityManager] Move top task to top in window manager
2014-07-16 15:46:49 +00:00
Narayan Kamath
eab505fa8d am f9c79c63: Merge "Removed useless test"
* commit 'f9c79c63bc6630888785b7acdd8332b08e87a18b':
  Removed useless test
2014-07-16 13:35:52 +00:00
Narayan Kamath
73083ed1e4 am 3c8f8caa: Merge "Add an internal API to get all asset locales."
* commit '3c8f8caaa711c0d025dab85cfdacc7586e75d31a':
  Add an internal API to get all asset locales.
2014-07-16 12:57:02 +00:00
Yohann Roussel
2f00e62d96 Add support.multidex tests app for an update bug.
The failing scenario is
- install v1
- run
- update to v2
- update to v3
- run
last run was failing with initial multidex library versions because
it's still running on v1 extracted secondary dex files.

(cherry picked from commit 05e2a94c8b510131f43a686f5188d4c0f2a5eebd)

Change-Id: Ibb5d16642b127ee4c0baddc4f6ba461c11d25f90
2014-07-16 12:54:56 +02:00
Narayan Kamath
f9c79c63bc Merge "Removed useless test" 2014-07-16 01:09:23 +00:00
Narayan Kamath
3c8f8caaa7 Merge "Add an internal API to get all asset locales." 2014-07-16 01:07:54 +00:00
Craig Mautner
d543c3e113 Merge "[ActivityManager] Do not finish root activity when reset task" 2014-07-15 20:36:09 +00:00
louis_chang
f87b219539 [ActivityManager] Do not finish root activity when reset task
Symptom:
The root activity not always located at index 0 of the task.
For example, the index 1 activity will become the new root
when the original root activity (at index 0) finished.
The new root activity might be finished unexpectedly before
the original root activity actually destroyed.

Solution:
Check frontOfTask to avoid finishing the root activity unexpectedly

Change-Id: I623ab97e9c95c83b3cfe7c9dfc151a291a391ea4
2014-07-16 18:15:35 +08:00
Craig Mautner
7f4b420213 Merge "[ActivityManager] Move top task to top in window manager" 2014-07-15 20:36:09 +00:00
louis_chang
d937616f87 [ActivityManager] Move top task to top in window manager
Symptom:
In certain situations, application starts activity while
it is in background. When an existing background activity
starts a new activity which results to be kept in the same
background task, the new activity won't be resumed.
In that case, the background task (sourceTask) should not be
moved to top in window manager.

Solution:
Move top task of the target stack to top in window manager

Change-Id: Id7a37ea67ce1f80e0c2b5399865c51fd7113deb8
2014-07-16 17:42:04 +08:00
Deepanshu Gupta
39488dc3d4 am 7b97e426: Merge "Optimize Blend composites."
* commit '7b97e426bd77b22a64b49112ce2455a51bac0b5b':
  Optimize Blend composites.
2014-07-15 20:10:40 +00:00
Deepanshu Gupta
aaef3efa22 am e147445a: Merge "Add BlendComposite.java"
* commit 'e147445a5e10b3e0fd01c7792e560ad677cd77ab':
  Add BlendComposite.java
2014-07-15 20:10:36 +00:00
Deepanshu Gupta
7b97e426bd Merge "Optimize Blend composites." 2014-07-14 23:57:35 +00:00
Deepanshu Gupta
e147445a5e Merge "Add BlendComposite.java" 2014-07-14 23:57:35 +00:00
Narayan Kamath
9e6d9d4c81 Add an internal API to get all asset locales.
This will allow us to not copy paste this code verbatim into
bundled apps.

bug: 10090157
Change-Id: I008dc683ecbef2ad8b7a26968cb3cbda7e5a8388
2014-07-14 16:29:22 +01:00
Narayan Kamath
f7d6925ee7 am 7850f95d: Merge "Allow 3 letter language codes in InputMethodUtils."
* commit '7850f95dc55c4e4801cf145c42a1bc98b49a87d6':
  Allow 3 letter language codes in InputMethodUtils.
2014-07-14 08:52:55 +00:00
Christopher Tate
f908b61abf am ef3b35b4: Merge "Logging in LocalTransport on as default"
* commit 'ef3b35b48c31919a7d6977e41db7f9d37654dec3':
  Logging in LocalTransport on as default
2014-07-11 01:44:36 +00:00
Colin Cross
d01adef1ba am 1f060a17: Merge "GpsLocationProvider: look for config file in /etc/gps.<ro.hardware.gps>.conf"
* commit '1f060a178d9e69f8c08ccad5d7e0ef8fb22ddf8e':
  GpsLocationProvider: look for config file in /etc/gps.<ro.hardware.gps>.conf
2014-07-11 01:44:31 +00:00
Narayan Kamath
7850f95dc5 Merge "Allow 3 letter language codes in InputMethodUtils." 2014-07-10 20:18:52 +00:00
Narayan Kamath
7be75338a3 Allow 3 letter language codes in InputMethodUtils.
Replace locale.substring(0, 2) with a function that always
returns the first component of the locale (assumed to be the
language).

bug: 10090157

(cherry picked from commit cefc79c6b18bb2e824c299e7b9e212071e5ebc43)

Change-Id: I56b02dd0c6dc222daa3ceade841a30879449bb4a
2014-07-14 09:42:55 +01:00