OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Fix issue with saving admins before finishing loading." into nyc-mr2-dev
Makoto Onuki [Wed, 18 Jan 2017 01:26:56 +0000 (01:26 +0000)]
Merge "Fix issue with saving admins before finishing loading." into nyc-mr2-dev

7 years agoFix issue with saving admins before finishing loading.
Kenny Guy [Tue, 17 Jan 2017 23:33:41 +0000 (23:33 +0000)]
Fix issue with saving admins before finishing loading.

Saving device policy managers settings to clear out
password stats was happening before initializing mAdminList
so could wipe active admins.

Test: manual - flash with N2G05C add google account with dmagent flash wth this fix, check dmagent is still an active admin, reboot check admin is still active.
Test: runtest -c com.android.server.devicepolicy.DevicePolicyManagerTest frameworks-services

Bug: 34277435
Change-Id: I13660b47f30e9aba001eb13f2e457c3b3f36da3e

7 years agoMerge "[DO NOT MERGE] Prevent crash from early Toast surface destruction." into nyc...
Svetoslav Ganov [Tue, 17 Jan 2017 23:03:42 +0000 (23:03 +0000)]
Merge "[DO NOT MERGE] Prevent crash from early Toast surface destruction." into nyc-mr1-dev am: 332762aaf0
am: df459cb2ea

Change-Id: I1239cde924e6d31222bf108c6d55ff19a78019ad

7 years ago[DO NOT MERGE] Prevent crash from early Toast surface destruction. am: 016c9c8cb5
Svetoslav Ganov [Tue, 17 Jan 2017 23:02:52 +0000 (23:02 +0000)]
[DO NOT MERGE] Prevent crash from early Toast surface destruction. am: 016c9c8cb5
am: a7ff8fbe74

Change-Id: Ic372436ee48a9f725c178a72c057a2192aad9267

7 years agoMerge "[DO NOT MERGE] Prevent crash from early Toast surface destruction." into nyc...
Svetoslav Ganov [Tue, 17 Jan 2017 22:58:21 +0000 (22:58 +0000)]
Merge "[DO NOT MERGE] Prevent crash from early Toast surface destruction." into nyc-mr1-dev
am: 332762aaf0

Change-Id: I20cc197cc2f1d4d9dd0b6b6c6fee07e71dd4a1d3

7 years ago[DO NOT MERGE] Prevent crash from early Toast surface destruction.
Svetoslav Ganov [Tue, 17 Jan 2017 22:58:18 +0000 (22:58 +0000)]
[DO NOT MERGE] Prevent crash from early Toast surface destruction.
am: 016c9c8cb5

Change-Id: Ib33d75a050a1b79de9590f2dbe03609c6e2b4463

7 years agoMerge "Not allowing foreground services to be cleared as children" into nyc-mr2-dev
Selim Cinek [Tue, 17 Jan 2017 22:57:08 +0000 (22:57 +0000)]
Merge "Not allowing foreground services to be cleared as children" into nyc-mr2-dev

7 years agoMerge "[DO NOT MERGE] Prevent crash from early Toast surface destruction." into nyc...
TreeHugger Robot [Tue, 17 Jan 2017 22:53:38 +0000 (22:53 +0000)]
Merge "[DO NOT MERGE] Prevent crash from early Toast surface destruction." into nyc-mr1-dev

7 years agoDO NOT MERGE: Propagate revoked permissions in permission review mode
Svet Ganov [Tue, 17 Jan 2017 22:27:40 +0000 (22:27 +0000)]
DO NOT MERGE: Propagate revoked permissions in permission review mode
am: 4518d0be16

Change-Id: Id0525c380c7b9aaf8c160b1e4fad24b9b2756a0d

7 years agoDO NOT MERGE: Propagate revoked permissions in permission review mode
Svet Ganov [Tue, 17 Jan 2017 03:22:37 +0000 (19:22 -0800)]
DO NOT MERGE: Propagate revoked permissions in permission review mode

In permission review mode we represent install permissions for legacy
apps as constantly granted runtime ones since we need to keep per
user flags associated with a permission. We were not propagating
a revoked permission for a legacy app when the later is upgraded to
a modern app when permission review is enabled.

Test: CTS test passes and manual testing worked fine

Bug: 34240393
Change-Id: I32b8ffee89cc034661f8eb5a172dbe2349ea4a18
(cherry picked from commit fe0253b34ec4fdb6afceb11193f29029b524866a)

7 years agoMerge "DO NOT MERGE Revert "Stop preloading EGL/GLES in Zygote"" into nyc-mr2-dev
TreeHugger Robot [Tue, 17 Jan 2017 22:01:20 +0000 (22:01 +0000)]
Merge "DO NOT MERGE Revert "Stop preloading EGL/GLES in Zygote"" into nyc-mr2-dev

7 years agoMerge "2D Recents: Always use grid layout even in split view" into nyc-mr2-dev
Manu Cornet [Tue, 17 Jan 2017 21:58:05 +0000 (21:58 +0000)]
Merge "2D Recents: Always use grid layout even in split view" into nyc-mr2-dev

7 years ago2D Recents: Always use grid layout even in split view
Manu Cornet [Fri, 13 Jan 2017 17:21:26 +0000 (09:21 -0800)]
2D Recents: Always use grid layout even in split view

Simplify the logic a bit, and polish the algorithm to accommodate the
various layout possibilities.

Bug: 32101881
Test: Checked layout in all orientations, with and without split view
Change-Id: I4a6dd3f7f34664908294ddaf5ea516d8e258edbf

7 years agoDO NOT MERGE Revert "Stop preloading EGL/GLES in Zygote"
Jesse Hall [Tue, 17 Jan 2017 20:34:14 +0000 (12:34 -0800)]
DO NOT MERGE Revert "Stop preloading EGL/GLES in Zygote"

This reverts commit 93f630e1c3011a36f6560fd6115cf1a0e809c5e0.
Change has already been reverted in master, hence DO NOT MERGE.

Bug: 34348911

7 years agoMerge "Revert "DO NOT MERGE ANYWHERE unlock_wave: replace with black"" into nyc-mr2-dev
TreeHugger Robot [Tue, 17 Jan 2017 18:42:42 +0000 (18:42 +0000)]
Merge "Revert "DO NOT MERGE ANYWHERE unlock_wave: replace with black"" into nyc-mr2-dev

7 years agoCreate GraphicsEnvironment for communicating with driver loaders
Jesse Hall [Mon, 12 Dec 2016 20:53:02 +0000 (12:53 -0800)]
Create GraphicsEnvironment for communicating with driver loaders

The GraphicsEnvironment class is given information during application
start, and makes it available to EGL/GLES/Vulkan loaders that don't
have easy access to the VM or to the application Context. Currently
only the driver path is handled, but the existing support for setting
library paths (for Vulkan extensions) and cache directory information
should move here.

Bug: 33531483
Change-Id: I4e4e7fb21f1bcc67122e9173514af5f18c063991
Merged-In: I5820d3d1301d5461e10706f551b268c54d4f8926

7 years agoMerge "Stop preloading EGL/GLES in Zygote" into nyc-mr2-dev
TreeHugger Robot [Sat, 14 Jan 2017 05:54:14 +0000 (05:54 +0000)]
Merge "Stop preloading EGL/GLES in Zygote" into nyc-mr2-dev

7 years agoStop preloading EGL/GLES in Zygote
Jesse Hall [Mon, 12 Dec 2016 05:22:16 +0000 (21:22 -0800)]
Stop preloading EGL/GLES in Zygote

It's not clear this actually makes much difference on modern
devices/drivers. With updatable graphics drivers, we'd have to be able
to unload the preloaded driver from processes that don't use the
system driver, which is additional complexity and risk.

On bullhead and sailfish, meminfo actually showed slightly more memory
available while sitting at launcher just after boot with this change
than previously. Looking at detailed stats, the differences appeared
to mostly within run-to-run variation, but there wasn't evidence of a
regression.

Bug: 33531483
Test: boot through lockscreen/launcher
Change-Id: I1892302c1750cdbeaf5b9979f8da4dc6bd7b3e75
Merged-In: I1892302c1750cdbeaf5b9979f8da4dc6bd7b3e75

7 years agoMerge "Add WearCellularMediatorService to the system server." into cw-f-dev
Wei Liu [Sat, 14 Jan 2017 03:58:19 +0000 (03:58 +0000)]
Merge "Add WearCellularMediatorService to the system server." into cw-f-dev
am: 7a6c54128a

Change-Id: Ide990adaf580e1e5b06a24484c13c090746d65fa

7 years agoAdd WearCellularMediatorService to the system server.
Wei Liu [Sat, 14 Jan 2017 03:51:52 +0000 (03:51 +0000)]
Add WearCellularMediatorService to the system server.
am: d741f3de81

Change-Id: Ica3d90c3748d79b28bf9cad1b3b5468f919e7299

7 years agoMerge "Add WearCellularMediatorService to the system server." into cw-f-dev
TreeHugger Robot [Sat, 14 Jan 2017 03:46:06 +0000 (03:46 +0000)]
Merge "Add WearCellularMediatorService to the system server." into cw-f-dev

7 years agoAdd WearCellularMediatorService to the system server.
Wei Liu [Tue, 13 Dec 2016 23:44:55 +0000 (15:44 -0800)]
Add WearCellularMediatorService to the system server.

Bug: 33589216
Change-Id: Icfee08b27c03567ed45e136fc407b51c768515c2

7 years agoMerge "Treat Latin American locales specially" into nyc-mr2-dev
TreeHugger Robot [Sat, 14 Jan 2017 01:02:43 +0000 (01:02 +0000)]
Merge "Treat Latin American locales specially" into nyc-mr2-dev

7 years agoNot allowing foreground services to be cleared as children
Selim Cinek [Fri, 13 Jan 2017 22:43:43 +0000 (14:43 -0800)]
Not allowing foreground services to be cleared as children

forground service notifications could simply be cleared
when they were sent as notification children and then
the summary was cancelled.

This also cleans up the logic in systemui and only removes
the child if allowed.

The clear all button could also show under certain conditions
where it shouldn't have been shown.

Change-Id: I85998b5342bd75425cc6d68e96391299c4f3d83d
Test: manual
Bug: 33766648

7 years agoMerge "Emulator: Fix CTS failure caused by removed MANAGE_USERS permission in Shell...
Sudheer Shanka [Sat, 14 Jan 2017 00:10:05 +0000 (00:10 +0000)]
Merge "Emulator: Fix CTS failure caused by removed MANAGE_USERS permission in Shell" into nyc-mr2-dev

7 years agoMerge "update navbar assets for sw900dp device." into nyc-mr2-dev
Muyuan Li [Fri, 13 Jan 2017 21:49:51 +0000 (21:49 +0000)]
Merge "update navbar assets for sw900dp device." into nyc-mr2-dev

7 years agoMerge "Support shadows and reordering in ViewOverlay" into nyc-mr2-dev
Chris Craik [Fri, 13 Jan 2017 21:46:51 +0000 (21:46 +0000)]
Merge "Support shadows and reordering in ViewOverlay" into nyc-mr2-dev

7 years agoMerge "Don't save password metrics to disk." into nyc-dev am: 97848fc473 am: ea9463f5...
Andrew Scull [Fri, 13 Jan 2017 21:17:23 +0000 (21:17 +0000)]
Merge "Don't save password metrics to disk." into nyc-dev am: 97848fc473 am: ea9463f542 am: 66d66dd50c
am: b2db3761cd

Change-Id: I166a09f1b41c32bb69e2859ef262b9d46996ac87

7 years agoresolve merge conflicts of ad4aa1ce7d3d to nyc-mr1-dev am: eb35ad9969
Andrew Scull [Fri, 13 Jan 2017 21:16:31 +0000 (21:16 +0000)]
resolve merge conflicts of ad4aa1ce7d3d to nyc-mr1-dev am: eb35ad9969
am: 3aac3ebee1

Change-Id: Id7be6d9656b292ec1bf526750db8081022267c4a

7 years agoDo not write if apply() did not change the file. am: 1f99f81bdc
Philip P. Moltmann [Fri, 13 Jan 2017 21:15:18 +0000 (21:15 +0000)]
Do not write if apply() did not change the file. am: 1f99f81bdc
am: 331a4bb8d4

Change-Id: If200192c12477a4410b0b358e6c7b430c23d1499

7 years agoOnly persist last Shared Preferences state am: d15c4f1da5
Philip P. Moltmann [Fri, 13 Jan 2017 21:14:17 +0000 (21:14 +0000)]
Only persist last Shared Preferences state am: d15c4f1da5
am: 889a420a9e  -s ours

Change-Id: I1e440bdfc8d12f30eb6db95b365c15b66479d95d

7 years agoMerge "Add support for carrier demo mode" into nyc-mr2-dev
Justin Klaassen [Fri, 13 Jan 2017 21:00:06 +0000 (21:00 +0000)]
Merge "Add support for carrier demo mode" into nyc-mr2-dev

7 years agoMerge "DO NOT MERGE: Fix to maintain the Carrier Network connection." into nyc-mr2-dev
Pankaj Kanwar [Fri, 13 Jan 2017 20:45:59 +0000 (20:45 +0000)]
Merge "DO NOT MERGE: Fix to maintain the Carrier Network connection." into nyc-mr2-dev

7 years agoMerge "Add logging for high temp warning." into nyc-mr2-dev
TreeHugger Robot [Fri, 13 Jan 2017 20:24:47 +0000 (20:24 +0000)]
Merge "Add logging for high temp warning." into nyc-mr2-dev

7 years agoMerge "DO NOT MERGE - 2D Recents: Make sure thumbnail fills task view in all orientat...
TreeHugger Robot [Fri, 13 Jan 2017 19:54:18 +0000 (19:54 +0000)]
Merge "DO NOT MERGE - 2D Recents: Make sure thumbnail fills task view in all orientations" into nyc-mr2-dev

7 years agoAdd support for carrier demo mode
Justin Klaassen [Wed, 11 Jan 2017 23:54:17 +0000 (15:54 -0800)]
Add support for carrier demo mode

Fixes: 33746309
Test: manually verified carrier demo mode and normal demo mode are setup
correctly

Change-Id: Ia38790599f672a9d1999274276156b5328c9f75a

7 years agoMerge "Don't save password metrics to disk." into nyc-dev am: 97848fc473 am: ea9463f542
Andrew Scull [Fri, 13 Jan 2017 17:18:42 +0000 (17:18 +0000)]
Merge "Don't save password metrics to disk." into nyc-dev am: 97848fc473 am: ea9463f542
am: 66d66dd50c

Change-Id: Ic622d551181566585be89380e32658e963768cbf

7 years agoresolve merge conflicts of ad4aa1ce7d3d to nyc-mr1-dev
Andrew Scull [Fri, 13 Jan 2017 17:17:49 +0000 (17:17 +0000)]
resolve merge conflicts of ad4aa1ce7d3d to nyc-mr1-dev
am: eb35ad9969

Change-Id: I4fd9ce4c79db5a10f28008c89205fc9c8ef2888f

7 years agoMerge "Don't save password metrics to disk." into nyc-dev am: 97848fc473
Andrew Scull [Fri, 13 Jan 2017 17:09:51 +0000 (17:09 +0000)]
Merge "Don't save password metrics to disk." into nyc-dev am: 97848fc473
am: ea9463f542

Change-Id: I76b21c0ea4ab7394281ee8c82ed67179eb9ea966

7 years agoresolve merge conflicts of ad4aa1ce7d3d to nyc-mr1-dev
Andrew Scull [Fri, 13 Jan 2017 15:28:36 +0000 (15:28 +0000)]
resolve merge conflicts of ad4aa1ce7d3d to nyc-mr1-dev

Change-Id: I97ef31536cd06495a08a3f94f81df2d1376186e0

7 years agoMerge "Don't save password metrics to disk." into nyc-dev
Andrew Scull [Fri, 13 Jan 2017 14:52:26 +0000 (14:52 +0000)]
Merge "Don't save password metrics to disk." into nyc-dev
am: 97848fc473

Change-Id: I12d9a6d18654673e5912416550c64e81aab857f9

7 years agoresolve merge conflicts of e4cefbf4fce4 to nyc-dr1-dev
Andrew Scull [Fri, 13 Jan 2017 13:16:09 +0000 (13:16 +0000)]
resolve merge conflicts of e4cefbf4fce4 to nyc-dr1-dev

Change-Id: Ib536a33ba381c28397320edd516d52727e5bdacc

7 years agoMerge "Don't save password metrics to disk." into nyc-dev
Andrew Scull [Fri, 13 Jan 2017 12:18:42 +0000 (12:18 +0000)]
Merge "Don't save password metrics to disk." into nyc-dev

7 years agoMerge "[DPM] Improvements to the network logs batch finalization mechanism" into...
Michal Karpinski [Fri, 13 Jan 2017 09:47:21 +0000 (09:47 +0000)]
Merge "[DPM] Improvements to the network logs batch finalization mechanism" into nyc-mr2-dev

7 years agoDO NOT MERGE: Fix to maintain the Carrier Network connection.
pkanwar [Fri, 13 Jan 2017 03:17:00 +0000 (19:17 -0800)]
DO NOT MERGE: Fix to maintain the Carrier Network connection.

Added isCarrierNetwork param in WifiConfiguration, which is then used in
WifiStateMachine. After this change, the connection to Carrier Network
should be maintained.

BUG: 30760683
Change-Id: I88e01ff44f494a6eda5e2e8a088d069638b72c89

7 years agoSupport shadows and reordering in ViewOverlay
Chris Craik [Fri, 13 Jan 2017 03:17:19 +0000 (19:17 -0800)]
Support shadows and reordering in ViewOverlay

Bug: 32726440
Test: manual
Change-Id: Ic5d7efdee5a493b7768b9db8150f65f97b3f0a64

7 years agoMerge "DO NOT MERGE - Also scale down thumbnail in app transitions for grid recents...
TreeHugger Robot [Fri, 13 Jan 2017 02:31:08 +0000 (02:31 +0000)]
Merge "DO NOT MERGE - Also scale down thumbnail in app transitions for grid recents" into nyc-mr2-dev

7 years agoTreat Latin American locales specially
Roozbeh Pournader [Tue, 10 Jan 2017 23:24:32 +0000 (15:24 -0800)]
Treat Latin American locales specially

Due to legacy reasons, Android translations of European Spanish were
kept under 'es', while Latin American Spanish translations were kept
under 'es-US'. The combination of this, and the new locale
preference rules in Nougat, resulted in 'es' winning over 'es-US' for
all Latin American locales, since 'es' was a direct ancestor, while
'es-US' was just a fallback.

The changes in Nougat had assumed that app developers would put Latin
American Spanish translations under 'es-419', but that could create a
backward-compatibility problem under older Android versions that did
not support three-digit region codes properly.

This CL keeps the Nougat logic and its locale parent tree, but
special-cases es-US and es-MX to be treated as equivalents of es-419
in cases where they are present and es-419 is not.

Bug: 31545805
Bug: 34126460
Test: unit tests are included
Change-Id: Iab26f41294587ee044685a5a6560520c7cbb06f7
(cherry picked from commit a192a8ced65ceea8bfe44f0eac6a394cbf80d936)

7 years agoAdd logging for high temp warning.
Andrew Sapperstein [Fri, 13 Jan 2017 01:21:12 +0000 (17:21 -0800)]
Add logging for high temp warning.

Adds a log line that prints the current and throttling temps
when we decide to show the notification.

Test: manual
Bug: 34256597
Change-Id: I4d0a1993e0b073d68fbc65f9aa765f5343a69dc5

7 years agoDo not write if apply() did not change the file.
Philip P. Moltmann [Fri, 13 Jan 2017 01:10:01 +0000 (01:10 +0000)]
Do not write if apply() did not change the file.
am: 1f99f81bdc

Change-Id: I4dd94b4f862f6c3d5ada9961d75cc2f91886edf1

7 years agoOnly persist last Shared Preferences state
Philip P. Moltmann [Fri, 13 Jan 2017 01:09:03 +0000 (01:09 +0000)]
Only persist last Shared Preferences state
am: d15c4f1da5

Change-Id: I6431d4b7d07064eec5013d01b5bda76b1ed35e14

7 years agoDO NOT MERGE - 2D Recents: Make sure thumbnail fills task view in all orientations
Manu Cornet [Wed, 11 Jan 2017 20:32:54 +0000 (12:32 -0800)]
DO NOT MERGE - 2D Recents: Make sure thumbnail fills task view in all orientations

Bug: 32101881
Test: Checked layout in various situations when switching orientation
Change-Id: Iae1f142f6568890512e24787d78cfb1e15280feb

7 years agoDO NOT MERGE - Also scale down thumbnail in app transitions for grid recents
Manu Cornet [Thu, 12 Jan 2017 23:05:13 +0000 (15:05 -0800)]
DO NOT MERGE - Also scale down thumbnail in app transitions for grid recents

Bug: 32101881
Test: Checked the effect on app -> recents transition on local sw600dp device
Change-Id: Ic3e3af6e8db4a62028e1283e915a7cd12db49607

7 years agoDo not write if apply() did not change the file.
Philip P. Moltmann [Wed, 14 Dec 2016 00:32:06 +0000 (16:32 -0800)]
Do not write if apply() did not change the file.

Bug: 33385963
Test: SharedPreferences CTS tests
Change-Id: I39955f8fbcdaa54faa539a3c503e12cb00808136

7 years agoOnly persist last Shared Preferences state
Philip P. Moltmann [Wed, 14 Dec 2016 00:23:21 +0000 (16:23 -0800)]
Only persist last Shared Preferences state

If multiple async shared preferences writes are queued, all but the
last one can be ignored as they will be overwritten by the last one
anyway.

For commit() we need to make sure that we have at least persisted the
state of the commit.

Generation counts are 64 bit, hence they never overflow.

Test: Produced a lot of SharedPreferences.Editor.apply and did not see
excessive writes anymore, ran SharedPreferences CTS tests
Bug: 33385963
Change-Id: I3968ed4b71befee6eeb90bea1666a0bb646544f6
(cherry picked from commit 31d6889f4c89dd8498e2095f9d8a3c39fbd17c86)

7 years agoMerge "2D Recents: Use a different task dismiss animation" into nyc-mr2-dev
Manu Cornet [Fri, 13 Jan 2017 00:23:44 +0000 (00:23 +0000)]
Merge "2D Recents: Use a different task dismiss animation" into nyc-mr2-dev

7 years agoMerge "Create a global registry for system message IDs" into nyc-mr2-dev
Andrew Sapperstein [Thu, 12 Jan 2017 21:18:23 +0000 (21:18 +0000)]
Merge "Create a global registry for system message IDs" into nyc-mr2-dev

7 years agoMerge "Revert "DO NOT MERGE ANYWHERE default_wallpaper: replace with black"" into...
TreeHugger Robot [Thu, 12 Jan 2017 18:52:38 +0000 (18:52 +0000)]
Merge "Revert "DO NOT MERGE ANYWHERE default_wallpaper: replace with black"" into nyc-mr2-dev

7 years agoMerge "2D Recents: Show shadows behind task views." into nyc-mr2-dev
Jiaquan He [Thu, 12 Jan 2017 18:50:06 +0000 (18:50 +0000)]
Merge "2D Recents: Show shadows behind task views." into nyc-mr2-dev

7 years agoMerge "Fixed a bug where notifications could stay expanded" into nyc-mr2-dev
Selim Cinek [Thu, 12 Jan 2017 18:37:04 +0000 (18:37 +0000)]
Merge "Fixed a bug where notifications could stay expanded" into nyc-mr2-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Thu, 12 Jan 2017 17:19:00 +0000 (17:19 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Thu, 12 Jan 2017 17:17:46 +0000 (17:17 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years ago[DPM] Improvements to the network logs batch finalization mechanism
Michal Karpinski [Thu, 12 Jan 2017 14:45:01 +0000 (14:45 +0000)]
[DPM] Improvements to the network logs batch finalization mechanism

The full batch will still be available to DPC if there were no
network logs pending.
Added some more debug logging to better investigate the issues.

Test: manual for both cases - pending batch was empty and non-empty,
      with locally decreased timeout
Test: cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testNetworkLoggingWithSingleUser

Bug: 34245471
Bug: 29748723
Change-Id: Iee229d74d4b0a06025b305a15687f336a0aa337e

7 years agoDon't save password metrics to disk.
Andrew Scull [Fri, 2 Dec 2016 16:08:09 +0000 (16:08 +0000)]
Don't save password metrics to disk.

On FBE devices, don't save the metrics to disk but compute them when the
password is first entered and only store them in RAM.

Merged-in: 5daf273b7e3272269c53eda20ce494d0e7a365b5
Bug: 32793550
Change-Id: Icee7f615167761177b224b342970a36c7d90f6ba

7 years agoMerge changes I1d04a92e,I8d7596fa,If63c5434 into nyc-mr2-dev
Selim Cinek [Thu, 12 Jan 2017 15:55:26 +0000 (15:55 +0000)]
Merge changes I1d04a92e,I8d7596fa,If63c5434 into nyc-mr2-dev

* changes:
  Allowing heads-up notifications now on the lock screen
  Introduced the visual stability manager
  Removing notifications always immediately when swiping them away

7 years agoFixed a bug where notifications could stay expanded
Selim Cinek [Thu, 22 Dec 2016 15:39:54 +0000 (16:39 +0100)]
Fixed a bug where notifications could stay expanded

When expanding and locking the screen, the notification
could be stuck in a userlocked state and therefore look
expanded even on the lock screen.
Another case where this could happen was when there was
a race between locking the screen and collapsing a group.

Merged-In: I4f359d727013ee8c9e4174d2855896ba8d3d1a0b
Change-Id: I4f359d727013ee8c9e4174d2855896ba8d3d1a0b
Test: have group on locked shade, expand, click on middle space during expansion
Bug: 33614507

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 12 Jan 2017 11:41:01 +0000 (03:41 -0800)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 12 Jan 2017 11:29:23 +0000 (03:29 -0800)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Captive portal: better detect empty responses" into nyc-mr2-dev
TreeHugger Robot [Thu, 12 Jan 2017 08:51:31 +0000 (08:51 +0000)]
Merge "Captive portal: better detect empty responses" into nyc-mr2-dev

7 years agoCaptive portal: better detect empty responses
Hugo Benichi [Wed, 11 Jan 2017 07:23:26 +0000 (16:23 +0900)]
Captive portal: better detect empty responses

The captive portal detection logic treats empty http responses with a
Content-Length of 0 as not coming from a portal.

However when the Content-Length is missing from the response header, the
empty response is not detected as such and is classified as a captive
portal answer.

When this happens for the http probe, the portal detection logic will
short circuit the detection and wrongly report a portal. The system
validates the network in such conditions only if the https probe
returns a successful connection faster than the http probe.

This patch attempts to better detect empty responses by trying to read
the first byte from the response body when the Content-Length is missing
for 200 responses.

Test: build, flashed + manual tests.
Bug: 33498325
Change-Id: Ie2e5c6a9dc3740e4a2304034879b5ed60f277ade

7 years agoSync the startConsentUiIfNeeded logics to master. We are missing the package name...
Shijian Li [Thu, 12 Jan 2017 03:07:10 +0000 (03:07 +0000)]
Sync the startConsentUiIfNeeded logics to  We are missing the package name when starting the activity now.
am: 5e7fc7ccc8

Change-Id: I4214dc072d3155cd417ee3577918570e515fa1cf

7 years agoAllowing heads-up notifications now on the lock screen
Selim Cinek [Wed, 21 Dec 2016 17:23:11 +0000 (18:23 +0100)]
Allowing heads-up notifications now on the lock screen

In order to isolate notifications properly from their group
and in order to allow them to visually reorder, we now allow
heads up notifications on the lock screen.

Merged-In: I1d04a92e66ae92ecee4f8ee23b218c2b167dadd4
Change-Id: I1d04a92e66ae92ecee4f8ee23b218c2b167dadd4
Test: existing tests pass
Test: add heads up on lockscreen
Test: heads up group child on lockscreen
Bug: 33773401

7 years agoIntroduced the visual stability manager
Selim Cinek [Tue, 6 Dec 2016 22:34:47 +0000 (14:34 -0800)]
Introduced the visual stability manager

Notifications used to roam around and reorder whenever
they wished. Those little beasts must be tamed, hence
a new visual stability manager is introduced that
dictates the terms of their interplay.

Test: manual: add heads-up and see if they correctly appear
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/notification/VisualStabilityManagerTest.java
Bug: 33773401
Merged-In: I8d7596fa7c14e0df68459a77d445f618d517ad51
Change-Id: I8d7596fa7c14e0df68459a77d445f618d517ad51

7 years agoRemoving notifications always immediately when swiping them away
Selim Cinek [Thu, 15 Dec 2016 22:44:36 +0000 (14:44 -0800)]
Removing notifications always immediately when swiping them away

When swiping away notifications we were previously relying on the
notification manager to cancel the notification for us. If the state
diverges however (due to bugs) this leads to unrecoverable empty
holes which is super bad.

Merged-In: If63c5434b4e438fea560e0013a12c60655103977
Change-Id: If63c5434b4e438fea560e0013a12c60655103977
Test: existing tests pass
Bug: 33457118

7 years agoEmulator: Fix CTS failure caused by removed MANAGE_USERS permission in Shell
bohu [Mon, 26 Sep 2016 23:20:07 +0000 (16:20 -0700)]
Emulator: Fix CTS failure caused by removed MANAGE_USERS permission in Shell

BUG: 34132936
BUG: 31648062
Change-Id: I9679c18c0e3611ebc9779408826f182ea8f1e88b
(cherry picked from commit 57f47e8490b68678fd123cdc111d5073ec994382)
(cherry picked from commit 12d23a13bb45cd4f83395f0f45f3382d7571effe)

7 years agoMerge "add additional logging to ActiityManagerService" into nyc-mr2-dev
Tim Murray [Thu, 12 Jan 2017 00:24:27 +0000 (00:24 +0000)]
Merge "add additional logging to ActiityManagerService" into nyc-mr2-dev

7 years ago2D Recents: Show shadows behind task views.
Jiaquan He [Thu, 5 Jan 2017 22:34:44 +0000 (14:34 -0800)]
2D Recents: Show shadows behind task views.

Test: Checked that there's a shadow behind each task view in Grid-based
Recents on local sw600dp device.
Bug: 32101881
Change-Id: I2cb2c0f73cbe23c4dcce5a4839965fdff13a0df5

7 years ago2D Recents: Use a different task dismiss animation
Manu Cornet [Wed, 11 Jan 2017 23:14:14 +0000 (15:14 -0800)]
2D Recents: Use a different task dismiss animation

Bug: 32101881
Test: Checked layout and animation on local sw600dp device
Change-Id: Ic92a6a5aa0c25fac5553de9a0145a0b39ae6ddb1

7 years agoMerge "Added BUGREPORT_OPTION_TELEPHONY." into nyc-mr2-dev
TreeHugger Robot [Wed, 11 Jan 2017 22:55:34 +0000 (22:55 +0000)]
Merge "Added BUGREPORT_OPTION_TELEPHONY." into nyc-mr2-dev

7 years agoadd additional logging to ActiityManagerService
Tim Murray [Wed, 11 Jan 2017 17:52:38 +0000 (09:52 -0800)]
add additional logging to ActiityManagerService

add logging to help debugging issues with attachApplication/attachApplicationLocked.

bug 34193533
Tests: boots and starts apps

Change-Id: I6ef46dd92e893b71c164bfb28eeba1835dddffee

7 years agoSync the startConsentUiIfNeeded logics to master. We are missing the package
Shijian Li [Wed, 11 Jan 2017 17:32:12 +0000 (17:32 +0000)]
Sync the startConsentUiIfNeeded logics to  We are missing the package
name when starting the activity now.

Bug: 34216066
Change-Id: Ic8c8576ce2c65bc554bbf4794e169838c2ccbbe1

7 years agoAdd ticker text for network logging notification
phweiss [Tue, 10 Jan 2017 18:31:07 +0000 (19:31 +0100)]
Add ticker text for network logging notification

Set ticker text to title for accessibility.

Bug:31207965
Test: manual

Change-Id: I0b78f9e6464dd470b74e0db97813623b335835d9
(cherry picked from commit d4a54bbfd1902dccb0e4de03f15bfbbba50b9531)

7 years agoMerge "Add Brightness setting for VR Mode." into nyc-mr2-dev
Santos Cordon [Wed, 11 Jan 2017 03:02:52 +0000 (03:02 +0000)]
Merge "Add Brightness setting for VR Mode." into nyc-mr2-dev

7 years agoAdded BUGREPORT_OPTION_TELEPHONY.
Felipe Leme [Thu, 5 Jan 2017 22:57:12 +0000 (14:57 -0800)]
Added BUGREPORT_OPTION_TELEPHONY.

This option takes a lightweight version of bugreport that only includes a few,
urgent sections used to report telephony bugs.

BUG: 32589463
BUG: 26849505
Test: manual
Merged-In: I6f90c02779a1e8aead690428626e3b9f06aa04df
Change-Id: I6f90c02779a1e8aead690428626e3b9f06aa04df

7 years agoMerge "Re-Add VPN-"Settings" button to QSFooter dialog" into nyc-mr2-dev
Philipp Weiß [Tue, 10 Jan 2017 13:54:25 +0000 (13:54 +0000)]
Merge "Re-Add VPN-"Settings" button to QSFooter dialog" into nyc-mr2-dev

7 years agoRe-Add VPN-"Settings" button to QSFooter dialog
phweiss [Mon, 9 Jan 2017 14:56:00 +0000 (15:56 +0100)]
Re-Add VPN-"Settings" button to QSFooter dialog

Button was removed during a redesign of the dialog in the case
of active device owner. However, when no DO is set, the button should
still be there.

Also, when VPN configuration is restricted, do not show the button, and
also do not show the link that is visible in the DO-version of the dialog.

Bug:34156553
Bug:29748723
Test: manual

Change-Id: I177afdc94dc396754fc7703e4316edaa7ce104cd
(cherry picked from commit a99a3f70e2a07e7c85d25fed1881d1a6ef70a93c)

7 years agoDismiss network logging notification when disabling logging
phweiss [Mon, 9 Jan 2017 16:43:14 +0000 (17:43 +0100)]
Dismiss network logging notification when disabling logging

Bug:34116213
Bug:29748723
Test: CTSVerifier in a separate CL.

Change-Id: Ie652505ff57665f626712c67837577833f1595d6
(cherry picked from commit 82ed31c1efeb98acba60d79d1fc0a291b1440dc2)

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Tue, 10 Jan 2017 07:12:54 +0000 (07:12 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoMerge "Import translations. DO NOT MERGE" into nyc-mr2-dev
TreeHugger Robot [Tue, 10 Jan 2017 07:12:11 +0000 (07:12 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 10 Jan 2017 04:17:25 +0000 (20:17 -0800)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 10 Jan 2017 04:05:48 +0000 (20:05 -0800)]
Import translations. DO NOT MERGE

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

7 years agoAdd Brightness setting for VR Mode.
Santos Cordon [Tue, 20 Sep 2016 22:50:35 +0000 (15:50 -0700)]
Add Brightness setting for VR Mode.

This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379

7 years agoMerge "Check if the activity translucency was converted before converted back." into...
Michael Kwan [Mon, 9 Jan 2017 23:06:24 +0000 (23:06 +0000)]
Merge "Check if the activity translucency was converted before converted back." into cw-f-dev
am: 6d7dc11e01

Change-Id: I1331dadb63009eb7acf693b59f16aebe1557d51e

7 years agoCheck if the activity translucency was converted before converted back.
Michael Kwan [Mon, 9 Jan 2017 23:06:22 +0000 (23:06 +0000)]
Check if the activity translucency was converted before converted back.
am: 39dd370d8e

Change-Id: Ibf6e7b3a1d2767c91cca402fabcc1a0a3616733e

7 years agoMerge "Check if the activity translucency was converted before converted back." into...
TreeHugger Robot [Mon, 9 Jan 2017 22:59:50 +0000 (22:59 +0000)]
Merge "Check if the activity translucency was converted before converted back." into cw-f-dev

7 years agoHold a wake lock while DeviceIdleController is going idle.
Joe Onorato [Mon, 9 Jan 2017 22:43:46 +0000 (22:43 +0000)]
Hold a wake lock while DeviceIdleController is going idle.
am: b08db484c2

Change-Id: I12a3f0a0edc1d8393267ef1ab34b650a7c1036f2

7 years agoupdate navbar assets for sw900dp device.
Muyuan Li [Thu, 5 Jan 2017 00:25:54 +0000 (16:25 -0800)]
update navbar assets for sw900dp device.

bug: 33301377
Change-Id: I1b66b6074692c9df7c4c9352d9be022cddc1f690

7 years agoCheck if the activity translucency was converted before converted back.
Michael Kwan [Mon, 9 Jan 2017 21:43:52 +0000 (13:43 -0800)]
Check if the activity translucency was converted before converted back.

Bug: 34084490
Change-Id: Ib04c76549a31c7e523649f9d284637d44d7477ae

7 years agoHold a wake lock while DeviceIdleController is going idle.
Joe Onorato [Fri, 9 Dec 2016 01:48:49 +0000 (17:48 -0800)]
Hold a wake lock while DeviceIdleController is going idle.

The inputs to DeviceIdleController (alarm manager, sensors)
hold wake locks while they call it.  But then the real work
happens in a handler which is outside of the wakelock, so
listeners don't get a chance to run right away, which in
the case of NetworkPolicyManager means the device is in a
higher power state than it should be.

It's not clear that this will 100% fix the bug, because
NetworkPolicyManagerService also has its own internal
Handler, and isn't holding its own wakelock for this,
but this change allows NPMS to be fixed if it really
needed to be.

Bug: 31900521
Test: adb shell dumpsys deviceidle step ... adb shell dumpsys power has no wakelocks held
Change-Id: I799f45221a6b327e7f63745cadc95ca644c064c6
(cherry picked from commit 8f0e9cede145bbc1668e25cfd6f850fe3fde3ae3)

7 years agoMerge "Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN" into...
Mark Renouf [Mon, 9 Jan 2017 19:13:44 +0000 (19:13 +0000)]
Merge "Omit NavigationGuard if the input method uses FLAG_LAYOUT_IN_OVERSCAN" into cw-f-dev
am: 5df216f209

Change-Id: I8ef2a5de5ff83be475c41b1202950bfb953c348f