227582 Commits

Author SHA1 Message Date
Rubin Xu
f4b4bf633d Merge "Quick setting tile to toggle work mode for managed profiles" 2015-12-07 21:53:45 +00:00
Rubin Xu
cc586c5ab1 Merge "Introduce quiet mode state to managed profile users" 2015-12-07 21:52:40 +00:00
Chris Craik
b7f78f385e Merge "Correct GradientDrawable outline alpha computation" 2015-12-07 21:51:30 +00:00
Seigo Nonaka
012ce3453f Merge "Allow IMEs to opt out the opaque navigation guard view." 2015-12-07 21:51:06 +00:00
Chris Craik
f3dc7ac724 Correct GradientDrawable outline alpha computation
bug:26066107

GradientDrawable should provide a shadow casting outline if using a
translucent fill.

Change-Id: Ie6b409bafe3fcf9c5216662168d7349e2a9e3413
2015-12-07 13:48:40 -08:00
Michael Wright
9dc3c36c9c Merge "Add support for locking the screen when the lid is closed" 2015-12-07 21:34:59 +00:00
Chet Haase
f1b40f65b0 Merge "Fix requestLayout() optimizations" 2015-12-07 21:29:00 +00:00
Todd Kennedy
9619d049bf Temporarily stop proxying to cmd
Unless the APK is streamed, proxying pm install commands to the cmd command
will generally not work on any system that has SElinux enforcement. This
is due to the system sever [where cmd commands are run] not having access
to the directories where files are uploaded to. We'll re-enable the proxy
once we determine an appropriate, safe location for uploaded APKs.

Bug: 25769800
Change-Id: I73b2da0b03fe8bd9ce29e20b37cb4eeff9b491b4
2015-12-07 13:26:08 -08:00
Chet Haase
016f445757 Fix requestLayout() optimizations
A bug in recent layout optimizations was causing the framework to avoid
laying out containers with WRAP_CONTENT in one axis or the other.
This fix updates the logic in the code that finds dependent layout axes
to correctly account for this case.

Issue #25980198 requestLayout() sometimes doesn't result in measure/layout for view

Change-Id: Ie5f678beef5d8c4ba25291ffdcd59797d4697acc
2015-12-07 13:17:44 -08:00
Rob Carr
7f864cc79d Merge "Move surface save state tracking to WindowState." 2015-12-07 21:11:35 +00:00
Chenjie Luo
e56f7b0d1d Merge "Check NPE beforehand instead of catching it at runtime" into cw-e-dev 2015-12-07 21:04:14 +00:00
Adam Lesinski
2814532466 Merge "Fix incorrect style parent" 2015-12-07 20:58:11 +00:00
Yohei Yukawa
3a346cfe8e Merge "Add subtypeId for SpellCheckerSubtype." 2015-12-07 20:58:02 +00:00
Chris Craik
c63107cbad Merge "Merged op dispatch in OpReorderer" 2015-12-07 20:37:31 +00:00
Chris Craik
15c3f19a44 Merged op dispatch in OpReorderer
bug:22480459

Also switches std::functions to function pointers on OpReorderer, and
switches AssetAtlas' entry getter methods to using pixelRef pointers,
so it's clear they're the keys.

Change-Id: I3040ce5ff4e178a8364e0fd7ab0876ada7d4de05
2015-12-07 12:34:46 -08:00
Adam Lesinski
7dede045c4 Fix incorrect style parent
AAPT wrongly allowed a style parent to be an attribute. This will not
do any runtime dynamic parent resolving and will result in an incorrect style.

Bug:26061260
Change-Id: Id5d43e5786a64ff939b69a2d84e53733db6baf29
2015-12-07 11:56:11 -08:00
Xiaohui Chen
b3b9258ab6 UserManager: get/set user account name
Bug: 25935510
Change-Id: I0b621fb300be74209534e08a11f1d1a7c049cd5a
2015-12-07 11:32:50 -08:00
Robert Carr
13f7be9e04 Move surface save state tracking to WindowState.
In the current set up, surface saving is managed by the app window
token. So when destroySavedSurfaces is called, all saved surfaces
assosciated with a given app will be destroyed. This causes pretty weird
behavior where hiding child windows can destroy the parent window. We
move this tracking to WindowState and allow child windows to exempt themselves.

Bug: 25780116
Change-Id: I3ab92221d83297092dfd98a71e6a5fe96381de8b
2015-12-07 11:20:35 -08:00
Samuel Tan
61c0b7cd4d Merge "Add support for reading and writing double array values" 2015-12-07 18:56:01 +00:00
Fyodor Kupolov
79aeb92f4d Merge "Added SynchronousUserSwitchObserver" 2015-12-07 18:55:09 +00:00
Fyodor Kupolov
a9d492d7ff Merge "Allow --user current in dpm command" 2015-12-07 18:38:04 +00:00
Rubin Xu
1205fb1d92 Quick setting tile to toggle work mode for managed profiles
Status bar will also show a different badge icon when managed profile
is in quiet mode i.e. work mode is off. The tile is invisible for now
until the full feature lands.

Bug: 22541941
Change-Id: I53f33ea346cd9215ecee2ca42de137af61e4c8a2
2015-12-07 18:24:39 +00:00
Rubin Xu
0a29ecd8a5 Introduce quiet mode state to managed profile users
Quiet mode means the user will be free from visual and audio interruptions
from apps inside the managed profile, including notifications, widgets and
others. This CL adds the underlying state bit to users and exposes various
APIs to control and query the quiet mode state.

Bug: 22541941
Change-Id: If5f8e5a897843050e83b6ec26cb39561098f12b9
2015-12-07 18:17:46 +00:00
Amit Mahajan
cd2cc9aa9b Merge "Adding StateMachine.hasMessages(), StateMachine.hasDeferredMessages()" into mnc-dr1.5-dev 2015-12-07 18:15:38 +00:00
Felipe Leme
21d4b20f23 Merge "Changed ActivityManager.requestBugreport() to take a 'progress' parameter." 2015-12-07 18:02:40 +00:00
Xiaohui Chen
86fd6d1560 Do not force keyguard orientation to no sensor.
Fixing a bug that if the device is hold in landscape mode during
initial device setup, after the setup is done, the screen would rotate
to portrait mode and then back to landscape.

Bug: 25817950
Change-Id: Ibbcb7be01d8f14d7b6a98f069cb7eb3a94da12bb
2015-12-07 17:44:18 +00:00
Geoff Mendal
ad1a018b17 Merge "Import translations. DO NOT MERGE" 2015-12-07 17:40:19 +00:00
Filip Gruszczynski
ef2f72bb0e Refactoring: merge two snippets of adding activity to stopped.
Change-Id: I70777333ca9ff6c4f0736e036bd0946add4b041f
2015-12-07 09:20:06 -08:00
Geoff Mendal
18fbbc602e Import translations. DO NOT MERGE
Change-Id: I7b15e88df26e0b96d985012082c7cae33a7f7781
Auto-generated-cl: translation import
2015-12-07 18:14:13 +01:00
Wale Ogunwale
5f986095be APIs for activity to know when its windowing/pip modes change
Added APIs that allow activities to ask the system if they are currently
in multi-window or picture-in-picture mode and also get notified when
their modes change.

Bug: 25509834
Bug: 25683717
Change-Id: I4b8c316a49940bd6a8b31a93b345f9fd725a4721
2015-12-07 07:40:56 -08:00
Todd Kennedy
c72b3101ee Merge "Add ephemeral installs" 2015-12-07 15:33:05 +00:00
Julia Reynolds
dde5a6ef28 Merge "Fix radio button flash on hour change." into mnc-dr1.5-dev 2015-12-07 15:06:03 +00:00
Julia Reynolds
3e57340b6a Fix radio button flash on hour change.
Also delete confusing debug variable.

Bug: 25459795
Bug: 25783349
Change-Id: I9208ece4edf5fbcff5f257994f47d81a901766e8
2015-12-07 14:59:16 +00:00
Neil Fuller
ebd7735baa Add ICU4J APIs for Android
Add the planned set of new I18N public APIs for
Android N.

This APIs consists of a whitelisted subset of ICU4J APIs
repackaged under android.icu (not com.ibm.icu).

It includes no deprecated, provisional, internal methods from
ICU 56.

There may be future work to improve the ICU4J JavaDoc text
for Android, but the API surface area should be mostly
stable at this point.

Bug: 22023363
(cherry-picked from commit d7fa3e79f071696bd62182c01b62fe0ea1cc9587)

Change-Id: I6667acbbf7c5501e12ecfbdd560ea80283c0c831
2015-12-07 14:52:16 +00:00
Robin Lee
70eaef412e Merge "Send pwchange broadcast to caller only in FBE case" 2015-12-07 14:37:50 +00:00
Chris Banes
3aa58c9e27 Merge "Fix possibility of ScrollView not allowing clicks after a fling" 2015-12-07 13:54:34 +00:00
Geoff Mendal
4301bc82aa Merge "Import translations. DO NOT MERGE" 2015-12-07 13:50:36 +00:00
Geoff Mendal
87661e2098 Import translations. DO NOT MERGE
Change-Id: I6dfc3a1250262aaf29428f1a907a271650892be0
Auto-generated-cl: translation import
2015-12-07 05:49:49 -08:00
Geoff Mendal
2b8ceb5515 Merge "Import translations. DO NOT MERGE" 2015-12-07 13:40:53 +00:00
Robin Lee
ee3a437464 Send pwchange broadcast to caller only in FBE case
When per-user encryption is set up and we change the password of a
profile, the parent and other profiles shouldn't receive an
ACTION_PASSWORD_CHANGED as they have their own distinct passwords.

Change-Id: I70d4ec81277a9bdc3ac6cd952b84cd769a2800b4
2015-12-07 13:39:11 +00:00
Geoff Mendal
6c7a00208e Import translations. DO NOT MERGE
Change-Id: Ia3f58d3662cffb305e2e5d41f497595e5e57e2f6
Auto-generated-cl: translation import
2015-12-07 05:39:02 -08:00
Paul Duffin
ae119af517 Merge "Switch to the latest version of Caliper" 2015-12-07 13:34:27 +00:00
Geoff Mendal
512c15b8bd Import translations. DO NOT MERGE
Change-Id: If997fb074dbecdcf11d89cb44046be3abf617203
Auto-generated-cl: translation import
2015-12-07 05:17:15 -08:00
Paul Duffin
76a6cec97f Switch to the latest version of Caliper
Added an Android.mk file to core/tests/benchmarks to build the
benchmarks against caliper-api-target to ensure that they build
correctly. Changed the implementations to work with the new
version of Caliper.

Bug: 24848946
Change-Id: Ib28026816dbc5c1d54f65974f4a1abfee299c43f
2015-12-07 12:29:45 +00:00
Chris Banes
f2a7e9712f Fix possibility of ScrollView not allowing clicks after a fling
The reason that manifests is because SV's
onInterceptTouchEvent checks if it's scroller.isFinished()
returns true. The result of Scroller.isFinished() is only
valid if it has had computeScrollOffset() called on it before.

ScrollView currently posts a invalidation after a computeScroll()
call, which means that isFinished() *should* be valid, but it's
better to be explicit which CL adds.

BUG: 26051101
Change-Id: If78f48dc855de1776011cb7b0f95cb0a80d9b777
2015-12-07 11:53:26 +00:00
Zoltan Szatmary-Ban
3bbceddb94 Make base user restrictions queriable for system apps
Needed by e.g. Settings > Location

Bug:22541939
Change-Id: I6cdd5f1c32cde143232eb53f531bbf3a737d8a9a
2015-12-07 10:43:24 +00:00
Tomasz Mikolajewski
e85cf98a80 Merge "Wire support for archives to DocumentsUI." 2015-12-07 03:50:02 +00:00
Tomasz Mikolajewski
39acff5a36 Wire support for archives to DocumentsUI.
Bug: 20176812
Change-Id: I8220afa2f53b07aa842bf6ac24fcc62afd4e2617
2015-12-07 11:34:03 +09:00
Filip Gruszczynski
3696301ada Merge "Update client configuration when resizing without crossing size threshold." 2015-12-07 02:17:47 +00:00
Filip Gruszczynski
a99fce54d0 Merge "Don't lose stopping state when getting paused confirmation." 2015-12-07 01:11:01 +00:00