Commit Graph

13821 Commits

Author SHA1 Message Date
Antoan Angelov
c80bb1f31e Merge "Only add user id to content uri if launching cross-profile target" into rvc-dev am: 6d5e349bcd am: 0cc6086757
Original change: undetermined

Change-Id: If2ae5a93f45abc390c68bd9244bbf54802f9a820
2020-06-02 11:01:50 +00:00
Antoan Angelov
f8623d4a5f Merge "Don't query direct share for work profile when its turned off" into rvc-dev am: 1a0d72eaa9 am: 2db1073bf0
Original change: undetermined

Change-Id: I5d46c85d90a960aa4d14a0e7d14277f0326fad5e
2020-06-02 11:01:30 +00:00
Antoan Angelov
6d5e349bcd Merge "Only add user id to content uri if launching cross-profile target" into rvc-dev 2020-06-02 10:52:04 +00:00
Antoan Angelov
1a0d72eaa9 Merge "Don't query direct share for work profile when its turned off" into rvc-dev 2020-06-02 10:33:55 +00:00
Song Hu
f1480f878a Merge "Update the default score for direct share targets." into rvc-dev am: 060eff0716 am: b07bb870c8
Change-Id: Ic2a3fa3ea7da42333f27c4dda01aea5321daca04
2020-06-01 19:39:27 +00:00
Song Hu
060eff0716 Merge "Update the default score for direct share targets." into rvc-dev 2020-06-01 18:51:49 +00:00
arangelov
9e811f9064 Don't query direct share for work profile when its turned off
Test: manual
Test: atest ChooserActivity
Test: atest ResolverActivity
Fixes: 157902213
Change-Id: I1e48d5a10ee2099c945254fce905086349ebfc41
2020-06-01 17:37:28 +01:00
Song Hu
93cefaac1c Update the default score for direct share targets.
Bug: 151112858
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: I700bebf19bbaf208efaccf97ab77472d43c1b34a
2020-06-01 09:07:19 -07:00
arangelov
9a8a6744ef Only add user id to content uri if launching cross-profile target
Test: manual
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest
Bug: 156552093
Change-Id: Icbdf0ea33f35785322eb6bfb23e88dfdacf7fd34
2020-06-01 14:17:32 +01:00
Ryan Mitchell
4053dfca5e Merge "Install system app in greatest priority partition" into rvc-dev am: d32418a72a am: d5bfbd0f27
Change-Id: Ibd5291cc48b25d168fd7bae736c180ff28916b8b
2020-05-29 18:14:54 +00:00
Ryan Mitchell
d32418a72a Merge "Install system app in greatest priority partition" into rvc-dev 2020-05-29 18:05:31 +00:00
Antoan Angelov
2905247cdd Merge "Reduce paddings in landscape mode" into rvc-dev am: 7fd5c1ee83 am: b7e3db2b20
Change-Id: Ida55da7b9296178fada20632c9b50627ca3233cc
2020-05-29 16:58:46 +00:00
arangelov
981e41417a Reduce paddings in landscape mode
On orientation change, the paddings are not
automatically updated. We re-set them manually,
because requestLayout() or invalidate() did not solve this.

Also properly updates the empty state icon visibility
(as in some cases it was still showing in landscape on config
change).

Test: manual
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest
Fixes: 149817494
Change-Id: I2d6ff1078ee834fa50aa47ede7641f6359c267de
2020-05-29 13:40:19 +00:00
Ryan Mitchell
d4e7f93df5 Install system app in greatest priority partition
On Pixel 2 devices, /product is a symlink to /system/product. The
product partition has a higher partition precedence than the system
partition so the app should be installed as a system app on the product
partition.

This change also unifies methods for checking whether a file is within
a partition so we will paths will always be canonicalized before the
check.

Bug: 152522330
Test: update system app in system/product/privapp, uninstall updates,
      verify that the app was scanned as privileged
Change-Id: I646a5f293b977a78daa2102b73f1d3122f774a2a
2020-05-28 16:06:30 -07:00
TreeHugger Robot
dcd5bcaf10 Merge "Preload android.test.base to improve startup performance" into rvc-dev 2020-05-28 19:16:39 +00:00
Paul Duffin
5ec5409a64 Preload android.test.base to improve startup performance
Bug: 73711752
Test: make droid && flashall
Merged-In: I28ac1544c20bc3e8abb4341aa331c212f16301f0
Change-Id: I28ac1544c20bc3e8abb4341aa331c212f16301f0
(cherry picked from commit 0c57079427)
2020-05-28 18:32:37 +01:00
Paul Duffin
ddcce3c8a0 Merge "Preload android.test.base to improve startup performance" am: 1bfeeeb8a1 am: a2826b6410
Change-Id: Ica3ee9224881d019dc2717c3dccfbbafb1e64707
2020-05-28 17:18:30 +00:00
Mike Digman
a72661037c Merge "Add icons to Sharesheet pin and group selection UI" into rvc-dev am: 29dfff4228
Change-Id: I37c83ceeb42ea01ebca373efc8c983a68cf005b7
2020-05-28 16:27:54 +00:00
Mike Digman
29dfff4228 Merge "Add icons to Sharesheet pin and group selection UI" into rvc-dev 2020-05-28 16:06:14 +00:00
Narayan Kamath
ddd31f2612 Merge "Revert ResolverActivity changes associated with browseables." into rvc-dev am: 101fcc5746
Change-Id: I4cf65010b2a17c47fc55c5db6095afa0483a1334
2020-05-28 10:38:24 +00:00
Narayan Kamath
101fcc5746 Merge "Revert ResolverActivity changes associated with browseables." into rvc-dev 2020-05-28 10:35:09 +00:00
Songchun Fan
b8e087607b Merge "[incremental] respect extractNativeLibs in native lib config" into rvc-dev am: f2a6af4b8a
Change-Id: Ibc96844cf6737663c48c9133b49bc9c972ed632f
2020-05-28 00:59:35 +00:00
Mike Digman
dc29479df4 Add icons to Sharesheet pin and group selection UI
Merging menu dialogs to simplify code. Fixed a long-press
selection bug. Rtl now works as expected.

Fixes: 150405021
Test: manual
Change-Id: I2c9ea58f2641046700ac1a627a7db9ea20e7092a
2020-05-27 15:47:20 -07:00
Songchun Fan
f2a6af4b8a Merge "[incremental] respect extractNativeLibs in native lib config" into rvc-dev 2020-05-27 22:17:23 +00:00
Songchun Fan
14f6c3c735 [incremental] respect extractNativeLibs in native lib config
Makes sure the behavior is consistent with legacy installs:

When the flag is on, the native libs will be extracted to subdirs under
lib/.
When the flag is off, the lib/ subdirs will be created but the native
libs are not extracted.
When the flag is off, check if the native libs are uncompressed and well
aligned.

Test: atest android.extractnativelibs.cts.CtsExtractNativeLibsHostTest
BUG: 157173358
Change-Id: Idb57fd7ca1115f787faf5cde3056c32ff3f60890
2020-05-27 22:16:57 +00:00
Antoan Angelov
902be7f62b Merge "Launch intent resolver in same profile when used for sharing" into rvc-dev am: 66f1f9e2ce
Change-Id: Icc924304123eb44744b30cc7abb1c271df0f3a02
2020-05-27 20:13:49 +00:00
Antoan Angelov
66f1f9e2ce Merge "Launch intent resolver in same profile when used for sharing" into rvc-dev 2020-05-27 20:08:29 +00:00
Ruchir Rastogi
100e8d1b71 Merge "Inject DeviceIdle atom before boot completes" into rvc-dev am: e9e4428d4d
Change-Id: I9c9dfc4b69b6a9ecf4337a5d9eb7413318d7a385
2020-05-27 17:46:54 +00:00
Ruchir Rastogi
e9e4428d4d Merge "Inject DeviceIdle atom before boot completes" into rvc-dev 2020-05-27 17:44:07 +00:00
Ruchir Rastogi
04c3476986 Inject DeviceIdle atom before boot completes
Test: m
Test: manually verified that DeviceIdleModeStateChanged atom gets logged
before boot completes (using ag/11529814 to log)
Bug: 156913221
Change-Id: I3dbf154083f1cbe660625066dc50b6a8ffd60d7c
2020-05-27 17:43:39 +00:00
Benedict Wong
8f29769362 Merge "Add methods for IKEv2/IPsec test mode profiles" into rvc-dev 2020-05-27 17:31:00 +00:00
Narayan Kamath
754186806d Revert ResolverActivity changes associated with browseables.
Reverts changes 69df963, 0c7c5d59, 6cbef19 and others. These changes
don't revert cleanly because of several refactorings layered on top
of the original changes.

The main objective of these change is to get rid of mUseLayoutForBrowseable
and associated codepaths as we treat choosing between browseables the
same as other choices.

Bug: 157460946
Test: manual
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest

Change-Id: Ibe9f2289289f7f5da3986e6892a2ee4ff65765a0
2020-05-27 12:48:15 +01:00
Paul Duffin
0c57079427 Preload android.test.base to improve startup performance
Bug: 73711752
Test: make droid && flashall
Change-Id: I28ac1544c20bc3e8abb4341aa331c212f16301f0
2020-05-27 09:38:02 +01:00
TreeHugger Robot
14a791d2dd Merge "Fix talkback focus issue in share sheet" into rvc-dev am: b7f81189bd
Change-Id: I13a6e83b7867c4ef1341e046655f4b1970948a83
2020-05-26 18:33:41 +00:00
TreeHugger Robot
b7f81189bd Merge "Fix talkback focus issue in share sheet" into rvc-dev 2020-05-26 18:21:25 +00:00
Mike Digman
8fa8ea8b55 Merge "Use current label for Sharing Shortcuts in Sharesheet" into rvc-dev am: 9a4ec16d7f
Change-Id: I57ed05e511cfc5717888fca64a66a75b4c114c83
2020-05-26 16:01:48 +00:00
Kholoud Mohamed
85a28ec570 Fix talkback focus issue in share sheet
Fixes: 149440209
Test: manual testing
Change-Id: Ia41f9331da8345a4ac9c298574206fe544407fce
2020-05-26 16:36:36 +01:00
Mike Digman
eb257d1a7d Use current label for Sharing Shortcuts in Sharesheet
A recent ShortcutInfo change bakes in support for using any
set long label and defaulting to the short label if unavailable.
Instead of duplicating logic, reuse this new method.

Fixes: 157142833
Test: manual
Change-Id: Ic8104ac57dd91a79b93739514655d7dbb5ad36e2
2020-05-21 16:04:43 -07:00
Mike Digman
9cda8de825 Merge "Clean up Sharesheet pinning, add app icon, remove DS pin menu" into rvc-dev am: 7980546c03
Change-Id: I96ca7b700252042103d2355716d5ad43599e39d0
2020-05-21 20:11:50 +00:00
Mike Digman
7980546c03 Merge "Clean up Sharesheet pinning, add app icon, remove DS pin menu" into rvc-dev 2020-05-21 20:05:58 +00:00
TreeHugger Robot
b635c88d6e Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev am: 059d812ef9
Change-Id: I016d4dacb781c6927a7c153d5cb18249c4889b31
2020-05-21 19:21:20 +00:00
TreeHugger Robot
059d812ef9 Merge "Use shortcut long labels if available in Sharesheet" into rvc-dev 2020-05-21 19:01:42 +00:00
Mike Digman
64c704390d Clean up Sharesheet pinning, add app icon, remove DS pin menu
Remove "App info" item from all long-press menus as it's no
longer needed. Prevent DS targets from showing a long-press
menu. Simplify code surrounding this, in part, for future
migration to a popup menu.

Fixes: 157156399
Test: manual
Change-Id: I3e29e3dd46268cc344dcc93059f2bda1eeef32f1
2020-05-21 11:17:51 -07:00
Mike Digman
ed44706beb Use shortcut long labels if available in Sharesheet
For disambiguation between targets, it's important to see
the most detailed label provided by apps. This change is aligned
with the logic being used to display conversation shortcuts.

Fixes: 157142833
Test: manual
Change-Id: I203afc794730cac5c92717035af0ea47d8e6496b
2020-05-20 11:08:55 -07:00
TreeHugger Robot
3e8384e445 Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev am: 606980b356
Change-Id: Id64d374173c61b46190874222a477c55adc87ceb
2020-05-20 18:05:30 +00:00
TreeHugger Robot
606980b356 Merge "Fix talkback for switch on work in ResolverActivity" into rvc-dev 2020-05-20 17:55:54 +00:00
Kholoud Mohamed
77bc0f15e3 Fix talkback for switch on work in ResolverActivity
Set the focus to the work tab when switch on
work profile is clicked.

Fixes: 152014143
Test: Manually tested the bug no longer happens
Change-Id: Iba72f238cdaf564256648327d12a54c6227dd23b
2020-05-20 15:29:07 +01:00
Mike Digman
f5f2c3f413 Merge "Add pinned target indicator to Sharesheet, update visuals" into rvc-dev am: aa96eb5733
Change-Id: I952e52cd4384ab5a5c56557e4a64241012286b90
2020-05-18 23:15:37 +00:00
Mike Digman
caec1a7440 Add pinned target indicator to Sharesheet, update visuals
After a user pins an app it takes up a persistent space in the
suggested app row. Users may forget they've pinned an app as
there's no indicator. Add an in-line icon to label suggested
targets as pinned. No indicator should be shown in the A-Z list.
This CL also updates related visual styling to get close to
redlines.

Bug: 150405021
Bug: 152978014
Test: manual
Change-Id: Iee774b88e284617449a673d7e622c0ce233ded1a
2020-05-18 12:13:21 -07:00
TreeHugger Robot
926d538590 Merge "In new direct share ranking, expand DS row as long as there are enough targets parking in memory, even if targets are still loading on UI." into rvc-dev am: d96e01d282
Change-Id: I1cebde1bdbf918fc50aa4c82c9f0377d40763051
2020-05-18 15:00:52 +00:00