OSDN Git Service

android-x86/frameworks-base.git
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 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 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 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 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 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

4 years agoTell KeyStore to ignore caller uid for PlatformKeyManager's keys.
Dmitry Dementyev [Thu, 11 Jul 2019 21:40:01 +0000 (14:40 -0700)]
Tell KeyStore to ignore caller uid for PlatformKeyManager's keys.

Without the change, keys created for secondary profiles are still bound
to the primary profile lock screen secret.
Test: manual
Bug: 129845209
Change-Id: I7e180656f8dc81f5c05036a7e8c810c9582f8f82

4 years agoMerge "Don't unfreeze too early" into qt-r1-dev
TreeHugger Robot [Tue, 23 Jul 2019 20:22:34 +0000 (20:22 +0000)]
Merge "Don't unfreeze too early" into qt-r1-dev

4 years agoDO NOT MERGE Set app op mode to allowed when granting permissions to reset state.
Hai Zhang [Wed, 17 Jul 2019 22:04:20 +0000 (15:04 -0700)]
DO NOT MERGE Set app op mode to allowed when granting permissions to reset state.

We grant GRANTED_BY_DEFAULT permissions again when user clears data
for a package to reset its state, but the app op mode needs to be
granted as well.

Fixes: 137723522
Test: presubmit & manual
Change-Id: Ibbbbff9e5d8161538637a4c542d7c0bc92a90501

4 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 23 Jul 2019 20:09:00 +0000 (13:09 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I9ef7742eaa85199f18abe62e7b122eee9a8bc27e

4 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 23 Jul 2019 20:05:07 +0000 (13:05 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icda8f9f62161a32ea41f73e62d74feb8e14afc72

4 years agoDon't animate clock when turning screen off.
Robert Snoeberger [Fri, 19 Jul 2019 20:35:35 +0000 (16:35 -0400)]
Don't animate clock when turning screen off.

This change stops the animation because there isn't a
transition from the no-header state to the music header
state when turning the screen off (to AOD). Since there
isn't a transition, there isn't an animation.

This assumes that there isn't a transition from unlocked to
lock screen. If there is, then there would be an animation
of the music going away while arriving at the lock screen.

Fixes: 137383007
Test: Checked repro steps in bug, clock doesn't animate.
Test: Also checked repro steps when audio is paused, clock doesn't
animate.
Test: atest KeyguardSliceProviderTest.java

Change-Id: If39777340b72bc623d6690bc4f784c7f5c26ea8d
Merged-In: If39777340b72bc623d6690bc4f784c7f5c26ea8d

4 years agoMerge "Don't animate clock when turning screen off." into qt-r1-dev
Robert Snoeberger [Tue, 23 Jul 2019 18:12:40 +0000 (18:12 +0000)]
Merge "Don't animate clock when turning screen off." into qt-r1-dev

4 years agoMerge "Fix permission javadoc about whitelisting." into qt-dev
Hai Zhang [Tue, 23 Jul 2019 17:55:56 +0000 (10:55 -0700)]
Merge "Fix permission javadoc about whitelisting." into qt-dev
am: 4918e711d3

Change-Id: I28a53f02f8cfc41c8ce6e23976f7efd4fdb3fa90

4 years ago[automerger skipped] Merge "Add cleanup method to FalsingManager to prevent memory...
Dave Mankoff [Tue, 23 Jul 2019 17:52:16 +0000 (10:52 -0700)]
[automerger skipped] Merge "Add cleanup method to FalsingManager to prevent memory leaks." into qt-dev
am: f0fb6e1b29 -s ours
am skip reason: change_id I2b52d018d478dbcad4ecb7d8a5b361638d5c5877 with SHA1 4c5a13ebd9 is in history

Change-Id: I26a7f122c7bc1dd51d7602d580a5e77058839894

4 years agoMerge "Fix permission javadoc about whitelisting." into qt-dev
TreeHugger Robot [Tue, 23 Jul 2019 17:16:14 +0000 (17:16 +0000)]
Merge "Fix permission javadoc about whitelisting." into qt-dev

4 years agoMerge "Add cleanup method to FalsingManager to prevent memory leaks." into qt-dev
Dave Mankoff [Tue, 23 Jul 2019 17:10:26 +0000 (17:10 +0000)]
Merge "Add cleanup method to FalsingManager to prevent memory leaks." into qt-dev

4 years agofsync directories as well as files
Paul Crowley [Fri, 21 Jun 2019 22:15:32 +0000 (15:15 -0700)]
fsync directories as well as files

When we create a new file, that file can be lost in a crash unless the
containing directory is synced.

Bug: 130637124
Bug: 137666560
Test: ensure pattern setting still works.
Change-Id: I5ec05a98cb5077950d1a4214aca6801c73450b62

4 years agoMerge "Fixed a bug with the animation of the notification background" into qt-dev
Selim Cinek [Tue, 23 Jul 2019 01:17:15 +0000 (18:17 -0700)]
Merge "Fixed a bug with the animation of the notification background" into qt-dev
am: 5958b7c77b

Change-Id: I523abfa025e8c25c6fa7e198e172ae2b4db08158

4 years agoMerge "Fixed a bug with the animation of the notification background" into qt-dev
TreeHugger Robot [Tue, 23 Jul 2019 00:57:58 +0000 (00:57 +0000)]
Merge "Fixed a bug with the animation of the notification background" into qt-dev

4 years agoImproved the heads up experience when notifications were blocked
Selim Cinek [Mon, 22 Jul 2019 21:49:18 +0000 (14:49 -0700)]
Improved the heads up experience when notifications were blocked

When notifications were blocked due to proximity, the heads
up would never show until unlocked. We're now showing it
when the screen turns on.
This also avoids the header to be shown while the
notifications are fully collapsed, since that was the
only element that changed before.

Fixes:  137711785
Test: get hun in pocket, pull out, observe notification visible
Change-Id: I9c3d0cdc341eb2d95bcb76099e59b0d561f81210

4 years agoMerge "SoundTriggerHelper: fix power save mode listener" into qt-r1-dev
TreeHugger Robot [Tue, 23 Jul 2019 00:48:37 +0000 (00:48 +0000)]
Merge "SoundTriggerHelper: fix power save mode listener" into qt-r1-dev

4 years agoMerge "Removes auto-switch from gesture nav when default home app changes" into qt...
Mehdi Alizadeh [Mon, 22 Jul 2019 23:17:48 +0000 (23:17 +0000)]
Merge "Removes auto-switch from gesture nav when default home app changes" into qt-r1-dev

4 years agoMerge "docs: Added protection level to permissions" into qt-dev
Kevin Hufnagle [Mon, 22 Jul 2019 22:29:26 +0000 (15:29 -0700)]
Merge "docs: Added protection level to permissions" into qt-dev
am: b920689346

Change-Id: I8c683819d96879f94d15224148cdc8f4643c17cc

4 years agoMerge "docs: Fixed link in setCurrentTab() description" into qt-dev
Kevin Hufnagle [Mon, 22 Jul 2019 22:23:56 +0000 (15:23 -0700)]
Merge "docs: Fixed link in setCurrentTab() description" into qt-dev
am: 2839f24e64

Change-Id: I4d888ec589953a02238520de0594d751fda3e6d0

4 years agoMerge "docs: Added protection level to permissions" into qt-dev
Kevin Hufnagle [Mon, 22 Jul 2019 22:02:55 +0000 (22:02 +0000)]
Merge "docs: Added protection level to permissions" into qt-dev

4 years agoMerge "docs: Fixed link in setCurrentTab() description" into qt-dev
Kevin Hufnagle [Mon, 22 Jul 2019 22:01:49 +0000 (22:01 +0000)]
Merge "docs: Fixed link in setCurrentTab() description" into qt-dev

4 years agoMerge "Fixed that silent notifications weren't showing on AOD" into qt-r1-dev
TreeHugger Robot [Mon, 22 Jul 2019 21:51:11 +0000 (21:51 +0000)]
Merge "Fixed that silent notifications weren't showing on AOD" into qt-r1-dev

4 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Mon, 22 Jul 2019 21:12:34 +0000 (21:12 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev