OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "QS: Fix detail flashing during transition." into lmp-dev
John Spurlock [Sat, 2 Aug 2014 14:58:41 +0000 (14:58 +0000)]
Merge "QS: Fix detail flashing during transition." into lmp-dev

10 years agoQS: Fix detail flashing during transition.
John Spurlock [Sat, 2 Aug 2014 14:56:05 +0000 (10:56 -0400)]
QS: Fix detail flashing during transition.

And modify the background a bit during the transition
to enhance the clip effect.

Change-Id: I2b4f4b18cb9c1b41efc2e6b38bc8f7d2a944511e

10 years agoQS: Update auto-rotation icon.
John Spurlock [Sat, 2 Aug 2014 13:24:26 +0000 (09:24 -0400)]
QS: Update auto-rotation icon.

Bug:16739860
Change-Id: Id85beb935cbccbecf97a071f114b2eed3e5cc258

10 years agoMerge "Stop recognition when shutting down VIS" into lmp-dev
Sandeep Siddhartha [Sat, 2 Aug 2014 01:52:07 +0000 (01:52 +0000)]
Merge "Stop recognition when shutting down VIS" into lmp-dev

10 years agoStop recognition when shutting down VIS
Sandeep Siddhartha [Sat, 2 Aug 2014 01:09:07 +0000 (18:09 -0700)]
Stop recognition when shutting down VIS

Bug: 16629417
Change-Id: I9c98d7e6d487d3eaff604df401c320f8554589f9

10 years agoAdd a flag for multiple triggers with same recognition session
Sandeep Siddhartha [Fri, 1 Aug 2014 18:32:03 +0000 (11:32 -0700)]
Add a flag for multiple triggers with same recognition session

Also annotate the flags with @IntDef to make things clearer and safer

Add more debug logging

Revert to start/stop being synchronous since telephony and microphone will
need to be handled internally.

Bug: 16731586
Bug: 16514535
Bug: 16549061
Change-Id: I83695d52e9547269c95d443e4d921c9238b7401e

10 years agoActivityTransitionCoordinator: Fix memory leak of ResultReceiver
Dake Gu [Fri, 1 Aug 2014 22:39:11 +0000 (15:39 -0700)]
ActivityTransitionCoordinator: Fix memory leak of ResultReceiver

The ActivityTransitionCoordinator is retained by reference from native code.
The coordinator refers to a app's listener which can cause leak.

b/16737906

Change-Id: Ibbb85480b852442f95b00a8d3beff0161bdadb47

10 years agoMerge "Add a flag for multiple triggers with same recognition session" into lmp-dev
Sandeep Siddhartha [Sat, 2 Aug 2014 01:26:52 +0000 (01:26 +0000)]
Merge "Add a flag for multiple triggers with same recognition session" into lmp-dev

10 years agoAdd Logging around getNetworkInfo.
Robert Greenwalt [Fri, 1 Aug 2014 23:56:05 +0000 (16:56 -0700)]
Add Logging around getNetworkInfo.

bug:16610051
Change-Id: I04f19efc99bce6d990364291b6cd8105f08ab263

10 years agoImprove LegacyTypeTracker.
Lorenzo Colitti [Thu, 31 Jul 2014 14:20:17 +0000 (23:20 +0900)]
Improve LegacyTypeTracker.

Keep track of requests as well as of networks that come and go.
This is necessary, for example, to ensure that we pretend that
HIPRI has gone down when the HIPRI request goes away, even
though the underlying cell network is actually completely
unaffected.

Also, ensure that when switching default networks we send
disconnect broadcasts (and do so *before* connect broadcasts, to
maintain the illusion).

Bug: 16610051
Change-Id: Ib3c831387124940156df05b312cc36bc0724373e

10 years agoMerge "Fix GSUB ccmp rule to use non-spacing marks." into lmp-dev
Roozbeh Pournader [Fri, 1 Aug 2014 22:18:11 +0000 (22:18 +0000)]
Merge "Fix GSUB ccmp rule to use non-spacing marks." into lmp-dev

10 years agoFix GSUB ccmp rule to use non-spacing marks.
Roozbeh Pournader [Fri, 1 Aug 2014 20:14:03 +0000 (13:14 -0700)]
Fix GSUB ccmp rule to use non-spacing marks.

The fonts are updated to upstream version 2.001047.

The previous version had buggy ccmp rules that were mistakenly replacing
sequences such as A` <U+0041, U+0060> with À <U+00C0>.  The new fonts
replace those with corrected rules that use combining accents instead, such
as U+0300 COMBINING GRAVE ACCENT instead of U+0060 GRAVE.

Also, a GSUB rule that mistakenly replaced aʾ <U+0061, U+02BE> with
ẚ <U+1E9A> is removed, and U+2117 SOUND RECORDING COPYRIGHT that was missing
from the Thin and Thin Italic fonts is added to them.

Bug: 16727859
Bug: 16719701
Change-Id: Ibd0a63ea3f51992c0e56fb255e68352915cc6c3a

10 years agoTurn off extra debugging
Wink Saville [Fri, 1 Aug 2014 18:13:40 +0000 (11:13 -0700)]
Turn off extra debugging

Change-Id: I3d7c68d3d7bcef5be084398807389f4a485bedb0

10 years agoDon't show guest when user switcher is simple
Jason Monk [Thu, 31 Jul 2014 18:35:06 +0000 (14:35 -0400)]
Don't show guest when user switcher is simple

Bug: 15729059
Change-Id: I9e88f0e7d01044a7096d6fc8d67bcd328014a625

10 years agoMerge "Add fontFeatureSettings to TextView and attrs" into lmp-dev
Behdad Esfahbod [Fri, 1 Aug 2014 21:42:07 +0000 (21:42 +0000)]
Merge "Add fontFeatureSettings to TextView and attrs" into lmp-dev

10 years agoAdd fontFeatureSettings to TextView and attrs
Behdad Esfahbod [Wed, 30 Jul 2014 23:46:53 +0000 (19:46 -0400)]
Add fontFeatureSettings to TextView and attrs

New API is hidden.

Bug: 15246510
Change-Id: I8cdbbd3a36fc280e07569dbb130f8c237062fff5

10 years agoMake Connection threadsafe
Evan Charlton [Fri, 1 Aug 2014 19:33:46 +0000 (12:33 -0700)]
Make Connection threadsafe

Punt all modification calls to the UI thread to avoid concurrency
issues. This also makes all callback events (e.g., onAbort()) be
called on the same thread.

Bug: 16731451
Change-Id: I4dfd7493538724b3249780272411e61d956b146a

10 years agoMerge "Add a default impelementation of IBluetoothGattCallback(1/2)." into lmp-dev
Wei Wang [Fri, 1 Aug 2014 21:41:53 +0000 (21:41 +0000)]
Merge "Add a default impelementation of IBluetoothGattCallback(1/2)." into lmp-dev

10 years agoAdd a default impelementation of IBluetoothGattCallback(1/2).
Wei Wang [Wed, 30 Jul 2014 04:34:25 +0000 (21:34 -0700)]
Add a default impelementation of IBluetoothGattCallback(1/2).

Also cleaned up a few TODOs and fixed bug.
b/16410260 AdvertiseCallback null onSuccess callback

Change-Id: I75a582c03be1e2ef6964c2cbeba42aaaf9f9e17c

10 years agoMerge "unhide AudioFormat getters" into lmp-dev
Eric Laurent [Fri, 1 Aug 2014 17:55:47 +0000 (17:55 +0000)]
Merge "unhide AudioFormat getters" into lmp-dev

10 years agoAudioAttributes: always build formatted tags from tag array
Jean-Michel Trivi [Wed, 30 Jul 2014 23:03:41 +0000 (16:03 -0700)]
AudioAttributes: always build formatted tags from tag array

An AudioAttributes instance can either be built through the
 Builder, or from unmarshalling: the mFormattedTags field
 should always be in sync with the array of tags.
In toString() method, use the more compact mFormattedTags.

Change-Id: Ie06cd7758bf4f2d2693fedaa8c3ba4245802d921

10 years agoMerge "Fix double DBG check." into lmp-dev
Wink Saville [Fri, 1 Aug 2014 20:37:03 +0000 (20:37 +0000)]
Merge "Fix double DBG check." into lmp-dev

10 years agoFix double DBG check.
Wink Saville [Fri, 1 Aug 2014 20:14:50 +0000 (13:14 -0700)]
Fix double DBG check.

Change-Id: I45e175df698240b80374f98043b50a014fd9779a

10 years agoMerge "Revert "Revert "Service data and manufacturer data can be repeated fields...
Wei Wang [Fri, 1 Aug 2014 20:29:51 +0000 (20:29 +0000)]
Merge "Revert "Revert "Service data and manufacturer data can be repeated fields.""" into lmp-dev

10 years agoRevert "Revert "Service data and manufacturer data can be repeated fields.""
Wei Wang [Fri, 1 Aug 2014 18:12:37 +0000 (11:12 -0700)]
Revert "Revert "Service data and manufacturer data can be repeated fields.""

This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.

10 years agounhide AudioFormat getters
Eric Laurent [Thu, 31 Jul 2014 21:35:35 +0000 (14:35 -0700)]
unhide AudioFormat getters

Bug: 12378680.
Change-Id: Ibe49c6386b12159e705f49f323cae27b6e2d749a

10 years agoMerge "Fix WebViewUpdateService timeout code." into lmp-dev
Torne (Richard Coles) [Fri, 1 Aug 2014 17:48:51 +0000 (17:48 +0000)]
Merge "Fix WebViewUpdateService timeout code." into lmp-dev

10 years agoFix WebViewUpdateService timeout code.
Torne (Richard Coles) [Fri, 1 Aug 2014 17:40:20 +0000 (18:40 +0100)]
Fix WebViewUpdateService timeout code.

The loop was initialising the boolean incorrectly causing the first
iteration to wait even when the condition was already true and have to
hit the timeout before loading continues.

Change-Id: I6a347cff2e4560b38c8aec3297e456b6f784a97e

10 years agoVolume: Confirm unsafe media volume dialog on VOL_UP.
John Spurlock [Fri, 1 Aug 2014 17:10:14 +0000 (13:10 -0400)]
Volume: Confirm unsafe media volume dialog on VOL_UP.

If the confirmation dialog is showing, consider a new
VOL_UP as a confirmation.

Bug:16540877
Change-Id: Ibdaa43ea423cc3b48d234bcaaa0c542178657b6c

10 years agoFix a bug that the RecentTask list of other’s may show up to non-primary users.
Eunae Kim [Fri, 25 Jul 2014 00:16:13 +0000 (09:16 +0900)]
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

10 years ago[ActivityManager] Prevent coredump file may not complete for testing.
riddle_hsu [Wed, 30 Jul 2014 16:15:05 +0000 (00:15 +0800)]
[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

10 years agoMerge "Re-remove AndroidEmoji.ttf." into lmp-dev
Raph Levien [Thu, 31 Jul 2014 17:08:36 +0000 (17:08 +0000)]
Merge "Re-remove AndroidEmoji.ttf." into lmp-dev

10 years agoRe-remove AndroidEmoji.ttf.
Roozbeh Pournader [Thu, 31 Jul 2014 00:18:41 +0000 (17:18 -0700)]
Re-remove AndroidEmoji.ttf.

It was mistakenly re-added in 6feb729b686b902be2520a91281e1a000c055da2.

Change-Id: I99a41ed8e6f1975e9808d8063e594fbb996d4334
(cherry picked from commit a7d8d7bfa75b283588aacae16cce78f6161acce9)

10 years agoCrunch Roboto and fix its digits to have the same width.
Roozbeh Pournader [Fri, 25 Jul 2014 02:07:12 +0000 (19:07 -0700)]
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)

10 years agoAdd toString() methods to some audio classes to help with debugging.
Mike Lockwood [Tue, 29 Jul 2014 22:04:03 +0000 (15:04 -0700)]
Add toString() methods to some audio classes to help with debugging.

Change-Id: I2b61d8cdfbcaa7671705771325205b074c50ab1e

10 years agoMerge "Fix visibility propagation check." into lmp-dev
George Mount [Thu, 31 Jul 2014 17:06:03 +0000 (17:06 +0000)]
Merge "Fix visibility propagation check." into lmp-dev

10 years ago[ActivityManager] Avoid mistaking visibility by finishing task.
riddle_hsu [Wed, 30 Jul 2014 16:26:51 +0000 (00:26 +0800)]
[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

10 years agoFix visibility propagation check.
George Mount [Thu, 31 Jul 2014 16:58:16 +0000 (09:58 -0700)]
Fix visibility propagation check.

Bug 16704963

Change-Id: I2538bac4b4565ac8c6b27407c7679fea55b1092b

10 years agoFix crash in Volantis because there is not FLP support.
destradaa [Thu, 31 Jul 2014 01:17:21 +0000 (18:17 -0700)]
Fix crash in Volantis because there is not FLP support.

b/16690237

Change-Id: Ie2dd159ad4e9b5cf4b3e2e66023b456927f18130

10 years agoMerge "QS: Back button closes detail (if showing)" into lmp-dev
John Spurlock [Fri, 1 Aug 2014 16:48:42 +0000 (16:48 +0000)]
Merge "QS: Back button closes detail (if showing)" into lmp-dev

10 years agoQS: Back button closes detail (if showing)
John Spurlock [Fri, 1 Aug 2014 16:45:18 +0000 (12:45 -0400)]
QS: Back button closes detail (if showing)

Bug:16649931
Change-Id: I9748a0793e6a71d833f7c7f884c189e16cccb8f9

10 years agoQS: New disabled icon states for wifi/cell tiles.
John Spurlock [Fri, 1 Aug 2014 16:12:32 +0000 (12:12 -0400)]
QS: New disabled icon states for wifi/cell tiles.

Bug:15988601
Change-Id: I82c1b0f80277a6529e8648708199c45c5226b81f

10 years agoReplace wifi tether icon with new style.
John Spurlock [Fri, 1 Aug 2014 15:48:28 +0000 (11:48 -0400)]
Replace wifi tether icon with new style.

Bug:15988601
Change-Id: Idadb87e6312a02ed204c4b41537ff4aed02f84c7

10 years agoQS: Fix datatype overlays.
John Spurlock [Fri, 1 Aug 2014 15:26:44 +0000 (11:26 -0400)]
QS: Fix datatype overlays.

- And simplify demo mode wiring.

Bug:15988601
Change-Id: I6827b87700cd88394b115e5e1609520b3afa8660

10 years agoUnregistering receiver in onStart/Stop vs onCreate/Destroy. (Bug 16513124)
Winson Chung [Fri, 1 Aug 2014 01:40:03 +0000 (18:40 -0700)]
Unregistering receiver in onStart/Stop vs onCreate/Destroy. (Bug 16513124)

Change-Id: I11ccc3cea41311d74811dc19e6950da3bbddbfe2

10 years agoQS: Update traffic indicator icons.
John Spurlock [Fri, 1 Aug 2014 01:32:29 +0000 (21:32 -0400)]
QS: Update traffic indicator icons.

- New vectors, remove obsolete pngs.
- New datatype overlays that better handle RTL.

Bug:15988601
Change-Id: I39499f1289a7f4f8381d00653389ffedf9c33552

10 years agoUpdate wifi icon for open network notification.
John Spurlock [Fri, 1 Aug 2014 13:41:54 +0000 (09:41 -0400)]
Update wifi icon for open network notification.

Bug:15988601
Change-Id: I66ac99d7e6cec46199f01ffb49ff71b062a38431

10 years agoClean up speedbump handling when going to SHADE_LOCKED
Jorim Jaggi [Thu, 31 Jul 2014 20:19:52 +0000 (22:19 +0200)]
Clean up speedbump handling when going to SHADE_LOCKED

Bug: 16291973
Change-Id: Ibaa127709ff7a1a001402bd958016998e2bd23bf

10 years agoAnimate clock when going to SHADE_LOCKED or SHADE
Jorim Jaggi [Thu, 31 Jul 2014 19:46:39 +0000 (21:46 +0200)]
Animate clock when going to SHADE_LOCKED or SHADE

Bug: 16291973
Change-Id: Idf2fa7bd26800be4df38d99993533069120e7075

10 years agoImplement timings for go-to-full-shade transition.
Jorim Jaggi [Thu, 31 Jul 2014 13:38:21 +0000 (15:38 +0200)]
Implement timings for go-to-full-shade transition.

Change-Id: Ib7c0f65b7e2565a6c30b9962e9f81547537b408a

10 years agoSysUI: Fix notification leak
Christoph Studer [Thu, 31 Jul 2014 18:27:39 +0000 (20:27 +0200)]
SysUI: Fix notification leak

Fix bug where we kept a reference to the old Notification when
we re-use notification entries on updates.

Bug: 16513124
Change-Id: I066ff7447952516e27e122df57d4e6e67ee1cea3

10 years agoMerge changes I2f40be36,I4af9fd7e,Ib0b4245f,I55acad96,Id276b71e, ... into lmp-dev
Ben Murdoch [Fri, 1 Aug 2014 16:46:49 +0000 (16:46 +0000)]
Merge changes I2f40be36,I4af9fd7e,Ib0b4245f,I55acad96,Id276b71e, ... into lmp-dev

* changes:
  Cherry pick Cleanup debug messages in WebViewFactory and WebViewUpdateService DO NOT MERGE
  Cherry pick Move startIsolatedProcess implementation in ActivityManagerService DO NOT MERGE
  CHerry pick Find WebView package name from a config resource. DO NOT MERGE
  Cherry pick Remove dependency on WebView native library path. DO NOT MERGE
  Cherry pick Make WebViewUpdateService a SystemService. DO NOT MERGE
  Cherry pick Refactor ActivityManagerService and make WebViewFactory more pedantic. DO NOT MERGE
  Cherry pick Refactor native library path logic in WebViewFactory DO NOT MERGE
  Cherry pick Append WebView assets to AssetManager when loading the WebView. DO NOT MERGE
  Cherry pick Introduce startIsolatedProcess private API in ActivityManager DO NOT MERGE
  Cherry pick Load the WebView Java code from an APK. DO NOT MERGE

10 years agoCleanup some documentation with @see references to constants
Sandeep Siddhartha [Thu, 31 Jul 2014 21:29:00 +0000 (14:29 -0700)]
Cleanup some documentation with @see references to constants

Change-Id: I1c9c4f25525732ecfecdf1faa91e0f24805ef295

10 years agoMerge "Return fake URI for AppOps permission failure check" into lmp-dev
Ye Wen [Fri, 1 Aug 2014 16:25:54 +0000 (16:25 +0000)]
Merge "Return fake URI for AppOps permission failure check" into lmp-dev

10 years agoReturn fake URI for AppOps permission failure check
Ye Wen [Fri, 1 Aug 2014 00:15:30 +0000 (17:15 -0700)]
Return fake URI for AppOps permission failure check

Change-Id: Ib7adcce0827a90a49e317a5434fb1abfa91a51d5

10 years agoCherry pick Cleanup debug messages in WebViewFactory and WebViewUpdateService DO...
Primiano Tucci [Tue, 29 Jul 2014 15:38:33 +0000 (16:38 +0100)]
Cherry pick Cleanup debug messages in WebViewFactory and WebViewUpdateService DO NOT MERGE

This is just a cleanup CL which fixes:
- Some erroneous debug messages about the relro creator process.
- The condition checked in WebViewUpdateService, to prevent the
  WebView to be used from the SystemServer (it now looks at the
  process id, previously it was erroneously looking at the uid).
- Adds a 5s. timeout to the waitForRelroCreationCompleted.

Original BUG:16403706

Original Change-Id: I43a953949050d7df5fe334cfa7257315ee6db071

Bug: 16723226
Change-Id: I2f40be3622b8e6c68b2b52cae7f4d3a95e148cbf

10 years agoCherry pick Move startIsolatedProcess implementation in ActivityManagerService DO...
Primiano Tucci [Wed, 30 Jul 2014 10:57:40 +0000 (11:57 +0100)]
Cherry pick Move startIsolatedProcess implementation in ActivityManagerService DO NOT MERGE

This CL addresses the comments in CL 512432, moving the implementation
of startIsolatedProcess in the outer ActivityManagerService class and
making the entry point in the ActivityManagerInternal sublcass just
a proxy method.
This change also addresses a potential NPE, due to startProcessLocked
returning null in some failure cases.

Original BUG:16403706
Original Change-Id: I21eff88c23221653f552cfc171647a839e42a802

Bug: 16723226
Change-Id: I4af9fd7eea10b11e06a5c37d8160c220376b3ed1

10 years agoCHerry pick Find WebView package name from a config resource. DO NOT MERGE
Torne (Richard Coles) [Wed, 30 Jul 2014 14:28:36 +0000 (15:28 +0100)]
CHerry pick Find WebView package name from a config resource. DO NOT MERGE

Use a config resource to determine the package name for the WebView
implementation to allow it to be changed by a resource overlay.

Original Bug: 16329371
Original Change-Id: I5977691c0223347e0382d584c3d3ee4428660180

Bug: 16723226
Change-Id: Ib0b4245f26cbf93f364aa0f30b231786931f9f16

10 years agoCherry pick Remove dependency on WebView native library path. DO NOT MERGE
Ben Murdoch [Mon, 28 Jul 2014 14:57:00 +0000 (15:57 +0100)]
Cherry pick Remove dependency on WebView native library path. DO NOT MERGE

This CL removes the final use of the hardcoded WebView
library path from WebViewFactory. We now use a system
property to set the amount of address space to reserve
in the zygote rather than stat'ing the file.

See also I07ad5a774623c1899eb50474d999a2b1447783f0

Original Change-Id: Id3c1e3cc2e2a06c1021ad0260a37abcd07d78fd6

Bug: 16723226
Change-Id: I55acad96b6d9ee69f14b84d772abf7740ea96b94

10 years agoCherry pick Make WebViewUpdateService a SystemService. DO NOT MERGE
Torne (Richard Coles) [Tue, 29 Jul 2014 18:14:24 +0000 (19:14 +0100)]
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

10 years agoCherry pick Refactor ActivityManagerService and make WebViewFactory more pedantic...
Primiano Tucci [Mon, 28 Jul 2014 17:51:45 +0000 (18:51 +0100)]
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

10 years agoCherry pick Refactor native library path logic in WebViewFactory DO NOT MERGE
Primiano Tucci [Fri, 25 Jul 2014 18:19:32 +0000 (19:19 +0100)]
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

10 years agoCherry pick Append WebView assets to AssetManager when loading the WebView. DO NOT...
Marcin Kosiba [Tue, 22 Jul 2014 18:22:48 +0000 (19:22 +0100)]
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

10 years agoCherry pick Introduce startIsolatedProcess private API in ActivityManager DO NOT...
Primiano Tucci [Fri, 25 Jul 2014 17:03:16 +0000 (18:03 +0100)]
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

10 years agoCherry pick Load the WebView Java code from an APK. DO NOT MERGE
Torne (Richard Coles) [Thu, 17 Jul 2014 21:14:48 +0000 (14:14 -0700)]
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

10 years agoMerge "Optimize large preview from the screenshot notification." into lmp-dev
Chris Wren [Fri, 1 Aug 2014 12:47:37 +0000 (12:47 +0000)]
Merge "Optimize large preview from the screenshot notification." into lmp-dev

10 years agoOptimize large preview from the screenshot notification.
Chris Wren [Thu, 31 Jul 2014 12:52:39 +0000 (13:52 +0100)]
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

10 years agoAdd AsUser versions of existing DevicePolicyManager methods
Zoltan Szatmary-Ban [Wed, 2 Jul 2014 15:42:05 +0000 (16:42 +0100)]
Add AsUser versions of existing DevicePolicyManager methods

Some API methods on DevicePolicyManager call underlying IDevicePolicyManager methods
that can be parameterised with a user id. DPM however only exposed methods for the current user.
This CL makes it possible to call them with any user id by introducing hidden methods on
DevicePolicyManager.

Bug: 15558397
Change-Id: I1786a64fa7cf5f6590ddd04cbf4527bb159f8795

10 years agoMerge "Simplify generics, and make Builder concrete." into lmp-dev
Fergus Henderson [Fri, 1 Aug 2014 11:27:33 +0000 (11:27 +0000)]
Merge "Simplify generics, and make Builder concrete." into lmp-dev

10 years agoAlways show error dialog for other profiles
Robin Lee [Thu, 31 Jul 2014 15:42:47 +0000 (16:42 +0100)]
Always show error dialog for other profiles

Apps running on another profile of the same user were previously
considered to be running in the background, so their error dialogs
would not show unless ANR_SHOW_BACKGROUND was set.

@bug 15665024

Change-Id: I7e559c6b7f8befc1553bc0ec06e89e5d7906d198

10 years agoExpose headsUpContentView so developers can customize it.
Chris Wren [Thu, 24 Jul 2014 09:51:31 +0000 (11:51 +0200)]
Expose headsUpContentView so developers can customize it.

Bug: 13510114
Change-Id: I645c204e366fefab58224d2e67d00e701dc661aa

10 years agoSimplify generics, and make Builder concrete.
Niels Egberts [Thu, 31 Jul 2014 20:33:37 +0000 (21:33 +0100)]
Simplify generics, and make Builder concrete.

Change-Id: I3e14966527c254d2c15dddefc2ef60cdde30421f

10 years agoMerge "Rename HotspotListener to BssidListener" into lmp-dev
Vinit Deshpande [Thu, 31 Jul 2014 19:47:36 +0000 (19:47 +0000)]
Merge "Rename HotspotListener to BssidListener" into lmp-dev

10 years agoCorrect the tag's name in the exceptions
ztenghui [Thu, 31 Jul 2014 18:16:05 +0000 (11:16 -0700)]
Correct the tag's name in the exceptions

Change-Id: I9d1499fbcf8adb6bf0c5c0b7a10a8b480a708c09

10 years agoam 441e7aa2: am eb4bc851: am 69ed58ac: Merge "docs: Adding TIF one-pager to TV docs...
Joe Fernandez [Thu, 31 Jul 2014 18:43:21 +0000 (18:43 +0000)]
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

10 years agoam eb4bc851: am 69ed58ac: Merge "docs: Adding TIF one-pager to TV docs in L-Preview...
Joe Fernandez [Thu, 31 Jul 2014 18:40:05 +0000 (18:40 +0000)]
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

10 years agoam 69ed58ac: Merge "docs: Adding TIF one-pager to TV docs in L-Preview" into klp...
Joe Fernandez [Thu, 31 Jul 2014 18:35:02 +0000 (18:35 +0000)]
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

10 years agoFix NPE when fused geofence hardware is not available.
Wonsik Kim [Thu, 31 Jul 2014 08:50:45 +0000 (17:50 +0900)]
Fix NPE when fused geofence hardware is not available.

b/16690237

Change-Id: I3ac50c8fd50fc799afcfc76126a5fd0c9ba0a5f4

10 years agoam ecf76d1c: am b83127f0: Merge "docs: Add adb over TCP/IP connection instructions...
Joe Fernandez [Wed, 30 Jul 2014 18:14:04 +0000 (18:14 +0000)]
am ecf76d1c: am b83127f0: Merge "docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ" into klp-modular-docs

* commit 'ecf76d1cfd2846412270e6361ec8ba4cfccf8bec':
  docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ

10 years agoam b83127f0: Merge "docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ...
Joe Fernandez [Wed, 30 Jul 2014 18:09:27 +0000 (18:09 +0000)]
am b83127f0: Merge "docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ" into klp-modular-docs

* commit 'b83127f0cf35a2d95684293818ca25171f6643e1':
  docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ

10 years agoam b12318be: Merge "Revert "Revert "DO NOT MERGE Fix line breaking for clusters in...
Alan Lau [Wed, 30 Jul 2014 17:47:03 +0000 (17:47 +0000)]
am b12318be: Merge "Revert "Revert "DO NOT MERGE Fix line breaking for clusters in narrow views""" into klp-modular-dev

* commit 'b12318be13be00842d124e4391ce5eabce2d5104':
  Revert "Revert "DO NOT MERGE Fix line breaking for clusters in narrow views""

10 years agoam 06a84554: Merge "Revert "Revert "DO NOT MERGE Fix extraneous allocation and copyin...
Alan Lau [Wed, 30 Jul 2014 17:44:20 +0000 (17:44 +0000)]
am 06a84554: Merge "Revert "Revert "DO NOT MERGE Fix extraneous allocation and copying""" into klp-modular-dev

* commit '06a8455421978d06597de2abfccabef928d06056':
  Revert "Revert "DO NOT MERGE Fix extraneous allocation and copying""

10 years agoam d46bc784: am 81364215: Merge "docs: Revised page to include info about new Publish...
Andrew Solovay [Wed, 30 Jul 2014 17:37:06 +0000 (17:37 +0000)]
am d46bc784: am 81364215: Merge "docs: Revised page to include info about new Publisher API." into klp-modular-docs

* commit 'd46bc7845c221b84f9b4e570b95f407c7fc6d0e7':
  docs: Revised page to include info about new Publisher API.

10 years agoam c0062272: Merge "Revert "Revert "DO NOT MERGE Implement line breaking using ICU...
Alan Lau [Wed, 30 Jul 2014 17:37:02 +0000 (17:37 +0000)]
am c0062272: Merge "Revert "Revert "DO NOT MERGE Implement line breaking using ICU break iterator""" into klp-modular-dev

* commit 'c006227265d7ac705ebeef2f7d87104fdb63f32a':
  Revert "Revert "DO NOT MERGE Implement line breaking using ICU break iterator""

10 years agoam 81364215: Merge "docs: Revised page to include info about new Publisher API."...
Andrew Solovay [Wed, 30 Jul 2014 17:34:20 +0000 (17:34 +0000)]
am 81364215: Merge "docs: Revised page to include info about new Publisher API." into klp-modular-docs

* commit '813642158979aca52b9d3913e52dda877d74a992':
  docs: Revised page to include info about new Publisher API.

10 years agoam b6bfa9e4: am a7898781: Merge "docs: Added system requirements for Studio. Bug...
Ricardo Cervera [Wed, 30 Jul 2014 16:49:57 +0000 (16:49 +0000)]
am b6bfa9e4: am a7898781: Merge "docs: Added system requirements for Studio. Bug: 16566355" into klp-modular-docs

* commit 'b6bfa9e45a953b83289ee57da661746deae7a63f':
  docs: Added system requirements for Studio. Bug: 16566355

10 years agoam a7898781: Merge "docs: Added system requirements for Studio. Bug: 16566355" into...
Ricardo Cervera [Wed, 30 Jul 2014 16:46:07 +0000 (16:46 +0000)]
am a7898781: Merge "docs: Added system requirements for Studio. Bug: 16566355" into klp-modular-docs

* commit 'a7898781d6182b5c73a0a3899b71162f92582f66':
  docs: Added system requirements for Studio. Bug: 16566355

10 years agoMerge "docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ" into klp-modul...
Joe Fernandez [Wed, 30 Jul 2014 18:07:11 +0000 (18:07 +0000)]
Merge "docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ" into klp-modular-docs

10 years agodocs: Add adb over TCP/IP connection instructions to ADT-1 FAQ
Joe Fernandez [Tue, 29 Jul 2014 21:44:28 +0000 (14:44 -0700)]
docs: Add adb over TCP/IP connection instructions to ADT-1 FAQ

Change-Id: Ifa8831e1594470ecf65761efea472de79aaf5ece

10 years agoMerge "Revert "Revert "DO NOT MERGE Fix extraneous allocation and copying""" into...
Alan Lau [Wed, 30 Jul 2014 17:39:28 +0000 (17:39 +0000)]
Merge "Revert "Revert "DO NOT MERGE Fix extraneous allocation and copying""" into klp-modular-dev

10 years agoRevert "Revert "DO NOT MERGE Fix extraneous allocation and copying""
Alan Lau [Wed, 30 Jul 2014 17:35:29 +0000 (17:35 +0000)]
Revert "Revert "DO NOT MERGE Fix extraneous allocation and copying""

This reverts commit af60e56b39582ea90ccd7601cd06350a50bf6500.

Change-Id: I1aa698608773b9e540457831e11218f371c71268

10 years agoMerge "Revert "Revert "DO NOT MERGE Implement line breaking using ICU break iterator...
Alan Lau [Wed, 30 Jul 2014 17:32:03 +0000 (17:32 +0000)]
Merge "Revert "Revert "DO NOT MERGE Implement line breaking using ICU break iterator""" into klp-modular-dev

10 years agoRevert "Revert "DO NOT MERGE Implement line breaking using ICU break iterator""
Alan Lau [Wed, 30 Jul 2014 17:30:15 +0000 (17:30 +0000)]
Revert "Revert "DO NOT MERGE Implement line breaking using ICU break iterator""

This reverts commit 77d6f36bbc76dbed51bea17d1ffcd3c1d6ffd30f.

Change-Id: I10b6d9e3d82b0f2b6dc154465a4b2f1db8eed058

10 years agoRename HotspotListener to BssidListener
Vinit Deshpande [Tue, 29 Jul 2014 22:52:20 +0000 (15:52 -0700)]
Rename HotspotListener to BssidListener

And other usage of term Hotspot. This is to be technically correct
with the name usage, should the API become public later.

This change also fixes few outstanding requests from GScan API.These
include

a. An event with scan results when REPORT_AFTER_EACH_SCAN is set.
b. ScanSettings now takes in number of APs as an argument.
c. Removed single shot scan API (since it is not implemented anyway)

Change-Id: Id160f9f14193a37cce5f3ab8d6ea528344b788a0

10 years agoMerge "Don't assume languages are 2 letter codes." into lmp-dev
Narayan Kamath [Fri, 1 Aug 2014 12:45:34 +0000 (12:45 +0000)]
Merge "Don't assume languages are 2 letter codes." into lmp-dev

10 years agoDon't assume languages are 2 letter codes.
Narayan Kamath [Wed, 30 Jul 2014 14:42:25 +0000 (15:42 +0100)]
Don't assume languages are 2 letter codes.

Also, note that this method never worked. Locale
settings were stored with underscores (like Locale.toString)
but matched against AssetManager.getLocales() which
returned language-tag like output.

bug: 10090157

(cherry picked from commit fd138cd81a689ff46e6ae90e46adcdc53f3c5442)

Change-Id: Ifc81ac902c297387dba8c40aba0656e18af57c86

10 years agoMerge "docs: Added system requirements for Studio. Bug: 16566355" into klp-modular...
Ricardo Cervera [Wed, 30 Jul 2014 16:42:48 +0000 (16:42 +0000)]
Merge "docs: Added system requirements for Studio. Bug: 16566355" into klp-modular-docs

10 years agoMerge "Revert "Revert "DO NOT MERGE Fix line breaking for clusters in narrow views...
Alan Lau [Wed, 30 Jul 2014 17:39:37 +0000 (17:39 +0000)]
Merge "Revert "Revert "DO NOT MERGE Fix line breaking for clusters in narrow views""" into klp-modular-dev

10 years agoRevert "Revert "DO NOT MERGE Fix line breaking for clusters in narrow views""
Alan Lau [Wed, 30 Jul 2014 17:35:20 +0000 (17:35 +0000)]
Revert "Revert "DO NOT MERGE Fix line breaking for clusters in narrow views""

This reverts commit cbeef01cce314e3a3977b042d8ec0744816c0df4.

Change-Id: I170ccb2264941e8a8b090b3bb553970414f0c4eb

10 years agoMerge "docs: Revised page to include info about new Publisher API." into klp-modular...
Andrew Solovay [Wed, 30 Jul 2014 17:30:05 +0000 (17:30 +0000)]
Merge "docs: Revised page to include info about new Publisher API." into klp-modular-docs