OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fix unwanted PIP window dismissal when moving to the bottom" into pi-dev
Tracy Zhou [Wed, 30 May 2018 04:44:31 +0000 (21:44 -0700)]
Merge "Fix unwanted PIP window dismissal when moving to the bottom" into pi-dev
am: 5a0c1e1101

Change-Id: I5544c8b5e7b79a9b8002be53a04cf0af48c7f050

6 years agoMerge "Update mGlobalBluetoothA2dpOn when active device changed" into pi-dev
Sungsoo Lim [Wed, 30 May 2018 04:39:47 +0000 (21:39 -0700)]
Merge "Update mGlobalBluetoothA2dpOn when active device changed" into pi-dev
am: babf190396

Change-Id: I7b4dba8612a8e58172d210f6f0764079cfc98af1

6 years agoMerge "Fix unwanted PIP window dismissal when moving to the bottom" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 04:30:49 +0000 (04:30 +0000)]
Merge "Fix unwanted PIP window dismissal when moving to the bottom" into pi-dev

6 years agoMerge "Update mGlobalBluetoothA2dpOn when active device changed" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 03:26:22 +0000 (03:26 +0000)]
Merge "Update mGlobalBluetoothA2dpOn when active device changed" into pi-dev

6 years agoMerge "Add default phone/sms to battery whitelist apps." into pi-dev
Fan Zhang [Wed, 30 May 2018 03:20:08 +0000 (20:20 -0700)]
Merge "Add default phone/sms to battery whitelist apps." into pi-dev
am: 89722d829e

Change-Id: Ide1af36c0e0b70d93cca44a4193f7e2a242d2de5

6 years ago[automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serializat...
Jakub Pawlowski [Wed, 30 May 2018 03:14:57 +0000 (20:14 -0700)]
[automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serialization am: 459888be84 am: bc45dc9536  -s ours am: 2d6209f71d  -s ours
am: e6cbbd4994  -s ours

Change-Id: I0cebfeee832964a286c6b31873368dbf90a8a6f6

6 years agoMerge "Add default phone/sms to battery whitelist apps." into pi-dev
TreeHugger Robot [Wed, 30 May 2018 03:08:19 +0000 (03:08 +0000)]
Merge "Add default phone/sms to battery whitelist apps." into pi-dev

6 years ago[automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serializat...
Jakub Pawlowski [Wed, 30 May 2018 03:05:21 +0000 (20:05 -0700)]
[automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serialization am: 459888be84 am: bc45dc9536  -s ours
am: 2d6209f71d  -s ours

Change-Id: I0b7af0f19142f0aa5a039de6db22f292d16c76df

6 years agoMerge "Build java.obex with java_sdk_library" am: ad769993a9
Sundong Ahn [Wed, 30 May 2018 02:54:35 +0000 (19:54 -0700)]
Merge "Build java.obex with java_sdk_library" am: ad769993a9
am: efb4ce221e

Change-Id: I31f65699193f026c7ed64a182b360791eee35608

6 years agoMerge "Do not request focus during wake and unlock" into pi-dev
Lucas Dupin [Wed, 30 May 2018 02:16:55 +0000 (19:16 -0700)]
Merge "Do not request focus during wake and unlock" into pi-dev
am: 58fc12e8fa

Change-Id: If45bd1074dc22c732074cfc59896614d4b28ab22

6 years agoMerge "Fixed an issue where the reply icon was disabled" into pi-dev
Selim Cinek [Wed, 30 May 2018 02:04:43 +0000 (19:04 -0700)]
Merge "Fixed an issue where the reply icon was disabled" into pi-dev
am: 1c6b809579

Change-Id: Ib9593bdbf872a9146a877b3ec22c101001b2ad13

6 years agoMerge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev
Selim Cinek [Wed, 30 May 2018 01:59:25 +0000 (18:59 -0700)]
Merge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev
am: d982210d89

Change-Id: I4b29f82656e3b3402f89cb5d66e71955287ac0b8

6 years agoMerge "Do not request focus during wake and unlock" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 01:55:18 +0000 (01:55 +0000)]
Merge "Do not request focus during wake and unlock" into pi-dev

6 years ago[automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serializat...
Jakub Pawlowski [Wed, 30 May 2018 01:49:17 +0000 (18:49 -0700)]
[automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serialization am: 459888be84
am: bc45dc9536  -s ours

Change-Id: I087f8de352c5c61db32d95ee8c47b6ab0bd171e2

6 years agoUpdate mGlobalBluetoothA2dpOn when active device changed
Sungsoo Lim [Wed, 23 May 2018 15:28:27 +0000 (00:28 +0900)]
Update mGlobalBluetoothA2dpOn when active device changed

Also do not setForceUse when a2dp config without change.

Bug: 79982460
Test: manual
Change-Id: I789b03c00366f9fd78fd3a0305fdf2c11dfc23d2

6 years agoMerge "Build java.obex with java_sdk_library"
Sundong Ahn [Wed, 30 May 2018 01:38:07 +0000 (18:38 -0700)]
Merge "Build java.obex with java_sdk_library"
am: ad769993a9

Change-Id: I3a895f10880efb9ae916376f62d059941a25e417

6 years agoMerge "Fixed an issue where the reply icon was disabled" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 01:29:40 +0000 (01:29 +0000)]
Merge "Fixed an issue where the reply icon was disabled" into pi-dev

6 years agoMerge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 00:52:32 +0000 (00:52 +0000)]
Merge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev

6 years agoFix bad type for txPower in PeriodicAdvertisingReport serialization
Jakub Pawlowski [Wed, 30 May 2018 00:50:07 +0000 (17:50 -0700)]
Fix bad type for txPower in PeriodicAdvertisingReport serialization
am: 459888be84

Change-Id: Ibccfb97e0b41a9ef6af9fcb1da23870dbff7f9b9

6 years agoMerge "Build java.obex with java_sdk_library"
Treehugger Robot [Wed, 30 May 2018 00:20:36 +0000 (00:20 +0000)]
Merge "Build java.obex with java_sdk_library"

6 years agoBuild java.obex with java_sdk_library
Sundong Ahn [Fri, 18 May 2018 00:58:11 +0000 (09:58 +0900)]
Build java.obex with java_sdk_library

javax.obex is built with java_sdk_library and api files are added by
running "make update-api".
Remove java.obex is from platform.xml, since it will be generated
automatically by soong when the library is built with java_sdk_library.

Bug:77577799
Test: make -j
      make checkapi

Change-Id: Ib94955e62582ffbdfc7eb88cd0e494c61757c7aa

6 years agoFixed an issue where the reply icon was disabled
Selim Cinek [Wed, 30 May 2018 00:01:05 +0000 (17:01 -0700)]
Fixed an issue where the reply icon was disabled

Because it was disabled by an earlier update, a subsequent update
needs to enable the reply icon again, as the pending intent
might be valid again.

Change-Id: Ic562b399184e37c3870e1da7dc5d15baca43dc54
Fixes: 80250615
Test: add multiple messages where each one cancels the previous pendinging intent, observe clickable reply icon

6 years agoFix unwanted PIP window dismissal when moving to the bottom
Tracy Zhou [Tue, 29 May 2018 22:36:16 +0000 (15:36 -0700)]
Fix unwanted PIP window dismissal when moving to the bottom

Display#getSize() returns screen size excluding certain system decor
elements. We should get a more accurate size using Display#getRealSize()
minus bottom inset instead for calculating whether the PIP window
should be dismissed.

Fixes: 80367557
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests and manual test
Change-Id: I20cd8ccfa53bd7cc1cb7176280a01dbcb64b5745

6 years agoMerge "Update call log permission group icon." into pi-dev
Fan Zhang [Tue, 29 May 2018 23:41:36 +0000 (16:41 -0700)]
Merge "Update call log permission group icon." into pi-dev
am: 9a184cb7f3

Change-Id: I4d8ce9671c310e8b6c5b7ca94dd341dba8c2c449

6 years agoMerge "Update call log permission group icon." into pi-dev
TreeHugger Robot [Tue, 29 May 2018 23:23:18 +0000 (23:23 +0000)]
Merge "Update call log permission group icon." into pi-dev

6 years agoDo not request focus during wake and unlock
Lucas Dupin [Tue, 29 May 2018 22:41:03 +0000 (15:41 -0700)]
Do not request focus during wake and unlock

Focus was being required because the expansion of the panel
would trigger onFullyShown. Bouncer shouldn't need any
translation during WAKE_AND_UNLOCK.

Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarKeyguardViewManagerTest.java
Test: go/sysui-bouncer-tests
Change-Id: I6d5c17ba89e14384859cf7fc91ca5cc2815dbfd9
Fixes: 80345339

6 years agoFix bad type for txPower in PeriodicAdvertisingReport serialization
Jakub Pawlowski [Fri, 8 Dec 2017 06:56:03 +0000 (22:56 -0800)]
Fix bad type for txPower in PeriodicAdvertisingReport serialization

Bug: 69634768
Test: compilation
Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2
Merged-In: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2

6 years agoAdd default phone/sms to battery whitelist apps.
Fan Zhang [Tue, 29 May 2018 17:55:51 +0000 (10:55 -0700)]
Add default phone/sms to battery whitelist apps.

This is to prevent essential default apps from being restricted in using
battery in the background.

Change-Id: Iac9db9c425a477680e41f73b2c0e7bc4e161ce9e
Merged-In: Iac9db9c425a477680e41f73b2c0e7bc4e161ce9e
Fixes: 76435804
Bug: 80428049
Test: robotests

6 years agoFixed the animations of Messaging Layout, leading to overlaps
Selim Cinek [Thu, 24 May 2018 23:37:22 +0000 (16:37 -0700)]
Fixed the animations of Messaging Layout, leading to overlaps

The animations could go wild at times, leading to overlapping
messages and ugly renderings. This improves the animations
overall and fixes those cases.

Test: add messages, observe animations
Fixes: 78114531
Fixes: 80409521
Change-Id: I6f21b87706ccc2e85f1edbd9489e4bf7e686d7d8

6 years agoMerge "Disable battery saver tron log by default" into pi-dev
Makoto Onuki [Tue, 29 May 2018 22:29:11 +0000 (15:29 -0700)]
Merge "Disable battery saver tron log by default" into pi-dev
am: dfb99b257b

Change-Id: I0d894c09ce1d6a96e60160ebd1246cdda4d9f9be

6 years agoGuard pre-O apps from malicious startForegroundService()
Christopher Tate [Tue, 29 May 2018 22:23:25 +0000 (15:23 -0700)]
Guard pre-O apps from malicious startForegroundService()
am: 0a82690868

Change-Id: I4dbab603ba2d42b5301539cc3110bef02868ee1e

6 years agoMerge "Extend startForegroundService() fg transition timeout to 10 seconds" into...
Christopher Tate [Tue, 29 May 2018 22:20:59 +0000 (15:20 -0700)]
Merge "Extend startForegroundService() fg transition timeout to 10 seconds" into pi-dev
am: 3ec17d31c5

Change-Id: I9a3a0d8e9fa348018a36c1e306aab822df377aa0

6 years agoMerge "Remove downgrade check for targetSandboxLevel" into pi-dev
Chad Brubaker [Tue, 29 May 2018 22:15:11 +0000 (15:15 -0700)]
Merge "Remove downgrade check for targetSandboxLevel" into pi-dev
am: d55f0108c5

Change-Id: I5c42e8d96666b4a3bbe942a4a4e59bd95a4028ae

6 years agoMerge "Disable battery saver tron log by default" into pi-dev
Makoto Onuki [Tue, 29 May 2018 22:12:26 +0000 (22:12 +0000)]
Merge "Disable battery saver tron log by default" into pi-dev

6 years agoGuard pre-O apps from malicious startForegroundService()
Christopher Tate [Fri, 25 May 2018 22:15:44 +0000 (15:15 -0700)]
Guard pre-O apps from malicious startForegroundService()

Don't enforce the startForegroundService() requirement to transition to
foreground when the app hosting the service doesn't yet target the API
level at which this semantic was introduced.

Bug: 79377529
Test: manual (ApiDemos is pre-O)
Test: atest CtsAndroidAppTestCases
Change-Id: Ib0b970211d4ee6a86e22c89aff47b05403907ed5

6 years agoMerge "Extend startForegroundService() fg transition timeout to 10 seconds" into...
TreeHugger Robot [Tue, 29 May 2018 21:55:52 +0000 (21:55 +0000)]
Merge "Extend startForegroundService() fg transition timeout to 10 seconds" into pi-dev

6 years agoMerge "Remove downgrade check for targetSandboxLevel" into pi-dev
Chad Brubaker [Tue, 29 May 2018 21:51:33 +0000 (21:51 +0000)]
Merge "Remove downgrade check for targetSandboxLevel" into pi-dev

6 years agoMerge "Enable WM.DEBUG_WALLPAPER_LIGHT logs" into pi-dev
Wale Ogunwale [Tue, 29 May 2018 21:42:35 +0000 (14:42 -0700)]
Merge "Enable WM.DEBUG_WALLPAPER_LIGHT logs" into pi-dev
am: c71ef2bc86

Change-Id: Ia4c4a6d146944040c28c16289392485d859d0507

6 years agoMerge "Enable WM.DEBUG_WALLPAPER_LIGHT logs" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 21:33:03 +0000 (21:33 +0000)]
Merge "Enable WM.DEBUG_WALLPAPER_LIGHT logs" into pi-dev

6 years agoMerge "Add per-device defaults for VIBRATE_WHEN_RINGING" into pi-dev
Michael Wright [Tue, 29 May 2018 21:31:36 +0000 (14:31 -0700)]
Merge "Add per-device defaults for VIBRATE_WHEN_RINGING" into pi-dev
am: eb2fdbb3c9

Change-Id: Iaff15045e39534124f4a78fa34e0319df9f111f5

6 years agoUpdate call log permission group icon.
Fan Zhang [Tue, 29 May 2018 21:22:16 +0000 (14:22 -0700)]
Update call log permission group icon.

Change-Id: I605ece95cd29405b9d63692d038f36390ac367ef
Fixes: 78230210
Test: visual

6 years agoMerge "Add per-device defaults for VIBRATE_WHEN_RINGING" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 21:20:24 +0000 (21:20 +0000)]
Merge "Add per-device defaults for VIBRATE_WHEN_RINGING" into pi-dev

6 years agoMerge "[QS] Disallow TYPE_VIEW_SELECTED events" into pi-dev
Rohan Shah [Tue, 29 May 2018 21:07:56 +0000 (14:07 -0700)]
Merge "[QS] Disallow TYPE_VIEW_SELECTED events" into pi-dev
am: a8464603ed

Change-Id: I546936b695ae0355a92aa3dd6131e369f784b98e

6 years agoMerge "Update quick scrub tip according to the latest mock." into pi-dev
Tracy Zhou [Tue, 29 May 2018 21:00:41 +0000 (14:00 -0700)]
Merge "Update quick scrub tip according to the latest mock." into pi-dev
am: d7a053448b

Change-Id: Ifb83a3c334efe749c79a25f1e8c86a518b93df2c

6 years agoExtend startForegroundService() fg transition timeout to 10 seconds
Christopher Tate [Fri, 25 May 2018 20:12:12 +0000 (13:12 -0700)]
Extend startForegroundService() fg transition timeout to 10 seconds

Change-Id: I5e09205218e5ddb2ff536f7f5c20ac31c0c03bb1
Fixes: 80309073
Test: atest CtsAndroidAppTestCases

6 years agoMerge "[QS] Disallow TYPE_VIEW_SELECTED events" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 20:35:54 +0000 (20:35 +0000)]
Merge "[QS] Disallow TYPE_VIEW_SELECTED events" into pi-dev

6 years agoMerge "Add animation to running animation list before starting." into pi-dev
Chavi Weingarten [Tue, 29 May 2018 20:32:58 +0000 (13:32 -0700)]
Merge "Add animation to running animation list before starting." into pi-dev
am: 908610fd74

Change-Id: Ia3b5ec7242ac438bcbe71cdf53ea5d45e4b57b15

6 years agoMerge "Update quick scrub tip according to the latest mock." into pi-dev
TreeHugger Robot [Tue, 29 May 2018 20:26:23 +0000 (20:26 +0000)]
Merge "Update quick scrub tip according to the latest mock." into pi-dev

6 years agoMerge "Fix for missing location icon" into pi-dev
Amith Yamasani [Tue, 29 May 2018 20:22:35 +0000 (13:22 -0700)]
Merge "Fix for missing location icon" into pi-dev
am: 8c4c359b25

Change-Id: I1e108f56230915e0950712a0fa2cc363e3ffbc9e

6 years agoMerge "Add animation to running animation list before starting." into pi-dev
Chavi Weingarten [Tue, 29 May 2018 20:20:20 +0000 (20:20 +0000)]
Merge "Add animation to running animation list before starting." into pi-dev

6 years agoMerge "Fix for missing location icon" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 20:09:21 +0000 (20:09 +0000)]
Merge "Fix for missing location icon" into pi-dev

6 years agoMerge "Fix regression in swiping over rotation button." into pi-dev
Winson Chung [Tue, 29 May 2018 19:59:00 +0000 (12:59 -0700)]
Merge "Fix regression in swiping over rotation button." into pi-dev
am: 287d4327cd

Change-Id: I576b5ab4c537d9fb3f221c8e2bae0339c63b7d57

6 years agoMerge "Fix regression in swiping over rotation button." into pi-dev
TreeHugger Robot [Tue, 29 May 2018 19:45:35 +0000 (19:45 +0000)]
Merge "Fix regression in swiping over rotation button." into pi-dev

6 years agoMerge "Resolve conflict between javadoc and CDD re: audio output" into pi-dev
Glenn Kasten [Tue, 29 May 2018 19:21:18 +0000 (12:21 -0700)]
Merge "Resolve conflict between javadoc and CDD re: audio output" into pi-dev
am: a5d8c3718d

Change-Id: I7cd068ce53874be19ed4a81e32b87731b0d13c35

6 years agoUpdate quick scrub tip according to the latest mock.
Tracy Zhou [Fri, 25 May 2018 07:04:57 +0000 (00:04 -0700)]
Update quick scrub tip according to the latest mock.

Mock: https://docs.google.com/presentation/d/1TCp1mREgsFAWq4hCnUaSRCpaqvDbzCVkN1mJuRMylIg/edit#slide=id.g3b3fe84fa7_15_0
Screenshot: https://screenshot.googleplex.com/HCVDEVHbdNU

Fixes: 79945911
Test: Manual test
Change-Id: I039e6d6be1b782281f7251a4bee1f3bf2bf03da3

6 years agoMerge "Resolve conflict between javadoc and CDD re: audio output" into pi-dev
Glenn Kasten [Tue, 29 May 2018 19:09:31 +0000 (19:09 +0000)]
Merge "Resolve conflict between javadoc and CDD re: audio output" into pi-dev

6 years agoMerge "Delete static versions of _book.yaml and _project.yaml." into pi-dev
Scott Main [Tue, 29 May 2018 19:00:38 +0000 (12:00 -0700)]
Merge "Delete static versions of _book.yaml and _project.yaml." into pi-dev
am: c09501807a

Change-Id: I303be2abf342ff01424715e4a5e7418a856985ef

6 years agoMerge "Enable systemui_theme feature flag" into pi-dev
Lucas Dupin [Tue, 29 May 2018 18:55:55 +0000 (11:55 -0700)]
Merge "Enable systemui_theme feature flag" into pi-dev
am: 14e605d7e9

Change-Id: I47b44fd9f95e729642b383325fbfad159fb21c26

6 years agoMerge "Catch IllegalArgumentException when calling LocationManager#requestLocationUpd...
Yu-Han Yang [Tue, 29 May 2018 18:34:02 +0000 (11:34 -0700)]
Merge "Catch IllegalArgumentException when calling LocationManager#requestLocationUpdate" into pi-dev
am: 3bc533d22f

Change-Id: I042836448e9e2fe0340de8f4044e3afc8dc3d2ff

6 years agoMerge "Delete static versions of _book.yaml and _project.yaml." into pi-dev
Scott Main [Tue, 29 May 2018 18:24:35 +0000 (18:24 +0000)]
Merge "Delete static versions of _book.yaml and _project.yaml." into pi-dev

6 years agoMerge "Enable systemui_theme feature flag" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 18:22:16 +0000 (18:22 +0000)]
Merge "Enable systemui_theme feature flag" into pi-dev

6 years agoDelete static versions of _book.yaml and _project.yaml.
Scott Main [Thu, 3 May 2018 20:47:46 +0000 (13:47 -0700)]
Delete static versions of _book.yaml and _project.yaml.

These files are used by devsite only, so are maintained in piper.

bug: 79155333
test: make ds-docs (human review)

Change-Id: I5d5662a2a401872a669dba0916b20a79bcfca7ae
(cherry picked from commit 9e64abe7d79ef6abdd9c2d65e5f3bead9138cdb4)

6 years agoMerge "Catch IllegalArgumentException when calling LocationManager#requestLocationUpd...
Yu-Han Yang [Tue, 29 May 2018 18:02:31 +0000 (18:02 +0000)]
Merge "Catch IllegalArgumentException when calling LocationManager#requestLocationUpdate" into pi-dev

6 years agoMerge "Remove direct-share target row animations and limit to one row." into pi-dev
Daniel Sandler [Tue, 29 May 2018 17:01:02 +0000 (10:01 -0700)]
Merge "Remove direct-share target row animations and limit to one row." into pi-dev
am: d8f3889b28

Change-Id: I02947ea217d0ae98f792a63fd24542aed1567afb

6 years agoMerge "Remove direct-share target row animations and limit to one row." into pi-dev
Daniel Sandler [Tue, 29 May 2018 16:46:57 +0000 (16:46 +0000)]
Merge "Remove direct-share target row animations and limit to one row." into pi-dev

6 years agoMerge "WM: Make maxAspectRatio work with display cutouts" into pi-dev
Adrian Roos [Tue, 29 May 2018 15:39:59 +0000 (08:39 -0700)]
Merge "WM: Make maxAspectRatio work with display cutouts" into pi-dev
am: ab4670351d

Change-Id: Ie91d6613784988c1910e64ff8b7fe7476a0a1a70

6 years agoMerge "Fixes a NPE in search manager in slice CTS tests." into pi-dev
Steven Wu [Tue, 29 May 2018 15:28:13 +0000 (08:28 -0700)]
Merge "Fixes a NPE in search manager in slice CTS tests." into pi-dev
am: d0545395df

Change-Id: I5411ba9cacf0fa4f9308f83d00677a23a95155da

6 years agoMerge "WM: Make maxAspectRatio work with display cutouts" into pi-dev
TreeHugger Robot [Tue, 29 May 2018 15:25:45 +0000 (15:25 +0000)]
Merge "WM: Make maxAspectRatio work with display cutouts" into pi-dev

6 years agoWM: Make maxAspectRatio work with display cutouts
Adrian Roos [Mon, 28 May 2018 16:55:38 +0000 (18:55 +0200)]
WM: Make maxAspectRatio work with display cutouts

Fixes an issue where the max aspect ratio was not correctly calculated
if there was a display cutout.

The issue was that the max aspect ratio logic assumed that nothing ever
applies a top inset (n.b. the status bar is ignored for this inset).
This is no longer true with display cutouts, which
cut into the app bounds from the top.

To make things work, we now need to grow the bounds for the app window
by that inset. Later on, the top part will be trimmed again for the
bounds reported to the app. Note that we cannot outright discard the
top part, or colored bars would cease to work.

Change-Id: I53925196a6a41736fc4748b12bbc3b8a9b0d174b
Fixes: 80248462
Test: atest AspectRatioTests

6 years agoMerge "Fixes a NPE in search manager in slice CTS tests." into pi-dev
TreeHugger Robot [Tue, 29 May 2018 15:18:04 +0000 (15:18 +0000)]
Merge "Fixes a NPE in search manager in slice CTS tests." into pi-dev

6 years agoEnable WM.DEBUG_WALLPAPER_LIGHT logs
Wale Ogunwale [Tue, 29 May 2018 14:16:05 +0000 (07:16 -0700)]
Enable WM.DEBUG_WALLPAPER_LIGHT logs

To help debug b/79664644

Bug: 79664644
Test: builds
Change-Id: I9602205bb8a7ec0427f4102f4c5c52c95cc732d4

6 years agoRemove direct-share target row animations and limit to one row.
Dan Sandler [Wed, 23 May 2018 06:13:51 +0000 (02:13 -0400)]
Remove direct-share target row animations and limit to one row.

The animation---which was responsible for causing relayouts
that would in turn bind views, which involved package
manager roundtrips---would lock out interaction with the rest of
the share sheet for at least 400ms while the animation ran
(often much longer if services were slow to start or respond).

Now the main UI is never blocked, and direct share targets
can take as long as they like (up to 2sec) before appearing.

It's really fast now, basically.

Bug: 67622422
Bug: 63521992
Test: atest com.android.internal.app.ChooserActivityTest
Change-Id: I21826e282226f2b2ce6d3d1b5862dbfc449f5918

6 years agoMerge "Track: Revert some needless differences vs upstream in Matcher.java" am: adb85...
Tobias Thierer [Tue, 29 May 2018 13:47:56 +0000 (06:47 -0700)]
Merge "Track: Revert some needless differences vs upstream in Matcher.java" am: adb8532394
am: ca97e3a29b

Change-Id: Ibf3e7fab17af69b2d7225661d29e022a933650a2

6 years agoMerge "Track: Revert some needless differences vs upstream in Matcher.java"
Tobias Thierer [Tue, 29 May 2018 13:38:18 +0000 (06:38 -0700)]
Merge "Track: Revert some needless differences vs upstream in Matcher.java"
am: adb8532394

Change-Id: Iec1fc62d8e3fbc55f4a835bf664c908c9ec30b59

6 years agoMerge "Track: Revert some needless differences vs upstream in Matcher.java"
Tobias Thierer [Tue, 29 May 2018 12:11:58 +0000 (12:11 +0000)]
Merge "Track: Revert some needless differences vs upstream in Matcher.java"

6 years agoMerge "apf: Increase test coverage of LDDW / STDW" am: e03b8ee7e0
Bernie Innocenti [Tue, 29 May 2018 04:29:32 +0000 (21:29 -0700)]
Merge "apf: Increase test coverage of LDDW / STDW" am: e03b8ee7e0
am: 0bf54f4a2e

Change-Id: Ifa016ce8a4fcb3a43a03d0f1126c01638cbf21ef

6 years agoFix for missing location icon
Amith Yamasani [Tue, 29 May 2018 03:50:48 +0000 (20:50 -0700)]
Fix for missing location icon

OpEntry.duration was being used to indicate that the
operation was still running if -1 is returned. A recent
change caused a regression.

Adding a new mRunning field in OpEntry to explicitly
hold the running state, even when partial duration is
updated.

Change-Id: Ib29f4c903f990aaa202e84f964959aedfc24abdb
Fixes: 80242152
Test: atest FrameworksServicesTests:AppOpsActiveWatcherTest
Test: Launch maps and verify the location icon is visible
      in the status bar

6 years agoMerge "apf: Increase test coverage of LDDW / STDW"
Bernie Innocenti [Tue, 29 May 2018 03:35:33 +0000 (20:35 -0700)]
Merge "apf: Increase test coverage of LDDW / STDW"
am: e03b8ee7e0

Change-Id: Ibc1a443c1c3a34edde835361e538a8d9cb8addb9

6 years agoMerge "apf: Increase test coverage of LDDW / STDW"
Treehugger Robot [Tue, 29 May 2018 02:33:22 +0000 (02:33 +0000)]
Merge "apf: Increase test coverage of LDDW / STDW"

6 years agoMerge "Do not setForceUse when a2dp config without change" am: 8a984b9f08
zengjing [Mon, 28 May 2018 18:55:55 +0000 (11:55 -0700)]
Merge "Do not setForceUse when a2dp config without change" am: 8a984b9f08
am: a49ca727be

Change-Id: I9b66aabf3ab2dd8352a9fdb8500384ff6988ab74

6 years agoMerge "Do not setForceUse when a2dp config without change"
zengjing [Mon, 28 May 2018 18:00:16 +0000 (11:00 -0700)]
Merge "Do not setForceUse when a2dp config without change"
am: 8a984b9f08

Change-Id: I644087265717458cb2ffa6bb20d29d90690c0022

6 years agoMerge "Do not setForceUse when a2dp config without change"
Treehugger Robot [Mon, 28 May 2018 17:00:50 +0000 (17:00 +0000)]
Merge "Do not setForceUse when a2dp config without change"

6 years agoMerge "WindowInsets: Never dispatch negative insets" into pi-dev
Adrian Roos [Mon, 28 May 2018 14:51:31 +0000 (07:51 -0700)]
Merge "WindowInsets: Never dispatch negative insets" into pi-dev
am: 8997b7e4c9

Change-Id: Ibe1e0f84a649be077a4bea11ac31b9397b964c48

6 years agoMerge "WindowInsets: Never dispatch negative insets" into pi-dev
Adrian Roos [Mon, 28 May 2018 14:40:20 +0000 (14:40 +0000)]
Merge "WindowInsets: Never dispatch negative insets" into pi-dev

6 years agoMerge "Do not call finishKeyguardDrawn with PWM's mlock" am: 1c3681fe7c
Jorim Jaggi [Mon, 28 May 2018 12:53:37 +0000 (05:53 -0700)]
Merge "Do not call finishKeyguardDrawn with PWM's mlock" am: 1c3681fe7c
am: 34e4c974aa

Change-Id: I9dcc29873ecb7866343fb733ca700f2a5a757853

6 years agoMerge "Do not call finishKeyguardDrawn with PWM's mlock"
Jorim Jaggi [Mon, 28 May 2018 11:59:24 +0000 (04:59 -0700)]
Merge "Do not call finishKeyguardDrawn with PWM's mlock"
am: 1c3681fe7c

Change-Id: I25a21fb44cddbbee9bc251d13a476a5d9fdfbe90

6 years agoMerge "Do not call finishKeyguardDrawn with PWM's mlock"
Jorim Jaggi [Mon, 28 May 2018 10:53:30 +0000 (10:53 +0000)]
Merge "Do not call finishKeyguardDrawn with PWM's mlock"

6 years agoMerge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev
Hongwei Wang [Sun, 27 May 2018 00:06:39 +0000 (17:06 -0700)]
Merge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev
am: 6de8729657

Change-Id: Ia61b80bf582f14108417d640ea135ab51988989a

6 years agoMerge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev
Hongwei Wang [Sat, 26 May 2018 23:55:19 +0000 (23:55 +0000)]
Merge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev

6 years agoTrack: Revert some needless differences vs upstream in Matcher.java
Tobias Thierer [Sat, 26 May 2018 15:20:20 +0000 (16:20 +0100)]
Track: Revert some needless differences vs upstream in Matcher.java

Android Matcher.start(int) declared "throws IllegalStateException",
which is correct but redundant. Upstream OpenJDK8u121-b13 does not
have this declaration. Another CL in this topic drops the declaration,
without changing behavior.

Bug: 35910877
Test: Treehugger

Change-Id: I59778f13f0df8bd4112af4edc25ee5a93084ae35

6 years agoMerge "Dump proxy debug info when exceeding proxy limit." into pi-dev
Martijn Coenen [Sat, 26 May 2018 09:19:18 +0000 (02:19 -0700)]
Merge "Dump proxy debug info when exceeding proxy limit." into pi-dev
am: 879d09f946

Change-Id: I02d14f682c6476b703d160dab911a3afc14af627

6 years agoMerge "Dump proxy debug info when exceeding proxy limit." into pi-dev
TreeHugger Robot [Sat, 26 May 2018 09:05:14 +0000 (09:05 +0000)]
Merge "Dump proxy debug info when exceeding proxy limit." into pi-dev

6 years agoCatch IllegalArgumentException when calling
Yu-Han Yang [Thu, 24 May 2018 17:29:39 +0000 (10:29 -0700)]
Catch IllegalArgumentException when calling
LocationManager#requestLocationUpdate

- Cannot depend on LocationManager#isProviderEnabled, since it always returns
false for FLP.

Bug: 80199046
Change-Id: I9c85b8a9468bceca0620c5aff16655ed633ee36b
Fixes: 80199046
Test: Manually added a CTS test to trigger the flow in AOSP build on
device, and successfully caught the exception when requesting location
updates from NLP.

6 years agoMerge "Added TestApi to ActivityInfo.isTranslucentOrFloating" into pi-dev
Wale Ogunwale [Sat, 26 May 2018 02:43:48 +0000 (19:43 -0700)]
Merge "Added TestApi to ActivityInfo.isTranslucentOrFloating" into pi-dev
am: 9d19487b1c

Change-Id: Ie430137f84f8b6a8d702e4ea5070ded4711da4a8

6 years agoMerge "Added TestApi to ActivityInfo.isTranslucentOrFloating" into pi-dev
TreeHugger Robot [Sat, 26 May 2018 02:23:25 +0000 (02:23 +0000)]
Merge "Added TestApi to ActivityInfo.isTranslucentOrFloating" into pi-dev

6 years agoFix regression in swiping over rotation button.
Winson Chung [Sat, 26 May 2018 01:25:52 +0000 (18:25 -0700)]
Fix regression in swiping over rotation button.

- Only send the hit target for visible buttons, otherwise we will defer
  starting the recents animation when swiping over them even if they are
  invisible.

Bug: 80320221
Test: Swipe up over hidden rotation button, ensure we don't defer the
      animation start

Change-Id: Ie6126eb25ca6cdda1dce2dccec92d83b8aca0563

6 years agoMerge "Tweak quickscrub bar visuals" into pi-dev
Winson Chung [Sat, 26 May 2018 00:37:53 +0000 (17:37 -0700)]
Merge "Tweak quickscrub bar visuals" into pi-dev
am: e2b602018f

Change-Id: Ie1cc36c9aaa35641deac620d7e5df50c9fc4e033

6 years agoMerge "Tweak quickscrub bar visuals" into pi-dev
Winson Chung [Sat, 26 May 2018 00:26:59 +0000 (00:26 +0000)]
Merge "Tweak quickscrub bar visuals" into pi-dev

6 years agoAdd animation to running animation list before starting.
chaviw [Fri, 25 May 2018 23:18:42 +0000 (16:18 -0700)]
Add animation to running animation list before starting.

The animation needs to be added to the animation list before starting
to ensure it's in the list before onAnimationEnd is called. Specifically,
this can happen if the duration is 0 since the animation will complete
very quickly. If that occurs, the animation will be added to the list
after it's been "removed" which means there will continue to be a reference
to that animation even after it's completed.

Also fix a few other issues:
1. Don't create a dim layer if stopDim is called. This causes excess
layers to be created, just so they can be destroyed.
2. Add try/catch to dim layer create so the system doesn't crash if the
layer fails to create.

Test: Enter split screen and move divider so dim layers are show and
hidden. There are no longer excess dim layers being created and leashes
are being properly dereferenced.
Fixes: 80206408

Change-Id: I7198bd5e972fce32633869697a4d26f51e675d48

6 years agoAdd per-device defaults for VIBRATE_WHEN_RINGING
Michael Wright [Fri, 25 May 2018 23:31:20 +0000 (00:31 +0100)]
Add per-device defaults for VIBRATE_WHEN_RINGING

Some devices have hand-crafted, artisanal haptics to go along with the
dulcet tones of the ringer. When making such a device, we really want
our users to have the opportunity to appreciate the fine buzzes and
clicks we spent so long orchestrating, and so this makes it possible to
default VIBRATE_WHEN_RINGING on.

Bug: 79212179
Test: manual
Change-Id: I52bf133345bd3e8b09b591b9bac4711d0d485094