222408 Commits

Author SHA1 Message Date
Svetoslav
d25ddc3d0e Allow fragment state loss on fragment transaction
We are not saving the state of this fragment on onSaveState,
so its Okay to loose state while confirming the transaction.

bug:25847358

Change-Id: I2f6587d528b2d8b8f24a83954cc896a6ff514996
2015-11-24 12:54:21 -08:00
Alex Deymo
12262af418 Merge "Remove the aidl tool" into mnc-dr2-dev am: 8d31b08904
am: f7d10eca49

* commit 'f7d10eca499fee37d8dfc89ec6779a7b46c70be5':
  Remove the aidl tool
2015-11-20 00:18:01 +00:00
Steve McKay
acd29b5c99 Merge "Add "Home" directory support." 2015-11-20 00:01:25 +00:00
Steve McKay
c6a4cd8c0f Add "Home" directory support.
Update FilesActivityUiTests to verify Home is present
    and that clicking a root sets the title accordingly.
Guard addition of WRITABLE flag with a volume test.

Bug: 25147243
Change-Id: Ic20372737cae08a82af0aade0c0dbbd8c22d5f34
2015-11-19 15:56:05 -08:00
Fyodor Kupolov
7f35036c95 Merge "Added a placeholder home activity for system user" 2015-11-19 23:52:45 +00:00
Alex Deymo
f7d10eca49 Merge "Remove the aidl tool" into mnc-dr2-dev
am: 8d31b08904

* commit '8d31b089040dafefee16033176a884d43e259804':
  Remove the aidl tool
2015-11-19 23:50:25 +00:00
Roozbeh Pournader
cf8c77464a Merge "Support LocaleLists in ActivityManagerService." 2015-11-19 23:44:22 +00:00
Adam Lesinski
78de1bcbbd Merge "AAPT2: Fail compiling when private symbols are referenced" 2015-11-19 23:43:08 +00:00
Jorim Jaggi
7c149b5295 Merge "Add gesture to drag in recents from navigation bar" 2015-11-19 23:23:01 +00:00
Makoto Onuki
1fae502824 Merge "More work on layered user restrictions." 2015-11-19 22:53:37 +00:00
Vladislav Kaznacheev
dd311b2598 Merge "Revert "Fix broken build"" 2015-11-19 22:50:49 +00:00
Vladislav Kaznacheev
4a13b87092 Revert "Fix broken build"
This reverts commit 88d753291c834c41ad6c9229082146be72cf8014.

Revert required because the base class change
has been reverted in http://ag/816441

Change-Id: Iee8a8272bda0a92aed8ae46af8439910d8f1ecdc
2015-11-19 22:50:33 +00:00
Yohei Yukawa
db6bb29419 Merge "Track by which client the last focused window was reported." 2015-11-19 22:49:40 +00:00
Adam Lesinski
467f171315 AAPT2: Fail compiling when private symbols are referenced
Also moved some XML specific stuff into its own directory,
and refactored ReferenceLinker a bit.

Change-Id: I912247a82023c1bbf72dc191fbdaf62858cbec0c
2015-11-19 14:46:53 -08:00
Roozbeh Pournader
8bca69858a Support LocaleLists in ActivityManagerService.
Also add a placeholder method for locale negotiation to LocaleList,
to be filled later.

There is no change in behavior expected by this CL yet. But once we
support setting the first locale to something the system doesn't
support, and implement the locale negotiation, this will cause the
system locale to be set to the first supported locale, instead of
just the default from Settings.

Change-Id: Iec983a5707daffb5bf54eac79ff0856a96631960
2015-11-19 14:30:05 -08:00
Vladislav Kaznacheev
87ab07e9a7 Merge "Revert "Implement View.cancelDrag"" 2015-11-19 22:23:35 +00:00
Vladislav Kaznacheev
54d6b95e86 Revert "Implement View.cancelDrag"
This reverts commit 93cf731b26e2ab4db49bd80f60675b03e40512f3.

This is required because adding View.cancelDrag conflicts with existing app code.

Change-Id: I323fc5d2144266781d3168fe033c53cb5b37050e
2015-11-19 22:20:06 +00:00
Jorim Jaggi
dd98d41e3a Add gesture to drag in recents from navigation bar
Change-Id: I672ed08f1019835891411b87e2d0de0290defff7
2015-11-19 14:10:28 -08:00
Makoto Onuki
1a2cd74526 More work on layered user restrictions.
- Now when DO/PO sets a user restriction, DPMS pushes it to UMS and
then UMS persists it, in order for UserManager.hasUserRestriction()
to never have to talk with DPMS, which would cause lock inversion.

- Also apply user restrictions when a user start.

- This is an updated version of the abandoned CL -- the difference
is, ActivityManager no longer has to call DPMS.

- Also removed an unnecessary write to userlist.xml in UMS.
upgradeIfNecessaryLP().

Bug 23902097
Bug 25388912
Bug 25354031
Bug 25641040

Change-Id: I0948aea06ad7d0f45fe612a431d765faddfe3c58
2015-11-19 13:37:21 -08:00
Fyodor Kupolov
c40e244b4a Added a placeholder home activity for system user
Standard launcher can be uninstalled for system user. A low priority
placeholder home activity is used to make sure the system can always
boot. By default the component is disabled for all users, and is only enabled
for the system user at boot time.

Bug: 25726710
Change-Id: I97eed02c9e2bbd69a737cc1d203110bed837b803
2015-11-19 13:04:35 -08:00
Jason Monk
ee35d738f4 Merge "Add Quick Settings API" 2015-11-19 20:55:14 +00:00
Chad Brubaker
c2138c5414 Merge "Install the Network Security Config Provider" 2015-11-19 20:42:37 +00:00
Jason Monk
bbadff8603 Add Quick Settings API
It is a little bit limited right now, but it contains
the lifecycle of a tile getting added/removed, and
listening/not listening and clicks.

SysUI side will need some cleanup later on.

Change-Id: I4db803c8a271f8bf44f2ef710517969a84a95cf0
2015-11-19 14:57:11 -05:00
Filip Gruszczynski
8fbddc9367 Merge "API for overlaying app content over decor caption in freeform windows." 2015-11-19 19:51:55 +00:00
John Reck
16c9d6a92e Refactor hwuitest
Yank animations out into their own files

Change-Id: Iea522ee032752019c07ff308c3a3993011054308
2015-11-19 11:35:14 -08:00
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
63250651ca API for overlaying app content over decor caption in freeform windows.
Bug: 25486369

Change-Id: I8fba30dd690d9f0ccc48149f57ce254286b0c2ae
2015-11-19 10:38:38 -08: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