Commit Graph

11189 Commits

Author SHA1 Message Date
TreeHugger Robot
bd8c161d8d Merge "Add AppPredictionServiceExists check." into qt-dev 2019-04-15 19:49:19 +00:00
Jeff Sharkey
b9c822d6b7 Merge "Renaming or moving files should initiate scan." into qt-dev 2019-04-15 03:27:32 +00:00
Jeff Sharkey
db73a7da26 Renaming or moving files should initiate scan.
These FileSystemProvider operations should initiate a MediaStore scan
to ensure that it presents an updated view of the filesystem.

Bug: 129901992, 130356514
Test: manual
Change-Id: I612481282cf739b88a1637b147fb4d4555fb5b8f
2019-04-14 12:23:37 -06:00
TreeHugger Robot
54bdb96c4e Merge "Sharesheet - force DS icons to be round" into qt-dev 2019-04-13 01:01:22 +00:00
George Hodulik
145b3a5129 Add AppPredictionServiceExists check.
When the flag is set, Chooser will check if APS exists and use it for
direct share ranking. Otherwise, Chooser defaults to just querying ShortcutManager
itself. ResolverActivity will register an appPredictor with ui surface
"resolver" and ChooserActivity will use ui surface "share".

Later, we will add a similar behavior to use the AppPredictor to
sort actvities by default (if it exists), otherwise use the old
API ResolverRankerService.

Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Test: Added parameterized tests for case when there is no AppPredictionService.
Bug:129014961
Change-Id: I6109aa8f2436cf0b3c3b4fbc36e571b2b00fe45c
2019-04-12 16:47:14 -07:00
Mike Digman
6f31c53606 Sharesheet - force DS icons to be round
DS icons cannot be provided as AdaptiveIcons. Most today are
provided as a circular bitmap but there is no shape guarantee.
To provide visual consistency, scale and mask all DS icons to a
circle. Currently, all DS icons are shaped making them hard to
see.

Fixes: 129980123
Test: manual images large and small, rectangular, circular, etc
Change-Id: I011b35c1334affb1224f62beafd3f72026198054
2019-04-12 16:29:16 -07:00
Christian Wailes
b9c3673cb2 Merge "Fix FD leak in the Zygote." into qt-dev 2019-04-12 23:22:43 +00:00
Alison Cichowlas
67ad0cabb2 Merge "Use the correct targets-per-row count for Landscape." into qt-dev 2019-04-12 19:58:37 +00:00
Jorim Jaggi
757cbfead3 Merge "Pretend to be having the original background" into qt-dev 2019-04-12 14:19:51 +00:00
TreeHugger Robot
dd0e027ca5 Merge "Sharesheet - Align spacing with spec" into qt-dev 2019-04-12 13:01:47 +00:00
Adrian Roos
76d2f52e3f Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev 2019-04-12 09:43:57 +00:00
Alison Cichowlas
13314611ff Use the correct targets-per-row count for Landscape.
Bug: 126566208
Test: Manual verification, both orientations
Change-Id: I971a033628a56c41c7c926d519106114c66bce80
2019-04-11 19:21:35 -04:00
Ying Zheng
a4b089bd10 Merge "Revert "Flip default value of headless user 0 flag."" into qt-dev 2019-04-11 23:08:01 +00:00
Philip P. Moltmann
08ccf9bba4 Merge "Handle onBindingDied in AbstractRemoteService" into qt-dev 2019-04-11 22:12:49 +00:00
Matt Pietal
ab986b5fcf Sharesheet - Align spacing with spec
Various fixes including: correct fonts, colors, drag handle size, as
well as allowing more space for chooser grid items and text

Bug: 129980360
Test: Visual inspection
Change-Id: I10f78ef9c12b3444360e4ab50f7bd5900f2967f3
2019-04-11 12:36:36 -04:00
Ying Zheng
1deedca952 Revert "Flip default value of headless user 0 flag."
This reverts commit 4214a0933d.

Reason for revert: need to update per build

Bug: 130310171
Change-Id: I9ff55e9de4ec3ad64451ef41f34cbfe9b793a5e9
2019-04-11 16:16:46 +00:00
Matt Pietal
43e9ec2354 Merge "Sharesheet - 4->8 direct share expansion fix" into qt-dev 2019-04-11 15:30:34 +00:00
Philip P. Moltmann
bc093c37c2 Handle onBindingDied in AbstractRemoteService
If the package is "pm clear"-ed the binding dies permanently and has to
be re-created. Hence force an unbind at this time.

Test: atest CtsPermissionTestCases:android.permission.cts.LocationAccessCheckTest#notificationIsShownAgainAfterUninstallAndReinstall
Bug: 129480112
Change-Id: I3f9b106e2f172f8d5b6510a07c4b1f060de192bd
2019-04-11 15:17:28 +00:00
Adrian Roos
6eb1ed3a61 System Bars: API to ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: I42facefc15dce227193a4db5f368184e1b5ebd32
2019-04-11 16:50:32 +02:00
Ricky Wai
bbde1150c5 Merge "Do not allow moveToFront() and moveTaskToFront() when app is in background" into qt-dev 2019-04-11 13:33:04 +00:00
Alison Cichowlas
bf72ee109b Merge "Merge caller targets and ranked targets." into qt-dev 2019-04-11 12:24:22 +00:00
TreeHugger Robot
a81892761b Merge "Flip default value of headless user 0 flag." into qt-dev 2019-04-11 01:10:29 +00:00
Alison Cichowlas
d0a075ba0d Merge caller targets and ranked targets.
Bug: 126566208
Test: Manual; test apk and twitter
Change-Id: Ib264d4a646cafe160b9d3115d42292d940dc1918
2019-04-10 20:52:50 -04:00
Lucas Dupin
a4d6b7801c Merge "Remove color extraction from scrims" into qt-dev 2019-04-11 00:19:03 +00:00
Chris Wailes
b63a00a683 Fix FD leak in the Zygote.
Issues with LocalSocketImpl.close meant that a FD that was supposed to
be closed wasn't.  This CL switches to using Os.close to ensure that the
FD is closed properly.

Bug: 130309968
Bug: 130235718
Test: atest android.security.cts.FileDescriptorTest#testCLOEXEC
Test: Tested for file existance after Os.close call
Change-Id: I80fb3b378f651e71bc1ae9aab8636935a2ff6356
Merged-In: I80fb3b378f651e71bc1ae9aab8636935a2ff6356
2019-04-10 16:45:31 -07:00
Ying Zheng
4214a0933d Flip default value of headless user 0 flag.
Since this is to replace an existing car property which default to true.

Bug: 130310171
Test: build
Change-Id: Ie4f6389b4514727cf88c72e931e9fff4bf5f1484
2019-04-10 15:32:29 -07:00
TreeHugger Robot
b5258351ea Merge "System Bars: Ensure contrast when app requested transparent bar" into qt-dev 2019-04-10 21:58:42 +00:00
Lucas Dupin
2bd3af67a0 Remove color extraction from scrims
Fixes: 129295950
Test: atest SysuiColorExtractorTests
Test: atest ScrimControllerTest
Test: atest ScrimViewTest
Test: visual
Change-Id: Ie45fd3f2e7b022236f0dda22fa1c854c0eff19ea
2019-04-10 13:30:43 -07:00
TreeHugger Robot
592192f813 Merge "Sharesheet - navbar color integration" into qt-dev 2019-04-10 18:37:26 +00:00
Matt Pietal
a9c8e5053a Sharesheet - 4->8 direct share expansion fix
The 4->8 expansion area can become stuck when the user is scrolling as
the list is rebuilt, say from a package changed event. Be more
specific about when we choose to lock this area.

Bug: 129979914
Test: Constantly scroll while sharesheet is loading
Change-Id: I969d628e1e420fd12133cef413dadf4f14ca75d7
2019-04-10 14:27:35 -04:00
Ricky Wai
aca8a770cd Do not allow moveToFront() and moveTaskToFront() when app is in background
Bug: 129063631
Test: Unable to start activity / move task in background
Change-Id: Icb5ebad3567b911719341f221483df1a1512109b
2019-04-10 17:24:30 +01:00
Adrian Roos
4c864595bd System Bars: Ensure contrast when app requested transparent bar
Bug: 129533768
Test: atest EnsureBarContrastTest
Change-Id: Ib8f4045b9e8e7bf65c13437133f114d91d0cb050
2019-04-10 18:16:25 +02:00
Jeff Sharkey
0185ea0802 Refactor s/TypeInfo/MimeTypeInfo/ per feedback.
Bug: 128903949
Test: atest android.content.cts.ContentResolverTest
Change-Id: Idb9e63a68dc9ffe0c35ad3e6bff55aaa10320e81
2019-04-10 00:04:27 -06:00
TreeHugger Robot
343b96786b Merge "Sharesheet - Add outline to image preview" into qt-dev 2019-04-09 22:47:21 +00:00
TreeHugger Robot
56453ede41 Merge "Allow wallpapers and IMEs to get location if needed" into qt-dev 2019-04-09 19:31:45 +00:00
Matt Pietal
9aaf00c51c Sharesheet - Add outline to image preview
Support thin border around content preview images

Bug: 129979196
Test: Visual inspection
Change-Id: I3984a22507352cc3de8fd38ee3ded39a63bb442d
2019-04-09 15:10:58 -04:00
Matt Pietal
031afcacc0 Sharesheet - navbar color integration
Fix divider color for dark/light themes. Color the navbar and add the
navbar separator.

Bug: 129980358
Test: Visual inspection
2019-04-09 15:03:52 -04:00
Jorim Jaggi
1ab06de89f Pretend to be having the original background
...as otherwise setWindowBackground(bg) => bg == dv.getBackground
property is violated.

Test: WindowTest
Fixes: 130170137
Change-Id: I21dc45b291fd2568355ff186966a910cd05ed994
2019-04-09 17:13:50 +02:00
Matt Pietal
a4b30072a0 Sharesheet - Add support for sunshine
Set apps/targets to be visually disabled when in suspended state. Do
not auto launch when the only app is suspended.

Bug: 112553778
Test: Manually inspect colors on app suspension
Change-Id: Ief9faba831c4f3676f02f84b0174b74d4103f940
2019-04-09 07:57:04 -04:00
TreeHugger Robot
5a56c2d9cc Merge "Sharesheet: Rank the first N apps, then show the rest alphabetically." into qt-dev 2019-04-09 11:10:00 +00:00
TreeHugger Robot
e3aa7b9ac3 Merge "Fixes crash due to assigning service before linking death recipient." into qt-dev 2019-04-09 02:06:17 +00:00
Amith Yamasani
c45a990330 Allow wallpapers and IMEs to get location if needed
Wallpapers and Input Methods are bound by the system
and are only brought up to BFGS, which is insufficient
for getting foreground location. Add the required
flag to the bindService call to allow the bound process
to reach FGSL when visible.

Same for VoiceInteractionServices

Bug: 117494189
Test: Manually enable a wallpaper that needs location and
     verify it gets location.
      atest CtsAppTestCases:ActivityManagerProcessStateTest

Change-Id: I6767e1f480e5b3d6e33864dabd9cb167df4846f5
2019-04-08 17:18:21 -07:00
Alison Cichowlas
1c8816c3ad Sharesheet: Rank the first N apps, then show the rest alphabetically.
Bug: 126566208
Test: atest ChooserListControllerTest
Change-Id: I4277a28cc7ad8a1f08c9a08ec018726161e5d596
(cherry picked from commit 363ed278fb)
2019-04-09 00:02:13 +00:00
Adam He
967cb0aed7 Fixes crash due to assigning service before linking death recipient.
Fixes: 129686274
Test: atest CtsAutoFillServiceTestCases
Change-Id: I052ca9a13947f0ad25da70747e8db2be22af742b
2019-04-08 14:37:58 -07:00
TreeHugger Robot
353c5cc16a Merge "Allow themeing of icon in SuspendedAppActivity" into qt-dev 2019-04-08 20:17:28 +00:00
Bryan Mawhinney
cf1eee71f0 Allow themeing of icon in SuspendedAppActivity
By passing the current theme to getDrawable, we allow the suspending app
to provide, e.g., a vector drawable tinted according to the system theme
(note, *not* the suspending app theme).

Test: manual
Bug: 129995419
Change-Id: Id9d4e3292baa324856dd817fe9ac979c07339fb0
2019-04-08 20:17:01 +00:00
TreeHugger Robot
85e35eb118 Merge "Protect against null drawable" into qt-dev 2019-04-08 17:27:52 +00:00
TreeHugger Robot
658312b51c Merge "Sharesheet - Fix scroll behavior moving past bounds" into qt-dev 2019-04-08 15:27:12 +00:00
Jorim Jaggi
1ed6889243 Protect against null drawable
Test: App with no background drawable doesn't crash
Fixes: 130015147
Change-Id: I28e3605aa84240979f9a04108be98d6e3006e470
2019-04-08 16:35:34 +02:00
Matt Pietal
d568294c1a Sharesheet - Fix scroll behavior moving past bounds
ResolverDrawerLayout is tracking fractions of pixels, but just drops
these fractions when offsetting the child views. When scrolling up and
down continuously, this can lead to the view scrolling past the window
bounds. Do not discard these fractions. Track the remainders and add
them in when the sum to >= 1px.

Bug: 129979914
Test: Manual scrolling test
Change-Id: I0e8ea04baca341c6b6e0573e086f3f2f8c2b39b5
2019-04-08 09:57:07 -04:00