Commit Graph

367946 Commits

Author SHA1 Message Date
TreeHugger Robot
babf190396 Merge "Update mGlobalBluetoothA2dpOn when active device changed" into pi-dev 2018-05-30 03:26:22 +00:00
TreeHugger Robot
89722d829e Merge "Add default phone/sms to battery whitelist apps." into pi-dev 2018-05-30 03:08:19 +00:00
Jakub Pawlowski
e6cbbd4994 [automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serialization am: 459888be84 am: bc45dc9536 -s ours
am: 2d6209f71d  -s ours

Change-Id: I0b7af0f19142f0aa5a039de6db22f292d16c76df
2018-05-29 20:05:21 -07:00
TreeHugger Robot
58fc12e8fa Merge "Do not request focus during wake and unlock" into pi-dev 2018-05-30 01:55:18 +00:00
Jakub Pawlowski
2d6209f71d [automerger skipped] Fix bad type for txPower in PeriodicAdvertisingReport serialization am: 459888be84
am: bc45dc9536  -s ours

Change-Id: I087f8de352c5c61db32d95ee8c47b6ab0bd171e2
2018-05-29 18:49:17 -07:00
Sungsoo Lim
cc4b8a4cda Update mGlobalBluetoothA2dpOn when active device changed
Also do not setForceUse when a2dp config without change.

Bug: 79982460
Test: manual
Change-Id: I789b03c00366f9fd78fd3a0305fdf2c11dfc23d2
2018-05-30 10:45:42 +09:00
TreeHugger Robot
1c6b809579 Merge "Fixed an issue where the reply icon was disabled" into pi-dev 2018-05-30 01:29:40 +00:00
TreeHugger Robot
d982210d89 Merge "Fixed the animations of Messaging Layout, leading to overlaps" into pi-dev 2018-05-30 00:52:32 +00:00
Jakub Pawlowski
bc45dc9536 Fix bad type for txPower in PeriodicAdvertisingReport serialization
am: 459888be84

Change-Id: Ibccfb97e0b41a9ef6af9fcb1da23870dbff7f9b9
2018-05-29 17:50:07 -07:00
Selim Cinek
27732cc0db 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
2018-05-29 17:01:05 -07:00
TreeHugger Robot
9a184cb7f3 Merge "Update call log permission group icon." into pi-dev 2018-05-29 23:23:18 +00:00
Lucas Dupin
71dd484427 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
2018-05-29 15:41:03 -07:00
Jakub Pawlowski
459888be84 Fix bad type for txPower in PeriodicAdvertisingReport serialization
Bug: 69634768
Test: compilation
Change-Id: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2
Merged-In: Icedfbaf1ba933637e935ada0fd98aea42c73f2b2
2018-05-29 22:36:32 +00:00
Fan Zhang
091a057301 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
2018-05-29 22:30:49 +00:00
Selim Cinek
f68af9b171 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
2018-05-29 15:29:48 -07:00
Makoto Onuki
dfb99b257b Merge "Disable battery saver tron log by default" into pi-dev 2018-05-29 22:12:26 +00:00
Christopher Tate
0a82690868 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
2018-05-29 22:00:48 +00:00
TreeHugger Robot
3ec17d31c5 Merge "Extend startForegroundService() fg transition timeout to 10 seconds" into pi-dev 2018-05-29 21:55:52 +00:00
Chad Brubaker
d55f0108c5 Merge "Remove downgrade check for targetSandboxLevel" into pi-dev 2018-05-29 21:51:33 +00:00
TreeHugger Robot
c71ef2bc86 Merge "Enable WM.DEBUG_WALLPAPER_LIGHT logs" into pi-dev 2018-05-29 21:33:03 +00:00
Fan Zhang
8e6adb1b46 Update call log permission group icon.
Change-Id: I605ece95cd29405b9d63692d038f36390ac367ef
Fixes: 78230210
Test: visual
2018-05-29 14:27:35 -07:00
TreeHugger Robot
eb2fdbb3c9 Merge "Add per-device defaults for VIBRATE_WHEN_RINGING" into pi-dev 2018-05-29 21:20:24 +00:00
Christopher Tate
5e5c345899 Extend startForegroundService() fg transition timeout to 10 seconds
Change-Id: I5e09205218e5ddb2ff536f7f5c20ac31c0c03bb1
Fixes: 80309073
Test: atest CtsAndroidAppTestCases
2018-05-29 20:50:52 +00:00
TreeHugger Robot
a8464603ed Merge "[QS] Disallow TYPE_VIEW_SELECTED events" into pi-dev 2018-05-29 20:35:54 +00:00
TreeHugger Robot
d7a053448b Merge "Update quick scrub tip according to the latest mock." into pi-dev 2018-05-29 20:26:23 +00:00
Chavi Weingarten
908610fd74 Merge "Add animation to running animation list before starting." into pi-dev 2018-05-29 20:20:20 +00:00
TreeHugger Robot
8c4c359b25 Merge "Fix for missing location icon" into pi-dev 2018-05-29 20:09:21 +00:00
TreeHugger Robot
287d4327cd Merge "Fix regression in swiping over rotation button." into pi-dev 2018-05-29 19:45:35 +00:00
Tracy Zhou
54974453ec 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
2018-05-29 12:18:56 -07:00
Glenn Kasten
a5d8c3718d Merge "Resolve conflict between javadoc and CDD re: audio output" into pi-dev 2018-05-29 19:09:31 +00:00
Scott Main
c09501807a Merge "Delete static versions of _book.yaml and _project.yaml." into pi-dev 2018-05-29 18:24:35 +00:00
TreeHugger Robot
14e605d7e9 Merge "Enable systemui_theme feature flag" into pi-dev 2018-05-29 18:22:16 +00:00
Scott Main
ffcc3f2efb 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 9e64abe7d7)
2018-05-29 18:20:14 +00:00
Yu-Han Yang
3bc533d22f Merge "Catch IllegalArgumentException when calling LocationManager#requestLocationUpdate" into pi-dev 2018-05-29 18:02:31 +00:00
Daniel Sandler
d8f3889b28 Merge "Remove direct-share target row animations and limit to one row." into pi-dev 2018-05-29 16:46:57 +00:00
TreeHugger Robot
ab4670351d Merge "WM: Make maxAspectRatio work with display cutouts" into pi-dev 2018-05-29 15:25:45 +00:00
Adrian Roos
24be34dcc9 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
2018-05-29 15:25:05 +00:00
TreeHugger Robot
d0545395df Merge "Fixes a NPE in search manager in slice CTS tests." into pi-dev 2018-05-29 15:18:04 +00:00
Wale Ogunwale
92c70014c3 Enable WM.DEBUG_WALLPAPER_LIGHT logs
To help debug b/79664644

Bug: 79664644
Test: builds
Change-Id: I9602205bb8a7ec0427f4102f4c5c52c95cc732d4
2018-05-29 07:16:05 -07:00
Dan Sandler
62aad00c6c 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
2018-05-29 13:58:10 +00:00
Amith Yamasani
a1ce963743 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
2018-05-28 21:20:56 -07:00
Adrian Roos
8997b7e4c9 Merge "WindowInsets: Never dispatch negative insets" into pi-dev 2018-05-28 14:40:20 +00:00
Hongwei Wang
6de8729657 Merge "Dispatch volume key event when mHandleVolumeKeysInWM is set" into pi-dev 2018-05-26 23:55:19 +00:00
TreeHugger Robot
879d09f946 Merge "Dump proxy debug info when exceeding proxy limit." into pi-dev 2018-05-26 09:05:14 +00:00
Yu-Han Yang
e684ddac67 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.
2018-05-25 19:57:44 -07:00
TreeHugger Robot
9d19487b1c Merge "Added TestApi to ActivityInfo.isTranslucentOrFloating" into pi-dev 2018-05-26 02:23:25 +00:00
Winson Chung
c6c9d4052f 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
2018-05-25 18:25:52 -07:00
Winson Chung
e2b602018f Merge "Tweak quickscrub bar visuals" into pi-dev 2018-05-26 00:26:59 +00:00
chaviw
c5eb816f92 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
2018-05-25 16:34:58 -07:00
Michael Wright
0e9eeee0dd 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
2018-05-26 00:31:20 +01:00