OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Fixed a crash with the headsUpManager" into qt-dev
Selim Cinek [Sat, 20 Jul 2019 00:39:24 +0000 (17:39 -0700)]
Merge "Fixed a crash with the headsUpManager" into qt-dev
am: fcd42e9249

Change-Id: I82fedec3d4d6f297a022f42fe29e52bffbdc222a

5 years agoMerge "Use binned brightness sensor instead of prox" into qt-dev
Lucas Dupin [Sat, 20 Jul 2019 00:34:17 +0000 (17:34 -0700)]
Merge "Use binned brightness sensor instead of prox" into qt-dev
am: cdc566dfd6

Change-Id: I85007cffbac76c4cf9e66228ec3abfd4c8e8067d

5 years agoMerge "Fix class initialization issue" into qt-r1-dev
TreeHugger Robot [Sat, 20 Jul 2019 00:07:08 +0000 (00:07 +0000)]
Merge "Fix class initialization issue" into qt-r1-dev

5 years agoMerge "Fixed a crash with the headsUpManager" into qt-dev
TreeHugger Robot [Fri, 19 Jul 2019 23:55:30 +0000 (23:55 +0000)]
Merge "Fixed a crash with the headsUpManager" into qt-dev

5 years agoMerge "resolve merge conflicts of 0e680785e4bc502a0237b716378ccb7322c8c1f8 to qt...
TreeHugger Robot [Fri, 19 Jul 2019 23:47:35 +0000 (23:47 +0000)]
Merge "resolve merge conflicts of 0e680785e4bc502a0237b716378ccb7322c8c1f8 to qt-r1-dev" into qt-r1-dev

5 years agoMerge "Update clock when turning the screen on" into qt-r1-dev
TreeHugger Robot [Fri, 19 Jul 2019 22:57:41 +0000 (22:57 +0000)]
Merge "Update clock when turning the screen on" into qt-r1-dev

5 years agoMerge "Use binned brightness sensor instead of prox" into qt-dev
TreeHugger Robot [Fri, 19 Jul 2019 22:33:20 +0000 (22:33 +0000)]
Merge "Use binned brightness sensor instead of prox" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-r1-dev
TreeHugger Robot [Fri, 19 Jul 2019 21:10:22 +0000 (21:10 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-r1-dev

5 years agoFix class initialization issue
Lucas Dupin [Tue, 16 Jul 2019 22:42:48 +0000 (15:42 -0700)]
Fix class initialization issue

We were getting an NPE because the superclass was
calling an overridden method on its constructor,
before the variable could be initialized.

Test: atest ScrimControllerTest
Fixes: 137665467
Fixes: 137878476
Change-Id: I8914eac86cac19d92a68a2d55d97dfcee4066ed3
(cherry picked from commit 1c72bc21514eb6b76f80cef68be1245fb5d4f423)

5 years agoMerge "Revert "Stop idmap2d after several seconds pass"" into qt-r1-dev
Ryan Mitchell [Fri, 19 Jul 2019 20:55:57 +0000 (20:55 +0000)]
Merge "Revert "Stop idmap2d after several seconds pass"" into qt-r1-dev

5 years agoresolve merge conflicts of 0e680785e4bc502a0237b716378ccb7322c8c1f8 to qt-r1-dev
Dave Mankoff [Fri, 19 Jul 2019 20:29:31 +0000 (16:29 -0400)]
resolve merge conflicts of 0e680785e4bc502a0237b716378ccb7322c8c1f8 to qt-r1-dev

Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Idf6ca46cd849b6d363fd5f1633877224141a7943

5 years agoMerge "Enable the BrightLineFalsingManager by default on Q." into qt-dev
Dave Mankoff [Fri, 19 Jul 2019 19:54:03 +0000 (19:54 +0000)]
Merge "Enable the BrightLineFalsingManager by default on Q." into qt-dev

5 years agoMerge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype...
Dave Mankoff [Fri, 19 Jul 2019 19:27:37 +0000 (19:27 +0000)]
Merge "Allow BrightLineFalsingManager settings to be experimented with via Phenotype." into qt-r1-dev

5 years agoUse binned brightness sensor instead of prox
Lucas Dupin [Fri, 19 Jul 2019 19:16:25 +0000 (12:16 -0700)]
Use binned brightness sensor instead of prox

Prox can be noisy and should only be used as a fallback when a more
robust sensor implementation is not available.

Test: manually cover prox sensor
Test: breakpoint
Test: dumpsys
Fixes: 137451005
Change-Id: If0fca42aca36546942930ce76be1353129fc91fc

5 years agoMerge "Fixed the layout of media heads up notifications" into qt-r1-dev
Lucas Dupin [Fri, 19 Jul 2019 18:50:28 +0000 (18:50 +0000)]
Merge "Fixed the layout of media heads up notifications" into qt-r1-dev

5 years agoFixed a crash with the headsUpManager
Selim Cinek [Fri, 19 Jul 2019 18:47:58 +0000 (11:47 -0700)]
Fixed a crash with the headsUpManager

Since the headsUpManager is calling out in various places to
its listeners, the callbacks may query the headsupmanager
in an internally inconsistent state, such that the pinned mode is
true but there is no topEntry. Let's add a null-check for
safety here.

Bug: 137804505
Test: atest SystemUITests
Change-Id: Ibae76b555ca51ccf676228b034a614d59a8b4e8e

5 years agoUpdate clock when turning the screen on
Lucas Dupin [Fri, 19 Jul 2019 18:45:16 +0000 (11:45 -0700)]
Update clock when turning the screen on

Sensors might disable the screen, setting the machine state to
DOZE. We need to update the clock when the screen turns on.

Fixes: 137943236
Test: turn off screen with sensor, wait for a few minutes, come back
Change-Id: I633568294aa24bfea6765accc08ccf23f9c6bec1

5 years agoRevert "Stop idmap2d after several seconds pass"
Ryan Mitchell [Fri, 19 Jul 2019 18:09:52 +0000 (18:09 +0000)]
Revert "Stop idmap2d after several seconds pass"

This reverts commit 2b5140d3e02f75f7da87786f8bed0d989ff8e0f6.

Reason for revert: failing launcher 3 tests

Change-Id: I383a38f34dc81b6b4f7d2960b47c13b4887905bf

5 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 19 Jul 2019 17:57:39 +0000 (10:57 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I49514b3428c41473d516b5889217c241f892be5d

5 years agoMerge "Postpone the shared user checking after Q" into qt-dev
Todd Kennedy [Fri, 19 Jul 2019 17:25:32 +0000 (10:25 -0700)]
Merge "Postpone the shared user checking after Q" into qt-dev
am: 3f124d6463

Change-Id: I28520a9bbdeb71fd4c407fcfe02f0309db63ba69

5 years agoMerge "docs: Fix broken link." into qt-dev
Nick Cook [Fri, 19 Jul 2019 17:15:39 +0000 (10:15 -0700)]
Merge "docs: Fix broken link." into qt-dev
am: a2fe3be17d

Change-Id: I8618dd139fedc0af13bdb6e00b441b237a319784

5 years agoMerge "Postpone the shared user checking after Q" into qt-dev
Todd Kennedy [Fri, 19 Jul 2019 17:13:48 +0000 (17:13 +0000)]
Merge "Postpone the shared user checking after Q" into qt-dev

5 years agoMerge "docs: Fix broken link." into qt-dev
Nick Cook [Fri, 19 Jul 2019 16:58:50 +0000 (16:58 +0000)]
Merge "docs: Fix broken link." into qt-dev

5 years agoEnable the BrightLineFalsingManager by default on Q.
Dave Mankoff [Fri, 19 Jul 2019 15:25:45 +0000 (11:25 -0400)]
Enable the BrightLineFalsingManager by default on Q.

Bug: 71762354
Change-Id: Icfc6e21d50e08c34168f504ec64bf654ba6cb6a4
Test: atest SystemUITests

5 years agoPostpone the shared user checking after Q
SzuWei Lin [Fri, 19 Jul 2019 05:14:48 +0000 (13:14 +0800)]
Postpone the shared user checking after Q

The shared user checking becomes strict. If there is an APK in
vendor partition shared UID with a APK in system partition, the
signatures of these 2 APKs must be equal. Otherwise, framework
will throw an exception and cannot boot.

Postpone the checking from first_api_level 28 to 29.

Bug: 137524152
Test: test on a device with first_api_level=29 and pass the checking
Change-Id: I76d87a6dab35d4d39113cdd16a20706ce2c45093

5 years agoMerge "Biometric HAL death should invoke handleError on the handler" into qt-r1-dev
TreeHugger Robot [Fri, 19 Jul 2019 02:06:40 +0000 (02:06 +0000)]
Merge "Biometric HAL death should invoke handleError on the handler" into qt-r1-dev

5 years agoFixed the layout of media heads up notifications
Selim Cinek [Thu, 18 Jul 2019 23:00:55 +0000 (16:00 -0700)]
Fixed the layout of media heads up notifications

Previously the heads up layout was strangely clipped
because we were using the expanded layout.
We're now using the collapsed layout instead. In order to allow this,
the media notification needs to wrap it's height properly.

Fixes: 136507638
Test: show heads up media notification
Change-Id: Ib091b0e776b5cd1a615c9ea0121a3115817b7f64

5 years agoMerge "Fixed an issue where heads up notifications would overlap" into qt-r1-dev
TreeHugger Robot [Fri, 19 Jul 2019 00:09:53 +0000 (00:09 +0000)]
Merge "Fixed an issue where heads up notifications would overlap" into qt-r1-dev

5 years agoMerge "Disable bypass and bouncer delay when no face auth" into qt-r1-dev
TreeHugger Robot [Thu, 18 Jul 2019 23:58:22 +0000 (23:58 +0000)]
Merge "Disable bypass and bouncer delay when no face auth" into qt-r1-dev

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

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

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
Bill Yi [Thu, 18 Jul 2019 21:56:38 +0000 (14:56 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: daeb1bb863 -s ours
am skip reason: subject contains skip directive

Change-Id: I98cf4fdb78853f9f7590d72f46372c796b909c67

5 years ago[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
Bill Yi [Thu, 18 Jul 2019 21:52:47 +0000 (14:52 -0700)]
[automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-dev
am: 465f347c2a -s ours
am skip reason: subject contains skip directive

Change-Id: I0f7a43e64309d3ce82a06bed01a44f3aa01af4f9

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Thu, 18 Jul 2019 21:27:42 +0000 (21:27 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoMerge "Import translations. DO NOT MERGE" into qt-dev
TreeHugger Robot [Thu, 18 Jul 2019 21:26:43 +0000 (21:26 +0000)]
Merge "Import translations. DO NOT MERGE" into qt-dev

5 years agoDisable bypass and bouncer delay when no face auth
Lucas Dupin [Wed, 17 Jul 2019 23:25:54 +0000 (16:25 -0700)]
Disable bypass and bouncer delay when no face auth

KeyguardUpdateMonitor#isUnlockWithFacePossible was returning true
when the user had disabled face unlock.

This was causing bypass to still be enabled (hiding all notifications)
and bouncer was also being delayed, even though we were not scanning.

Fixes: 134977472
Test: auth with bypass (toggling face auth setting on/off)
Test: auth without bypass (toggling face auth setting on/off)
Change-Id: I234eb303db87fe0dafa2073a9bdf819c665018d6

5 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 also ensures that the FalsingManagerProxy cleans up its internal instance
whenever a Phenotype flag changes.

Bug: 71762354
Test: atest SystemUITests
Change-Id: I9fa4d1344bb184dea00f92f8d265667f0be11466

5 years agoFixed an issue where heads up notifications would overlap
Selim Cinek [Thu, 18 Jul 2019 21:19:54 +0000 (14:19 -0700)]
Fixed an issue where heads up notifications would overlap

We recently fixed the logic where notifications are being displayed
if multiple huns are showing, however we were not clipping to them.
We're now clipping heads up notifications as well by the clipTopAmount

Fixes: 136914021
Test: add two different sized HUNS, so weird overlap.
Change-Id: I68a4c373eff3952b1a4711858c9ce61684f6ff17

5 years agoBiometric HAL death should invoke handleError on the handler
Kevin Chyn [Thu, 18 Jul 2019 20:37:23 +0000 (13:37 -0700)]
Biometric HAL death should invoke handleError on the handler

All client lifecycle is modified on the handler. When the HAL dies,
serviceDied comes in on the main thread and will race with the rest of
client lifecycle manipulation. We need to guarantee this is in order,
otherwise it's possible for BiometricService to receive the following
order of events
1) BiometricService requests auth
2) Face/FingerprintService is ready to start auth
3) HAL dies in the middle of 2), and sends onError to BiometricService
4) onReadyForAuthentication is sent to BiometricService, causing NPE

With this change, it will guarantee that 3) occurs after 4), which will
avoid A) BiometricService receiving events out of order, and more
importantly B) allow BiometricPrompt to show the HW_UNAVAILABLE error
instead of crashing system server.

Fixes: 137800315

Test: Authentication with BiometricPromptDemo while killing the HAL
Change-Id: Iae2d5b39dd494123f274b47edcc44c3afc1fff8c

5 years agodocs: Fix broken link.
Nick Cook [Thu, 18 Jul 2019 20:34:32 +0000 (20:34 +0000)]
docs: Fix broken link.

Test: make ds-docs

Bug: 79729313
Change-Id: I3f7b90457e9127380f2b8cbaf0f958823ba5488e

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 Jul 2019 18:37:02 +0000 (11:37 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I7d11de6106b6326b0fcb95fa642faaff6b870371

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 Jul 2019 18:34:15 +0000 (11:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I2b42edaa4a1dc95fefdc4f7ebabf528551b03460

5 years agoMerge "Pad indication text to prevent clipping on side of screen." into qt-r1-dev
TreeHugger Robot [Thu, 18 Jul 2019 18:31:52 +0000 (18:31 +0000)]
Merge "Pad indication text to prevent clipping on side of screen." into qt-r1-dev

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 Jul 2019 18:31:21 +0000 (11:31 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ib95137b7ade70cbb7184e3d0a7f004fc759bc064

5 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 18 Jul 2019 18:30:29 +0000 (11:30 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I10856a2e242d1c493f514e67884d26e4fd057447

5 years agoMerge "p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event...
Jimmy Chen [Thu, 18 Jul 2019 18:24:31 +0000 (11:24 -0700)]
Merge "p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event" into qt-dev
am: 4bdeefacba

Change-Id: Ic8c05f3cde428c4ff83b550b31ff9e1ff31015ec

5 years ago[automerger skipped] Merge "Do not animate wallpaper when wakeAndUnlock" into qt-dev
Lucas Dupin [Thu, 18 Jul 2019 18:21:02 +0000 (11:21 -0700)]
[automerger skipped] Merge "Do not animate wallpaper when wakeAndUnlock" into qt-dev
am: 39fc29c72a -s ours
am skip reason: change_id I46574609a00712bdde5a4652ab5c9b0c04cbeeec with SHA1 bd6c92b074 is in history

Change-Id: Ibad934b261ea64ccbe85c9e4eca6a77ec5e5cc60

5 years agoMerge "p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event...
TreeHugger Robot [Thu, 18 Jul 2019 18:11:23 +0000 (18:11 +0000)]
Merge "p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event" into qt-dev

5 years agoMerge "Do not animate wallpaper when wakeAndUnlock" into qt-dev
Lucas Dupin [Thu, 18 Jul 2019 18:06:55 +0000 (18:06 +0000)]
Merge "Do not animate wallpaper when wakeAndUnlock" into qt-dev

5 years ago[automerger skipped] Merge "PasswordSlotManager: Fix incorrect string comparison...
David Anderson [Thu, 18 Jul 2019 17:15:32 +0000 (10:15 -0700)]
[automerger skipped] Merge "PasswordSlotManager: Fix incorrect string comparison." into qt-dev
am: 442b09472d -s ours
am skip reason: change_id I2a11dd6dfd44e10400e40ebbaa2ed597de95cdcb with SHA1 d1552e36f4 is in history

Change-Id: I1960e2aa776e8b00a1fd1e50dc017e66049f51ca

5 years agoMerge "PasswordSlotManager: Fix incorrect string comparison." into qt-dev
David Anderson [Thu, 18 Jul 2019 17:00:25 +0000 (17:00 +0000)]
Merge "PasswordSlotManager: Fix incorrect string comparison." into qt-dev

5 years agop2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event
Jimmy Chen [Thu, 18 Jul 2019 02:25:26 +0000 (10:25 +0800)]
p2p: update documents about EXTRA_WIFI_P2P_GROUP in connection changed event

This value may be a null, receiver should check before using variable.

Bug: 137618950
Test: make docs
Change-Id: If466dac092fc345482d0456f08a915d1e7ba0010

5 years agoPad indication text to prevent clipping on side of screen.
Robert Snoeberger [Wed, 17 Jul 2019 21:07:18 +0000 (17:07 -0400)]
Pad indication text to prevent clipping on side of screen.

Padding amount is the same as owner_info also shown on AOD screen.

Bug: 137627803
Test: Checked that text with more than 100 characters shown in
indication area wasn't clipped on side of screen. 100 characters was
used because face_acquired_sensor_dirty string has char limit of 100.
Change-Id: I1c4014b4cfbdc2bba84b9974813ca23e6b42cf4c

5 years agoMerge "Do not detach children of starting windows" into qt-r1-dev
Jorim Jaggi [Thu, 18 Jul 2019 13:18:20 +0000 (13:18 +0000)]
Merge "Do not detach children of starting windows" into qt-r1-dev

5 years agoMerge "Only consider gone for layout if parent is gone for layout" into qt-r1-dev
Jorim Jaggi [Thu, 18 Jul 2019 13:17:52 +0000 (13:17 +0000)]
Merge "Only consider gone for layout if parent is gone for layout" into qt-r1-dev

5 years agoMerge "Stop idmap2d after several seconds pass" into qt-r1-dev
TreeHugger Robot [Thu, 18 Jul 2019 07:18:56 +0000 (07:18 +0000)]
Merge "Stop idmap2d after several seconds pass" into qt-r1-dev

5 years agoMerge "Do not animate wallpaper when wakeAndUnlock" into qt-r1-dev
TreeHugger Robot [Thu, 18 Jul 2019 05:26:16 +0000 (05:26 +0000)]
Merge "Do not animate wallpaper when wakeAndUnlock" into qt-r1-dev

5 years agoDo not animate wallpaper when wakeAndUnlock
Lucas Dupin [Wed, 17 Jul 2019 16:49:52 +0000 (09:49 -0700)]
Do not animate wallpaper when wakeAndUnlock

Fixes: 137536016
Test: press power to go to lock scree <-> aod
Test: unlock with fingerprint
Test: trigger AOD2 pulse (look at wallpaper animation)
Test: atest DozeWallpaperStateTest
Change-Id: I46574609a00712bdde5a4652ab5c9b0c04cbeeec
Merged-In: I46574609a00712bdde5a4652ab5c9b0c04cbeeec

5 years agoDo not animate wallpaper when wakeAndUnlock
Lucas Dupin [Wed, 17 Jul 2019 16:49:52 +0000 (09:49 -0700)]
Do not animate wallpaper when wakeAndUnlock

Fixes: 137536016
Test: press power to go to lock scree <-> aod
Test: unlock with fingerprint
Test: trigger AOD2 pulse (look at wallpaper animation)
Test: atest DozeWallpaperStateTest
Change-Id: I46574609a00712bdde5a4652ab5c9b0c04cbeeec
Merged-In: I46574609a00712bdde5a4652ab5c9b0c04cbeeec

5 years agoMerge "Do not play "lock" anim right after showing kg" into qt-r1-dev
TreeHugger Robot [Thu, 18 Jul 2019 01:08:03 +0000 (01:08 +0000)]
Merge "Do not play "lock" anim right after showing kg" into qt-r1-dev

5 years agoMerge "Fix CTS case failed in CtsAutoFillServiceTestCases" into qt-dev
shitian.ma [Thu, 18 Jul 2019 00:59:14 +0000 (17:59 -0700)]
Merge "Fix CTS case failed in CtsAutoFillServiceTestCases" into qt-dev
am: 378702d8a4

Change-Id: I120efb0217d0d0e1a0ae378621ae0aabc0fde408

5 years agoCompute policy for read-external-storage for uid
Philip P. Moltmann [Thu, 18 Jul 2019 00:51:19 +0000 (17:51 -0700)]
Compute policy for read-external-storage for uid
am: f75bb77052

Change-Id: I4519841cf18364b298b3cc127c133ca732a76899

5 years agoMerge "Fix CTS case failed in CtsAutoFillServiceTestCases" into qt-dev
TreeHugger Robot [Thu, 18 Jul 2019 00:19:52 +0000 (00:19 +0000)]
Merge "Fix CTS case failed in CtsAutoFillServiceTestCases" into qt-dev

5 years agoDo not play "lock" anim right after showing kg
Lucas Dupin [Wed, 17 Jul 2019 22:28:18 +0000 (15:28 -0700)]
Do not play "lock" anim right after showing kg

Let's not play the lock icon animation if the keyguard had just
become visible. Otherwise it will look like we're locking the phone,
and it was already locked earlier.

Test: manual
Fixes: 137691015
Change-Id: I2486cfff3efbbb30d23ce4b68962dd352a2e60b7

5 years agoMerge "Don't assume SYSTEM is current user on boot" into qt-r1-dev
TreeHugger Robot [Wed, 17 Jul 2019 20:53:20 +0000 (20:53 +0000)]
Merge "Don't assume SYSTEM is current user on boot" into qt-r1-dev

5 years agoMerge "Reduce duration of AOD headsup" into qt-r1-dev
TreeHugger Robot [Wed, 17 Jul 2019 20:35:30 +0000 (20:35 +0000)]
Merge "Reduce duration of AOD headsup" into qt-r1-dev

5 years agoMerge "Fix sim pin on DSDS" into qt-r1-dev
Jordan Liu [Wed, 17 Jul 2019 20:28:37 +0000 (20:28 +0000)]
Merge "Fix sim pin on DSDS" into qt-r1-dev

5 years agoReduce duration of AOD headsup
Lucas Dupin [Wed, 17 Jul 2019 01:48:59 +0000 (18:48 -0700)]
Reduce duration of AOD headsup

Test: manual
Fixes: 134649305
Change-Id: If8b49e2b3905c463eeab7bb66568b98f708448e2

5 years agoFix CTS case failed in CtsAutoFillServiceTestCases
shitian.ma [Thu, 11 Jul 2019 01:38:31 +0000 (09:38 +0800)]
Fix CTS case failed in CtsAutoFillServiceTestCases

The case failed due to AutofillManager can not find the ResolveInfo of AutofillCompatAccessibilityService.
AutofillCompatAccessibilityService is not visible for instant App.
Cts test process is working at other users. And the calling App is instant App.
So cts test process can’t get service info of AutofillCompatAccessibilityService.

Bug: 137236035
Test: run cts -m CtsAutoFillServiceTestCases
Change-Id: I4dffc615ea1d8290bc02e51a9aa055fa0ead467f

5 years agoCompute policy for read-external-storage for uid
Philip P. Moltmann [Wed, 17 Jul 2019 15:35:47 +0000 (08:35 -0700)]
Compute policy for read-external-storage for uid

So that when sharding a uid all packages have the same policy.

Otherwise one app might want to set the app-op to a different state than
another app in the same uid which will lead to a loop where the two apps
fight.

Test: atest --test-mapping frameworks/base/services/core/java/com/android/server/policy
Fixes: 136129296
Change-Id: I673342f4513b35854faaab993fc4233fe19217d0

5 years agoMerge "Allow System ChooserActivity to start home activity" into qt-r1-dev
TreeHugger Robot [Wed, 17 Jul 2019 14:48:19 +0000 (14:48 +0000)]
Merge "Allow System ChooserActivity to start home activity" into qt-r1-dev

5 years agoMerge "Add cleanup method to FalsingManager to prevent memory leaks." into qt-r1-dev
Dave Mankoff [Wed, 17 Jul 2019 14:21:24 +0000 (14:21 +0000)]
Merge "Add cleanup method to FalsingManager to prevent memory leaks." into qt-r1-dev

5 years agoMerge "Improved the bypass animation" into qt-r1-dev
TreeHugger Robot [Wed, 17 Jul 2019 09:51:27 +0000 (09:51 +0000)]
Merge "Improved the bypass animation" into qt-r1-dev

5 years agoMerge "Synchronize and slow down fade in" into qt-r1-dev
Lucas Dupin [Wed, 17 Jul 2019 07:25:31 +0000 (07:25 +0000)]
Merge "Synchronize and slow down fade in" into qt-r1-dev

5 years agoImproved the bypass animation
Selim Cinek [Sun, 7 Jul 2019 07:40:38 +0000 (00:40 -0700)]
Improved the bypass animation

The lock icon and the scrim now fade with the same quick unlock animation
like the rest of the bypass, which completes the experience

Fixes: 134952761
Change-Id: Id164914e0e8d780e626acb28922c2084257620f9

5 years agoAllow System ChooserActivity to start home activity
Louis Chang [Mon, 15 Jul 2019 02:41:32 +0000 (10:41 +0800)]
Allow System ChooserActivity to start home activity

We should allow the system ChooserActivity [1] to start
home activities as the same reason we did for ResolverActivity.

[1] Ia50e21e2f8c6b6d0ed7207625e3b5aef214396bb.

Bug: 136270213
Test: atest ActivityRecordTests
Change-Id: I8e6db9e156af151e37db2eb6f03332a15e22b0f0

5 years agoMerge "NotificationManager: Fix notifications in VoIP call" into qt-r1-dev
Eric Laurent [Wed, 17 Jul 2019 02:48:49 +0000 (02:48 +0000)]
Merge "NotificationManager: Fix notifications in VoIP call" into qt-r1-dev

5 years agoSynchronize and slow down fade in
Lucas Dupin [Tue, 16 Jul 2019 18:56:53 +0000 (11:56 -0700)]
Synchronize and slow down fade in

Use slower animation when turning on the display, and request
a black frame when going to sleep.

Fixes: 137398766
Test: Wake up with presence sensor
Test: Wake up by uncovering prox sensor
Test: Wake up by pressing power (with AOD on or off)
Test: Receive notification from AOD
Change-Id: Ic3201e4c6b9de3d1322c9473897bca21fe63f773

5 years agoMerge "Dismiss bouncer properly on SHADE_LOCKED" into qt-r1-dev
Lucas Dupin [Wed, 17 Jul 2019 00:23:53 +0000 (00:23 +0000)]
Merge "Dismiss bouncer properly on SHADE_LOCKED" into qt-r1-dev

5 years agoNotificationManager: Fix notifications in VoIP call
Eric Laurent [Sat, 13 Jul 2019 01:26:29 +0000 (18:26 -0700)]
NotificationManager: Fix notifications in VoIP call

Also take VoIP call into account in addition to voice calls in the
logic overriding playback of notification sounds while in call.

Bug: 133533134
Test: place a Duo call and receive notifications
Change-Id: Idd70b62b439e9f6ec87e15838e2017223fb0865e

5 years agoMerge "Add ability to select composition color space for a given color mode" into...
Daniel Solomon [Tue, 16 Jul 2019 22:28:00 +0000 (22:28 +0000)]
Merge "Add ability to select composition color space for a given color mode" into qt-r1-dev

5 years agoMerge "GestureNav: make reportSystemGestureExclusionChanged oneway" into qt-dev
Adrian Roos [Tue, 16 Jul 2019 22:00:35 +0000 (15:00 -0700)]
Merge "GestureNav: make reportSystemGestureExclusionChanged oneway" into qt-dev
am: d4a50e6e72

Change-Id: I9f837989727c263517aa0d2f3dfd47a830f6170c

5 years agoFix sim pin on DSDS
Jordan Liu [Tue, 16 Jul 2019 00:05:20 +0000 (17:05 -0700)]
Fix sim pin on DSDS

Fixes the issue where only one SIM's PIN is checked when unlocking.
This undoes behavior changes introduced in aosp/769050

Test: manually verify with single and dual SIM that SIM PIN functions
correctly with different lockscreen settings
Bug: 135496265
Change-Id: I8db4565c4e5d5bcfb166b5962e878531a84dbafb

5 years agoMerge "GestureNav: make reportSystemGestureExclusionChanged oneway" into qt-dev
TreeHugger Robot [Tue, 16 Jul 2019 21:27:54 +0000 (21:27 +0000)]
Merge "GestureNav: make reportSystemGestureExclusionChanged oneway" into qt-dev

5 years agoDismiss bouncer properly on SHADE_LOCKED
Lucas Dupin [Tue, 16 Jul 2019 20:46:25 +0000 (13:46 -0700)]
Dismiss bouncer properly on SHADE_LOCKED

Test: atest BiometricsUnlockControllerTest
Test: dismiss bouncer after hitting reply button
Test: hit back on bouncer on shade_locked
Test: tap on padlock on camera app, swipe up to retry
Bug: 134096479
Fixes: 137517676
Change-Id: I12e5bbd2c5ceac642a281fc16c5398e09e65ca9d

5 years agoGestureNav: make reportSystemGestureExclusionChanged oneway
Adrian Roos [Tue, 16 Jul 2019 16:35:15 +0000 (18:35 +0200)]
GestureNav: make reportSystemGestureExclusionChanged oneway

When the WindowManager lock is contended, reportSystemGestureExclusionChanged can cause
jank. Making it oneway avoids this.

Fixes: 137650591
Test: make droid
Change-Id: I5d96b7e2225745b146014ad11cafaf0ad9a1b734
Merged-In: I5d96b7e2225745b146014ad11cafaf0ad9a1b734

5 years agoAdd cleanup method to FalsingManager to prevent memory leaks.
Dave Mankoff [Tue, 16 Jul 2019 19:07:01 +0000 (15:07 -0400)]
Add cleanup method to FalsingManager to prevent memory leaks.

When the FalsingManager gets reloaded (due to plugins) it can
leak its listeners and callbacks. This change fixes that.

Bug: 136351609
Test: manual
Change-Id: I2b52d018d478dbcad4ecb7d8a5b361638d5c5877
Merged-In: I2b52d018d478dbcad4ecb7d8a5b361638d5c5877

5 years agoDon't assume SYSTEM is current user on boot
Soonil Nagarkar [Fri, 12 Jul 2019 16:56:26 +0000 (09:56 -0700)]
Don't assume SYSTEM is current user on boot

Auto and chrome can apparently use different users at boot.

Bug: 137204067
Test: manual
Change-Id: I61371bcc167a39e6344fe457dca56f0003910ce8
(cherry picked from commit db49bea1532a87639368084c1a6ee6266e721fbb)

5 years agoMerge "Fix issue where sensors wouldn't be reregistered" into qt-r1-dev
TreeHugger Robot [Tue, 16 Jul 2019 18:53:45 +0000 (18:53 +0000)]
Merge "Fix issue where sensors wouldn't be reregistered" into qt-r1-dev

5 years agoAdd ability to select composition color space for a given color mode
Daniel Solomon [Thu, 11 Jul 2019 23:29:33 +0000 (16:29 -0700)]
Add ability to select composition color space for a given color mode

Add the ability to specify a desired display composition color space
(sRGB, P3, etc.) for a given color mode (Natural, Boosted, etc.).
If no composition color space is specified, the composition color space
is unchanged.

Bug: 137140317
Bug: 137053654
Test: atest FrameworksMockingServicesTests:DisplayTransformManagerTest
Test: atest FrameworksServicesTests:ColorDisplayServiceTest
Change-Id: I37b01fa160d3965cea341781c0aa656f57e0f68f

5 years agoMerge "WiredAccessoryManager: fix connected state logic for Extcon" into qt-r1-dev
Eric Laurent [Tue, 16 Jul 2019 17:08:55 +0000 (17:08 +0000)]
Merge "WiredAccessoryManager: fix connected state logic for Extcon" into qt-r1-dev

5 years agoMerge "Don't hold lock when dumping activities of app side" into qt-r1-dev
TreeHugger Robot [Tue, 16 Jul 2019 16:47:00 +0000 (16:47 +0000)]
Merge "Don't hold lock when dumping activities of app side" into qt-r1-dev

5 years agoFix issue where sensors wouldn't be reregistered
Lucas Dupin [Mon, 15 Jul 2019 22:49:54 +0000 (15:49 -0700)]
Fix issue where sensors wouldn't be reregistered

Test: manual
Test: atest DozeTriggersTest
Fixes: 137220997
Change-Id: Ic983b64745fd1fa171059d08557e92ed52060f9e

5 years agoMerge "AM: make isHighEndGfx TestApi" into qt-dev
Adrian Roos [Tue, 16 Jul 2019 16:30:16 +0000 (09:30 -0700)]
Merge "AM: make isHighEndGfx TestApi" into qt-dev
am: 2ac934280c

Change-Id: I6a9c2ce91b4971cab32cabdd5d25e9edc29e64b5

5 years agoMerge "Do not let device sleep after successful auth" into qt-r1-dev
Lucas Dupin [Tue, 16 Jul 2019 16:27:23 +0000 (16:27 +0000)]
Merge "Do not let device sleep after successful auth" into qt-r1-dev

5 years agoMerge "AM: make isHighEndGfx TestApi" into qt-dev
TreeHugger Robot [Tue, 16 Jul 2019 16:11:19 +0000 (16:11 +0000)]
Merge "AM: make isHighEndGfx TestApi" into qt-dev

5 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

5 years agoDo not detach children of starting windows
Jorim Jaggi [Tue, 16 Jul 2019 13:03:14 +0000 (15:03 +0200)]
Do not detach children of starting windows

In case we need to relaunch an activity, we detach it's children
just about at the same time when we add the splash screen.
However, detaching will have the side effect that all transactions
will be ignored so the starting window will never become visible,
leading to an ugly hole.

I don't think there is any good reason to detach the children of
the starting window

This is a regression from the task snapshot scaling change, so
it's important to fix.

Test: Open app, go home, toggle battery saver, reopen app
Fixes: 137284423
Change-Id: Id2f4e5e4225c1c693b1fbcb5b0d7cf4b17f9a6e7

5 years agoDon't hold lock when dumping activities of app side
Riddle Hsu [Tue, 16 Jul 2019 10:19:01 +0000 (18:19 +0800)]
Don't hold lock when dumping activities of app side

Although TransferPipe has a 5s timeout, there may have
several activities take long time do dump that may lead
to system no response.

Fix: 135770637
Test: Launch an activity which overrides Activity#dump
      and sleeps 5s in the dump method. Enter command:
      "adb shell dumpsys activity all", then check the
      interaction with system UI is still responsive.

Change-Id: Id81463eee0178065a0fb982a6e599bee5f15dd81

5 years agoPasswordSlotManager: Fix incorrect string comparison.
David Anderson [Sat, 13 Jul 2019 01:41:19 +0000 (18:41 -0700)]
PasswordSlotManager: Fix incorrect string comparison.

Bug: 135721162
Test: cts-on-gsi -m CtsWindowManagerDeviceTestCases
Change-Id: I2a11dd6dfd44e10400e40ebbaa2ed597de95cdcb
Merged-In: I2a11dd6dfd44e10400e40ebbaa2ed597de95cdcb