Commit Graph

11104 Commits

Author SHA1 Message Date
Adam Powell
bce0cbda5a Merge "Gesture exclusion rects for Window" into qt-dev am: 341ea09831
am: b1cf22ef0a

Change-Id: Ie55a24c2dcaee3402f74581ee77eb6f32b286664
2019-04-16 23:13:46 -07:00
TreeHugger Robot
341ea09831 Merge "Gesture exclusion rects for Window" into qt-dev 2019-04-17 03:18:55 +00:00
Matt Pietal
c26ed3c801 Merge "Sharesheet - Merge EXTRA_INITIAL_INTENTS + Ranked apps" into qt-dev am: cb86e128cf
am: 3967098ee8

Change-Id: I1406ff037da221bfd4999c3bef67d07e6b400f8a
2019-04-16 20:10:44 -07:00
Chalard Jean
c3643acb8d Merge "Move TrafficStats tags for the network stack constants" into qt-dev am: e7ef0a61f2
am: c728f75abd

Change-Id: I4882686a86e7c6d42f4b0619b921d02619ed6d4c
2019-04-16 17:38:30 -07: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
Matt Pietal
f522af04a9 Merge "Sharesheet - Prevent duplicate direct share targets" into qt-dev am: 5851d67727
am: a25fe52f9c

Change-Id: I856840f48e6ed8ada62c1cdcdae1fe5e3085bcfe
2019-04-16 11:35:59 -07:00
TreeHugger Robot
5851d67727 Merge "Sharesheet - Prevent duplicate direct share targets" into qt-dev 2019-04-16 17:05:03 +00:00
Tarandeep Singh
410fd7f4e2 Merge "Allow MSIME to set inactive when window loses focus." into qt-dev am: 77d354efa1
am: 32758ac767

Change-Id: Ia9255df8abf5abe7efe512f00bdc13d633fd501d
2019-04-16 01:13:56 -07: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
9a8c9afbbc Merge "Add new constructors for mandatory fields in AppTarget.Builder" into qt-dev am: 6164eb6a8d
am: dd0ce3a2fb

Change-Id: I8550a65bc74ee4d9dd090daf997a6067e3341653
2019-04-15 19:58:31 -07: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
George Hodulik
6836a1b9d1 Merge "Add AppPredictionServiceExists check." into qt-dev am: bd8c161d8d
am: 84f39b7ef0

Change-Id: I3ea0b8bd92338c61ee233dced866461a110c8ff3
2019-04-15 13:31:22 -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
c1da20d12e Merge "Renaming or moving files should initiate scan." into qt-dev am: b9c822d6b7
am: 10c5887712

Change-Id: Ib14a46db2049bf708f944ae41bc8513ad507e45c
2019-04-14 20:54:11 -07: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
Mike Digman
33eae6ee5c Merge "Sharesheet - force DS icons to be round" into qt-dev am: 54bdb96c4e
am: e0f316108b

Change-Id: I730d0c6f7e2dfb506b8d3b7489536e1af7847361
2019-04-13 01:42:25 -07: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
46e245a49a Merge "Use the correct targets-per-row count for Landscape." into qt-dev am: 67ad0cabb2
am: 18a7ae4e78

Change-Id: I7f20cda098664d98f46229493804731639b187b8
2019-04-12 15:46:19 -07:00
Christian Wailes
1d1bb0d94c Merge changes I5dfb6777,I82d734c5,I6e9aaad5,I80fb3b37
* changes:
  Replaces custom code with a library function.
  Moved and renamed DisableExecuteOnly to match file structure.
  Cleanup of the Zygote.java file.
  Fix FD leak in the Zygote.
2019-04-12 21:45:00 +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
Jorim Jaggi
779e252792 Merge "Pretend to be having the original background" into qt-dev am: 757cbfead3
am: 7419ddbb5b

Change-Id: Ifc69513134f0c3ad6da27d5ff0578360d32bf0b5
2019-04-12 10:03:48 -07:00
Matt Pietal
ca4dcd8d1f Merge "Sharesheet - Align spacing with spec" into qt-dev am: dd0e027ca5
am: ff3160dc1a

Change-Id: I30c62d4245b750db63f323c14c496daac4a99da9
2019-04-12 09:58:42 -07:00
Adrian Roos
2f7f27d87c Merge "Merge "System Bars: API to ensure contrast when app requested transparent bar" into qt-dev am: 76d2f52e3f" into qt-dev-plus-aosp
am: 4c390b6294

Change-Id: I60e723d8eb91f7e77467157834b43abb8fb6df52
2019-04-12 08:30:29 -07: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
Ying Zheng
2ea4bc1d97 Merge "Revert "Flip default value of headless user 0 flag."" into qt-dev am: a4b089bd10
am: b9604efc3c

Change-Id: I2d2f9f735a09e09efa64ea5e53ba6d92bd7f4b1b
2019-04-11 17:36:25 -07: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
Philip P. Moltmann
17a00c4398 Merge "Handle onBindingDied in AbstractRemoteService" into qt-dev am: 08ccf9bba4
am: e44d46ebe3

Change-Id: Ie62fa6d15f308975c4a087b544fc460f533db9c9
2019-04-11 16:08:06 -07: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
Chris Wailes
375e206242 Cleanup of the Zygote.java file.
Generic code cleanup.

Test: m
Change-Id: I6e9aaad5019cc975f2f9239a341b733a79a2d5bc
2019-04-11 14:43:00 -07:00
Chris Wailes
8523c81fa4 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
2019-04-11 14:42:34 -07: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
5da9e2ebf7 Merge "Sharesheet - 4->8 direct share expansion fix" into qt-dev am: 43e9ec2354
am: 34f76fa199

Change-Id: I9385fb394add7f7607e92fdcb60e9a844d3f1996
2019-04-11 09:11:18 -07: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
724e5ad136 Merge "Do not allow moveToFront() and moveTaskToFront() when app is in background" into qt-dev am: bbde1150c5
am: 3ca53a8e5c

Change-Id: Ie11d8a4cab02ae0b769b2459bf0dcd397c3186dd
2019-04-11 07:45:46 -07:00