OSDN Git Service

android-x86/frameworks-base.git
4 years agoMerge "Prevent key removal on cache update" into qt-r1-dev
Vinit Nayak [Fri, 26 Jul 2019 15:56:23 +0000 (15:56 +0000)]
Merge "Prevent key removal on cache update" into qt-r1-dev

4 years agoMerge "Show bouncer when unlocking and not interactive" into qt-r1-dev
Lucas Dupin [Fri, 26 Jul 2019 15:41:09 +0000 (15:41 +0000)]
Merge "Show bouncer when unlocking and not interactive" into qt-r1-dev

4 years agoMerge "Several preferences lost during P->Q B&R" into qt-r1-dev
Ruslan Tkhakokhov [Fri, 26 Jul 2019 14:35:37 +0000 (14:35 +0000)]
Merge "Several preferences lost during P->Q B&R" into qt-r1-dev

4 years agoShow bouncer when unlocking and not interactive
Lucas Dupin [Fri, 26 Jul 2019 03:28:28 +0000 (20:28 -0700)]
Show bouncer when unlocking and not interactive

We cannot dismiss the bouncer when the device cannot be unlocked,
otherwise we'll be stuck looking since gatekeeper is not unlocked.

Test: face auth from AOD2 encrypted
Test: face auth from lock screen encrypted
Test: face auth from AOD2
Test: atest BiometricsUnlockControllerTest
Fixes: 138093575
Change-Id: I5c5b89ee9fa1a10cedceaf1ab227e26910beed2a

4 years agoMerge changes from topic "DNS telemetry" into qt-r1-dev
Frank Li [Fri, 26 Jul 2019 03:38:06 +0000 (03:38 +0000)]
Merge changes from topic "DNS telemetry" into qt-r1-dev

* changes:
  Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate.
  Add NS_R_INTERNAL_ERROR item into NsRcode
  Refine the proto dns_resolver.proto

4 years agoPrevent key removal on cache update
Vinit Nayak [Wed, 24 Jul 2019 18:40:47 +0000 (11:40 -0700)]
Prevent key removal on cache update

Recent thumbnail cache keys were prematurely
deleted from the TaskKeyCache.

Test: atest SystemUITests:TaskKeyLruCacheTest

fixes: 111077107
Change-Id: I4d38ba1f69b4a4b9898e1951b68181f27f92c116

4 years agoMerge "Force status bar visible when plugin holds it open" into qt-r1-dev
TreeHugger Robot [Fri, 26 Jul 2019 00:22:01 +0000 (00:22 +0000)]
Merge "Force status bar visible when plugin holds it open" into qt-r1-dev

4 years agoMerge changes I8bdb4c74,I613a7d03 into qt-dev
Josh Gao [Thu, 25 Jul 2019 23:54:20 +0000 (16:54 -0700)]
Merge changes I8bdb4c74,I613a7d03 into qt-dev
am: a09ee2d39f

Change-Id: I6ae25d6b3aa39ef6f9ed1ffcf6fce6e5920a5578

4 years agoMerge changes from topic "chromehole" into qt-dev
Jorim Jaggi [Thu, 25 Jul 2019 23:49:40 +0000 (16:49 -0700)]
Merge changes from topic "chromehole" into qt-dev
am: c76ced397b

Change-Id: I5d77bec31af7f63331ce64e5e906a8df1748d387

4 years agoMerge changes I8bdb4c74,I613a7d03 into qt-dev
TreeHugger Robot [Thu, 25 Jul 2019 23:41:51 +0000 (23:41 +0000)]
Merge changes I8bdb4c74,I613a7d03 into qt-dev

* changes:
  SharedMemory: clear file descriptor when explicitly closed.
  SharedMemory: break Cleaner reference cycle.

4 years agoMerge changes from topic "chromehole" into qt-dev
Jorim Jaggi [Thu, 25 Jul 2019 23:07:16 +0000 (23:07 +0000)]
Merge changes from topic "chromehole" into qt-dev

* changes:
  Only consider gone for layout if parent is gone for layout
  Reland "Prevent dismissing starting window when reopening app"

4 years agoMerge "Fading away the lockscreen wallpaper properly" into qt-r1-dev
Selim Cinek [Thu, 25 Jul 2019 22:59:14 +0000 (22:59 +0000)]
Merge "Fading away the lockscreen wallpaper properly" into qt-r1-dev

4 years agoAdd one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample...
Frank Li [Mon, 22 Jul 2019 15:13:03 +0000 (08:13 -0700)]
Add one field(sampling_rate_denom) in NetworkDnsEventReported for recording sample rate.

The sample rate of DNS stats(to statsd) is 1/sampling_rate_denom.

Bug: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: Iab542b32a8a18ae0bdbd8e005c430a876f056806
Merged-In: I9d37cac0bca53b3d7c6751ca69c1d304dfe17098
(cherry picked from commit 60d4f1a5bdc2a8412e285baf74e0e9a54b8c42d2)

Change-Id: If380a730942195db91a66944f103674c539ca7ad

4 years agoAdd NS_R_INTERNAL_ERROR item into NsRcode
Bernie Innocenti [Wed, 26 Jun 2019 08:39:57 +0000 (01:39 -0700)]
Add NS_R_INTERNAL_ERROR item into NsRcode

Bug: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: I023ff5dc0ae2efe45f81494929640c9b96821a0d
Merged-In: I0cf28032f8079c64253ed3f90fcf9d4705a5b492
(cherry picked from commit 83ef1697e3fdebf03c0a94fa1c41fa2ca053d669)

Change-Id: I106f73e8b0251bc7a64c68dfb450269ac7cd4feb

4 years agoRefine the proto dns_resolver.proto
Frank Li [Tue, 18 Jun 2019 12:45:25 +0000 (05:45 -0700)]
Refine the proto dns_resolver.proto

1. refine the enum type Transport
   The name of 1st enum value is TRANSPORT_UNKNOWN
2. remove the wrong character "CR"

Bug: 119862317
Test: ./out/host/linux-x86/bin/statsd_testdrive 116

Merged-In: Iaf7abac6170d5818a263392731069d7bf021d981
Merged-In: I8f0e7449036062ecc3827e477ced325d84c1bf54
(cherry picked from commit aee26c026c203a50ffb3b28baaf9aace73f335c7)

Change-Id: Ie33a2ea58d6f39345d0f1d4141eea8b9c458dcfc

4 years agoMerge "Preventing system crash when pin slice fails" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 21:14:34 +0000 (21:14 +0000)]
Merge "Preventing system crash when pin slice fails" into qt-r1-dev

4 years agoSharedMemory: clear file descriptor when explicitly closed.
Josh Gao [Thu, 25 Jul 2019 20:54:23 +0000 (13:54 -0700)]
SharedMemory: clear file descriptor when explicitly closed.

We run the Cleaner in close, but after the fix in commit 6ca916a6, this
no longer clears the value stored in the FileDescriptor, which means
that subsequent operations on an explicitly closed SharedMemory will
operate on a bogus fd number. Clearing the FileDescriptor value in close
is sufficient, because Cleaner.clean is idempotent, and the only other
case where it executes is when the FileDescriptor is phantom reachable,
which means no one can access it to get its integer value.

Bug: http://b/138392115
Bug: http://b/138323667
Test: treehugger
Change-Id: I8bdb4c745466532a0712976416184c53fcf0dbf6
(cherry picked from commit a7641806ddf1099239632d53c629c062ff2168f4)

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 20:39:19 +0000 (20:39 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 20:27:41 +0000 (20:27 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 20:23:24 +0000 (20:23 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 20:20:33 +0000 (20:20 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

4 years agoMerge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev
Kai Shi [Thu, 25 Jul 2019 20:03:45 +0000 (20:03 +0000)]
Merge "WifiMetrics: add per-band Tx and Rx speed histogram" into qt-r1-dev

4 years agoFading away the lockscreen wallpaper properly
Selim Cinek [Wed, 24 Jul 2019 22:32:17 +0000 (15:32 -0700)]
Fading away the lockscreen wallpaper properly

Previously the duration and delay was wrong. This
now properly overrided the fading away duration to
apply everywhere.

Fixes: 138305791
Test: add lockscreen wallpaper observe normal fading
Change-Id: Ib93e6647968047a8690201e01bcb13a3377b110d

4 years agoSharedMemory: break Cleaner reference cycle.
Josh Gao [Wed, 24 Jul 2019 22:40:57 +0000 (15:40 -0700)]
SharedMemory: break Cleaner reference cycle.

Previously, the Cleaner we create to close the ashmem file descriptor
used a thunk that held a strong reference to the FileDescriptor we
wanted to clean up, which prevented the Cleaner from ever running.

Break the cycle by storing the integer value of the file descriptor
instead.

Bug: http://b/138323667
Test: treehugger
Change-Id: I613a7d035892032f9567d59acb04672957c96011
(cherry picked from commit 6ca916a657cd56158212a57601108716ce78cbe8)

4 years agoMerge "Fixed that autoheads up were not visible or accidentally visible at times...
Selim Cinek [Thu, 25 Jul 2019 18:37:20 +0000 (18:37 +0000)]
Merge "Fixed that autoheads up were not visible or accidentally visible at times" into qt-r1-dev

4 years agoForce status bar visible when plugin holds it open
Beverly [Thu, 25 Jul 2019 18:27:17 +0000 (14:27 -0400)]
Force status bar visible when plugin holds it open

Test: manual
Bug: 138275859
Change-Id: Ic2c2958eec95afa15eb46b67571d14ca461f0337

4 years agoMerge "Cancel show runnable when bouncer is hidden" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 18:03:50 +0000 (18:03 +0000)]
Merge "Cancel show runnable when bouncer is hidden" into qt-r1-dev

4 years agoOnly consider gone for layout if parent is gone for layout
Jorim Jaggi [Tue, 16 Jul 2019 15:43:15 +0000 (17:43 +0200)]
Only consider gone for layout if parent is gone for layout

If we check getParentWindowHidden, that determines mostly actual
visibility. However, we don't want that because we still would
like to follow the parent's window layout lifecycle, as otherwise
we may be stuck in a transition in case the parent window is
hidden but the child is waiting for a layout to happen.

Test: Click "Customize" on wallpaper picker, go back, ensure no
transition timeout
Fixes: 135976008

Change-Id: I66aeab29a81cd82b170aaf337249616b1f559848
(cherry picked from commit b52b0457e1bad14697341cb81f6d391755b009be)

4 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 25 Jul 2019 13:55:57 +0000 (06:55 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2a3f5b0be93d5c821f91b4b0986ba8e42f1e9da2

4 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 25 Jul 2019 13:46:53 +0000 (06:46 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I53ca896aa7b7ad0b37d97f803a18ecdc851586c0

4 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 25 Jul 2019 11:10:58 +0000 (04:10 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ib0deb156a13690977edcdb4f23a1c3f6d9ebff46

4 years agoMerge "Ensure BiometricDialogView dismiss animation is run" into qt-r1-dev
Kevin Chyn [Thu, 25 Jul 2019 05:08:11 +0000 (05:08 +0000)]
Merge "Ensure BiometricDialogView dismiss animation is run" into qt-r1-dev

4 years agoMerge "Make sure scrims will fade from black" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 04:37:41 +0000 (04:37 +0000)]
Merge "Make sure scrims will fade from black" into qt-r1-dev

4 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 25 Jul 2019 04:29:51 +0000 (21:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia021fdbbb52c29df590f827e07f439f9241fa7be

4 years agoMerge "Fixed race condition with different profiles" into qt-r1-dev
TreeHugger Robot [Thu, 25 Jul 2019 04:06:20 +0000 (04:06 +0000)]
Merge "Fixed race condition with different profiles" into qt-r1-dev

4 years agoMerge "Log acquired vendorCode" into qt-r1-dev
Kevin Chyn [Thu, 25 Jul 2019 04:03:26 +0000 (04:03 +0000)]
Merge "Log acquired vendorCode" into qt-r1-dev

4 years agoEnsure BiometricDialogView dismiss animation is run
Kevin Chyn [Thu, 25 Jul 2019 01:45:42 +0000 (18:45 -0700)]
Ensure BiometricDialogView dismiss animation is run

postOnAnimation requests the animation be started on the next frame. The
behavior is undefined if an animation is already running. Currently
if this happens, the second animation is never initiated.

Fixes: 138199986

Test: Modify BiometricPromptDemo to cancel authentication immediately after
      requesting authentication. BiometricDialogView isn't stuck anymore

Change-Id: Ia62dccc2d484d1eaca5587bffa4d3def89730533

4 years agoMerge "Only update overlays for target" into qt-dev
Ryan Mitchell [Thu, 25 Jul 2019 01:39:46 +0000 (18:39 -0700)]
Merge "Only update overlays for target" into qt-dev
am: ed4820f0d0

Change-Id: Ie64e68bf5b13d81a991a29f0483c1c6f75dd4c00

4 years agoMerge "Only update overlays for target" into qt-dev
TreeHugger Robot [Thu, 25 Jul 2019 01:15:26 +0000 (01:15 +0000)]
Merge "Only update overlays for target" into qt-dev

4 years agoFixed race condition with different profiles
joshmccloskey [Thu, 25 Jul 2019 00:13:16 +0000 (17:13 -0700)]
Fixed race condition with different profiles

Test: Verified that setting/getting features in one profile
does not change the other.
Fixes: 138127704
Change-Id: Id8627fc84f0d2f4ec642cfb3e9a4d9884209a91f

4 years agoMerge "Prevent the BrightLineFalsingManager from duping its session." into qt-dev
Dave Mankoff [Thu, 25 Jul 2019 01:06:08 +0000 (18:06 -0700)]
Merge "Prevent the BrightLineFalsingManager from duping its session." into qt-dev
am: b340cce330

Change-Id: I2cc3960d5c85105244de1a23b606a01a9bf4cb81

4 years agoLog acquired vendorCode
Kevin Chyn [Tue, 23 Jul 2019 23:51:02 +0000 (16:51 -0700)]
Log acquired vendorCode

Bug: 137688980

Test: adb shell cmd stats print-logs
      adb logcat | grep -i statsd

Change-Id: Icdbc4a4ba004b5f4b7407de6e8ee256bee8ef97a

4 years ago[automerger skipped] Merge "Fix issue with media notifs being misbucketed" into qt-dev
Ned Burns [Thu, 25 Jul 2019 01:01:59 +0000 (18:01 -0700)]
[automerger skipped] Merge "Fix issue with media notifs being misbucketed" into qt-dev
am: 16e2397de5 -s ours
am skip reason: change_id I19223720bac534ab92219a2962169097819e8efb with SHA1 8c1b763dcf is in history

Change-Id: I3985d7c5ea2a36d1eeed5239fe7309d582e1b9e4

4 years agoCancel show runnable when bouncer is hidden
Lucas Dupin [Wed, 24 Jul 2019 23:36:14 +0000 (16:36 -0700)]
Cancel show runnable when bouncer is hidden

Otherwise the bouncer might report "showing soon" and future
show() calls will be aborted.

Test: swipe up and down, wait for face, swipe up
Test: tap on notification on bouncer
Test: swipe up, unlock from bouncer
Test: unlock on lock screen, swipe up to dismiss bouncer
Fixes: 132846921
Change-Id: I22a1af2ef903b266ae8d8fcb9eb55f6cc11aeae2

4 years agoMerge "Prevent the BrightLineFalsingManager from duping its session." into qt-dev
TreeHugger Robot [Thu, 25 Jul 2019 00:47:21 +0000 (00:47 +0000)]
Merge "Prevent the BrightLineFalsingManager from duping its session." into qt-dev

4 years agoMerge "Fix issue with media notifs being misbucketed" into qt-dev
Ned Burns [Thu, 25 Jul 2019 00:34:18 +0000 (00:34 +0000)]
Merge "Fix issue with media notifs being misbucketed" into qt-dev

4 years agoFixed that autoheads up were not visible or accidentally visible at times
Selim Cinek [Tue, 23 Jul 2019 00:32:38 +0000 (17:32 -0700)]
Fixed that autoheads up were not visible or accidentally visible at times

We were auto heads upping in the past even when the notification
would be hidden from the lockscreen which created some weird UI

Bug: 137873156
Test: add media notification with silent notifications hidden on lockscreen
Change-Id: Ic8f7d5b89f29b99571bbb905bced5b7880ded68d

4 years agoMake sure scrims will fade from black
Lucas Dupin [Wed, 24 Jul 2019 19:40:34 +0000 (12:40 -0700)]
Make sure scrims will fade from black

Scrims might be light if the wallpaper is light, but when
turning on the screen, we should always fade from black,
otherwise the display will bright up before dimming down.

Test: pulse with light wallpaper and AOD on/off
Test: press power with AOD on/off
Test: atest ScrimControllerTest
Fixes: 138097741
Change-Id: Icc1ce276c839bce248ab9362a5d8cf4905201e0e

4 years agoMerge "DO NOT MERGE Do not call drawableChanged pre Q" into qt-dev
Jorim Jaggi [Wed, 24 Jul 2019 23:19:42 +0000 (16:19 -0700)]
Merge "DO NOT MERGE Do not call drawableChanged pre Q" into qt-dev
am: d007c7b90d

Change-Id: I19dc7196f9b7dfeff5e2f18e4ecaedc5c480db3b

4 years agoDO NOT MERGE Do not call drawableChanged pre Q
Vadim Caen [Wed, 24 Jul 2019 23:19:39 +0000 (16:19 -0700)]
DO NOT MERGE Do not call drawableChanged pre Q
am: 843f9dee8b

Change-Id: I813f41905386da06e6eaebd6b7f85c17a6051456

4 years agoMerge "DO NOT MERGE Do not call drawableChanged pre Q" into qt-dev
Jorim Jaggi [Wed, 24 Jul 2019 22:49:21 +0000 (22:49 +0000)]
Merge "DO NOT MERGE Do not call drawableChanged pre Q" into qt-dev

4 years agoPrevent the BrightLineFalsingManager from duping its session.
Dave Mankoff [Wed, 24 Jul 2019 22:06:44 +0000 (18:06 -0400)]
Prevent the BrightLineFalsingManager from duping its session.

The BrightLineFalsingManager should not be able to start a session
when it's already in a session. Primarily, this caused the
FalsingManager to hang onto extra registrations to the Proximity
Sensor, per the bug.

Bug: 138220274
Test: atest SystemUITests and manual.
Change-Id: Id10d2697a96524e98c87aaa87702209d1752fe68

4 years agoMerge "Revert "Add calling package verification for ATM binder calls"" into qt-r1-dev
Andrii Kulian [Wed, 24 Jul 2019 21:57:57 +0000 (21:57 +0000)]
Merge "Revert "Add calling package verification for ATM binder calls"" into qt-r1-dev

4 years agoDO NOT MERGE Do not call drawableChanged pre Q
Vadim Caen [Wed, 24 Jul 2019 14:24:33 +0000 (16:24 +0200)]
DO NOT MERGE Do not call drawableChanged pre Q

Some apps rely on not updating the window format when changing the
background of the DecorView. To keep the compatibilty with these app we
add only call DecoreView.drawableChanged() when the window background is
changed on app targetting Q and above.

Test: Manually test by lunching Instagram TV and pressing return twice.
The window should aninate with no flickering.
Bug: 136987724

Change-Id: I3593d30dc6f10519008151974e475f0dad86fc64

4 years agoMerge "DO NOT MERGE Add stop method to backup handler thread." into qt-r1-dev
Chandan Nath [Wed, 24 Jul 2019 21:26:48 +0000 (21:26 +0000)]
Merge "DO NOT MERGE Add stop method to backup handler thread." into qt-r1-dev

4 years agoFix issue with media notifs being misbucketed
Ned Burns [Fri, 19 Jul 2019 18:26:15 +0000 (14:26 -0400)]
Fix issue with media notifs being misbucketed

Previous code assumed that "isHighPriority" == "is in top section",
which is not always true. Media notifs and some other notifs can appear
in the top section even if they're not high priority. Because we detect
section boundaries by iterating through the list until we find the first
notif where isHighPriority == false, we were sometimes drawing the
section boundary way too high. This change creates a new propery,
isInTopSection() that accurately tracks this state.

Setting this value in the proper location would require some seriously
destabilizing refactors, so instead we set it in the list comparator,
which is awful but here are.

Test: manual
Bug: 138320173
Change-Id: I19223720bac534ab92219a2962169097819e8efb
Merged-In: I19223720bac534ab92219a2962169097819e8efb
(cherry picked from commit 8c1b763dcf5df6e7fc7177dad5e7390adb229fa4)

4 years agoMerge "Use separate enroll timeout for fingerprint and face" into qt-r1-dev
Curtis Belmonte [Wed, 24 Jul 2019 21:02:51 +0000 (21:02 +0000)]
Merge "Use separate enroll timeout for fingerprint and face" into qt-r1-dev

4 years agoSeveral preferences lost during P->Q B&R
Ruslan Tkhakokhov [Wed, 24 Jul 2019 20:13:35 +0000 (21:13 +0100)]
Several preferences lost during P->Q B&R

SettingsBackupAgentduring restore doesn't account for the fact that some settings that were store in Global on source have been moved from to Secure. Fix it.

Bug: 137948683
Test: 1. Do cloud B&R P->Q and ensure settings are restored
      2. atest SettingsBackupTest

Change-Id: Iefe451a7b3dd0ea1d4cb95a56a71cc3341b65d7c

4 years agoOnly update overlays for target
Ryan Mitchell [Tue, 23 Jul 2019 17:01:06 +0000 (10:01 -0700)]
Only update overlays for target

When a target package would update, the OMS would update the stat of
overlays that target android as if the android overlays targeted the
target package. This would cause the overlay state to change to
STATE_MISSING_TARGET for android overlays.

This change will only update state for overlays that target the updated
package.

Bug: 137038000
Bug: 136549878
Test: manual debugging
Change-Id: I0430426d8e8588a0fb97096a1f2570a7930069b3
Merged-In: I0d545253179b3545307b88b3151d11fd9e6cbd5b

4 years agoPreventing system crash when pin slice fails
Sunny Goyal [Wed, 24 Jul 2019 18:19:25 +0000 (11:19 -0700)]
Preventing system crash when pin slice fails

ContentProvider calls can throw any generic exception it that was thrown
on the remote process. Ignore all such exceptions

Bug: 134802710
Test: atest PinnedSliceStateTest
Change-Id: I6f037905117adccbf5a65ee4ce4031f02aaa7780

4 years ago[automerger skipped] Merge "Allow BrightLineFalsingManager settings to be experimente...
Dave Mankoff [Wed, 24 Jul 2019 19:28:39 +0000 (12:28 -0700)]
[automerger skipped] Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-dev
am: 8d56bbf2e3 -s ours
am skip reason: change_id I9fa4d1344bb184dea00f92f8d265667f0be11466 with SHA1 1b80884e03 is in history

Change-Id: I2136fc988ec0704f4e2a4e643d2b309e41b56932

4 years agoMerge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype...
Dave Mankoff [Wed, 24 Jul 2019 19:09:02 +0000 (19:09 +0000)]
Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-dev

4 years agoRevert "Add calling package verification for ATM binder calls"
Andrii Kulian [Wed, 24 Jul 2019 18:35:22 +0000 (18:35 +0000)]
Revert "Add calling package verification for ATM binder calls"

This reverts commit fbc35b907a9b635bd149386ef63e89c96965343b.

Reason for revert: Some call points pass 'null', which breaks
the verification. E.g. b/138224633

Bug: 137395936
Bug: 138224633
Change-Id: I990a2d0347ce23d7100ba71ceec10716281e9200

4 years agoAllow BrightLineFalsingManager settings to be experimented with via Phenotype.
Dave Mankoff [Thu, 18 Jul 2019 21:20:11 +0000 (17:20 -0400)]
Allow BrightLineFalsingManager settings to be experimented with via Phenotype.

This is a CP of http://ag/8687829

Bug: 138308096
Test: atest SystemUITests
Change-Id: I9e2b22b157c45da1606466acdfff3c5de7f182e1
Merged-In: I9fa4d1344bb184dea00f92f8d265667f0be11466

4 years agoDO NOT MERGE Add stop method to backup handler thread.
nathch [Wed, 24 Jul 2019 17:11:40 +0000 (18:11 +0100)]
DO NOT MERGE Add stop method to backup handler thread.

Currently we call .quit() on the underlying thread which will cause all
messages to stop being processed. This has the side effect that, because
the backup system is a state machine where the state transitions are
messages, the message to transition into a state where the WakeLock is
released may not occur when a user is torn down.

This change adds a stop method we can call instead of .quit() on the
thread which drops any remaining messages and then releases the
WakeLock.

We also wrap the wakelock acquire/release calls to prevent any acquire/release on
the underlying wakelock after a quit. For the acquire, this avoids a non-released
wakelock and for the release, this avoids a runtime exception which can happen
when we release a released wakelock

Test: atest CtsBackupTestCases CtsBackupHostTestCases
Test: m RunBackupFrameworksServicesRoboTests && atest RunBackupFrameworksServicesRoboTests
Test: blaze run -- //experimental/users/nathch/py/bug_repros:repro 136264323 -m acquire_quit  -log DEBUG
Test: blaze run -- //experimental/users/nathch/py/bug_repros:repro 136264323 -m quit_acquire  -log DEBUG
Test: blaze run -- //experimental/users/nathch/py/bug_repros:repro 136264323 -m acquire_quit_release  -log DEBUG
Bug: 136264323

Change-Id: I42dcf997fc44cde05695a563aa19c8e47f6f9f26

4 years agoMerge "Fix issue with media notifs being misbucketed" into qt-r1-dev
Ned Burns [Wed, 24 Jul 2019 16:49:14 +0000 (16:49 +0000)]
Merge "Fix issue with media notifs being misbucketed" into qt-r1-dev

4 years agoMerge "Collapsing the heads up when showing the bouncer" into qt-r1-dev
Selim Cinek [Wed, 24 Jul 2019 16:49:12 +0000 (16:49 +0000)]
Merge "Collapsing the heads up when showing the bouncer" into qt-r1-dev

4 years agoMerge "Disabled the media auto heads up experience" into qt-r1-dev
Selim Cinek [Wed, 24 Jul 2019 16:48:19 +0000 (16:48 +0000)]
Merge "Disabled the media auto heads up experience" into qt-r1-dev

4 years agoMerge "Not asking for the password when dragging down and bypass" into qt-r1-dev
Selim Cinek [Wed, 24 Jul 2019 16:47:47 +0000 (16:47 +0000)]
Merge "Not asking for the password when dragging down and bypass" into qt-r1-dev

4 years agoMerge "Allowing to drag down while the quick settings are expanded" into qt-r1-dev
Selim Cinek [Wed, 24 Jul 2019 16:47:20 +0000 (16:47 +0000)]
Merge "Allowing to drag down while the quick settings are expanded" into qt-r1-dev

4 years agoMerge "Unsubscribe listeners when stopping UserBackupManagerService" into qt-r1-dev
Chandan Nath [Wed, 24 Jul 2019 15:53:37 +0000 (15:53 +0000)]
Merge "Unsubscribe listeners when stopping UserBackupManagerService" into qt-r1-dev

4 years agoUnsubscribe listeners when stopping UserBackupManagerService
nathch [Wed, 24 Jul 2019 00:07:12 +0000 (01:07 +0100)]
Unsubscribe listeners when stopping UserBackupManagerService

Unsubscribe listeners as otherwise they schedule work on a stopped handler thread
after the user backup manager service is stopped

This also ensures that any dangling wakelocks are released when they are
garbage collected

This was already done in master in ag/8036218

Test: atest CtsBackupTestCases CtsBackupHostTestCases
Test: m RunBackupFrameworksServicesRoboTests && atest RunBackupFrameworksServicesRoboTests

Test: blaze run -- //experimental/users/nathch/py/bug_repros:repro 136264323 -m w_codechange
followed by "adb shell kill -10 pid" (where pid = "adb shell pgrep system_server") to force GC
see in logs: PowerManager: WakeLock finalized while still held: *backup*-0

Test: blaze run -- //experimental/users/nathch/py/bug_repros:repro 136264323 -m backup_w_codechange
followed by same as above

Bug: 136264323
Bug: 135261178
Change-Id: I769d750a46faa3d28634d302e0f8e18cce41a744

4 years agoMerge "Modify deferred recents animation cancel to work without screenshot" into...
Winson Chung [Wed, 24 Jul 2019 05:14:05 +0000 (05:14 +0000)]
Merge "Modify deferred recents animation cancel to work without screenshot" into qt-r1-dev

4 years agoMerge "Fix breaking test" into qt-r1-dev
Selim Cinek [Wed, 24 Jul 2019 04:15:53 +0000 (04:15 +0000)]
Merge "Fix breaking test" into qt-r1-dev

4 years agoAllowing to drag down while the quick settings are expanded
Selim Cinek [Wed, 24 Jul 2019 02:26:38 +0000 (19:26 -0700)]
Allowing to drag down while the quick settings are expanded

Fixes: 137552697
Test: pull down after expanding quick settings
Change-Id: I8246820b727d134c5432e6411218f0806d3899cc

4 years agoMerge "Proxy search disabled flag to Launcher" into qt-r1-dev
TreeHugger Robot [Wed, 24 Jul 2019 01:58:24 +0000 (01:58 +0000)]
Merge "Proxy search disabled flag to Launcher" into qt-r1-dev

4 years agoCollapsing the heads up when showing the bouncer
Selim Cinek [Tue, 23 Jul 2019 20:12:55 +0000 (13:12 -0700)]
Collapsing the heads up when showing the bouncer

Previously we were keep showing heads up and music
notifications when the shade was fully collapsed.
We're now collapsing them as soon as you start
collapsing the panel.

Fixes: 136882221
Change-Id: I85783e8504b27110e16a0f15d2289d743ef0c3ea

4 years agoNot asking for the password when dragging down and bypass
Selim Cinek [Wed, 24 Jul 2019 01:44:07 +0000 (18:44 -0700)]
Not asking for the password when dragging down and bypass

Instead we'll just keep them in there looking like locked
notifications.

Fixes: 138225058
Test: add notifications, enable dynamic privacy, drag down
Change-Id: Ica49035ba3fe655c145f81be962817ddd294c48d

4 years agoFix breaking test
Lucas Dupin [Wed, 3 Jul 2019 21:29:37 +0000 (14:29 -0700)]
Fix breaking test

Fixes: 138245190
Test: atest SystemUITests
Merged-In: Ic1a937d3d81f4386ae744109076935921da9591b
Change-Id: Ie6f1133cac2e0f4f73a3620c71bd0c44d3b9be0b

4 years ago[automerger skipped] Merge "Don't animate clock when turning screen off." into qt-dev
bsears [Wed, 24 Jul 2019 01:41:44 +0000 (18:41 -0700)]
[automerger skipped] Merge "Don't animate clock when turning screen off." into qt-dev
am: 486503c74e -s ours
am skip reason: change_id If39777340b72bc623d6690bc4f784c7f5c26ea8d with SHA1 dc8fee7ea1 is in history

Change-Id: I8589586a14b38b70491641f545a31605467f34bd

4 years agoMerge "Mark screen rotation as early (1/2)" into qt-dev
Jorim Jaggi [Wed, 24 Jul 2019 01:33:52 +0000 (18:33 -0700)]
Merge "Mark screen rotation as early (1/2)" into qt-dev
am: 7b4bbe003d

Change-Id: Ie053403cfe588ce0eee30bee8ec1d87c2bf6baeb

4 years agoMerge "Don't animate clock when turning screen off." into qt-dev
bsears [Wed, 24 Jul 2019 01:22:21 +0000 (01:22 +0000)]
Merge "Don't animate clock when turning screen off." into qt-dev

4 years agoDisabled the media auto heads up experience
Selim Cinek [Wed, 24 Jul 2019 01:21:34 +0000 (18:21 -0700)]
Disabled the media auto heads up experience

Test: atest SystemUITests
Fixes:  138253091
Change-Id: I611bfdac44bb91e55b5944f8880f369534dbf30c

4 years agoMerge "Bouncer isn't in transit when fully visible/hidden" into qt-r1-dev
Lucas Dupin [Wed, 24 Jul 2019 01:18:38 +0000 (01:18 +0000)]
Merge "Bouncer isn't in transit when fully visible/hidden" into qt-r1-dev

4 years agoMerge "Isolate DPM and SIM PIN states from UX" into qt-r1-dev
Lucas Dupin [Wed, 24 Jul 2019 01:15:39 +0000 (01:15 +0000)]
Merge "Isolate DPM and SIM PIN states from UX" into qt-r1-dev

4 years agoMerge "Fixed the behavior when dragging down on home screen with a hun" into qt-r1-dev
TreeHugger Robot [Wed, 24 Jul 2019 01:07:36 +0000 (01:07 +0000)]
Merge "Fixed the behavior when dragging down on home screen with a hun" into qt-r1-dev

4 years agoMerge "Mark screen rotation as early (1/2)" into qt-dev
TreeHugger Robot [Wed, 24 Jul 2019 01:05:37 +0000 (01:05 +0000)]
Merge "Mark screen rotation as early (1/2)" into qt-dev

4 years agoUse separate enroll timeout for fingerprint and face
Curtis Belmonte [Tue, 23 Jul 2019 18:07:27 +0000 (11:07 -0700)]
Use separate enroll timeout for fingerprint and face

Currently, we use the same timeout for enrolling any biometric,
including fingerprint and face. This commit requires each type of
biometric to specify its own enrollment timeout and specifically changes
the timeout for face from 60 to 75 seconds.

Test: Multi-angle face enrollment w/ 1-24 buckets captured == 75 seconds
Test: Single-capture face enrollment == 75 seconds
Test: Fingerprint enrollment == 60 seconds

Bug: 137688980
Change-Id: I2735ed4647956c8a4cba573215b551a5c0be6955

4 years agoMerge "Tell KeyStore to ignore caller uid for PlatformKeyManager's keys." into qt...
Dmitry Dementyev [Tue, 23 Jul 2019 23:24:28 +0000 (23:24 +0000)]
Merge "Tell KeyStore to ignore caller uid for PlatformKeyManager's keys." into qt-r1-dev

4 years agoProxy search disabled flag to Launcher
Winson Chung [Tue, 23 Jul 2019 16:58:47 +0000 (09:58 -0700)]
Proxy search disabled flag to Launcher

Bug: 137652372
Test: Just adding a flag
Change-Id: Ib1936dc0d2eed02bc2ef0dd7e091cbc4fa7af682

4 years agoModify deferred recents animation cancel to work without screenshot
Winson Chung [Tue, 16 Jul 2019 21:52:13 +0000 (14:52 -0700)]
Modify deferred recents animation cancel to work without screenshot

- Allow the recents animation runner to request deferring a cancel from
  stack order change until the next app transition start without using
  a screenshot. This allows launcher to set this state, then start an
  activity without a flash due to the animation not finishing immediately
- Always prepare a transition when using the deferred cancel to ensure
  an app transition callback
- Handle app transition canceled as well (if canceled, we continue to
  cancel recents the animation with/without the screenshot as requested)
- Remove internal lock and use the global WM lock when setting the defer
  cancel state
- Renamed a few methods to clarify the deferred cancel flow

Bug: 137196872
Test: atest FrameworksServicesTests:RecentsAnimationControllerTest
Test: atest WmTests:RecentsAnimationTest
Change-Id: Ie8f6f60b6bf6777e36f24749b30f90c8c26ee848

4 years agoMark screen rotation as early (1/2)
Jorim Jaggi [Mon, 22 Jul 2019 15:17:42 +0000 (17:17 +0200)]
Mark screen rotation as early (1/2)

To decrease jank while rotating.

Test: Rotate screen
Bug: 138083790
Change-Id: If0b4428253dbfa4dcb102b8146a847e2e9ab876b
Merged-In: If0b4428253dbfa4dcb102b8146a847e2e9ab876b

4 years agoFixed the behavior when dragging down on home screen with a hun
Selim Cinek [Tue, 23 Jul 2019 01:36:54 +0000 (18:36 -0700)]
Fixed the behavior when dragging down on home screen with a hun

Previously the headsupmanager wouldn't be informed about the update
and touches would not necessarily go through to the panelView
because we were still considered small.

Fixes: 138152555
Test: drag down on home while a hun is showing
Change-Id: I1d28e3df8ccac297a65424fe1c9401968a364ee6

4 years agoMerge "DO NOT MERGE Set app op mode to allowed when granting permissions to reset...
TreeHugger Robot [Tue, 23 Jul 2019 21:52:30 +0000 (21:52 +0000)]
Merge "DO NOT MERGE Set app op mode to allowed when granting permissions to reset state." into qt-r1-dev

4 years agoFix issue with media notifs being misbucketed
Ned Burns [Fri, 19 Jul 2019 18:26:15 +0000 (14:26 -0400)]
Fix issue with media notifs being misbucketed

Previous code assumed that "isHighPriority" == "is in top section",
which is not always true. Media notifs and some other notifs can appear
in the top section even if they're not high priority. Because we detect
section boundaries by iterating through the list until we find the first
notif where isHighPriority == false, we were sometimes drawing the
section boundary way too high. This change creates a new propery,
isInTopSection() that accurately tracks this state.

Setting this value in the proper location would require some seriously
destabilizing refactors, so instead we set it in the list comparator,
which is awful but here are.

Test: manual
Bug: 136709564
Change-Id: I19223720bac534ab92219a2962169097819e8efb

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Tue, 23 Jul 2019 21:43:49 +0000 (21:43 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

4 years agoBouncer isn't in transit when fully visible/hidden
Lucas Dupin [Tue, 23 Jul 2019 20:44:12 +0000 (13:44 -0700)]
Bouncer isn't in transit when fully visible/hidden

Test: atest KeyguardBouncerTest
Test: tap screen when unlocking without bypass mode
Fixes: 138125943
Change-Id: I9d2b58aebf42fc0d3ff3e39e97cb8734b3bbed71

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Tue, 23 Jul 2019 21:20:08 +0000 (21:20 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

4 years agoIsolate DPM and SIM PIN states from UX
Lucas Dupin [Mon, 22 Jul 2019 23:47:34 +0000 (16:47 -0700)]
Isolate DPM and SIM PIN states from UX

User should still be able to swipe up to retry or still see
the bypass lock screen when face auth is disabled or sim
card is locked. Having different UX on those cases is
confusing.

Bug: 138125943
Change-Id: Iece4d28e7a988af846c9e8aa9eb0fff5a1d74249

4 years agoMerge "Improved the heads up experience when notifications were blocked" into qt...
Selim Cinek [Tue, 23 Jul 2019 20:25:35 +0000 (20:25 +0000)]
Merge "Improved the heads up experience when notifications were blocked" into qt-r1-dev