147234 Commits

Author SHA1 Message Date
Torne (Richard Coles)
4dbeb359b2 Cherry pick Make WebViewUpdateService a SystemService. DO NOT MERGE
Migrate WebViewUpdateService to the newer SystemService approach instead
of ServiceManager.addService.

Original Bug: 16403706
Original Change-Id: I21aa67a41c22c3c20ba9e82eb87e5d610fe130e8

Bug: 16723226
Change-Id: Id276b71ee547e683f0756bcee0f4978ce342c2af
2014-08-01 14:24:47 +01:00
Primiano Tucci
161536b597 Cherry pick Refactor ActivityManagerService and make WebViewFactory more pedantic. DO NOT MERGE
This CL adds more robustness to the logic in WebViewFactory, checking
whether the isolated process did start at all and catching exceptions
in its java side.
Also, this addresses the refactor comments received in CL 509840.

Original BUG:16403706
Original Change-Id: Iaaea6d36142ece6d974c2438259edf421fce9f2e

Bug: 16723226
Change-Id: Id308f2ffde9b67a3eb4719c7b81b4f46421f0c2e
2014-08-01 14:24:38 +01:00
Primiano Tucci
1b7977b608 Cherry pick Refactor native library path logic in WebViewFactory DO NOT MERGE
This CL changes the relro creation and loading logic.
Instead of using a hardcoded path, now WebViewFactory queries the
package manager to get the lib path, which will be either
/system/priv-app/webview/lib/ or /data/app/... depending on the
presence of an update apk.

Original BUG:16403706
Original Change-Id: Icceb95da98e69032a19ac2ae8fe72ba1439e50ad

Bug: 16723226
Change-Id: Ia3155f72a735d75a566a8cc4c8c892d43b6cd371
2014-08-01 14:24:28 +01:00
Marcin Kosiba
63d3d8a458 Cherry pick Append WebView assets to AssetManager when loading the WebView. DO NOT MERGE
This makes the code loading the WebView Java code from the .apk
also load the WebView assets into the current AssetManager.

Original BUG: 11505352
Original Change-Id: Ib6203f79b98805012ffa20b233037b7da221624c

Bug: 16723226
Change-Id: Ie7b0b22df9727c72debfb9ccfcd84c95bf41e039
2014-08-01 14:24:18 +01:00
Primiano Tucci
810c052d9b Cherry pick Introduce startIsolatedProcess private API in ActivityManager DO NOT MERGE
The new API spawns a isolated process, using a custom uid, entrypoint and
abi. Such API is used by the WebViewFactory to spawn its unpriviledged
but trusted process (hence the fixed uid) which rewrites the rerlo file
on boot / when an update occurs.
Since both the ActivityManager service and the WebViewUpdate service
live in the SystemServer their calls be dispatched locally and no
binder interface needs to be exposed for the new startIsolatedProcess API.

Original BUG:16403706
Original Change-Id: I327b59735c12698595e0dbcc4da5d759c9103b0a

Bug: 16723226
Change-Id: Iecb49888e11eec9d302d9712953fd498db5821af
2014-08-01 14:24:09 +01:00
Torne (Richard Coles)
6c778cebc7 Cherry pick Load the WebView Java code from an APK. DO NOT MERGE
Use the WebView APK to load the Java code via createPackageContext.

Original Bug: 16329371
Original Change-Id: I1292edab639d85c2027dc8ebb52def8c36d41cde

Bug: 16723226
Change-Id: I8e692a5e12706f91a8af0a8b385bac336ce60913
2014-08-01 14:23:55 +01:00
Chris Wren
d2fafdda57 Merge "Optimize large preview from the screenshot notification." into lmp-dev 2014-07-31 19:45:19 +00:00
Chris Wren
f63185e7bd Optimize large preview from the screenshot notification.
Crop out a notification_panel_width by notification_max_height
section of the screenshot for the preview.

This will only save about 25% of the bytes on a phone-like device over
the existing square crop, but on a tablet-like device the savings will be
more significant: above 75%.

Bug: 16631778
Change-Id: I05d4d402e44f7700f17b8b97018f6c00c3b0196d
2014-08-01 09:56:51 +00:00
Fergus Henderson
732af43eb1 Merge "Simplify generics, and make Builder concrete." into lmp-dev 2014-07-31 19:45:19 +00:00
Niels Egberts
2a236a6466 Simplify generics, and make Builder concrete.
Change-Id: I3e14966527c254d2c15dddefc2ef60cdde30421f
2014-08-01 11:46:16 +01:00
John Spurlock
c9b5cd3cae Merge "New wifi + radio icons." into lmp-dev 2014-07-31 19:45:19 +00:00
John Spurlock
b3eb89190c New wifi + radio icons.
- Replace old pngs with new vectors.
 - New problem indication, remove provisional color filters.
 - Remove spacing hacks in SignalClusterView.
 - Wire up QS tile icons to demo mode.

Bug:15988601
Change-Id: Ib785288eebfb09896a499d562eb56debbd89a456
2014-07-31 17:13:10 -04:00
ztenghui
1c4d8b2173 Correct the tag's name in the exceptions
Change-Id: I9d1499fbcf8adb6bf0c5c0b7a10a8b480a708c09
2014-07-31 19:42:31 +00:00
Chris Craik
77b5cad3ef Add outline alpha
bug:16140822
bug:16566746

This allows background drawables to alter the opacity of a shadow
being cast with their own alpha values.

Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
2014-07-31 12:29:57 -07:00
Joe Fernandez
ecea0c7186 am 5973c2c5: am 441e7aa2: am eb4bc851: am 69ed58ac: Merge "docs: Adding TIF one-pager to TV docs in L-Preview" into klp-modular-docs
* commit '5973c2c56e378ee4a0e7177ff797f72c4680de3c':
  docs: Adding TIF one-pager to TV docs in L-Preview
2014-07-31 18:50:44 +00:00
Joe Fernandez
8d7c55bd10 am 441e7aa2: am eb4bc851: am 69ed58ac: Merge "docs: Adding TIF one-pager to TV docs in L-Preview" into klp-modular-docs
* commit '441e7aa23478b8de386efc69d43f889979bc6eee':
  docs: Adding TIF one-pager to TV docs in L-Preview
2014-07-31 18:43:21 +00:00
Joe Fernandez
441e7aa234 am eb4bc851: am 69ed58ac: Merge "docs: Adding TIF one-pager to TV docs in L-Preview" into klp-modular-docs
* commit 'eb4bc851aade1090c0a4e1f1e6f7ecd136b4a47a':
  docs: Adding TIF one-pager to TV docs in L-Preview
2014-07-31 18:40:05 +00:00
Joe Fernandez
eb4bc851aa am 69ed58ac: Merge "docs: Adding TIF one-pager to TV docs in L-Preview" into klp-modular-docs
* commit '69ed58aced0e884d7758d84067134b04fbcee9c0':
  docs: Adding TIF one-pager to TV docs in L-Preview
2014-07-31 18:35:02 +00:00
Wonsik Kim
d34d449250 am cb92d507: Fix NPE when fused geofence hardware is not available.
* commit 'cb92d507167fcce059c4ae91dc46b496f49b4fa3':
  Fix NPE when fused geofence hardware is not available.
2014-07-31 18:27:44 +00:00
Wonsik Kim
c2b74b73a1 Fix NPE when fused geofence hardware is not available.
b/16690237

Change-Id: I3ac50c8fd50fc799afcfc76126a5fd0c9ba0a5f4
2014-07-31 18:24:23 +00:00
Eunae Kim
76880870ba am 218a0666: Fix a bug that the RecentTask list of other’s may show up to non-primary users.
* commit '218a0666a5235bc76f2950684bbfcb500e89972c':
  Fix a bug that the RecentTask list of other’s may show up to non-primary users.
2014-07-31 17:33:41 +00:00
Eunae Kim
ad3aa32fee Fix a bug that the RecentTask list of other’s may show up to non-primary users.
Cherry-pick from aosp to lmp-dev.

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>

Conflicts:
	services/java/com/android/server/am/ActivityManagerService.java
2014-07-31 10:27:28 -07:00
riddle_hsu
635e039a62 am d66d006f: [ActivityManager] Prevent coredump file may not complete for testing.
* commit 'd66d006f9f64a0c9e70827b27e21210192f9b552':
  [ActivityManager] Prevent coredump file may not complete for testing.
2014-07-31 17:26:08 +00:00
Raph Levien
341c63172d am 6d624fe2: Merge "Re-remove AndroidEmoji.ttf." into lmp-dev
* commit '6d624fe23709f4e5d8643a4a9324cb327e142ee1':
  Re-remove AndroidEmoji.ttf.
2014-07-31 17:26:04 +00:00
George Mount
84089e0343 am 4b71e7f7: Merge "Fix visibility propagation check." into lmp-dev
* commit '4b71e7f7b03844126df844015004f00e8f19afe9':
  Fix visibility propagation check.
2014-07-31 17:25:59 +00:00
riddle_hsu
a1404fd114 am 5b94ec47: [ActivityManager] Avoid mistaking visibility by finishing task.
* commit '5b94ec47e84d5e1d116fc281e81d9164f496a388':
  [ActivityManager] Avoid mistaking visibility by finishing task.
2014-07-31 17:25:54 +00:00
riddle_hsu
214be42ea6 [ActivityManager] Prevent coredump file may not complete for testing.
Cherry-pick from aosp to lmp-dev

Sympton:
During testing, skip kill native crash process manually because it
will continue to die by default.

Root Cause:
Large process may take some time to do coredump.In auto test, crash
process will be killed immediately that results incomplete coredump
file.

Solution:
If the tester (IActivityController) will handle app crash event,
Do not kill native crashed process if the rom is debuggable.

Change-Id: Ia360af147d694125d440e5ba2f958c4759a50494

Conflicts:
	services/java/com/android/server/am/ActivityManagerService.java
2014-07-31 10:18:59 -07:00
riddle_hsu
9bcc6e83d9 [ActivityManager] Avoid mistaking visibility by finishing task.
Cherry-picked from aosp into lmp-dev.

Sympton:
Next activity only adds to history but does not launch/resume then results ANR.

Root Cause:
In a rare timing, some windows are switched at the same time,
it will cause some finishing records on the top temporarily,
then set startIt to false that skip to resume the real top activty.

Solution:
If all activities in a task are finishing, do not use it to check.
The behavior/checking is the same concept as in JellyBean:
            // If starting in an existing task, find where that is...
            boolean startIt = true;
            for (int i = NH-1; i >= 0; i--) {
                ActivityRecord p = mHistory.get(i);
                if (p.finishing) { // <--
                    continue;
                }

Change-Id: I9d81a7b5182400c52e173da23eee61c74692beee

Conflicts:
	services/java/com/android/server/am/ActivityStack.java
2014-07-31 17:07:39 +00:00
destradaa
f35c97a6fd am 7efb7d49: Fix crash in Volantis because there is not FLP support.
* commit '7efb7d491c973d3605ab61996ee83b502d9ee765':
  Fix crash in Volantis because there is not FLP support.
2014-07-31 17:05:00 +00:00
Roozbeh Pournader
ee20b21ff9 am cac26f40: Crunch Roboto and fix its digits to have the same width.
* commit 'cac26f40512f7548ed3ff75fa37ea6aa837cd545':
  Crunch Roboto and fix its digits to have the same width.
2014-07-31 17:04:50 +00:00
destradaa
beea442e72 Fix crash in Volantis because there is not FLP support.
b/16690237

Change-Id: Ie2dd159ad4e9b5cf4b3e2e66023b456927f18130
2014-07-31 17:02:01 +00:00
Roozbeh Pournader
fa4aeeeb71 Crunch Roboto and fix its digits to have the same width.
Update to upstream version 2.001045, which adds fontcrunch to the font
production process and fixes a problem with uneven digit widths. Should fix
https://code.google.com/p/android-developer-preview/issues/detail?id=330.

The font footprint is reduced by 705KB, most of it due to the crunching, but
also by using a newer version of fonttools that removes extra unnecessary
paddings from the glyf table.

Bug: 15348046
Bug: 16296048
Bug: 16299966

Change-Id: I838711916f8c47db011cfe889b232e60e6f1aa0c
(cherry picked from commit 6feb729b686b902be2520a91281e1a000c055da2)
2014-07-31 16:56:15 +00:00
Mike Lockwood
08b7c4fb3a am 72dff5d5: Add toString() methods to some audio classes to help with debugging.
* commit '72dff5d5264643305108b17b5e76ba3324f5e32b':
  Add toString() methods to some audio classes to help with debugging.
2014-07-31 16:54:49 +00:00
Mike Lockwood
2754fd0cd3 Add toString() methods to some audio classes to help with debugging.
Change-Id: I2b61d8cdfbcaa7671705771325205b074c50ab1e
2014-07-31 16:50:02 +00:00
Sandeep Siddhartha
9e6357b2d0 am 9428457f: Merge "Don\'t unload sound model in start recognition unless the model changes" into lmp-dev
* commit '9428457f4f1a902a1908f7a9f9ed718f92435a4f':
  Don't unload sound model in start recognition unless the model changes
2014-07-31 16:45:32 +00:00
Evan Charlton
7a547177cd am 0e097002: Fix a small typo in javadocs
* commit '0e0970022cdf105e073b182cc4e72e54c3f8eecd':
  Fix a small typo in javadocs
2014-07-31 16:16:56 +00:00
Evan Charlton
b8d0717934 Fix a small typo in javadocs
Service#START_FLAG_RETRY has an extra word; remove it.

Change-Id: I4743e2ea474c70fe5d31f1a4ef257f9752f8e823
2014-07-31 16:14:22 +00:00
Alexandra Gherghina
c2357a6979 am 8b0b1504: Use the appropriate default icon
* commit '8b0b1504a357ec809eed25c00923e67b4d6dad22':
  Use the appropriate default icon
2014-07-31 15:47:05 +00:00
Alexandra Gherghina
a709314537 Use the appropriate default icon
ComponentInfo subclasses and ApplicationInfo have different ways to retrieving
the default icon. Previously, in CL I2db300a69a08030eacc245ee91556f0443ba5878
we defaulted everything to the green Android. This makes sure that they get the
right default.

Bug: 16630068
Change-Id: Ifa499eac6f1543523d6ecf0831175bfd6b772edb
2014-07-31 15:43:11 +00:00
Jorim Jaggi
6d8917cc65 am b0376562: Fix a few StatusBarHeaderView regressions
* commit 'b03765626443629220dc0fe33398a1785eaaeefe':
  Fix a few StatusBarHeaderView regressions
2014-07-31 15:28:03 +00:00
Christoph Studer
648c03b77c am dd63df29: Merge "NoMan: Use Notification.isGroupX() methods" into lmp-dev
* commit 'dd63df2961408f35182b9fab98e51eb5f8c26184':
  NoMan: Use Notification.isGroupX() methods
2014-07-31 15:27:58 +00:00
Jorim Jaggi
9d8ca0f010 Fix a few StatusBarHeaderView regressions
Change-Id: Iae1af96f80caf4978c5a6ec6ef81b83543e9fe0e
2014-07-31 15:24:43 +00:00
Christoph Studer
f31e1cef54 am daef7cc7: Merge "SysUI: Respect "no notifs on lockscreen" setting" into lmp-dev
* commit 'daef7cc7cfa0c721f9419b42704b08762fcf01d3':
  SysUI: Respect "no notifs on lockscreen" setting
2014-07-31 14:55:58 +00:00
Jorim Jaggi
8950ca17d8 am d1429923: Implement nice QS expansion transition in Keyguard
* commit 'd142992377e854f327b376726d94bf5789c8317b':
  Implement nice QS expansion transition in Keyguard
2014-07-31 13:53:35 +00:00
Jorim Jaggi
6a09d01e0f am decb0b1e: Merge "Factor out keyguard components of StatusBarHeaderView" into lmp-dev
* commit 'decb0b1e788fde607db04e728b9e6dd0e3a9fb66':
  Factor out keyguard components of StatusBarHeaderView
2014-07-31 13:49:30 +00:00
Jorim Jaggi
61d37f6d1c Implement nice QS expansion transition in Keyguard
Bug: 16010455
Bug: 15192264
Change-Id: I764652e73ea8e87ad12b9241e038bff843a0a221
2014-07-31 13:48:43 +00:00
Christoph Studer
e123d70d7f am cab1943e: Merge "NoMan: Filter group children for pre-L listeners" into lmp-dev
* commit 'cab1943ecd5e6360045112e330778223e218e006':
  NoMan: Filter group children for pre-L listeners
2014-07-31 13:44:09 +00:00
Narayan Kamath
690892e990 am aa1cf141: Merge "Switch TextUtils over to new ICU API." into lmp-dev
* commit 'aa1cf14150cbd656aa31d862865973ecfae76eff':
  Switch TextUtils over to new ICU API.
2014-07-31 13:14:52 +00:00
Lorenzo Colitti
120d65d44a am 35474389: Merge "Add logging of Legacy Type info." into lmp-dev
* commit '354743895d837b18e906b3e9a9f4d58a558057d7':
  Add logging of Legacy Type info.
2014-07-31 13:14:47 +00:00
Alexandra Gherghina
ae02440de8 am 790bcf78: Upload new icons from ux
* commit '790bcf781e5e09ac12e76267073f41555e95f2c9':
  Upload new icons from ux
2014-07-31 13:07:06 +00:00