OSDN Git Service

android-x86/frameworks-base.git
8 years agoClear task bounds data when removing non-bounds persistable task.
Wale Ogunwale [Mon, 9 Nov 2015 19:14:10 +0000 (11:14 -0800)]
Clear task bounds data when removing non-bounds persistable task.

Bug: 25584169
Change-Id: Ie68fa12bf182e988077e6410197f7f497f839ba2

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 9 Nov 2015 14:02:52 +0000 (14:02 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 9 Nov 2015 14:00:25 +0000 (14:00 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 9 Nov 2015 13:58:55 +0000 (05:58 -0800)]
Import translations. DO NOT MERGE

Change-Id: Ie70cf29b4a04891f28aa117c96b2dce917cebceb
Auto-generated-cl: translation import

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 9 Nov 2015 13:57:07 +0000 (13:57 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 9 Nov 2015 13:56:05 +0000 (05:56 -0800)]
Import translations. DO NOT MERGE

Change-Id: I4e19184520f6d4b3c9145fa13e16488cb3fe1c23
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 9 Nov 2015 13:52:07 +0000 (05:52 -0800)]
Import translations. DO NOT MERGE

Change-Id: I75bc3c96b606f19818b4da31b15db9be6ba05760
Auto-generated-cl: translation import

8 years agoMerge "Add method to tell the dpc if provisioning is allowed."
Nicolas Prévot [Mon, 9 Nov 2015 13:49:31 +0000 (13:49 +0000)]
Merge "Add method to tell the dpc if provisioning is allowed."

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Mon, 9 Nov 2015 13:48:47 +0000 (13:48 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE am: 210f0afaf9 -s ours am: a1d0738253 -s ours
Geoff Mendal [Mon, 9 Nov 2015 13:44:21 +0000 (13:44 +0000)]
Import translations. DO NOT MERGE am: 210f0afaf9  -s ours am: a1d0738253  -s ours
am: 16c692f57f  -s ours

* commit '16c692f57f17102b1980144fb259875d40139d10':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 9 Nov 2015 13:39:52 +0000 (05:39 -0800)]
Import translations. DO NOT MERGE

Change-Id: Idace066b891d2ef54c18e1421368bcc5c6fd0fa1
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE am: 210f0afaf9 -s ours
Geoff Mendal [Mon, 9 Nov 2015 13:37:24 +0000 (13:37 +0000)]
Import translations. DO NOT MERGE am: 210f0afaf9  -s ours
am: a1d0738253  -s ours

* commit 'a1d07382539525a44baf0ca581e04fb445639831':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 9 Nov 2015 13:29:12 +0000 (13:29 +0000)]
Import translations. DO NOT MERGE
am: 210f0afaf9  -s ours

* commit '210f0afaf9011d044d261f1044a1a7368cb89e7e':
  Import translations. DO NOT MERGE

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 9 Nov 2015 13:14:26 +0000 (05:14 -0800)]
Import translations. DO NOT MERGE

Change-Id: I5f41d236c6356c6412ef943e51701aa5d08e8890
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Mon, 9 Nov 2015 13:11:08 +0000 (05:11 -0800)]
Import translations. DO NOT MERGE

Change-Id: I45eaf276af6efa775e2e7c0a7cd8040fbf13e32e
Auto-generated-cl: translation import

8 years agoMerge "More APIs for encryption-aware apps."
Jeff Sharkey [Sun, 8 Nov 2015 21:32:56 +0000 (21:32 +0000)]
Merge "More APIs for encryption-aware apps."

8 years agoMore APIs for encryption-aware apps.
Jeff Sharkey [Sat, 7 Nov 2015 06:40:29 +0000 (22:40 -0800)]
More APIs for encryption-aware apps.

Apps can mark manifest components as being encryption-aware, which
means they can safely be run before the credential encrypted storage
is available.

Start adding filtering logic so that we only return these components
when a user is running "with amnesia."  That is to say, only device
encrypted storage is available, so the user is running but with only
partial knowledge of its data.

To avoid calling into ActivityManager with the PackageManager lock
held, we quickly determine user state and splice the state into the
flags for later per-component evaluation.

Bug: 22358539
Change-Id: Idc56ec29f1ef04da8963e004314d7f5e47400997

8 years agoMerge "Support nested domain-config elements" am: 749501e88e am: b549899d0b
Chad Brubaker [Sat, 7 Nov 2015 22:28:24 +0000 (22:28 +0000)]
Merge "Support nested domain-config elements" am: 749501e88e am: b549899d0b
am: 8427d98f7c

* commit '8427d98f7c3d6c1c05d78c5a9202c4110c3732b5':
  Support nested domain-config elements

8 years agoMerge "Add xml source for network security configuration" am: ead46ecc84 am: 0cb8f01410
Chad Brubaker [Sat, 7 Nov 2015 22:27:01 +0000 (22:27 +0000)]
Merge "Add xml source for network security configuration" am: ead46ecc84 am: 0cb8f01410
am: 06d93173b1

* commit '06d93173b1fe98013a41f3a35993dea8e60e48ad':
  Add xml source for network security configuration

8 years agoMerge "Support nested domain-config elements" am: 749501e88e
Chad Brubaker [Sat, 7 Nov 2015 22:23:00 +0000 (22:23 +0000)]
Merge "Support nested domain-config elements" am: 749501e88e
am: b549899d0b

* commit 'b549899d0b6b95032a9c75e64c9276acd85510d1':
  Support nested domain-config elements

8 years agoMerge "Add xml source for network security configuration" am: ead46ecc84
Chad Brubaker [Sat, 7 Nov 2015 22:21:40 +0000 (22:21 +0000)]
Merge "Add xml source for network security configuration" am: ead46ecc84
am: 0cb8f01410

* commit '0cb8f014105b9e8e3bdb12cf091ef61e8c575333':
  Add xml source for network security configuration

8 years agoMerge "Support nested domain-config elements"
Chad Brubaker [Sat, 7 Nov 2015 22:16:10 +0000 (22:16 +0000)]
Merge "Support nested domain-config elements"
am: 749501e88e

* commit '749501e88e5fa6bdc6594a9db5c232e31bdda867':
  Support nested domain-config elements

8 years agoMerge "Add xml source for network security configuration"
Chad Brubaker [Sat, 7 Nov 2015 22:14:36 +0000 (22:14 +0000)]
Merge "Add xml source for network security configuration"
am: ead46ecc84

* commit 'ead46ecc843e3686ff5ae8008f4452fc79f847e7':
  Add xml source for network security configuration

8 years agoMerge "Support nested domain-config elements"
Chad Brubaker [Sat, 7 Nov 2015 22:11:04 +0000 (22:11 +0000)]
Merge "Support nested domain-config elements"

8 years agoMerge "AAPT2: Accept aliases defined for external resource types"
Adam Lesinski [Sat, 7 Nov 2015 22:11:00 +0000 (22:11 +0000)]
Merge "AAPT2: Accept aliases defined for external resource types"

8 years agoMerge "Add xml source for network security configuration"
Chad Brubaker [Sat, 7 Nov 2015 22:10:50 +0000 (22:10 +0000)]
Merge "Add xml source for network security configuration"

8 years agoMerge "AAPT2: Disambiguate merging of resources"
Adam Lesinski [Sat, 7 Nov 2015 22:09:37 +0000 (22:09 +0000)]
Merge "AAPT2: Disambiguate merging of resources"

8 years agoAAPT2: Accept aliases defined for external resource types
Adam Lesinski [Sat, 7 Nov 2015 21:34:39 +0000 (13:34 -0800)]
AAPT2: Accept aliases defined for external resource types

Resource types that are typically stored outside of the resource table
(like layout, xml, drawable) can only have aliases (reference to another
resource).

Change-Id: Idb768801f02bb142e5be5e438904f221499bd756

8 years agoSupport nested domain-config elements
Chad Brubaker [Sat, 7 Nov 2015 07:02:37 +0000 (23:02 -0800)]
Support nested domain-config elements

Nested domain-config inherit unset parameters from the domain-config
they are nested in. This helps avoid copy and pasted configs that are
almost the same except a few minor differences for a domain with
slightly different requirements.

For example: Consider a domain-config for example.com that, among other
settings, does not enforce hsts. Now if you want the rules for
example.com to apply to secure.example.com except that hsts _is_
enforced you can make a nested domain-config for secure.example.com
under example.com that sets hstsEnforced="true" and nothing else.

Change-Id: I9e33f7e62127fd7f4f15c3560fff2f2626477bd4

8 years agoAAPT2: Disambiguate merging of resources
Adam Lesinski [Sat, 7 Nov 2015 19:51:23 +0000 (11:51 -0800)]
AAPT2: Disambiguate merging of resources

Merging local app resources is slightly different than merging
resources from a static library.

Local app resources may not have a package name set, but we do take interest in the
ID set for the package (should be 0x0 or match the ID of the app we're building).

Static library resources have an explicit package name defined for them, so we
only merge resources from that package.

Change-Id: I95e559ae94cc1df6972e77a347b1b37a93674c4d

8 years agoMerge "AAPT2: Add support for clearer in-progress public attributes"
Adam Lesinski [Sat, 7 Nov 2015 18:07:01 +0000 (18:07 +0000)]
Merge "AAPT2: Add support for clearer in-progress public attributes"

8 years agoAdd xml source for network security configuration
Chad Brubaker [Thu, 5 Nov 2015 07:55:29 +0000 (23:55 -0800)]
Add xml source for network security configuration

XmlConfigSource parses an ApplicationConfig from an xml resource.
Currently this supports app-wide default configuration via the
base-config element, per domain via the domain-config element and
inheritance of unset properties at parse time.

Inheritance of unset properties is currently only:
domain-config -> base-config -> platform default configuration
Where the most specific value is used.
For example: If the base-config specifies trust anchors, all connections
will use those anchors except for connections to a domain which has a
domain-config that specifies trust anchors, in which case the
domain-config's trust anchors will be used. If the domain-config or
base-config don't set trust anchors, or don't exist, then the platform
default trust anchors will be used.

Nested domain-config entries, debug-overrides, and thorough
documentation of the xml format will follow in later commits.

Change-Id: I1232ff1e8079a81b340bc12e142f0889f6947aa0

8 years agoMerge "Fix incorrect hstsEnforced lookup" am: 1347cb81f4 am: 90b9ed5c82
Chad Brubaker [Sat, 7 Nov 2015 02:53:50 +0000 (02:53 +0000)]
Merge "Fix incorrect hstsEnforced lookup" am: 1347cb81f4 am: 90b9ed5c82
am: d28d4bcf9b

* commit 'd28d4bcf9b6c9d8142fbed995250d41a59387c72':
  Fix incorrect hstsEnforced lookup

8 years agoMerge "Fix incorrect hstsEnforced lookup" am: 1347cb81f4
Chad Brubaker [Sat, 7 Nov 2015 02:47:59 +0000 (02:47 +0000)]
Merge "Fix incorrect hstsEnforced lookup" am: 1347cb81f4
am: 90b9ed5c82

* commit '90b9ed5c82f5a3bd754bebe69a8883b65d3f95cc':
  Fix incorrect hstsEnforced lookup

8 years agoMerge "Fix incorrect hstsEnforced lookup"
Chad Brubaker [Sat, 7 Nov 2015 02:42:05 +0000 (02:42 +0000)]
Merge "Fix incorrect hstsEnforced lookup"
am: 1347cb81f4

* commit '1347cb81f402c628f3346ea350a5862749901d59':
  Fix incorrect hstsEnforced lookup

8 years agoMerge "Fix incorrect hstsEnforced lookup"
Chad Brubaker [Sat, 7 Nov 2015 02:37:45 +0000 (02:37 +0000)]
Merge "Fix incorrect hstsEnforced lookup"

8 years agoMerge "Initial file-based encryption public APIs."
Jeff Sharkey [Sat, 7 Nov 2015 02:37:21 +0000 (02:37 +0000)]
Merge "Initial file-based encryption public APIs."

8 years agoInitial file-based encryption public APIs.
Jeff Sharkey [Fri, 6 Nov 2015 00:18:51 +0000 (16:18 -0800)]
Initial file-based encryption public APIs.

Define two explicit directories where device-encrypted and
credential-encrypted data will be stored.  Third-party apps only
need access to the device-encrypted directory, so that's the only
API exposed for now.

General cleanup in how ApplicationInfo details are derived.

Bug: 22358539
Change-Id: If0a0108721a4aa1c3052b4912e08604bbf24e1ae

8 years agoMerge "AAPT2: Fix inclusion of comments in R.java javadoc"
Adam Lesinski [Sat, 7 Nov 2015 02:31:20 +0000 (02:31 +0000)]
Merge "AAPT2: Fix inclusion of comments in R.java javadoc"

8 years agoAAPT2: Add support for clearer in-progress public attributes
Adam Lesinski [Sat, 7 Nov 2015 02:25:04 +0000 (18:25 -0800)]
AAPT2: Add support for clearer in-progress public attributes

Before, the ID assigned to a public resource without an explicitly set id
was more difficult to figure out. It would be the next available ID.

AAPT2 introduces a new way to specify public attributes in progress.

<public-group type="attr" first-id="0x0101047f">
  <public name="foo" />
  <public name="bar" />
  ...
</public-group>

The IDs assigned to each resource is auto-incremented starting from `first-id`.
This also keeps resource's with the same type grouped together so that
the auto-incrementing nature is evident.

Also, due to how AAPT2 was implemented, this is required :P

Change-Id: I95ea92ad0405e87ed0b1766879bb2f1d9d0b636e

8 years agoFix incorrect hstsEnforced lookup
Chad Brubaker [Sat, 7 Nov 2015 02:08:12 +0000 (18:08 -0800)]
Fix incorrect hstsEnforced lookup

Change-Id: I00364d8c1d3311bebd3ad88e557860e694ba5018

8 years agoMerge "Make sure to persist user restrictions in UMS"
Makoto Onuki [Sat, 7 Nov 2015 01:21:13 +0000 (01:21 +0000)]
Merge "Make sure to persist user restrictions in UMS"

8 years agoLog fingerprint state in KeyguardUpdateMonitor.
Jim Miller [Wed, 30 Sep 2015 01:55:32 +0000 (18:55 -0700)]
Log fingerprint state in KeyguardUpdateMonitor.

Attempt to track down bug 24508587

Change-Id: Ifb998e2752ec515c36dd302c2abeb1ab27f3a2f3

8 years agoMerge "Fixing recent tasks not getting restored at startup"
Suprabh Shukla [Sat, 7 Nov 2015 00:44:18 +0000 (00:44 +0000)]
Merge "Fixing recent tasks not getting restored at startup"

8 years agoAAPT2: Fix inclusion of comments in R.java javadoc
Adam Lesinski [Fri, 6 Nov 2015 23:14:35 +0000 (15:14 -0800)]
AAPT2: Fix inclusion of comments in R.java javadoc

Comments weren't being copied when merged from the various
resource tables.

Also refactored the JavaClassGenerator to omit a class
if no entries exist for it.

Change-Id: I6eaa89b7b3715bc05403635a2baf0d1db3efd142

8 years agoFixing recent tasks not getting restored at startup
Suprabh Shukla [Fri, 6 Nov 2015 23:39:42 +0000 (15:39 -0800)]
Fixing recent tasks not getting restored at startup

Check for empty list before reading activity at index 0.

Change-Id: If87e3c4d2cedd86fdb427ddfb27d1f32f8f93412

8 years agoMerge "Add test to cover loading shared-lib with appAsLib as true. This patch made...
Tao Bai [Fri, 6 Nov 2015 23:49:40 +0000 (23:49 +0000)]
Merge "Add test to cover loading shared-lib with appAsLib as true. This patch made AppAsLib_test use its own resource"

8 years agoFixing issue with canceling the thumbnail in addition to the app window.
Winson [Fri, 6 Nov 2015 23:30:29 +0000 (15:30 -0800)]
Fixing issue with canceling the thumbnail in addition to the app window.

Bug: 25392381
Change-Id: Ib507f53bcd2aad4771c2546f5e8bfe771769e9a2

8 years agoReverting debug flag.
Winson [Fri, 6 Nov 2015 22:54:41 +0000 (14:54 -0800)]
Reverting debug flag.

Change-Id: I918d43827ecd7be52b41fb632850775161aa3902

8 years agoAdding fast alt-tab trigger to prevent full animation.
Winson [Fri, 6 Nov 2015 21:11:16 +0000 (13:11 -0800)]
Adding fast alt-tab trigger to prevent full animation.

Change-Id: I3df7a99977d0c2687eea084a95a0953429e8ff47

8 years agoAdd test to cover loading shared-lib with appAsLib as true.
Tao Bai [Fri, 6 Nov 2015 22:00:17 +0000 (14:00 -0800)]
Add test to cover loading shared-lib with appAsLib as true.
This patch made AppAsLib_test use its own resource

Bug 22487604

Change-Id: Iac4cc949f1b25c326a287a49e0b031bf6831e9e9

8 years agoMake sure to persist user restrictions in UMS
Makoto Onuki [Fri, 6 Nov 2015 22:24:24 +0000 (14:24 -0800)]
Make sure to persist user restrictions in UMS

Bug 25565111

Change-Id: Ic48ce728a1c2b55d70276a37b9a359407167edf1

8 years agoFixing up some more focus edge cases.
Winson [Fri, 6 Nov 2015 17:16:26 +0000 (09:16 -0800)]
Fixing up some more focus edge cases.

- Disallow touch while alt-tabbing
- Allow keyboard to focus tab while scrolling
- Cleaning up some old classes that aren’t really being used

Change-Id: Ibabea093afb711b07f398677d25735421b7c7e53

8 years agoMerge "Fix directory check in UserCertificateSource" am: 1483ee3aa5 am: 2d7d8401a9
Chad Brubaker [Fri, 6 Nov 2015 21:28:24 +0000 (21:28 +0000)]
Merge "Fix directory check in UserCertificateSource" am: 1483ee3aa5 am: 2d7d8401a9
am: a8fd356640

* commit 'a8fd35664070134f0596238ad0c5bdaa3adc221b':
  Fix directory check in UserCertificateSource

8 years agoMerge "Fix incorrect hasPerDomainConfigs check" am: c5c51dafb3 am: dd6d0918c4
Chad Brubaker [Fri, 6 Nov 2015 21:26:55 +0000 (21:26 +0000)]
Merge "Fix incorrect hasPerDomainConfigs check" am: c5c51dafb3 am: dd6d0918c4
am: a21b4a528d

* commit 'a21b4a528dc7c728b3546899c90758d583f35495':
  Fix incorrect hasPerDomainConfigs check

8 years agoMerge "Use a builder for NetworkSecurityConfig" am: 7e98f2e697 am: 478fad3cf5
Chad Brubaker [Fri, 6 Nov 2015 21:25:31 +0000 (21:25 +0000)]
Merge "Use a builder for NetworkSecurityConfig" am: 7e98f2e697 am: 478fad3cf5
am: 54b4b8fdfc

* commit '54b4b8fdfc336b8a4902637e622c3ede879edcde':
  Use a builder for NetworkSecurityConfig

8 years agoMerge "Fix directory check in UserCertificateSource" am: 1483ee3aa5
Chad Brubaker [Fri, 6 Nov 2015 21:19:02 +0000 (21:19 +0000)]
Merge "Fix directory check in UserCertificateSource" am: 1483ee3aa5
am: 2d7d8401a9

* commit '2d7d8401a9c1e03f8f141415b25cfb415df73695':
  Fix directory check in UserCertificateSource

8 years agoMerge "Mutate DrawableContainer children immediately after inflation"
Alan Viverette [Fri, 6 Nov 2015 21:17:36 +0000 (21:17 +0000)]
Merge "Mutate DrawableContainer children immediately after inflation"

8 years agoMerge "Fix incorrect hasPerDomainConfigs check" am: c5c51dafb3
Chad Brubaker [Fri, 6 Nov 2015 21:17:34 +0000 (21:17 +0000)]
Merge "Fix incorrect hasPerDomainConfigs check" am: c5c51dafb3
am: dd6d0918c4

* commit 'dd6d0918c42aec3fb08d6df15822078e35cc4f33':
  Fix incorrect hasPerDomainConfigs check

8 years agoMerge "Fix directory check in UserCertificateSource"
Chad Brubaker [Fri, 6 Nov 2015 21:10:54 +0000 (21:10 +0000)]
Merge "Fix directory check in UserCertificateSource"
am: 1483ee3aa5

* commit '1483ee3aa5737f9aff06021b5ec9fe3086ee2e66':
  Fix directory check in UserCertificateSource

8 years agoMerge "Fix incorrect hasPerDomainConfigs check"
Chad Brubaker [Fri, 6 Nov 2015 21:09:11 +0000 (21:09 +0000)]
Merge "Fix incorrect hasPerDomainConfigs check"
am: c5c51dafb3

* commit 'c5c51dafb3ede95622eb350dae0b662abb611925':
  Fix incorrect hasPerDomainConfigs check

8 years agoUpdate divider shadow when it is moving
Jorim Jaggi [Fri, 6 Nov 2015 21:00:18 +0000 (22:00 +0100)]
Update divider shadow when it is moving

Change-Id: Ifc67ba3ee640929248cad6479d9c0df818e32f40

8 years agoMerge "Fix directory check in UserCertificateSource"
Chad Brubaker [Fri, 6 Nov 2015 21:02:23 +0000 (21:02 +0000)]
Merge "Fix directory check in UserCertificateSource"

8 years agoMerge "Fix incorrect hasPerDomainConfigs check"
Chad Brubaker [Fri, 6 Nov 2015 21:02:01 +0000 (21:02 +0000)]
Merge "Fix incorrect hasPerDomainConfigs check"

8 years agoFix directory check in UserCertificateSource
Chad Brubaker [Fri, 6 Nov 2015 20:52:12 +0000 (12:52 -0800)]
Fix directory check in UserCertificateSource

If the user has not added any CAs to the user trust store the user-added
directory will not have been created.

Change-Id: I8b5f73af3c0761c56969874231004fedbf7badda

8 years agoFix incorrect hasPerDomainConfigs check
Chad Brubaker [Fri, 6 Nov 2015 20:50:31 +0000 (12:50 -0800)]
Fix incorrect hasPerDomainConfigs check

Change-Id: Iaeedbbcc5f12475d346a77dba84b38a1d3d8d346

8 years agoFix build
Jorim Jaggi [Fri, 6 Nov 2015 20:31:17 +0000 (21:31 +0100)]
Fix build

Change-Id: Ie716bbec49920af459ceddf8e51387ccf5946a7f

8 years agoMerge "Use a builder for NetworkSecurityConfig" am: 7e98f2e697
Chad Brubaker [Fri, 6 Nov 2015 20:31:02 +0000 (20:31 +0000)]
Merge "Use a builder for NetworkSecurityConfig" am: 7e98f2e697
am: 478fad3cf5

* commit '478fad3cf53874f9cc96169cd25b29b9c031637a':
  Use a builder for NetworkSecurityConfig

8 years agoMerge "Use a builder for NetworkSecurityConfig"
Chad Brubaker [Fri, 6 Nov 2015 20:25:33 +0000 (20:25 +0000)]
Merge "Use a builder for NetworkSecurityConfig"
am: 7e98f2e697

* commit '7e98f2e6976fb38c5c3a7421547d1756ba5faafe':
  Use a builder for NetworkSecurityConfig

8 years agoDon't kill process when dismissing stack
Jorim Jaggi [Fri, 6 Nov 2015 19:54:50 +0000 (20:54 +0100)]
Don't kill process when dismissing stack

Also clear the binder identity to incorrect permission
checks, which lead to crashes when dismissing the docked
stack.

Change-Id: I53175769745e8bbdbc296806b9297eb3c53d4452

8 years agoMutate DrawableContainer children immediately after inflation
Alan Viverette [Fri, 6 Nov 2015 20:22:43 +0000 (15:22 -0500)]
Mutate DrawableContainer children immediately after inflation

Previously we would only mutate children when they were displayed, so
applyTheme() calls would be applied to the shared constant state. Now
we mutate() immediately after obtaining the child, which ensures we
have a clean constant state. This also allows us to remove extra
mutate() calls, since we know all child drawables are already mutated.

Bug: 25081461
Change-Id: I52390db268690a8e181f5b9bbe612b7ed6ce9359

8 years agoMerge "Use a builder for NetworkSecurityConfig"
Chad Brubaker [Fri, 6 Nov 2015 20:21:29 +0000 (20:21 +0000)]
Merge "Use a builder for NetworkSecurityConfig"

8 years agoMerge "Fix windows disappearing when resizing freeform or docked."
Filip Gruszczynski [Fri, 6 Nov 2015 19:49:01 +0000 (19:49 +0000)]
Merge "Fix windows disappearing when resizing freeform or docked."

8 years agoFix windows disappearing when resizing freeform or docked.
Filip Gruszczynski [Fri, 6 Nov 2015 17:21:17 +0000 (09:21 -0800)]
Fix windows disappearing when resizing freeform or docked.

Also includes some code clarity improvements: mHasSurface is set using a
setter, some fields get private.

Change-Id: I2f834880493c008fdccf07ff6ebfebd2e26690a9

8 years agoMerge "Correctly handle child drawables with no intrinsic size"
Alan Viverette [Fri, 6 Nov 2015 19:41:59 +0000 (19:41 +0000)]
Merge "Correctly handle child drawables with no intrinsic size"

8 years agoMerge changes I619be025,I126765a3,I0307c191,I9425785f,I623bd48d, ...
Jorim Jaggi [Fri, 6 Nov 2015 19:28:42 +0000 (19:28 +0000)]
Merge changes I619be025,I126765a3,I0307c191,I9425785f,I623bd48d, ...

* changes:
  Restore changes lost during merge
  Fix flicker at the end of docked stack divider animation
  Implement divider UX interactions
  Immediately start resizing when touching docked divider
  Fix black holes and flickering in docked resizing
  Migrate docked divider drawing to SysUI
  Supply app transition specs with a future

8 years agoRestore changes lost during merge
Jorim Jaggi [Fri, 6 Nov 2015 16:32:44 +0000 (17:32 +0100)]
Restore changes lost during merge

Change-Id: I619be025988470e27b614ed0ad009e5d785f19eb

8 years agoMerge "Use ConstantState directly instead of ConstantStateFuture"
Alan Viverette [Fri, 6 Nov 2015 19:09:31 +0000 (19:09 +0000)]
Merge "Use ConstantState directly instead of ConstantStateFuture"

8 years agoDO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE am: d9a2be8d3...
Chris Elliott [Fri, 6 Nov 2015 18:54:10 +0000 (18:54 +0000)]
DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE am: d9a2be8d3d  -s ours am: 634221adb2 am: 54919264d8
am: 8d19637651  -s ours

* commit '8d19637651d03fee04ad2b0e56d5a5502ab0c23e':
  DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE

8 years agoDO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE am: d9a2be8d3...
Chris Elliott [Fri, 6 Nov 2015 18:46:32 +0000 (18:46 +0000)]
DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE am: d9a2be8d3d  -s ours am: 634221adb2
am: 54919264d8

* commit '54919264d8ab758a29c6d417d7bcd5a949c0b6e9':
  DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE

8 years agoDO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE am: d9a2be8d3...
Chris Elliott [Fri, 6 Nov 2015 18:41:35 +0000 (18:41 +0000)]
DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE am: d9a2be8d3d  -s ours
am: 634221adb2

* commit '634221adb28f765233889cca32078e4b042198f3':
  DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE

8 years agoDO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE
Chris Elliott [Fri, 6 Nov 2015 18:36:16 +0000 (18:36 +0000)]
DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE
am: d9a2be8d3d  -s ours

* commit 'd9a2be8d3d5bd0e170fec71c316373e268a8c17f':
  DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE

8 years agoMerge "Add DPM.getUserRestrictions()"
Makoto Onuki [Fri, 6 Nov 2015 18:32:35 +0000 (18:32 +0000)]
Merge "Add DPM.getUserRestrictions()"

8 years agoAdd DPM.getUserRestrictions()
Makoto Onuki [Fri, 30 Oct 2015 18:07:51 +0000 (11:07 -0700)]
Add DPM.getUserRestrictions()

This returns per-DO/PO restrictions.

Bug 23902097

Change-Id: I225c1b01444fe2f60e5a6674d327182cc9bb15dc

8 years agoMerge "Have AudioService listen to DISALLOW_UNMUTE_MICROPHONE and"
Makoto Onuki [Fri, 6 Nov 2015 18:29:12 +0000 (18:29 +0000)]
Merge "Have AudioService listen to DISALLOW_UNMUTE_MICROPHONE and"

8 years agoMerge "Do not allow DO and PO running on the same user."
Makoto Onuki [Fri, 6 Nov 2015 18:28:55 +0000 (18:28 +0000)]
Merge "Do not allow DO and PO running on the same user."

8 years agoDO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE
Chris Elliott [Fri, 6 Nov 2015 17:41:17 +0000 (17:41 +0000)]
DO NOT MERGE Revert ActivityView gets its own thread pool. DO NOT MERGE

This reverts commit 7e19e286cc990daaafe934ed82ddfa00762907d6.

Change-Id: I808047efe13cdbf560d15e1ba081417e866ef83a

8 years agoMerge "Move 'un/install' to cmd"
Todd Kennedy [Fri, 6 Nov 2015 17:31:02 +0000 (17:31 +0000)]
Merge "Move 'un/install' to cmd"

8 years agoMove 'un/install' to cmd
Todd Kennedy [Wed, 4 Nov 2015 01:08:55 +0000 (17:08 -0800)]
Move 'un/install' to cmd

Move the implementation of the install variants and uninstall to the cmd
command. Additionally, make two other important changes: 1) replace calls
to the legacy PackageManager#installPackageAsUser with the PackageInstaller
2) allow streaming package bits for 'pm install'

Change-Id: Ia49dac0ccd6470f9d1c1964bdeb3c0b22b856075

8 years agoFix some docs
Svet Ganov [Fri, 6 Nov 2015 17:02:00 +0000 (09:02 -0800)]
Fix some docs

Change-Id: Ie28788330249a1f96b7b168a05546d3d0862a9cf

8 years agoRename SkBitmapRegionDecoder to BitmapRegionDecoder
Matt Sarett [Fri, 6 Nov 2015 16:25:40 +0000 (11:25 -0500)]
Rename SkBitmapRegionDecoder to BitmapRegionDecoder

This is temporary, we are planning to delete this class.
Renaming will allow us to have an SkBitmapRegionDecoder class
in Skia.

Change-Id: I8d24d481d4e8cf782f578fa6deb6e3245c998a37

8 years agoFix flicker at the end of docked stack divider animation
Jorim Jaggi [Thu, 5 Nov 2015 12:59:32 +0000 (13:59 +0100)]
Fix flicker at the end of docked stack divider animation

Because w.isDragResize() was still true but we already
cleared the flag of the divider controller that it was
resizing, there was a frame at the end of the resize
operation at which all stack surfaces were placed at 0/0,
leading to a flicker.
Fix flicker at the end of docked stack divider animation

Because w.isDragResize() was still true but we already
cleared the flag of the divider controller that it was
resizing, there was a frame at the end of the resize
operation at which all stack surfaces were placed at 0/0,
leading to a flicker.

Change-Id: I126765a31703e5405687bcc511960a41024eb652

8 years agoImplement divider UX interactions
Jorim Jaggi [Wed, 4 Nov 2015 15:39:50 +0000 (16:39 +0100)]
Implement divider UX interactions

- Update visuals to spec
- Divider lifts when touching
- Implement basic version of snap points and animations
- Implement touch conflict behavior: If touched around 48x48dp
area around the handle, the divider handles all these touches.
If touched outside of the black background divider, touch goes
directly to underlying window. If touch on the black background
divider, touch is considered slippery and thus the window in
which the touch trace moves gets the touches.

Change-Id: I0307c191ae032672c4b73d439c23cf9833d3fce6

8 years agoImmediately start resizing when touching docked divider
Jorim Jaggi [Tue, 3 Nov 2015 14:15:40 +0000 (15:15 +0100)]
Immediately start resizing when touching docked divider

Before, the surface was made full-screen only after
a certain amount of time. Now, immediately make the surface
full-screen, as soon as the divider is touched, to make
resizing much snappier.

Bug: 24507122
Change-Id: I9425785fca4e62964a959a432c80a81d346602c5

8 years agoFix black holes and flickering in docked resizing
Jorim Jaggi [Tue, 3 Nov 2015 11:38:42 +0000 (12:38 +0100)]
Fix black holes and flickering in docked resizing

When we start a resize with the docked stack divider,
set the surface background to be full-screen, and use
the traditional surface clipping/positioning in window
manager to adjust the size. This ensures that we don't
have any black holes because of asynchronicity (except
at the very beginning, but this can be worked around
later), and the position of the right/bottom activity
is always in sync with the position of the divider.

Also fix a bug in NonClientDecorView where the first
request to draw was dropped (because the thread hasn't
started up yet), and the main thread was waiting for it
indefinitily.

Bug: 24507122
Change-Id: I623bd48d5be64fac2fba45241b84f265944d200d

8 years agoMigrate docked divider drawing to SysUI
Jorim Jaggi [Thu, 29 Oct 2015 15:54:18 +0000 (16:54 +0100)]
Migrate docked divider drawing to SysUI

Move docked divider drawing to SysUI. This let's us have real
time shadows in the future. Keep DockedStackDividerController
for placing/visibility in window manager.

Change-Id: I82c10add626d30f2ba180ee2a21cdbe6ddfe0371

8 years agoSupply app transition specs with a future
Jorim Jaggi [Thu, 29 Oct 2015 12:08:29 +0000 (13:08 +0100)]
Supply app transition specs with a future

Because we retain activity surfaces now, the app transition specs
which were calculated/generated after the onPause() call when going
from recents -> app were too slow. Instead, supply a cross-process
future, which gets fetched when the window manager is about to be
ready to execute the app transition. In practice, this still gets
executed immediately after the onPause call.

If we have a retained surface, this adds some latency, but since we
absolutely need the specs to execute the transition, we have that
latency no matter where exactly we generate the specs.

If we don't have a retained surface, the specs are not calculated on
the critical path, so it's faster.

Bug: 19940527
Change-Id: I80d2c6f6b3a6568a70339619ecefbc3bd8409bd8

8 years agoMerge "Revert "Clarify geometry management for SurfaceView""
Bart Sears [Fri, 6 Nov 2015 09:08:46 +0000 (09:08 +0000)]
Merge "Revert "Clarify geometry management for SurfaceView""

8 years agoRevert "Clarify geometry management for SurfaceView"
Bart Sears [Fri, 6 Nov 2015 09:07:58 +0000 (09:07 +0000)]
Revert "Clarify geometry management for SurfaceView"

This reverts commit 78a45f2bd8794d7a85e7443820862d466edf2324.

Change-Id: I782f688f52a85df84d9facef2fbf88c28f4a7082

8 years agoMerge "Clarify geometry management for SurfaceView"
Rob Carr [Fri, 6 Nov 2015 02:09:35 +0000 (02:09 +0000)]
Merge "Clarify geometry management for SurfaceView"