Commit Graph

13439 Commits

Author SHA1 Message Date
Jing Ji
d29532e699 Merge "Use the UID as the package name in procstat assoc proto dump" into rvc-dev 2020-06-05 23:16:36 +00:00
Mike Digman
5aa8394608 Merge "Make Sharesheet group and pin menu match material, redlines" into rvc-dev 2020-06-05 19:19:41 +00:00
Miranda Kephart
3a51a85aaf Merge "Only show error if screenshot process dies within timeout period" into rvc-dev 2020-06-05 18:55:08 +00:00
Mike Digman
ad2e9a0a57 Make Sharesheet group and pin menu match material, redlines
Requires wholesale creation of dialog layout. Using a fixed
width approach.

Test: manual
Bug: 152978014
Fixes: 158023059
Change-Id: Ifcff21b2f999839c3eba601a2ee96a08677e1267
2020-06-05 10:18:43 -07:00
TreeHugger Robot
6d410d8165 Merge "Cleanup outdated TODOs" into rvc-dev 2020-06-05 15:53:50 +00:00
arangelov
a2a821336f Cleanup outdated TODOs
Fixes: 158292009
Test: compiled
Change-Id: I7889c7ee818c154194bbe66eabbe04aa7ddb65a4
2020-06-05 15:27:43 +01:00
PETER LIANG
c9f8b52b26 Merge "Shouldn't turn on other accessibility features in SuW." into rvc-dev 2020-06-05 12:36:06 +00:00
TreeHugger Robot
8f27cd8e55 Merge "Add test for tapping Work share tab when work profile is off" into rvc-dev 2020-06-05 12:23:43 +00:00
Antoan Angelov
16fce9c63b Merge "Setup button bar padding before empty state handling" into rvc-dev 2020-06-05 10:04:52 +00:00
Felipe Leme
df98b27008 Merge "Added command / binder method to temporarily disable VoiceInteraction." into rvc-dev 2020-06-05 07:11:40 +00:00
felipeal
755578ac28 Added command / binder method to temporarily disable VoiceInteraction.
It will be used by Automotive when the display is off.

Test: adb shell cmd voiceinteraction disable true && \
      adb shell cmd voiceinteraction show
Test: atest CtsVoiceInteractionTestCases CtsAssistTestCases
Bug: 154011437

Change-Id: Ia87b0544b242c356c4f9180e250e2df54279803f
2020-06-04 23:05:14 +00:00
Jing Ji
1cd1f607e9 Use the UID as the package name in procstat assoc proto dump
And try to compress the process name if possible

Bug: 155980964
Test: Manual
Change-Id: I689724e7c271ba8d85608c3f484250e13c1a1c92
2020-06-04 15:44:26 -07:00
TreeHugger Robot
d1fee56540 Merge "Show 2nd row if we have 1 row in active profile and empty state in other" into rvc-dev 2020-06-04 21:37:39 +00:00
Miranda Kephart
700a093b0c Only show error if screenshot process dies within timeout period
Currently, we show a "Couldn't take screenshot" error any time the
screenshot process disconnects. However, if the screenshot process
remains up, this can result in strange superfluous notifications,
where hours later the screenshot process gets frozen/killed due to
memory pressure, and we show the notification despite the user not
trying to take a screenshot at that point.

This change adds a check so that we only show the error notification
if the screenshot process is disconnected within the timeout period
(10 seconds).

Bug: 156064134
Fix: 156064134
Test: manual -- killed the process with 'adb shell ps | grep screenshot'
and then 'adb shell kill <pid>' to verify that the error notification
appeared, then made sure it did not appear post-change.

Change-Id: I2419634ad888300abc8b50aadab5888ce653e363
2020-06-04 16:48:49 -04:00
arangelov
f32a43868b Add test for tapping Work share tab when work profile is off
Also fix some work tab-related tests.

Fixes: 158166545
Fixes: 148156663
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I5850bbc7d72d563f6e58dd19fafc56c0703ce669
2020-06-04 19:09:35 +01:00
arangelov
5d9ca17ddc Setup button bar padding before empty state handling
Otherwise we don't add the padding if we show the empty state
on the current profile. This caused a slight height jump when
swiping to the other profile.

Fixes: 158174328
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I08c3f30716a8fb9a15e30088be6d274dc0869cac
2020-06-04 18:18:59 +01:00
TreeHugger Robot
2c99d90744 Merge "Refocus conversation expand button in TalkBack" into rvc-dev 2020-06-04 16:33:45 +00:00
arangelov
416a1b347c Show 2nd row if we have 1 row in active profile and empty state in other
Fixes: 157982025
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: Ifa525bad5d89d2ea6192044c6e2bb63310c57693
2020-06-04 14:36:00 +01:00
Peter_Liang
1eedde0d0f Shouldn't turn on other accessibility features in SuW.
Root Cause:
During the SuW, user could turn on other accessibility features except for Magnification, Select to Speak, and Talkback through edit shortcut menu list.

Solution:
Hide the edit shortcuts button if in the SuW period to avoid to turn on others.

Bug: 158046037
Test: manual test
Change-Id: I06e5fde2320c0736ecaf9feb912349c5965cb491
2020-06-04 18:10:28 +08:00
Jeff DeCew
4055c0861f Refocus conversation expand button in TalkBack
Test: manual
Fix: 156872754
Change-Id: I43e83c307adff4ce591a2650899b9356adf30e01
2020-06-03 19:47:15 -04:00
Zak Cohen
4cfb590a28 Screenshot - pass bitmap as bundled hardware buffer from Launcher
When passing a screenshot from Launcher to Sysui it should be passed
as a hardware buffer inside a bundle to avoid copying the underlying pixels.

Change also adds userid and component when a screenshot is passed.

Bug: 157380566
Bug: 156757117
Test: local
Change-Id: I531f1d1a41d179a257fe7202b68a6d1a78cc0f79
2020-06-03 16:09:57 -07:00
TreeHugger Robot
c235831ae5 Merge "Set calling user as intent extra to indicate intent resolver edge case" into rvc-dev 2020-06-03 19:33:26 +00:00
TreeHugger Robot
31a2e1ba46 Merge "Also call Intent#fixUris for the intent resolver case" into rvc-dev 2020-06-03 19:16:31 +00:00
Will Brockman
c66aeed213 Merge "Add RankingSelected to UiEventLogger." into rvc-dev 2020-06-03 17:55:47 +00:00
arangelov
738034ba6c Set calling user as intent extra to indicate intent resolver edge case
Instead of relying on the user hint in the intent, we now explicitly
set the calling user as an intent extra.

Fixes: 149741820
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Test: manual
Change-Id: Iaa37fc1330abbb419035d899fad166afc53aaea8
2020-06-03 18:46:28 +01:00
arangelov
7c510c2227 Also call Intent#fixUris for the intent resolver case
Fixes: 158082179
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I74c97f5d2f3bbbcd35df20151a455877562f34ad
2020-06-03 18:24:40 +01:00
arangelov
d85a74a473 Only allow scroll in one direction at a time
Fixes: 156605289
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: Ibf301f7aa4440e4483355829d0e24fc8e53350e7
2020-06-03 13:19:36 +01:00
Antoan Angelov
3b31c14eb5 Merge "Add bottom offset to empty state screens for chooser" into rvc-dev 2020-06-03 11:32:24 +00:00
Steve Elliott
cc1937581a Merge "Always use Shortcut Icon in conversation if available" into rvc-dev 2020-06-02 18:46:38 +00:00
arangelov
28bb4fe9d4 Add bottom offset to empty state screens for chooser
Test: manual
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest
Fixes: 153654313
Change-Id: I36f55425a2c4daff52d7732d5c71445eb2c03527
2020-06-02 17:58:28 +01:00
Will Brockman
56973c2b47 Add RankingSelected to UiEventLogger.
Allow logging of the RankingSelected variant of UiEventReported.

Change-Id: Ibe1b7bfe4798cdaf07cf87ec8efefb0006909872
Bug: 155061525
Test: atest SystemUiTests
2020-06-02 10:16:22 -04:00
TreeHugger Robot
22e135e17c Merge "Fix app stack issue: send the selected target info into AppPredictionService and UsageStatsManager, when user share from app stack on sharesheet." into rvc-dev 2020-06-02 13:35:51 +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
060eff0716 Merge "Update the default score for direct share targets." into rvc-dev 2020-06-01 18:51:49 +00:00
Song Hu
b6039994d2 Fix app stack issue: send the selected target info into AppPredictionService and
UsageStatsManager, when user share from app stack on sharesheet.

Fix: 157917956
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: I268af5d996dcca275014fba1cace2c54930b9b0c
2020-06-01 11:51:17 -07: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
Steve Elliott
6373829000 Always use Shortcut Icon in conversation if available
Bug: 153751740
Test: manual
Change-Id: Ib1002b53d700d2857f69cd476de79a4e34f90559
2020-05-29 15:56:00 -04:00
Ryan Mitchell
d32418a72a Merge "Install system app in greatest priority partition" into rvc-dev 2020-05-29 18:05:31 +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
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
101fcc5746 Merge "Revert ResolverActivity changes associated with browseables." into rvc-dev 2020-05-28 10:35:09 +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