OSDN Git Service

android-x86/frameworks-base.git
7 years agoFingerprintController: Make sure to reset the fingerprint mode when going to sleep
Adrian Roos [Tue, 15 Aug 2017 15:48:05 +0000 (17:48 +0200)]
FingerprintController: Make sure to reset the fingerprint mode when going to sleep

Fixes an issue where the fingerprint controller could be stuck indefinitely, causing
the status bar to be in the SHADE state instead of the KEYGUARD state.
Now reset when going to sleep.

Also adds logging.

May also fix a second bug where the scrims were stuck in a bad state.

Change-Id: I55d456c5d157f92758267f684de2bd216ef07d94
Fixes: 64598807
Bug: 64594986
Test: mp sysuig; unlock with fingerprint; verify transition still works

7 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Wed, 16 Aug 2017 09:15:22 +0000 (09:15 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

7 years agoMerge "Add method to cancel StatusBar touch" into oc-mr1-dev
TreeHugger Robot [Wed, 16 Aug 2017 07:48:43 +0000 (07:48 +0000)]
Merge "Add method to cancel StatusBar touch" into oc-mr1-dev

7 years agoMerge "Limit black background to only base and starting windows" into oc-dr1-dev
Andrii Kulian [Wed, 16 Aug 2017 06:28:49 +0000 (06:28 +0000)]
Merge "Limit black background to only base and starting windows" into oc-dr1-dev
am: 44cab75cb0

Change-Id: I87966d38e8b23441837760db1e17e2957468adfa

7 years agoMerge "Limit black background to only base and starting windows" into oc-dr1-dev
Andrii Kulian [Wed, 16 Aug 2017 06:20:59 +0000 (06:20 +0000)]
Merge "Limit black background to only base and starting windows" into oc-dr1-dev

7 years agoAudioService: device connection intent: never send null action
Jean-Michel Trivi [Wed, 16 Aug 2017 02:42:56 +0000 (02:42 +0000)]
AudioService: device connection intent: never send null action
am: 87a264dfde

Change-Id: I1fd6f458bdc4a66a9d2a65d6f7d1bbdcf93b270a

7 years agoMerge "Fixes quick switch animations for low end devices" into oc-mr1-dev
TreeHugger Robot [Wed, 16 Aug 2017 02:28:52 +0000 (02:28 +0000)]
Merge "Fixes quick switch animations for low end devices" into oc-mr1-dev

7 years agoLimit black background to only base and starting windows
Andrii Kulian [Wed, 16 Aug 2017 00:49:24 +0000 (17:49 -0700)]
Limit black background to only base and starting windows

Show black background behind nav bar only behind windows
with type TYPE_APPLICATION_STARTING or TYPE_BASE_APPLICATION,
which corresponds to main window of an activity.

Bug: 64711770
Test: Go to Wallpapers app, select a static one, click "set" and check the background of the dialog.
Test: Open letterboxed app, go to/from Recents.
Change-Id: I42357a5df70b5dd58b422f31704c71d36074a50c

7 years agoMerge "Add some preloaded classes related files and tools" into oc-mr1-dev
Mathieu Chartier [Wed, 16 Aug 2017 01:26:36 +0000 (01:26 +0000)]
Merge "Add some preloaded classes related files and tools" into oc-mr1-dev

7 years agoMerge "Show notification when VoWiFi is active, and user is out of service for voice...
Pankaj Kanwar [Wed, 16 Aug 2017 01:11:35 +0000 (01:11 +0000)]
Merge "Show notification when VoWiFi is active, and user is out of service for voice." into oc-mr1-dev

7 years agoAudioService: device connection intent: never send null action
Jean-Michel Trivi [Wed, 16 Aug 2017 00:52:22 +0000 (17:52 -0700)]
AudioService: device connection intent: never send null action

Change 145c95342c9c removed a test on the type of device for which
  a ACTION_HEADSET_PLUG intent is broadcast. As a result, for some
  devices (e.g. DEVICE_OUT_USB_DEVICE), there is a code path in
  AudioService.sendDeviceConnectionIntent() where the intent's
  action is not set, causing a WTF exception to be thrown for
  the broadcast.
The fix consists in always checking that the intent will be sent
  with a non-null action.

Test: connect a USB device recognized as DEVICE_OUT_USB_DEVICE
Bug: 64724117
Change-Id: Ib2a486d1fabbde58d6a8f8370d5803c694977ee1

7 years agoAdd method to cancel StatusBar touch
Kevin Chyn [Tue, 15 Aug 2017 22:39:54 +0000 (15:39 -0700)]
Add method to cancel StatusBar touch

Fixes: 64611899

Test: manual
Change-Id: I80f458f0365d9634c5f360793def6f673777473c

7 years agoMerge "Add privileged permission for reading the current wallpaper image" into oc...
TreeHugger Robot [Tue, 15 Aug 2017 23:38:40 +0000 (23:38 +0000)]
Merge "Add privileged permission for reading the current wallpaper image" into oc-mr1-dev

7 years agoAdd privileged permission for reading the current wallpaper image
Christopher Tate [Mon, 14 Aug 2017 23:45:03 +0000 (16:45 -0700)]
Add privileged permission for reading the current wallpaper image

OEMs can therefore arrange factory-default access to have access prior
to setup or user interaction.

Bug: 30770233
Bug: 64029450
Test: manual

Change-Id: I2cb30721f2a64ef50275b711ca10ca571248504a

7 years agoAdd some preloaded classes related files and tools
Mathieu Chartier [Tue, 15 Aug 2017 20:37:07 +0000 (13:37 -0700)]
Add some preloaded classes related files and tools

Added copyright-header to be used by generation scripts to
automatically add a copyright header to preloaded classes.

Add a default blacklist file to avoid needing to manually
remove classes that can't be preloaded in the zygote.

Added a script go generate a preloaded classes list from a raw class
list. This script adds the copyright headers and comments and removes
blacklisted classes.

Bug: 37966211
Test: manually run the scripts

Change-Id: I166f990c41978c80134d2f1e12c1b1079a12752a

7 years agoMerge "Calls CancellationSignal when onFillRequest() times out." into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 22:23:57 +0000 (22:23 +0000)]
Merge "Calls CancellationSignal when onFillRequest() times out." into oc-mr1-dev

7 years agoMerge "Fix broken test" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 22:04:58 +0000 (22:04 +0000)]
Merge "Fix broken test" into oc-mr1-dev

7 years agoFixes quick switch animations for low end devices
Matthew Ng [Thu, 10 Aug 2017 22:37:19 +0000 (15:37 -0700)]
Fixes quick switch animations for low end devices

Currently using quick switch is fine but sometimes with animation
glitches but very reproducible if tapping recents button very fast. The
problem is that low end device Recents entrance animation also has the
previous tasks animating downward causing more chances of animation
instability.

The problem is that transition is not finished and it is already
starting to do the next toggled animation. When the transition from
app to recents (RecentsImpl.toggleRecents) starts without finishing
RecentsActivity.onStop, the previous frame will be visible for a couple
of frames before the entrance animation starts (having the previous task
animate down). Therefore restrict toggling to after
RecentsActivity.onStop would allow the previous frame to finish and the
transitions run normally.

Bug: 62251652
Fixes: 64401391
Test: manual - using gobo device, launch multiple apps, rapidly tap recents
button
Change-Id: I4e70434bca3c9bec287fa30559b23a1e71b5ef20

7 years agoMerge "Additional documentation about Autofill / WebView security." into oc-dev am...
Felipe Leme [Tue, 15 Aug 2017 21:48:32 +0000 (21:48 +0000)]
Merge "Additional documentation about Autofill / WebView security." into oc-dev am: 36cbdef880
am: a3c2cee055

Change-Id: Ie107dd462a47009a34ee3768183dfda2e36107c3

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 21:35:05 +0000 (21:35 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4 am: 159cd14334 am: 24587d57cf am: 0fa9328b80
am: b0fa5855dc

Change-Id: Iaadf2350cd86ffc598e666e0d9dc735e5a7889f0

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 15 Aug 2017 21:34:24 +0000 (14:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

Bug: 64712476
Change-Id: Ic418fe43839c5d3fe17a28a84b6f99a41c509777

7 years agoMerge "Additional documentation about Autofill / WebView security." into oc-dev
Felipe Leme [Tue, 15 Aug 2017 21:33:01 +0000 (21:33 +0000)]
Merge "Additional documentation about Autofill / WebView security." into oc-dev
am: 36cbdef880

Change-Id: Ie198dbbdc7ab4ea1089c7363f1b1d2df333c1d8f

7 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Tue, 15 Aug 2017 21:29:48 +0000 (21:29 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc am: 2eb85eca12 am: f3589fded1  -s ours am: facc5e40fc am: 0e1976292d  -s ours
am: 0958d0339f  -s ours

Change-Id: I78851573da087d5aac5ea2e64641972d7a319a9b

7 years agoMerge "Optionally append managed service approvals" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 21:22:21 +0000 (21:22 +0000)]
Merge "Optionally append managed service approvals" into oc-mr1-dev

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 21:16:36 +0000 (21:16 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4 am: 159cd14334 am: 24587d57cf
am: 0fa9328b80

Change-Id: I4fc74296d3da5fef830e9ffe0eedc74bb4fb047b

7 years agoMerge "Additional documentation about Autofill / WebView security." into oc-dev
TreeHugger Robot [Tue, 15 Aug 2017 21:12:32 +0000 (21:12 +0000)]
Merge "Additional documentation about Autofill / WebView security." into oc-dev

7 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Tue, 15 Aug 2017 21:10:41 +0000 (21:10 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc am: 2eb85eca12 am: f3589fded1  -s ours am: facc5e40fc
am: 0e1976292d  -s ours

Change-Id: Ia0fb6afc42cb6bf1fb730ca7cee2f08c157890bb

7 years agoMerge "Remove ButtonInterface.setCarMode()" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 21:08:17 +0000 (21:08 +0000)]
Merge "Remove ButtonInterface.setCarMode()" into oc-mr1-dev

7 years agoShow notification when VoWiFi is active, and user is out of service for
pkanwar [Sun, 13 Aug 2017 19:18:19 +0000 (12:18 -0700)]
Show notification when VoWiFi is active, and user is out of service for
voice.

Bug: 62618428
Test: manual
Change-Id: Ic630991da3199584dd313a8bf3138b020ecebd5c

7 years agoMerge "Persist docked state so it doesn't get lost in re-inflates" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 20:48:09 +0000 (20:48 +0000)]
Merge "Persist docked state so it doesn't get lost in re-inflates" into oc-mr1-dev

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Android Build Merger (Role) [Tue, 15 Aug 2017 20:47:03 +0000 (20:47 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4 am: 159cd14334 am: 24587d57cf

Change-Id: If5cad5c0f361acda25df4d90de06821d16e689c0

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 20:42:11 +0000 (20:42 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4
am: 159cd14334

Change-Id: Iaed779900e094a5951e24771ed1f1f55b0c1b014

7 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Android Build Merger (Role) [Tue, 15 Aug 2017 20:35:00 +0000 (20:35 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc am: 2eb85eca12 am: f3589fded1  -s ours am: facc5e40fc

Change-Id: I4531fab8eab2291fcfd790d04a2661307f40dc60

7 years ago[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee63...
Tony Mak [Tue, 15 Aug 2017 20:29:29 +0000 (20:29 +0000)]
[automerger] Enforce policy for camera gesture in keyguard am: 65f02e8ba7 am: 6acee639af am: 569af6584a am: 30d3df57dc am: 79ada733cc am: 2eb85eca12
am: f3589fded1  -s ours

Change-Id: I3b60e5cb94895fc155ba11d27ed81640eb8a2a05

7 years agoMerge "Adjust font texture cache based on device density." into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 20:28:51 +0000 (20:28 +0000)]
Merge "Adjust font texture cache based on device density." into oc-mr1-dev

7 years agoMerge "Improved WallpaperService.Engine tests" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 20:24:27 +0000 (20:24 +0000)]
Merge "Improved WallpaperService.Engine tests" into oc-mr1-dev

7 years agoMerge "Workaround the IME dismissing when dragging PiP." into oc-mr1-dev
Winson Chung [Tue, 15 Aug 2017 19:49:10 +0000 (19:49 +0000)]
Merge "Workaround the IME dismissing when dragging PiP." into oc-mr1-dev

7 years agoMerge "Only auth via FP when device is locked, when Assistant is on top" into oc...
TreeHugger Robot [Tue, 15 Aug 2017 19:15:43 +0000 (19:15 +0000)]
Merge "Only auth via FP when device is locked, when Assistant is on top" into oc-mr1-dev

7 years agoOptionally append managed service approvals
Julia Reynolds [Mon, 14 Aug 2017 17:22:23 +0000 (13:22 -0400)]
Optionally append managed service approvals

If the backup comes from a pre O device, don't wipe
preexisting managed service grants (which were introduced
in O).

Test: runtest systemui-notification
Change-Id: Ie569972dc0d076718a3a9c59e1ebd942c5bfa987
Fixes: 64232609

7 years agoRemove ButtonInterface.setCarMode()
Annie Chin [Tue, 15 Aug 2017 17:07:27 +0000 (10:07 -0700)]
Remove ButtonInterface.setCarMode()

Bug: 63444779
Test: Android Auto still functions
Change-Id: If27641aedcd05ebc834c9dc0b38d18cd20ddae03

7 years agoFix broken test
Lucas Dupin [Tue, 15 Aug 2017 18:05:04 +0000 (11:05 -0700)]
Fix broken test

Change-Id: Iee80b8ec552f960dac08bfa062c128337eb22eff
Fixes: 64715967
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/colorextraction/SysuiColorExtractorTests.java

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:54:35 +0000 (17:54 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4 am: 40317127f4

Change-Id: I6bb7e6146e9a5a1a7c4721c496b1088fb3209f00

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:54:05 +0000 (17:54 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49 am: 4acf4fabf4

Change-Id: Iea8871d4f1a491e4571e2152afbf8855bf451478

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:53:35 +0000 (17:53 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d am: a3c1de7e49

Change-Id: Idcc4beaf75e1aba8609aa18ad1850e0796a17741

7 years agoAdjust font texture cache based on device density.
Seigo Nonaka [Mon, 14 Aug 2017 21:22:56 +0000 (14:22 -0700)]
Adjust font texture cache based on device density.

The main purpose of this CL is reducing font cache size of
low-density device.

The memory usage for the small RGBA texture will be
Nexus 6P: 7,928,856 bytes (1408x1408)
Nexus 5X: 4,734,976 bytes (1088x1088)
These used to be 4,194,304 bytes

Test: manually checked
Bug: 64400885
Change-Id: Ied064a6d59909ad7fbeff74332973206436fbd34

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:52:57 +0000 (17:52 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f am: 6dfc8d8d4d

Change-Id: Ia5ad4b5d36d92caa26fa69951180320848c372e7

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0...
Charles He [Tue, 15 Aug 2017 17:52:27 +0000 (17:52 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0 am: 1cd9e8096f

Change-Id: I2fce56d688cc0a4111668c695c9cf9b1c930faf8

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0
Charles He [Tue, 15 Aug 2017 17:51:58 +0000 (17:51 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c am: b1141b6ff0

Change-Id: Ia0d267bb2013d7ddfe26dddfa35f3f396cca7f20

7 years ago[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c
Charles He [Tue, 15 Aug 2017 17:51:28 +0000 (17:51 +0000)]
[automerger] Fix security hole in GateKeeperResponse. am: e74cae8f7c

Change-Id: Ic72c354aaec594f02567949e294be2c10da47853

7 years agoMerge "Manuall set accessibility order of zen radio grouping" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 17:50:49 +0000 (17:50 +0000)]
Merge "Manuall set accessibility order of zen radio grouping" into oc-mr1-dev

7 years agoMerge "Update Qualcomm(R) aptX(TM) strings" into oc-dr1-dev
Justin Klaassen [Tue, 15 Aug 2017 17:31:17 +0000 (17:31 +0000)]
Merge "Update Qualcomm(R) aptX(TM) strings" into oc-dr1-dev
am: 8d7cd4bcaa

Change-Id: Idfc54941a233d2b37cc4585d0064b8d86a74d465

7 years agoMerge "Dismiss Autofill Save UI when a new Activity is launched." into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 17:22:18 +0000 (17:22 +0000)]
Merge "Dismiss Autofill Save UI when a new Activity is launched." into oc-mr1-dev

7 years agoMerge "Update Qualcomm(R) aptX(TM) strings" into oc-dr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 17:19:48 +0000 (17:19 +0000)]
Merge "Update Qualcomm(R) aptX(TM) strings" into oc-dr1-dev

7 years agoImproved WallpaperService.Engine tests
Lucas Dupin [Mon, 14 Aug 2017 17:58:40 +0000 (10:58 -0700)]
Improved WallpaperService.Engine tests

Using final variables when possible, also testing if
overlaping invalidation requests will be posted to
the handler.

Bug: 63585249
Test: runtest -x services/tests/servicestests/src/com/android/server/wallpaper/WallpaperServiceTests.java
Change-Id: I01cdbdfd5313e55d7a58c77f705aea0f6f817518

7 years agoMerge "Merge "Place black background only behind nav bar when letterboxed" into oc...
Android Build Merger (Role) [Tue, 15 Aug 2017 16:48:26 +0000 (16:48 +0000)]
Merge "Merge "Place black background only behind nav bar when letterboxed" into oc-dr1-dev am: 3289a5a1e0" into oc-mr1-dev

7 years agoMerge "Place black background only behind nav bar when letterboxed" into oc-dr1-dev
Andrii Kulian [Tue, 15 Aug 2017 16:44:25 +0000 (16:44 +0000)]
Merge "Place black background only behind nav bar when letterboxed" into oc-dr1-dev
am: 3289a5a1e0

Change-Id: Id4069e1c1126d9658a18a448a4bd7566af938cbb

7 years agoMerge "Fix race condition crash" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 16:43:24 +0000 (16:43 +0000)]
Merge "Fix race condition crash" into oc-mr1-dev

7 years agoMerge "Place black background only behind nav bar when letterboxed" into oc-dr1-dev
Andrii Kulian [Tue, 15 Aug 2017 16:26:04 +0000 (16:26 +0000)]
Merge "Place black background only behind nav bar when letterboxed" into oc-dr1-dev

7 years agoMerge "Add fallback to reset the waiting for transition state." into oc-dr1-dev
Winson Chung [Tue, 15 Aug 2017 16:12:42 +0000 (16:12 +0000)]
Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev
am: 684b056531

Change-Id: I77816bf56dedac6127301dc7ffd1f1de3e91031d

7 years agoMerge "Add fallback to reset the waiting for transition state." into oc-dr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 16:03:28 +0000 (16:03 +0000)]
Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev

7 years agoMerge "Change SystemApi as per API council feedback" into oc-mr1-dev
Neil Fuller [Tue, 15 Aug 2017 15:57:33 +0000 (15:57 +0000)]
Merge "Change SystemApi as per API council feedback" into oc-mr1-dev

7 years agoPersist docked state so it doesn't get lost in re-inflates
Jason Monk [Tue, 15 Aug 2017 15:34:33 +0000 (11:34 -0400)]
Persist docked state so it doesn't get lost in re-inflates

Test: manual
Change-Id: If335f1cf52c7bce270ac746e6b0ed3a6e2b18b1b
Fixes: 64487667

7 years agoManuall set accessibility order of zen radio grouping
Jason Monk [Tue, 15 Aug 2017 15:00:32 +0000 (11:00 -0400)]
Manuall set accessibility order of zen radio grouping

Test: manual
Change-Id: Icf461b0400d5ee90a537c2b52c123e76b3274bbf
Fixes: 62626544

7 years agoFix race condition crash
Jason Monk [Tue, 15 Aug 2017 13:32:27 +0000 (09:32 -0400)]
Fix race condition crash

1 line fix
Lots of lines for test

Test: runtest systemui
Change-Id: I90b006b5d9c02025ecc600c2f10014a96cbf33f8
Fixes: 62573587

7 years agoMerge "Revert "Default-disable tethering offload"" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 08:48:02 +0000 (08:48 +0000)]
Merge "Revert "Default-disable tethering offload"" into oc-mr1-dev

7 years agoMerge changes Ifbd1e8d9,I1e017b6f into oc-mr1-dev
Lorenzo Colitti [Tue, 15 Aug 2017 06:47:24 +0000 (06:47 +0000)]
Merge changes Ifbd1e8d9,I1e017b6f into oc-mr1-dev

* changes:
  Pass data usage limits to tethering offload code.
  Don't time out when fetching tether offload stats.

7 years agoMerge "media: handle AVC constrained profiles" into oc-mr1-dev
TreeHugger Robot [Tue, 15 Aug 2017 05:55:08 +0000 (05:55 +0000)]
Merge "media: handle AVC constrained profiles" into oc-mr1-dev

7 years agoRevert "Default-disable tethering offload"
Erik Kline [Mon, 14 Aug 2017 07:12:16 +0000 (07:12 +0000)]
Revert "Default-disable tethering offload"

This reverts commit d09189112fcdcbbfd275d97e4e61fdbbffb0985e.

Bug: 29337859
Bug: 63250751
Test: builds, boots
Test: "dumpsys connectivity tethering" shows offload enabled
Test: wifi tethering continues to work
Change-Id: Ie3ef33f39ea20308ca50500139af3924c8831364

7 years agoPass data usage limits to tethering offload code.
Lorenzo Colitti [Fri, 11 Aug 2017 04:47:49 +0000 (13:47 +0900)]
Pass data usage limits to tethering offload code.

(cherry picked from commit 50b60fc34dcf879007b5ab6e9b67f806e5a57215)

Bug: 29337859
Bug: 32163131
Test: builds
Test: OffloadControllerTest passes
Change-Id: Ifbd1e8d9057aa12b956e3b4501c32aa6bcf420bd

7 years agoDon't time out when fetching tether offload stats.
Lorenzo Colitti [Mon, 14 Aug 2017 04:07:42 +0000 (13:07 +0900)]
Don't time out when fetching tether offload stats.

Currently, fetching tethering offload stats has a 1000ms timeout,
after which we return stats of zero. However, returning zero is
invalid and will cause various parts of the network stats
accounting code to complain that statistics are moving backwards,
causing at least a log.wtf, and possibly a crash.

This CL removes the timeout entirely.

An alternative would have been to keep the timeout and return
null if the stats fetch failed. However, this complicates the
code, and if the HAL is persistently slow, could cause no stats
to be counted, ever. Given the impact of such behaviour on users'
data plans it is likely better to block until the stats are
collected.

(cherry picked from commit fef69a126793c83aa0d99a8c597037c3a29929c0)

Bug: 29337859
Bug: 32163131
Test: builds
Test: OffloadControllerTest passes
Change-Id: I1e017b6fef2d8a02a7edbf35bed3e4402f447ab9

7 years agoUpdate Qualcomm(R) aptX(TM) strings
Justin Klaassen [Tue, 15 Aug 2017 03:01:36 +0000 (20:01 -0700)]
Update Qualcomm(R) aptX(TM) strings

Bug: 63899732
Test: Verified strings in Settings > System > Developer Options.
Change-Id: I21d764b0c11ff1cc934d379b2062ecc5a697624c

7 years agoFix Android O: AccountManager API not working in managed profile.
sunjian [Tue, 15 Aug 2017 01:23:09 +0000 (01:23 +0000)]
Fix Android O: AccountManager API not working in managed profile.
am: 9ae597b6f2

Change-Id: I4c346731e3b85cce5dd6b6c13b1312c420a60b34

7 years agoDismiss Autofill Save UI when a new Activity is launched.
Felipe Leme [Tue, 15 Aug 2017 00:53:17 +0000 (17:53 -0700)]
Dismiss Autofill Save UI when a new Activity is launched.

Test: manual verification using Settings
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -tandroid.autofillservice.cts.SimpleSaveActivityTest#testDismissSave_byLaunchingNewActivity
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -tandroid.autofillservice.cts.LoginActivityTest#testSaveGoesAwayWhenLaunchingNewActivity
Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases

Fixes: 64693551

Change-Id: I323031c7285a4b49f9f0ca06618425a0ab7833da

7 years agoAdd fallback to reset the waiting for transition state.
Winson Chung [Mon, 14 Aug 2017 23:44:20 +0000 (16:44 -0700)]
Add fallback to reset the waiting for transition state.

- When launching into recents directly in another orientation, it
  appears that the animation start callback is not made, which then
  causes the transition-waiting state to persist until Overview is
  next hidden. As a fallback, if we get onEnterAnimationComplete()
  on the activity, then the animation has started and completed, so
  we can reset the state.

Bug: 64694148
Test: Launch fixed-portrait app, hold device in landscape and then hit
      recents button, ensure that recents button still works after.

Change-Id: Ibac8554c1f71324838fef1f04db2d88b16ffe219

7 years agoMerge "Fix CustomDescription so it allows multiple transformations per view id."...
TreeHugger Robot [Mon, 14 Aug 2017 23:30:00 +0000 (23:30 +0000)]
Merge "Fix CustomDescription so it allows multiple transformations per view id." into oc-mr1-dev

7 years agoMerge "Don't modify cached permission info" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 23:24:46 +0000 (23:24 +0000)]
Merge "Don't modify cached permission info" into oc-mr1-dev

7 years agoMerge "Change protection level from ephemeral to instant" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 23:18:45 +0000 (23:18 +0000)]
Merge "Change protection level from ephemeral to instant" into oc-mr1-dev

7 years agoFix Android O: AccountManager API not working in managed profile.
sunjian [Mon, 14 Aug 2017 22:45:04 +0000 (15:45 -0700)]
Fix Android O: AccountManager API not working in managed profile.

Bug: 64577509
Test: NONE
Change-Id: I25650b2002d392ef9b7f4f4732106b22bc0eaae2

7 years agoMerge "Hide internal value" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 22:52:25 +0000 (22:52 +0000)]
Merge "Hide internal value" into oc-mr1-dev

7 years agoPlace black background only behind nav bar when letterboxed
Andrii Kulian [Mon, 14 Aug 2017 22:30:48 +0000 (15:30 -0700)]
Place black background only behind nav bar when letterboxed

Placing black background behind the entire app window causes
alpha animation issues, that can be visible as black flash to
user.
This CL sizes and positions the background only behind the
navigation bar area.

Bug: 64598822
Test: Open letterboxed app, go to/from Recents, observe animations.
Change-Id: I16a2243117f87ca513d5ef291b7c1d3779467f3b

7 years agoMerge "Merge "Fix logic for Intent.ACTION_HEADSET_PLUG for USB headsets" into oc...
Android Build Merger (Role) [Mon, 14 Aug 2017 22:29:24 +0000 (22:29 +0000)]
Merge "Merge "Fix logic for Intent.ACTION_HEADSET_PLUG for USB headsets" into oc-dr1-dev am: 21f3489653" into oc-mr1-dev

7 years agoMerge "Write currentDuration into Parcel" into oc-mr1-dev
Lei Yu [Mon, 14 Aug 2017 22:28:26 +0000 (22:28 +0000)]
Merge "Write currentDuration into Parcel" into oc-mr1-dev

7 years agoMerge "Fix logic for Intent.ACTION_HEADSET_PLUG for USB headsets" into oc-dr1-dev
Jean-Michel Trivi [Mon, 14 Aug 2017 22:25:43 +0000 (22:25 +0000)]
Merge "Fix logic for Intent.ACTION_HEADSET_PLUG for USB headsets" into oc-dr1-dev
am: 21f3489653

Change-Id: I3352c141d9fe8b940e9d222c043a39376244b1cb

7 years agomedia: handle AVC constrained profiles
Lajos Molnar [Mon, 14 Aug 2017 22:11:58 +0000 (15:11 -0700)]
media: handle AVC constrained profiles

Bug: 64691727
Change-Id: I71b21c0951babccc9b4521bd5c26d35a6d62b426

7 years agoMerge "Fix logic for Intent.ACTION_HEADSET_PLUG for USB headsets" into oc-dr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 22:13:32 +0000 (22:13 +0000)]
Merge "Fix logic for Intent.ACTION_HEADSET_PLUG for USB headsets" into oc-dr1-dev

7 years agoMerge "Always invoke callback" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 21:51:42 +0000 (21:51 +0000)]
Merge "Always invoke callback" into oc-mr1-dev

7 years agoMerge "Remove using package name" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 21:51:08 +0000 (21:51 +0000)]
Merge "Remove using package name" into oc-mr1-dev

7 years agoMerge "WebView: switch to OMR1 FactoryProvider" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 21:17:46 +0000 (21:17 +0000)]
Merge "WebView: switch to OMR1 FactoryProvider" into oc-mr1-dev

7 years agoMerge "Log timings for shutdown stages" into oc-mr1-dev
Fyodor Kupolov [Mon, 14 Aug 2017 20:55:13 +0000 (20:55 +0000)]
Merge "Log timings for shutdown stages" into oc-mr1-dev

7 years agoMerge "Make SQLiteDirectCursorDriver @TestApi" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 20:52:26 +0000 (20:52 +0000)]
Merge "Make SQLiteDirectCursorDriver @TestApi" into oc-mr1-dev

7 years agoDon't modify cached permission info
Svetoslav Ganov [Tue, 8 Aug 2017 22:28:24 +0000 (15:28 -0700)]
Don't modify cached permission info

Test: manual

bug:64454312

Change-Id: Ie2f61da8a145e71164205ec7c26c20d9d512447d

7 years agoMerge "Ensure CallId is not null when connection creation is complete." into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 18:49:14 +0000 (18:49 +0000)]
Merge "Ensure CallId is not null when connection creation is complete." into oc-mr1-dev

7 years agoWebView: switch to OMR1 FactoryProvider
Nate Fischer [Wed, 9 Aug 2017 06:22:47 +0000 (23:22 -0700)]
WebView: switch to OMR1 FactoryProvider

We now fetch the *ForOMR1 class instead of *ForO, which enables
OMR1-specific code in the WebView APK.

Bug: 63687088
Test: N/A
Change-Id: Ia36a00cd26aff8b87d7aeae859c72cb2fb364d2c

7 years agoLog timings for shutdown stages
Fyodor Kupolov [Fri, 11 Aug 2017 00:00:43 +0000 (17:00 -0700)]
Log timings for shutdown stages

Renamed BootTimingsTraceLog to TimingsTraceLog. It is now used for
 boot and shutdown logging.

Added measurements for main stages of shutdown in the system server:
ShutdownTiming: SendShutdownBroadcast took to complete: 734ms
ShutdownTiming: ShutdownActivityManager took to complete: 203ms
ShutdownTiming: ShutdownPackageManager took to complete: 17ms
ShutdownTiming: ShutdownBt took to complete: 533ms
ShutdownTiming: ShutdownRadio took to complete: 534ms
ShutdownTiming: ShutdownNfc took to complete: 1536ms
ShutdownTiming: ShutdownRadios took to complete: 1538ms
ShutdownTiming: ShutdownStorageManager took to complete: 906ms
ShutdownTiming: SystemServerShutdown took to complete: 3918ms

Bug: 64569080
Test: shutdown/reboot and check logs
Change-Id: I636c045852cd1ed6be1c58af6608f70e95756389

7 years agoMerge "Always show global actions on the right" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 18:04:10 +0000 (18:04 +0000)]
Merge "Always show global actions on the right" into oc-mr1-dev

7 years agoMerge "Switch battery saver to sentence case" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 17:42:09 +0000 (17:42 +0000)]
Merge "Switch battery saver to sentence case" into oc-mr1-dev

7 years agoMerge "Make sure network tests pass with airplane mode on" into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 17:34:54 +0000 (17:34 +0000)]
Merge "Make sure network tests pass with airplane mode on" into oc-mr1-dev

7 years agoMerge "Use first letter of user for icons." into oc-mr1-dev
Bryan Eyler [Mon, 14 Aug 2017 17:30:44 +0000 (17:30 +0000)]
Merge "Use first letter of user for icons." into oc-mr1-dev

7 years agoMerge "Add frameworks base config and move text blobs there" into oc-mr1-dev
Mathieu Chartier [Mon, 14 Aug 2017 16:53:12 +0000 (16:53 +0000)]
Merge "Add frameworks base config and move text blobs there" into oc-mr1-dev

7 years agoMerge "Add permission checks to getActiveScorerPackage()." into oc-mr1-dev
TreeHugger Robot [Mon, 14 Aug 2017 16:50:50 +0000 (16:50 +0000)]
Merge "Add permission checks to getActiveScorerPackage()." into oc-mr1-dev