Commit Graph

11205 Commits

Author SHA1 Message Date
TreeHugger Robot
7fdbe22475 Merge "Make RemoteService propagate Context#bindService failure to PendingRequests" into qt-dev 2019-04-18 23:07:32 +00:00
TreeHugger Robot
2631fb58b6 Merge "Ensure Contrast: Address API feedback" into qt-dev 2019-04-18 11:17:43 +00:00
Paul Scovanner
956bbb7e5d Revert "Pretend to be having the original background"
This reverts commit 1ab06de89f.
Bug: b/130586696

Reason for revert: b/130586696 This change causes a major breakage in Maps and blocks droidfood.

Change-Id: I50cde4865f48825b82f27087b8cac6e6527d6d95
2019-04-17 21:47:46 +00:00
Adrian Roos
8c7ca4f5c2 Ensure Contrast: Address API feedback
Fixes: 130647853
Test: make checkapi
Test: atest EnsureBarContrastTest NavigationBarColorTest
Change-Id: Iafbdce8476134df56ea5d15155391b10afc9ce94
2019-04-17 21:36:04 +02:00
TreeHugger Robot
341ea09831 Merge "Gesture exclusion rects for Window" into qt-dev 2019-04-17 03:18:55 +00:00
TreeHugger Robot
cb86e128cf Merge "Sharesheet - Merge EXTRA_INITIAL_INTENTS + Ranked apps" into qt-dev 2019-04-16 21:53:27 +00:00
Adam Powell
5a40b71cd9 Gesture exclusion rects for Window
Property methods to get/set gesture exclusion rects for a window.
This is useful for games or other frameworks that use Window#takeSurface
and do not have a view hierarchy, leaving the associated View methods
unavailable.

Bug: 130572780
Test: cts via "atest SystemGestureExclusionRectsTest"
Change-Id: I2704aef1d1950158fcabf7c91413bedee08b8971
2019-04-16 14:38:55 -07:00
Chalard Jean
e7ef0a61f2 Merge "Move TrafficStats tags for the network stack constants" into qt-dev 2019-04-16 20:30:07 +00:00
Matt Pietal
dadc0d1541 Sharesheet - Merge EXTRA_INITIAL_INTENTS + Ranked apps
Organize app-supplied EXTRA_INITIAL_INTENTS plus the highest ranked
apps into a single row (4 in portrait, 8 landscape)

Bug: 130429746
Test: Visual inspection
Change-Id: Icd0755d25b2801b42ea2c3a8c984e9e1f0c7987e
2019-04-16 15:15:22 -04:00
TreeHugger Robot
5851d67727 Merge "Sharesheet - Prevent duplicate direct share targets" into qt-dev 2019-04-16 17:05:03 +00:00
Tarandeep Singh
77d354efa1 Merge "Allow MSIME to set inactive when window loses focus." into qt-dev 2019-04-16 07:37:06 +00:00
Mehdi Alizadeh
08c5083da3 Add new constructors for mandatory fields in AppTarget.Builder
Test: it builds
Test: atest AppPredictionServiceTest
Bug: 129901111
Change-Id: Ifacf5b86d5f436b02191af58541a403198840f18
2019-04-15 14:44:56 -07:00
TreeHugger Robot
bd8c161d8d Merge "Add AppPredictionServiceExists check." into qt-dev 2019-04-15 19:49:19 +00:00
Chalard Jean
6a76b7e2e4 Move TrafficStats tags for the network stack constants
As per API council feedback, these constants should live in
a place that is private to the network stack, only with a
range defined in system API.

Bug: 129433383
Test: m
Change-Id: I84a90f84a9af6fef4667ee4d512ebd0413222086
(cherry picked from commit 79a6330650ca04bd7a08afbd63f8016a3b30bc72)
2019-04-16 00:41:54 +09: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
Matt Pietal
9d50143863 Sharesheet - Prevent duplicate direct share targets
Duplicate requests can originate with packageChanged events and when
an activity onRestart() is issued. Check for duplicates and do not
insert them. Also make sure there is adequate space per row even when
display size is at max setting.

Bug: 129980100
Test: ChooserActivityTest && visual inspection
Change-Id: Ica8afe5d20b8d3ae11be90206b23aaebbb03a2c1
2019-04-12 15:17:12 -04:00
Eugene Susla
06f0519a01 Make RemoteService propagate Context#bindService failure to PendingRequests
...and fix the attached bug which was caused by infinite wait due to lack
of said signal

Fixes: 129549258
Bug: 126266412
Test: - atest CtsContentCaptureServiceTestCases
- Ensure b/129549258#comment5 no longer reproduces
Change-Id: Id434ce268ca4ae6aa09140a3e17b6d8f476f3d9f
2019-04-12 16:19:08 +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
Tarandeep Singh
e1921a7b4d Allow MSIME to set inactive when window loses focus.
MSIME doesn't work when existing InputConnection is restored. The fix is
to allow MSIME to activate connection when window gains focus and set
inactive when window loses focus. This mimics single session IME.

Bug: 128751901
Test: Manually tested using steps in bug.
Change-Id: I22cef6c1dacb0ca402840da94a2bf02b989da447
2019-04-11 15:55:28 -07: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