222378 Commits

Author SHA1 Message Date
Adam Powell
ce805b3288 Merge "Add support for partial view layouts" 2015-11-19 18:59:06 +00:00
Todd Kennedy
b4fdb933cb Merge "Allow ephemeral provider/installer" 2015-11-19 18:54:57 +00:00
Ben Kwa
368c31d143 Merge "Tweak grid item layout. Adjust colors to match spec." 2015-11-19 18:52:55 +00:00
Felipe Leme
d90b3c3df8 Merge "Fixed typos." 2015-11-19 18:50:48 +00:00
Ben Kwa
d27906e581 Tweak grid item layout. Adjust colors to match spec.
BUG=10960718
BUG=24326989

Change-Id: I74da23fe0b40d713a3f435d1467d26d707e76fca
2015-11-19 10:50:35 -08:00
Dianne Hackborn
77fa236e91 Merge "Implement flexible light idle maintenance windows." 2015-11-19 18:48:46 +00:00
Dianne Hackborn
b9e2803384 Merge "Move appops command to the service." 2015-11-19 18:47:53 +00:00
Jeff Sharkey
027bea555d Merge "More file-based encryption work." 2015-11-19 18:45:40 +00:00
Chris Wren
d4c68581f8 Merge "allow devs to turn off charging notifications" 2015-11-19 18:45:28 +00:00
Filip Gruszczynski
49c0ea0c83 Merge "Fix crash when docking from recents." 2015-11-19 18:27:01 +00:00
Todd Kennedy
b8a279ee83 Allow ephemeral provider/installer
The ephemeral provider is a service that simply determines whether or
not an ephemeral application is available. The ephemeral installer
does the heavy lifting of installing the ephemeral application.

Bug: 25119046
Change-Id: I591f4c2c3f2b149d299fa8b4f359f2582d9199cb
2015-11-19 10:25:53 -08:00
Filip Gruszczynski
96daf32e4e Fix crash when docking from recents.
The crash was happening because we were sending a future from sysui, but
that future would always return null animation specs when docking. This
makes it returns proper specs in that case. However, we need to still
protect ourselves from null specs when executing the future.

Bug: 25765339
Change-Id: I02d842ea31503169f6e053a1695d8896d2e4d97c
2015-11-19 10:07:30 -08:00
Chris Wren
5fd37dd936 Merge "metrics for people validation" 2015-11-19 18:03:15 +00:00
Jeff Sharkey
ba51235ef5 More file-based encryption work.
Add new "am unlock-user" command so we can trigger changes from the
command line.

Move FBE check to static method so it can safely be called early
during boot before the mount service is ready.  Move FBE emulation
to persisted system property, and start reading/writing that value.

Change default permission grants to ignore current encryption-aware
flags, since many of the target apps aren't crypto aware.

Always prepare package data directories, which is how we create the
new "user_de" paths during boot.

Bug: 22358539
Change-Id: I6f58ea2d34b3a466d3775d614f8a13de92272621
2015-11-19 11:02:30 -07:00
Chris Wren
c35d7759d8 allow devs to turn off charging notifications
in the same was as we allow then to turn of debuging notificaitons
this is useful for screenshots and demos

Change-Id: I6e95addec2917abdd619086ed68910097fb5b8aa
2015-11-19 12:49:42 -05:00
Chris Wren
66dfcc50df metrics for people validation
Change-Id: If53bb740ca3760e7335c93ad140bae2029d422b7
2015-11-19 12:49:42 -05:00
Adam Powell
c55d5072ac Add support for partial view layouts
Traditionally, when a view called requestLayout it would force
recursive requestLayout calls for all parent views up the
hierarchy. This meant that there was no way to determine at traversal
time whether a parent view itself needed layout, or if just one of its
descendants did.

Add a ViewParent method requestPartialLayoutForChild(View). This lets
a caller state that a particular child of a given parent needs a
remeasure and relayout at its current measured size and position
within that parent. This can help prevent the full-tree relayout often
caused by otherwise trivial changes. Partial layouts are processed
after any pending "full" relayout during ViewRoot traversals, but
before drawing.

Add a ViewGroup method requestLayoutForChild(View). This lets a
ViewGroup decide whether it is more appropriate to request a
traditional relayout or a partial layout for itself or just the child
that changed.

Add a ViewParent method findDependentLayoutAxes. This allows a caller
to check if the ViewParent's layout is dependent on a specific direct
child view along one or both axes. Called recursively, this can be
used to determine if a change in a child view can be isolated to a
partial layout, even if its direct parent's own layout is tied to its
other ancestors. (e.g. MATCH_PARENT, LinearLayout weights)

Implement ViewGroup#requestPartialLayoutForChild to call new
ViewParent method findDependentLayoutAxes and based on the result,
either request a full layout for itself or a partial layout for the
child in question.

Implement findDependentLayoutAxes for common framework ViewGroups. A
private implementation in ViewGroup is available for use by framework
classes that will deal with basic LayoutParams. These implementations
specifically check for derived LayoutParams classes and abort the
optimization if they find something beyond their expected parameter
types.

Change-Id: I0a1a9b79293d17d4fae8d9892b96d3586f9401ae
2015-11-19 09:31:56 -08:00
Philip P. Moltmann
6d198e8c96 Merge "Do not restart printSpooler when switching portait mode / landscape mode" 2015-11-19 16:56:57 +00:00
Nicolas Geoffray
0faf1bc43c Merge "Update framework code after new ART options." am: d7d2817ade am: 9da4055766
am: 5d5f055eb6

* commit '5d5f055eb6783dceb51cdb71630aac40feacfedd':
  Update framework code after new ART options.
2015-11-19 16:15:17 +00:00
Nicolas Geoffray
5d5f055eb6 Merge "Update framework code after new ART options." am: d7d2817ade
am: 9da4055766

* commit '9da4055766fc7acf81dcd238204589ea1f484d50':
  Update framework code after new ART options.
2015-11-19 16:05:01 +00:00
Nicolas Geoffray
9da4055766 Merge "Update framework code after new ART options."
am: d7d2817ade

* commit 'd7d2817ade8459a8f6872ff814d3208613502858':
  Update framework code after new ART options.
2015-11-19 15:54:21 +00:00
Nicolas Geoffray
d7d2817ade Merge "Update framework code after new ART options." 2015-11-19 15:48:01 +00:00
Alan Viverette
61ffc199f2 Merge "Apply VectorDrawable density scaling before applying theme" 2015-11-19 14:50:40 +00:00
Alan Viverette
d633ca417d Apply VectorDrawable density scaling before applying theme
Refactors density handling to look more similar to GradientDrawable's
implementation, which should make things easier to maintain. We no
longer update density directly in updateStateFromTypedArray, instead
handling it in applyTheme() and inflate().

Lazily calculates local density-dependent dimensions and invalidates
when the constant state density changes, which should ensure a random
call to applyTheme() will still result in the correct intrinsic
dimensions.

Change-Id: I726878a6cd75d38a550637e3e7a7b6bc68bcaf6d
2015-11-19 09:47:09 -05:00
Nicolas Geoffray
cdf1dfff8f Update framework code after new ART options.
Change-Id: I852a5975701653fe7e0cdd02e3c0b30a2b0b0b59
2015-11-19 14:31:23 +00:00
Julia Reynolds
bb9bfc9713 Merge "Remove 'peekable' preference." 2015-11-19 13:58:25 +00:00
Daichi Hirono
6b5e215a10 Merge "Don't close database when all devices have been detached." 2015-11-19 06:46:40 +00:00
Daichi Hirono
e1d57710fb Don't close database when all devices have been detached.
ContentProvider is a singleton of the process. So it may live longer
than Service. We could not close database when the service is destroyed.

BUG=25730042

Change-Id: I591250c1a1e7c5705eb2585c71cac2598c0c0fb9
2015-11-19 14:16:42 +09:00
Andreas Gampe
57db2c0dc6 resolve merge conflicts of e3ad4409a6 to master.
Change-Id: Idc19d27ee359e5434d55d9a29ecdb4b1e30cbfe1
2015-11-18 20:52:39 -08:00
Yohei Yukawa
072b1b5183 Clear IMMS#mCurClient when it is dead.
Suppose the following case:
  1. Launch an activity.
  2. Focus in an EditText on the activity.  IME is shown up.
  3. Kill the activity process in a not graceful way, e.g.,
     'adb shell kill'

After step 3, IMMS#removeClient(client) is immediately called back from
com.android.server.wm.Session, which is good, but we forgot to clear
IMMS#mCurClient to null.

Basically not clearing IMMS#mCurClient there is not so critical, because
1) we already have bunch of RemoteException check for the case where
IPC target is already dead, and in theory we cannot avoid this kind of
runtime error anyway, and 2) in most of cases new input method client
gains focus.

That said, in conjunction with other focus-related issues such
as bug #25373872, not cleaning that can result in the following error
message in 'input_method:' section of bugreport, which might be a bit
confusing.

  Input method client dead: android.os.DeadObjectException

The primary goal of this CL is to make bugreport less confusing.  Any
user/developer-visible changes beyond that is unintentional.

Bug: 25373872
Change-Id: Iee001ad9cce0c8c6324e3c0984be1e6f0e641d05
2015-11-19 03:46:18 +00:00
Yohei Yukawa
27fe57d5cf Merge "Have ControlledInputConnectionWrapper#toString()." 2015-11-19 03:45:57 +00:00
Sandra Kwan
b68be01344 Merge "AccountManager: add startAddAccount API." 2015-11-19 03:45:19 +00:00
Nicolas Geoffray
b8f71add98 Merge "Remove DEBUG_JIT from Zygote flags." am: cf49583bd0 am: 5485d81578
am: 5462e46d23

* commit '5462e46d23800bc480d31d73c21d6089ce299d25':
  Remove DEBUG_JIT from Zygote flags.
2015-11-19 03:25:45 +00:00
Wale Ogunwale
ab529e0916 Merge "Fix build breakage." 2015-11-19 03:23:55 +00:00
Wale Ogunwale
ff3c66c597 Fix build breakage.
Change-Id: Ie60b148d61d746de354b12852d4a6db2d82121c5
2015-11-18 19:22:49 -08:00
Diego Perez
865ad592fe Merge "Fix delegation of methods within inner static classes" into mnc-ub-dev am: 603544d4c4 am: 14a826380d am: 0b76d094c6
am: f9281b6dfe

* commit 'f9281b6dfe94f1df0fac3ddbad846012b0a6fb7d':
  Fix delegation of methods within inner static classes
2015-11-19 03:19:00 +00:00
Joe LaPenna
cae4f1222f Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a am: f7aceb60e3 am: 2900dc2349 am: 617bd39465
am: 01186abc81

* commit '01186abc81c721c84a5d588bb7183d811d77f99c':
  Revert "Don't dispatch when non-interactive and the display is off."
2015-11-19 03:17:33 +00:00
Michael Wright
c67cb61f60 DO NOT MERGE. Prevent recents from coming up when in SUW am: 84669ca8de am: 614ea46405 am: bd23716585 -s ours am: 18a2ac0506 am: 08ed2bc083 am: 41ef58be3e am: 8aa7e6a21a am: 78f974a0b2 am: c173429617
am: 69e4ce3a6f  -s ours

* commit '69e4ce3a6f34c90ac6f635ce7a54ce710ea586c9':
2015-11-19 03:16:03 +00:00
Deepanshu Gupta
b5050a292b Revert "LayoutLib: Fix true transparency in status bar." am: 4ea74d2960 am: d67897e4fb am: 6058efff69
am: 00a3f4b32e

* commit '00a3f4b32e321dbe8320e6cb9d9a90f5699b244f':
2015-11-19 03:14:35 +00:00
Deepanshu Gupta
dba052df56 Merge "AppCompatActionBar: use findClass to test presence" into mnc-ub-dev am: 42a893b50b am: ef4050128a am: 0a9b4e5f00
am: cd8e8ea0eb

* commit 'cd8e8ea0ebc61d13a66c5abcc1d359a24c152f31':
2015-11-19 03:13:06 +00:00
Deepanshu Gupta
37802f7160 LayoutLib: IntelliJ changed project files. am: 22931224d9 am: 66840955d8 am: e45abdb126
am: aec98e3a7e

* commit 'aec98e3a7e2727a0b2cb04c7bd896d1424ea7fe4':
2015-11-19 03:11:48 +00:00
Michael Wright
1273bc8ae4 Merge "DO NOT MERGE. Prevent recents from coming up when in SUW" into mnc-dev am: 4aa1e48a71 am: 313c7b2ee0 am: c73255d8ab am: 053f241cc7 am: e2af036719 am: cd00ba1a71
am: 1c996ff5b4  -s ours

* commit '1c996ff5b49d2dcfd3d9c50e41006fb70ea01947':
2015-11-19 03:10:13 +00:00
Bryce Lee
260eec1f97 Merge "Add Bluetooth headset API to allow disabling audio route." into cw-e-dev am: cb8749c903 am: 0fa22022a3 am: e2861471b9 am: 52d93db91d
am: 20ef5a3f44

* commit '20ef5a3f44cb544ed525451bd306fa676e39a7a5':
2015-11-19 03:08:54 +00:00
Joe LaPenna
4eb893e852 Merge "Revert "Enable debugging for DeviceIdle DO NOT MERGE ANYWHERE"" into cw-e-dev am: d083b37917 -s ours am: 7f0a1556ec -s ours am: dbe1804f58 -s ours am: 9cb81aa210 -s ours
am: 5431e73f14  -s ours

* commit '5431e73f147ca776cbab800c9cac26fd1653e925':
2015-11-19 03:07:32 +00:00
Sanket Padawe
93df6f8ffe Merge "Don\'t allow contact sharing by default for device not recognized as carkit." into mnc-dev am: abea6dc466 am: ccfcb636ae am: 63e6aa8571 am: 32a190bd78 am: 7bb34d7517 am: fc8f7cee01
am: 0106bef2fa

* commit '0106bef2facf448e674c9795e6c38aaad0e232e7':
2015-11-19 03:06:10 +00:00
Deepanshu Gupta
1150fc36eb Merge "WindowDecorActionBar name change fix." into mnc-ub-dev am: 62302bd72a am: 80bd5e6fd7 am: 9f275ec3fd
am: da5929914b

* commit 'da5929914b618678f462c1a24ee042ff25001a0c':
2015-11-19 03:04:49 +00:00
Michael Kwan
3d2cde7b95 DO NOT MERGE ANYWHERE - Hack to disable MTP mode on Clockwork devices. am: 8d6630b87c -s ours am: f23229f45f -s ours am: b0aae584ea -s ours am: 2c8f3734af -s ours
am: 4cb17f362e  -s ours

* commit '4cb17f362e60741c77d9cf56de95a44df0bec648':
2015-11-19 03:03:18 +00:00
Qiwen Zhao
4f78bca781 Merge "resolve merge conflicts of 7d1428d7f3 to master." 2015-11-19 02:51:40 +00:00
Sandra Kwan
7881228736 AccountManager: add startAddAccount API.
Adding startAddAccount API to AccountManager and
AbstractAccountAuthenticator.

Change-Id: I29e1defb2181ece1281534db0e36b28457085148
2015-11-18 18:25:08 -08:00
Wale Ogunwale
76415ee500 Merge "Allow apps to set launch bounds for activities." 2015-11-19 02:10:32 +00:00