OSDN Git Service

android-x86/frameworks-base.git
7 years ago[Companion] Prevent NPE in CallbackProxy
Eugene Susla [Fri, 7 Jul 2017 21:06:14 +0000 (14:06 -0700)]
[Companion] Prevent NPE in CallbackProxy

Fixes: 63383044
Test: Ensure all fields of CompanionDeviceManager.CallbackProxy are
null-checked in onSuccess and onFailure
Change-Id: If95a46686f74d184bccfcb2d8c8195add4747a07

7 years agoMerge "Eliminate a race condition that could lead to calling PBT#finalizeBackup(...
TreeHugger Robot [Mon, 10 Jul 2017 21:21:54 +0000 (21:21 +0000)]
Merge "Eliminate a race condition that could lead to calling PBT#finalizeBackup() twice" into oc-dr1-dev

7 years agoMerge "fix cellular captive portal reevaluation url" into oc-dr1-dev
Chen Xu [Mon, 10 Jul 2017 20:51:52 +0000 (20:51 +0000)]
Merge "fix cellular captive portal reevaluation url" into oc-dr1-dev

7 years agoMerge "Fix RTL mobile data type indicators" into oc-dr1-dev
TreeHugger Robot [Mon, 10 Jul 2017 20:36:07 +0000 (20:36 +0000)]
Merge "Fix RTL mobile data type indicators" into oc-dr1-dev

7 years agoMerge "Add screensaver settings to backup list" into oc-dr1-dev
TreeHugger Robot [Mon, 10 Jul 2017 20:17:56 +0000 (20:17 +0000)]
Merge "Add screensaver settings to backup list" into oc-dr1-dev

7 years agofix cellular captive portal reevaluation url
fionaxu [Mon, 10 Jul 2017 16:34:07 +0000 (09:34 -0700)]
fix cellular captive portal reevaluation url

we apply redirection link as the url everywhere for cellular captive portal.
this url should only be used when load the portal page at the first place (when users
click on the notification) and shouldn't be used as the re-evaluation url
as it wont return the expected response code.
instead we should use special URL (generate_204) from connectivity
service which will return 204 if redirection is gone.

Test: manual test with cold and hot TMO SIM
Bug: 63351490
Bug: 62532802
Change-Id: I56bb03a58447c5c46758e692ff357d540ea4cd7b

7 years agoAdd screensaver settings to backup list
Jason Monk [Mon, 10 Jul 2017 15:14:19 +0000 (11:14 -0400)]
Add screensaver settings to backup list

Test: manual
Change-Id: Icf47312e20b4ec44d02dc31ce575e89083a8be7d
Fixes: 35700553

7 years agoFix RTL mobile data type indicators
Evan Laird [Mon, 10 Jul 2017 17:00:39 +0000 (13:00 -0400)]
Fix RTL mobile data type indicators

Data type indicators were drawing too big for their containers and
causing the data type overlays not to obey RTL. Also tweaked some sizes
to fix RTL.

Change-Id: I1aee7397976e77d2b834b163bf7fa7cf2a008968
Fixes: 62538496
Test: visual (RTL mode)

7 years agoMerge "Fix issue with PiP touch drift." into oc-dr1-dev
Winson Chung [Mon, 10 Jul 2017 17:12:35 +0000 (17:12 +0000)]
Merge "Fix issue with PiP touch drift." into oc-dr1-dev

7 years agoMerge "Limit the number of notis an app can enqueue" into oc-dr1-dev
Julia Reynolds [Mon, 10 Jul 2017 16:55:01 +0000 (16:55 +0000)]
Merge "Limit the number of notis an app can enqueue" into oc-dr1-dev

7 years agoMerge "Add theme style flag to WallpaperColors" into oc-dr1-dev
Lucas Dupin [Mon, 10 Jul 2017 16:49:33 +0000 (16:49 +0000)]
Merge "Add theme style flag to WallpaperColors" into oc-dr1-dev

7 years agoMerge "Rate limit notification sounds/vibrations" into oc-dr1-dev
TreeHugger Robot [Mon, 10 Jul 2017 15:57:32 +0000 (15:57 +0000)]
Merge "Rate limit notification sounds/vibrations" into oc-dr1-dev

7 years agoMerge "Add app bounds to Configuration#compareTo." into oc-dr1-dev
Bryce Lee [Mon, 10 Jul 2017 14:21:37 +0000 (14:21 +0000)]
Merge "Add app bounds to Configuration#compareTo." into oc-dr1-dev

7 years agoLimit the number of notis an app can enqueue
Julia Reynolds [Wed, 5 Jul 2017 12:47:03 +0000 (08:47 -0400)]
Limit the number of notis an app can enqueue

In addition to the number they can post. Also decrease
the number of posts per second to 5, but allow finished
progress notifications through.

Fixes: 63173849
Fixes: 63167456
Test: runtests systemui-notification & simultaneously
downloading 5 files.
Change-Id: I0c8ea35b3d9d38b000ea5fe383515e1d5a26bac7

7 years agoRate limit notification sounds/vibrations
Julia Reynolds [Mon, 19 Jun 2017 12:16:04 +0000 (08:16 -0400)]
Rate limit notification sounds/vibrations

1 alert per second.

Bug: 36662487
Test: runtest systemui-notification
Change-Id: I2046ae17b9e89ac0a83e182b91422fd242bc7557

7 years agoEliminate a race condition that could lead to calling PBT#finalizeBackup() twice
Michal Karpinski [Fri, 7 Jul 2017 14:30:50 +0000 (15:30 +0100)]
Eliminate a race condition that could lead to calling PBT#finalizeBackup() twice

Calling finalizeBackup() the second time will most probably lead to underholding
the wakelock and system crash.

Bug: 63156509
Test: manual
Change-Id: Ic995ba4a65d749b80bf1f1d226d35a279a0d1b25

7 years agoMerge "Change initial value of mStaleScanResults to true." into oc-dr1-dev
TreeHugger Robot [Sat, 8 Jul 2017 03:06:37 +0000 (03:06 +0000)]
Merge "Change initial value of mStaleScanResults to true." into oc-dr1-dev

7 years agoChange initial value of mStaleScanResults to true.
Sundeep Ghuman [Wed, 5 Jul 2017 21:19:30 +0000 (14:19 -0700)]
Change initial value of mStaleScanResults to true.

In ag/2409026 we introduced a stale scan result bit to prevent callbacks
from sticky broadcasts from occuring until we have fetched the latest
set of scan results. However, this initial value was set to false hence
there is a race condition in which the currently connected network can
still be shown without any other networks, as the scan results have not
yet been processed.

By changing the initial value to true, we address this race condition.

Bug: b/62493360
Test:  runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I5f2108e17d2c549e2176ccf64e640fbd4808b5f1

7 years agoMerge "Moving color extraction classes" into oc-dr1-dev
TreeHugger Robot [Sat, 8 Jul 2017 00:21:44 +0000 (00:21 +0000)]
Merge "Moving color extraction classes" into oc-dr1-dev

7 years agoFix issue with PiP touch drift.
Winson Chung [Fri, 7 Jul 2017 21:49:49 +0000 (14:49 -0700)]
Fix issue with PiP touch drift.

- Fix issue with cumulative truncation of positions causing a large x/y
  error causing drift. Instead of using the rounded stack position,
  keep track of the cumulative delta and apply that on each move.

Bug: 62541932
Test: Pip activity, move around with finger and ensure no drift
Change-Id: Ic7737a6b19672ee8a1d98fd57f84a1d89f4a17e9

7 years agoMerge "[AWARE] Fix close guard method name" into oc-dr1-dev
Etan Cohen [Fri, 7 Jul 2017 23:13:34 +0000 (23:13 +0000)]
Merge "[AWARE] Fix close guard method name" into oc-dr1-dev

7 years agoMerge "Prevent any app except LPA to create logical channel to AID of ISD-R." into...
Derek Tan [Fri, 7 Jul 2017 23:12:44 +0000 (23:12 +0000)]
Merge "Prevent any app except LPA to create logical channel to AID of ISD-R." into oc-dr1-dev

7 years agoMerge "Don't remove starting window for visible app." into oc-dr1-dev
Wale Ogunwale [Fri, 7 Jul 2017 23:09:55 +0000 (23:09 +0000)]
Merge "Don't remove starting window for visible app." into oc-dr1-dev

7 years agoMerge "Add logging for unusually long read times" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 21:43:46 +0000 (21:43 +0000)]
Merge "Add logging for unusually long read times" into oc-dr1-dev

7 years agoAdd theme style flag to WallpaperColors
Lucas Dupin [Thu, 29 Jun 2017 19:20:29 +0000 (12:20 -0700)]
Add theme style flag to WallpaperColors

Theme colors should always be the same in sysui and launcher.
We're now sharing a hint HINT_SUPPORTS_DARK_THEME, to make sure
we're never out of sync.

Test: runtest -x tests/Internal/src/android/app/WallpaperColorsTest.java
Fixes: 63140091
Change-Id: Ibd196f540d77269df377804b0f4d4d0d20820067

7 years agoMerge "Fix RTL drawing for QS tiles in edit mode" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 19:37:19 +0000 (19:37 +0000)]
Merge "Fix RTL drawing for QS tiles in edit mode" into oc-dr1-dev

7 years agoMerge "Update brightness icon to rounded one" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 19:34:49 +0000 (19:34 +0000)]
Merge "Update brightness icon to rounded one" into oc-dr1-dev

7 years agoMerge "Make BatterySaverTile controlled by pluggIn state" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 19:31:54 +0000 (19:31 +0000)]
Merge "Make BatterySaverTile controlled by pluggIn state" into oc-dr1-dev

7 years agoMerge "Allow setup apps to colorize notifications." into oc-dr1-dev
Julia Reynolds [Fri, 7 Jul 2017 19:24:37 +0000 (19:24 +0000)]
Merge "Allow setup apps to colorize notifications." into oc-dr1-dev

7 years agoMerge "docs: Described why ProgressDialog is now deprecated." into oc-dev
Andrew Solovay [Fri, 7 Jul 2017 19:09:39 +0000 (19:09 +0000)]
Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev
am: 1cdf4244f4

Change-Id: I1c25c17f1f73e4006e3b0fa9479d5b0563c6be98

7 years agoMerge "AOD: Block when fingerprint is already authenticated but waiting for goingToSl...
TreeHugger Robot [Fri, 7 Jul 2017 19:07:32 +0000 (19:07 +0000)]
Merge "AOD: Block when fingerprint is already authenticated but waiting for goingToSleep to complete" into oc-dr1-dev

7 years agoMerge "docs: Described why ProgressDialog is now deprecated." into oc-dev
Andrew Solovay [Fri, 7 Jul 2017 19:02:48 +0000 (19:02 +0000)]
Merge "docs: Described why ProgressDialog is now deprecated." into oc-dev

7 years agoMerge "Fix announcement of global actions menu" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 17:55:54 +0000 (17:55 +0000)]
Merge "Fix announcement of global actions menu" into oc-dr1-dev

7 years agoMoving color extraction classes
Lucas Dupin [Thu, 6 Jul 2017 21:35:30 +0000 (14:35 -0700)]
Moving color extraction classes

Fixes: 62220212
Test: make
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/types/TonalTest.java
Test: runtest systemui
Change-Id: I7c4cf5c40a88555e81fbad9bec2b32c55c927468
Merged-In: I7c4cf5c40a88555e81fbad9bec2b32c55c927468

7 years agoUpdate brightness icon to rounded one
Evan Laird [Tue, 27 Jun 2017 17:33:40 +0000 (13:33 -0400)]
Update brightness icon to rounded one

This is part of the icon updates for DR. Should be there.

Test: visual
Bug: 62668861
Change-Id: I11c8ddd99de90c319143292cd32441d14eb7fc1d
(cherry picked from commit 801705bbea9637bf709e4579ef708f90bb92e311)

7 years agoMerge "AOD: Fix possible NPE in DozeSensors" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 17:40:13 +0000 (17:40 +0000)]
Merge "AOD: Fix possible NPE in DozeSensors" into oc-dr1-dev

7 years agoMerge "AOD: Finish pulse when notification is removed" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 17:28:10 +0000 (17:28 +0000)]
Merge "AOD: Finish pulse when notification is removed" into oc-dr1-dev

7 years agoFix RTL drawing for QS tiles in edit mode
Evan Laird [Fri, 7 Jul 2017 17:24:56 +0000 (13:24 -0400)]
Fix RTL drawing for QS tiles in edit mode

When in RTL mode, sometimes the tile displaying the mobile signal was
not properly set (was drawing as LTR). Setting it explicitly during
QSIconViewImpl#updateTile() fixes the issue.

Test: visual
Bug: 63160044
Change-Id: If00b149ca0372fc3d51fc2ee53a43e3b74e78791

7 years agoMerge "WallpaperColors caching and synchronization" into oc-dr1-dev
Lucas Dupin [Fri, 7 Jul 2017 17:23:22 +0000 (17:23 +0000)]
Merge "WallpaperColors caching and synchronization" into oc-dr1-dev

7 years agoAllow setup apps to colorize notifications.
Julia Reynolds [Fri, 30 Jun 2017 17:34:01 +0000 (13:34 -0400)]
Allow setup apps to colorize notifications.

Fixes: 63147379
Test: runtest systemui-notification, core tests
Change-Id: I2077a9fd563826d978d0dc01be89dd0bbc09eebf

7 years agoAOD: Block when fingerprint is already authenticated but waiting for goingToSleep...
Adrian Roos [Fri, 7 Jul 2017 17:02:34 +0000 (19:02 +0200)]
AOD: Block when fingerprint is already authenticated but waiting for goingToSleep to complete

Improves an issue where immediately triggering fingerprint after
the devices goes to sleep results in a lot of flickering.

There's still flicker however if the fingerprint authenticates after we've requested the AOD
display state, but before it has actually been applied.

Bug: 62887179
Test: Go to Home. Lock screen. Immediately unlock via fingerprint. Verify that the AOD screen does not even show.
Change-Id: Ib6425eee803a8c7e02f9621a571e562e825af57f

7 years agoMerge "Fix clipping of large global actions items" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 17:00:12 +0000 (17:00 +0000)]
Merge "Fix clipping of large global actions items" into oc-dr1-dev

7 years agoMerge "AOD: Do not animate notification icons while dozing" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 16:42:03 +0000 (16:42 +0000)]
Merge "AOD: Do not animate notification icons while dozing" into oc-dr1-dev

7 years agoMerge "AOD: Keep doze brightness when unlocking with fingerprint" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 16:10:13 +0000 (16:10 +0000)]
Merge "AOD: Keep doze brightness when unlocking with fingerprint" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 15:52:21 +0000 (15:52 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 15:40:25 +0000 (15:40 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 15:39:04 +0000 (15:39 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoFix announcement of global actions menu
Jason Monk [Fri, 7 Jul 2017 15:35:13 +0000 (11:35 -0400)]
Fix announcement of global actions menu

Make sure it has focus when it opens so that it can announce.

Test: manual
Change-Id: Ie1795faf5c9b79eb20f538b9dc6f4cb1f04babfb
Fixes: 62433101

7 years agoAOD: Finish pulse when notification is removed
Adrian Roos [Fri, 7 Jul 2017 15:10:11 +0000 (17:10 +0200)]
AOD: Finish pulse when notification is removed

Change-Id: I346e7ef77cc3c9bb2c72bd028953f0e5ff757502
Fixes: 38174509
Test: receive notification while phone off (with or without AOD). Swipe away notification. Verify that it goes back to the base state immediately

7 years agoFix clipping of large global actions items
Jason Monk [Fri, 7 Jul 2017 14:36:03 +0000 (10:36 -0400)]
Fix clipping of large global actions items

Test: visual
Change-Id: I9f652642055d190e2368dab89fe56518fb15eb19
Fixes: 63150552

7 years agoAOD: Keep doze brightness when unlocking with fingerprint
Adrian Roos [Fri, 7 Jul 2017 13:58:57 +0000 (15:58 +0200)]
AOD: Keep doze brightness when unlocking with fingerprint

Updates the logic that was already in place to prevent lighting up
the display before the unlock transition starts:
- treat AOD as pulsing in FingerprintUnlockController
- now that doze can use more than one brightness level, use the current

Bug: 62885451
Test: Unlock with fingerprint from AOD. Observe that the unlock transition does not prematurely change the brightness level
Change-Id: I266bd5e4c0a1d5b4c347a65c0e7936247e333cfc

7 years agoDon't remove starting window for visible app.
Wale Ogunwale [Thu, 6 Jul 2017 22:30:55 +0000 (15:30 -0700)]
Don't remove starting window for visible app.

Activity manager agressively removes starting windows to avoid leaks.
See ag/696830 and ag/1213075 for some history. However, it is possible
for window manager to process the request of removing the starting window
coming from activity manager while the app token for the starting window
is still visible from the window manager side because we are delaying
hiding it due to an animation in progress.
We now only process the request to remove starting window from the
activity manager side if the app is hidden on the window manager side.

Change-Id: Ia33076f0e7405f9430e9d4e9d4026ae6fd1b133e
Fixes: 62443388
Test: go/wm-smoke
Test: Swipe Gmail away in Recents, launch Chome, press home button, launch Gmail, and press the home button.

7 years agoMerge "Fix translation direction in QS animation" into oc-dr1-dev
Jason Monk [Fri, 7 Jul 2017 12:36:11 +0000 (12:36 +0000)]
Merge "Fix translation direction in QS animation" into oc-dr1-dev

7 years agoMerge "Keeping notifications around that show guts" into oc-dr1-dev
Adrian Roos [Fri, 7 Jul 2017 11:22:51 +0000 (11:22 +0000)]
Merge "Keeping notifications around that show guts" into oc-dr1-dev

7 years agoAOD: Fix possible NPE in DozeSensors
Adrian Roos [Fri, 7 Jul 2017 10:20:21 +0000 (12:20 +0200)]
AOD: Fix possible NPE in DozeSensors

Fixes an NPE that can happen if the ProximitySensor callback
unregisters the proximity sensor.

Change-Id: I8df1cf98e5334b3ff35c19b30bb7e01d0ebcfd6a
Fixes: 63357752
Test: Squint at the code *really hard*

7 years agoMerge "AOD: Add logging" into oc-dr1-dev
Adrian Roos [Fri, 7 Jul 2017 10:03:05 +0000 (10:03 +0000)]
Merge "AOD: Add logging" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 7 Jul 2017 09:16:14 +0000 (02:16 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0f7d8a0b363893098604e0b912974ca56b67100c
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "Add more logging to the Tethering SharedLog" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 06:13:55 +0000 (06:13 +0000)]
Merge "Add more logging to the Tethering SharedLog" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 7 Jul 2017 05:45:34 +0000 (22:45 -0700)]
Import translations. DO NOT MERGE

Change-Id: I00e4f252a805a1085523991237cfd84b4b397865
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "Fix keyguard visibilities after reinflate" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 03:34:24 +0000 (03:34 +0000)]
Merge "Fix keyguard visibilities after reinflate" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 7 Jul 2017 03:30:32 +0000 (20:30 -0700)]
Import translations. DO NOT MERGE

Change-Id: I5949b2f491bc3cf64d2b205ed5af758316ee9ac4
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

7 years agoMerge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into...
Robert Carr [Fri, 7 Jul 2017 03:22:50 +0000 (03:22 +0000)]
Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev
am: 401b8907d0

Change-Id: Ib7a916fb484fb3a7924315169d162f4fdddd8a06

7 years agoMerge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into...
TreeHugger Robot [Fri, 7 Jul 2017 03:10:12 +0000 (03:10 +0000)]
Merge "SurfaceView: Avoid initializing Surface from an invalid SurfaceControl." into oc-dev

7 years agoMerge "Revert "Use configuration delta to determine if still in orientation change...
Bryce Lee [Fri, 7 Jul 2017 02:38:38 +0000 (02:38 +0000)]
Merge "Revert "Use configuration delta to determine if still in orientation change."" into oc-dr1-dev

7 years agoMerge "Fix Configuration#updateFrom() when assetsSeq doesn't change" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 01:38:01 +0000 (01:38 +0000)]
Merge "Fix Configuration#updateFrom() when assetsSeq doesn't change" into oc-dr1-dev

7 years agoMerge "Color of the ring around the lock icon" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 01:29:54 +0000 (01:29 +0000)]
Merge "Color of the ring around the lock icon" into oc-dr1-dev

7 years agoRevert "Use configuration delta to determine if still in orientation change."
Bryce Lee [Fri, 7 Jul 2017 00:51:26 +0000 (17:51 -0700)]
Revert "Use configuration delta to determine if still in orientation change."

This reverts commit 2a0284b1a69b57cc239357c9a5fbb514cf2fc8b2.

Reason for revert: b/63380251
Bug:62846907
Fixes:63380251

Change-Id: I18eb9e478cb2b99980a2e9bff22ba9b32b817f2f

7 years agoMerge "Hide all color hints references" into oc-dr1-dev
TreeHugger Robot [Fri, 7 Jul 2017 00:12:08 +0000 (00:12 +0000)]
Merge "Hide all color hints references" into oc-dr1-dev

7 years agoMerge "Make dun APNs as read-only by default." into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 23:50:32 +0000 (23:50 +0000)]
Merge "Make dun APNs as read-only by default." into oc-dr1-dev

7 years agoMerge "Add a MetricsEvent entry for BT forget device confirm dialog" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 23:46:42 +0000 (23:46 +0000)]
Merge "Add a MetricsEvent entry for BT forget device confirm dialog" into oc-dr1-dev

7 years agoSurfaceView: Avoid initializing Surface from an invalid
Robert Carr [Thu, 6 Jul 2017 22:28:34 +0000 (15:28 -0700)]
SurfaceView: Avoid initializing Surface from an invalid
SurfaceControl.

In a recent CL we introduced a call to Surface#createFrom, in order to
recreate the Surface object from the underlying SurfaceControl, as a
workaround to emulate when it was parcelled over binder in the past.
However this is causing BufferQueue abandoned errors when stopping and
resuming some applications. To understand them, we need to revisit the
SurfaceView destruction process when handling onStop.

First mWindowStopped will be set to true (SurfaceView#windowStopped),
and we should then enter updateSurface. Our requested visibility will
now be false and so we emit the Surface destroyed callbacks. Notice in
the finally block in mUpdateSurface, we will release mSurface, but we
will NOT null mSurfaceControl. Inline documentation explains why.

In the case that the activity is not actually being destroyed, it's
possible that we may not get a dispatchDetachedFromWindow. This means
that we will not null mSurfaceControl. Now if the activity is
un-stopped and we re-enter updateSurface we encounter a problem
state. "creating" will be set to false since mSurfaceControl != null,
however mSurfaceControl will not point to a valid surface.

Prior to the introduction of the #createFrom call, this unwanted state
didn't cause any problems. Because mSurface was released back in the
finally block as we were stopping we now fall out of the
mSurface.isValid() block in updateSurface. As we reach the finally
block again, we would now set mSurfaceControl=null since the app was
no longer stopped. Later when we reach updateSurface again (which
tends to happen quite often) it will now be null and we will correctly
set creating=true, create a valid SurfaceControl, and move along
happily. However following, the introduction of this
Surface#createFrom call we will now reinitialize the Surface from an
invalid underlying SurfaceControl. This means we will enter the
mSurface.isValid block, but will proceed to emit an invalid Surface to
the client in the callbacks.

We avoid this state by making creating=true even if
SurfaceControl=non-null when the calculated visibility changes from
invisible to visible.

Bug: 63251745
Test: Manual of app from bug and apps from previous related bugs. go/wm-smoke. Additional manual testing of many SV apps.
Change-Id: Icc32a34cac239d65267da705cc23feb23e1ceb67

7 years agoMerge changes from topic 'nci-2.0-part2' into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 22:39:48 +0000 (22:39 +0000)]
Merge changes from topic 'nci-2.0-part2' into oc-dr1-dev

* changes:
  NCI2.0 update LF_T3T_PARAMETERS of 18 byte.
  AID suffix registration.

7 years agoMerge "DO NOT MERGE Ensure minimized state is false when dock is gone on exists chang...
TreeHugger Robot [Thu, 6 Jul 2017 22:38:16 +0000 (22:38 +0000)]
Merge "DO NOT MERGE Ensure minimized state is false when dock is gone on exists change" into oc-dr1-dev

7 years agoMerge "Add a Setting for whether or not we have been disabled by policy." into oc...
Daniel Nishi [Thu, 6 Jul 2017 21:58:41 +0000 (21:58 +0000)]
Merge "Add a Setting for whether or not we have been disabled by policy." into oc-dr1-dev

7 years agoFix Configuration#updateFrom() when assetsSeq doesn't change
Adam Lesinski [Thu, 6 Jul 2017 19:06:13 +0000 (12:06 -0700)]
Fix Configuration#updateFrom() when assetsSeq doesn't change

Compare the value of assetsSeq when updating Configuration from
a delta.

Bug: 63352177
Test: manual
Change-Id: I9e1205cd64c4a1e0192b7049c82d36d53fb4af36
(cherry picked from commit 2123c415bf4cc67ad2c50e9613c7748956cd0c46)

7 years agoMerge "Only play up effect if its been over 100 ms" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:49:37 +0000 (21:49 +0000)]
Merge "Only play up effect if its been over 100 ms" into oc-dr1-dev

7 years agoMerge "Fix crash when no StatusBarView" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:38:06 +0000 (21:38 +0000)]
Merge "Fix crash when no StatusBarView" into oc-dr1-dev

7 years agoMerge "Fix leak in ScrimView" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:29:57 +0000 (21:29 +0000)]
Merge "Fix leak in ScrimView" into oc-dr1-dev

7 years agoMerge "Fix nav accessibility order" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 21:25:39 +0000 (21:25 +0000)]
Merge "Fix nav accessibility order" into oc-dr1-dev

7 years agoMerge "Fix bug where RemoteViews addView is backwards." into oc-dr1-dev
Anthony Chen [Thu, 6 Jul 2017 21:14:47 +0000 (21:14 +0000)]
Merge "Fix bug where RemoteViews addView is backwards." into oc-dr1-dev

7 years agoMerge "Fix RTL mobile signal drawing out of bounds in QS Edit" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 20:32:47 +0000 (20:32 +0000)]
Merge "Fix RTL mobile signal drawing out of bounds in QS Edit" into oc-dr1-dev

7 years agoMerge "Fix the VR virtual display height" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 20:31:36 +0000 (20:31 +0000)]
Merge "Fix the VR virtual display height" into oc-dr1-dev

7 years agoFix keyguard visibilities after reinflate
Jason Monk [Thu, 6 Jul 2017 20:03:01 +0000 (16:03 -0400)]
Fix keyguard visibilities after reinflate

Test: visual
Change-Id: Ic51c5f318dbf1582bc662f361e3c18dcb33b7137
Fixes: 62588134

7 years agoAdd a Setting for whether or not we have been disabled by policy.
Daniel Nishi [Mon, 12 Jun 2017 17:17:33 +0000 (10:17 -0700)]
Add a Setting for whether or not we have been disabled by policy.

Bug: 6210627435698183
Test: StorageManager robotests
Merged-In: I1788d6143362130df88950c6843fa78b67182d5e
(cherry picked from commit da7332c0707094b66e9a2e22f4c64cf9520cfddb)

7 years agoFix translation direction in QS animation
Jason Monk [Thu, 6 Jul 2017 19:46:00 +0000 (15:46 -0400)]
Fix translation direction in QS animation

Test: visual
Change-Id: Icadf5308964b0d336a4ee07663be9b0df719070b
Fixes: 62931508

7 years agoOnly play up effect if its been over 100 ms
Jason Monk [Thu, 6 Jul 2017 19:38:19 +0000 (15:38 -0400)]
Only play up effect if its been over 100 ms

Test: manual
Bug: 62655913
Change-Id: If256ab9fc6f74688f47b0ea53543d3b2fd514a35

7 years agoFix crash when no StatusBarView
Jason Monk [Thu, 6 Jul 2017 19:28:17 +0000 (15:28 -0400)]
Fix crash when no StatusBarView

Test: runtest systemui
Change-Id: Ia0a4a97f554e0b9d6e41c295e8e07d278f8ad248
Fixes: 63260821

7 years agoDO NOT MERGE Ensure minimized state is false when dock is gone on exists change
Matthew Ng [Mon, 19 Jun 2017 23:42:31 +0000 (16:42 -0700)]
DO NOT MERGE Ensure minimized state is false when dock is gone on exists change

Whenever registerDockedStackListener runs, it will unminimize the docked
stack even if it was not supposed to. The previous change that caused
this was the test ag/1718898,
ActivityManagerDockedStackTests#testFinishDockActivityWhileMinimized
where an activity runs finish() while minimized would remove the
divider but not update the minimized mode. This change will only set the
minimized mode to false if the divider is invisible allowing
registerDockedStackListener to not unminimize.

Fixes: 62460975
Fixes: 63381251
Test: go/wm-smoke
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests#
testFinishDockActivityWhileMinimized
Change-Id: I2baaac9ce50b8ed792356cbaeeedef6bddc271d3
(cherry picked from commit bc527a3a26a48afd04e8ad10893a38996177bc53)

7 years agoMerge "Disable test in presubmit" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 19:19:06 +0000 (19:19 +0000)]
Merge "Disable test in presubmit" into oc-dr1-dev

7 years agoFix nav accessibility order
Jason Monk [Thu, 6 Jul 2017 19:12:21 +0000 (15:12 -0400)]
Fix nav accessibility order

Test: manual
Change-Id: I0d3f65c84a4158024f90c47ce9da329d4bd210ac
Fixes: 63333329

7 years agoFix leak in ScrimView
Jason Monk [Thu, 6 Jul 2017 19:06:36 +0000 (15:06 -0400)]
Fix leak in ScrimView

Test: runtest systemui
Change-Id: I8964181a60b67eea0eea32d42bb8e92862cc8d0f
Fixes: 38461559

7 years agoMerge "Merge "docs: Removing com.android.internal.* packages from Javadoc build"...
Android Build Merger (Role) [Thu, 6 Jul 2017 19:00:56 +0000 (19:00 +0000)]
Merge "Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev am: 040b774928" into oc-dr1-dev

7 years agoMerge "Merge "docs: Removing com.android.internal.* packages from Javadoc build"...
Android Build Merger (Role) [Thu, 6 Jul 2017 18:59:44 +0000 (18:59 +0000)]
Merge "Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev am: 040b774928" into oc-dr1-dev

7 years agoMerge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
Andrew Solovay [Thu, 6 Jul 2017 18:59:39 +0000 (18:59 +0000)]
Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
am: 040b774928

Change-Id: I0a05fdcd1d440f1ea686ddd0e6afd82daf33d1bb

7 years agoMerge "AOD: Fix flicker when unlocking with fingerprint" into oc-dr1-dev
TreeHugger Robot [Thu, 6 Jul 2017 18:58:37 +0000 (18:58 +0000)]
Merge "AOD: Fix flicker when unlocking with fingerprint" into oc-dr1-dev

7 years agoMerge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
Andrew Solovay [Thu, 6 Jul 2017 18:58:17 +0000 (18:58 +0000)]
Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
am: 040b774928

Change-Id: Ief0f1ce03e137ae4a16067cf7430cf7bc333a96d

7 years agoNCI2.0 update LF_T3T_PARAMETERS of 18 byte.
Love Khanna [Mon, 10 Apr 2017 12:16:53 +0000 (17:46 +0530)]
NCI2.0 update LF_T3T_PARAMETERS of 18 byte.

As per NCI2.0 LF_T3T_PMM is a part of LF_T3T_IDENTIFIER.
Since it is required for each LF_T3T_IDENTIFIER entry,
It can be taken from application.

Test: Compiles.

Change-Id: Icc168592c292d869a4c331dd28fe43b4d75c9a41
(cherry picked from commit e7ecebae11c4f7a7ac0cc17f77e287d0b4530657)

7 years agoColor of the ring around the lock icon
Lucas Dupin [Thu, 6 Jul 2017 18:57:20 +0000 (11:57 -0700)]
Color of the ring around the lock icon

The color or the ring should match the color
of the device theme, not only white.

Test: visual
Change-Id: Id4e40c71eb93b358d45b25894c6416e139920a6b
Fixes: 63340494

7 years agoAID suffix registration.
Love Khanna [Fri, 12 May 2017 08:23:42 +0000 (13:53 +0530)]
AID suffix registration.

Test: compiles.

Change-Id: I0ab02599814722055d77eef29e734bfd45e8d1ee
(cherry picked from commit e910e8bf863e50ef434c980d5d2ee403b3307514)

7 years agoMerge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev
Andrew Solovay [Thu, 6 Jul 2017 18:42:13 +0000 (18:42 +0000)]
Merge "docs: Removing com.android.internal.* packages from Javadoc build" into oc-dev